/* palette: honey-navy */
:root {
  --primary-color: #A07600;
  --secondary-color: #C89800;
  --accent-color: #1A2E5C;
  --background-color: #FFFDE8;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'Merriweather', Georgia, serif;
  --alt-font: 'Poppins', sans-serif;
}

/* Global Reset & Base Styles */
body {
  font-family: var(--alt-font);
  background-color: #ffffff;
  color: var(--text-color);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: clamp(14px, 1.6vw, 17px);
}

h1, h2, h3, h4 {
  font-family: var(--main-font);
  color: var(--dark-color);
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
}

p {
  line-height: 1.7;
}

/* STARTUP-GRADIENT Literal Preset Rules */
section {
  padding: 56px 16px;
  margin: 0;
}

@media(min-width:1024px) {
  section {
    padding: 64px 24px;
  }
}

h1 .grad, .hero h1 span {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-color) 50%, transparent);
  transition: transform .15s, box-shadow .15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-color) 70%, transparent);
}

.icon-bg {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 12px;
  padding: 12px;
}

/* Header & CSS-only Burger Menu */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1000;
}

header img[alt="logo"] {
  max-height: 40px;
  width: auto;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 999;
  box-shadow: var(--shadow-md);
  padding: 24px;
  border-top: 1px solid var(--border-color);
}

.site-nav a {
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary-color);
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.burger-btn .bar {
  width: 100%;
  height: 3px;
  background-color: var(--dark-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    box-shadow: none;
    padding: 0;
    border-top: none;
    background-color: transparent;
  }
}

/* Hero Section (scroll-peek variant) */
.hero {
  position: relative;
  min-height: calc(90vh - 80px);
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  z-index: 10;
}

/* Testimonial Wall Grid (Masonry effect on desktop) */
.testimonial-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonial-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #FFC107;
  font-size: 1.2rem;
}

/* Animations & @property rules */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.stat-num {
  --target: 80;
  display: inline-block;
  font-size: clamp(3rem, 8vw, 6rem);
  animation: count-up 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
}

.stat-num::after {
  content: counter(n);
}

@keyframes count-up {
  from { --count: 0; }
  to { --count: var(--target); }
}

/* Scroll Reveal */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Cards Hover effects */
.card {
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Footer styling */
footer {
  background-color: var(--dark-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
  max-height: 35px;
  width: auto;
}

footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--secondary-color);
}