@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* PHOTO FRAME PLACEHOLDERS */
.photo-frame {
  background: linear-gradient(145deg, var(--g-pale) 0%, #d4ebc8 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--g-mid); font-size: 2rem; overflow: hidden;
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* SCROLL REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal='left'] { transform: translateX(-32px); }
[data-reveal='left'].revealed { transform: none; }
[data-reveal='right'] { transform: translateX(32px); }
[data-reveal='right'].revealed { transform: none; }
[data-reveal='scale'] { transform: scale(0.94); }
[data-reveal='scale'].revealed { transform: none; }

:root {
  --g-dark: #2A5218;
  --g-mid: #3D6B22;
  --g-light: #4E8A2E;
  --g-pale: #EAF4E3;
  --g-faint: #F4FAF0;
  --warm: #F8F6F1;
  --text: #1A2818;
  --text-mid: #4A5C47;
  --text-light: #7A8F77;
  --white: #FFFFFF;
  --border: #D6E8CF;
}

body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 3rem; background: var(--white);
  border-bottom: 0.5px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 14px; color: var(--text-mid); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--g-dark); }
.nav-links a.active { color: var(--g-dark); font-weight: 600; }
.nav-cta {
  background: var(--g-mid); color: var(--white) !important;
  padding: 0.55rem 1.25rem; border-radius: 6px;
  font-size: 14px; font-weight: 600; transition: background 0.2s;
}
.nav-cta:hover { background: var(--g-dark) !important; }

/* BUTTONS */
.btn-primary {
  display: inline-block; background: var(--g-mid); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 8px; font-size: 15px;
  font-weight: 600; border: none; cursor: pointer; transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--g-dark); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g-dark); font-size: 15px; font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-outline {
  display: inline-block; background: transparent; color: var(--g-mid);
  padding: 0.85rem 2rem; border-radius: 8px; font-size: 15px;
  font-weight: 600; border: 1.5px solid var(--g-mid); cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { background: var(--g-pale); }

/* SECTION COMMON */
section { padding: 5rem 3rem; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--g-mid); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'DM Serif Display', serif; font-size: 2.2rem;
  font-weight: 400; color: var(--text); margin-bottom: 1rem; line-height: 1.2;
}
.section-sub { font-size: 1rem; color: var(--text-mid); line-height: 1.7; max-width: 520px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--warm); padding: 4rem 3rem;
  border-bottom: 0.5px solid var(--border);
}
.page-hero .section-label { margin-bottom: 0.5rem; }
.page-hero h1 {
  font-family: 'DM Serif Display', serif; font-size: 2.8rem;
  font-weight: 400; color: var(--text); margin-bottom: 1rem; line-height: 1.15;
}
.page-hero h1 em { color: var(--g-mid); font-style: normal; }
.page-hero p { font-size: 1.1rem; color: var(--text-mid); max-width: 560px; line-height: 1.7; }

/* TRUST BAR */
.trust-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--g-dark); padding: 2.5rem 3rem;
}
.trust-item { text-align: center; padding: 0 2rem; border-right: 0.5px solid rgba(255,255,255,0.15); }
.trust-item:last-child { border-right: none; }
.trust-num { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.trust-label { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }

/* CARDS */
.card {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 1.75rem;
}
.card-icon {
  width: 44px; height: 44px; background: var(--g-pale);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; color: var(--g-dark); font-size: 20px; margin-bottom: 1rem;
}
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; padding: 2rem 1.5rem; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--g-pale);
  color: var(--g-dark); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; border: 3px solid var(--white); outline: 1px solid var(--border);
}
.step h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.step p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* TESTIMONIALS */
.test-card { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; padding: 1.75rem; }
.stars { color: var(--g-mid); font-size: 14px; margin-bottom: 0.75rem; letter-spacing: 2px; }
.test-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.25rem; }
.test-person { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--g-pale); color: var(--g-dark);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.test-name { font-size: 13px; font-weight: 600; color: var(--text); }
.test-role { font-size: 12px; color: var(--text-light); }

/* QUOTE BLOCK */
.quote-block {
  background: var(--warm); border-radius: 16px; padding: 2rem 2.5rem;
  border-left: 4px solid var(--g-mid);
}
.quote-block blockquote {
  font-family: 'DM Serif Display', serif; font-size: 1.25rem;
  line-height: 1.55; color: var(--text); font-style: italic; margin-bottom: 1rem;
}
.quote-attr strong { display: block; font-size: 14px; color: var(--text); font-weight: 600; }
.quote-attr span { font-size: 13px; color: var(--text-mid); }

/* CTA BANNER */
.cta-banner { background: var(--g-dark); padding: 5rem 3rem; text-align: center; }
.cta-banner h2 {
  font-family: 'DM Serif Display', serif; font-size: 2.4rem;
  font-weight: 400; color: var(--white); margin-bottom: 1rem;
}
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white); color: var(--g-dark);
  padding: 0.85rem 2rem; border-radius: 8px; font-size: 15px;
  font-weight: 600; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.btn-white:hover { background: var(--g-pale); }
.btn-outline-white {
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem; border-radius: 8px; font-size: 15px;
  font-weight: 600; border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: border-color 0.2s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); }

/* FORM */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 0.5px solid #C4D9BD; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text); background: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--g-mid);
  box-shadow: 0 0 0 3px rgba(61,107,34,0.1);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 0.75rem; }

/* FOOTER */
footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 3.5rem 3rem 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem;
}
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.cqc-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 0.45rem 0.85rem;
  font-size: 12px; color: rgba(255,255,255,0.45);
}

/* UTILITIES */
.bg-faint { background: var(--g-faint); }
.bg-warm { background: var(--warm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* CONTACT INFO LIST */
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-mid); }
.contact-item-icon {
  width: 36px; height: 36px; background: var(--g-pale); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--g-dark); font-size: 16px; flex-shrink: 0; margin-top: 1px;
}
.contact-item strong { display: block; font-weight: 600; color: var(--text); font-size: 14px; }

/* PILL TAG */
.pill {
  display: inline-block; background: var(--g-pale); color: var(--g-dark);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem; border-radius: 20px;
}

/* TEAM CARD */
.team-card { text-align: center; }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--g-pale); color: var(--g-dark);
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.team-card h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.team-card .role { font-size: 13px; color: var(--g-mid); font-weight: 500; margin-bottom: 0.5rem; }
.team-card p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ACCORDION */
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 1.25rem 0;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q:hover { color: var(--g-dark); }
.faq-a { padding: 0 0 1.25rem; font-size: 14px; color: var(--text-mid); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; font-size: 20px; color: var(--g-mid); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0; display: block; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 0 1.25rem; }

/* CARD HOVER LIFT */
.card {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42,82,24,0.10);
}

/* HERO HEADLINE GRADIENT TEXT */
.hero-gradient {
  background: linear-gradient(135deg, var(--g-dark) 0%, var(--g-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* NAV TRANSITION */
nav { transition: box-shadow 0.3s ease; }

/* HERO FLOATING BADGE */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: 100px; padding: 0.4rem 1rem 0.4rem 0.5rem;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(42,82,24,0.08);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--g-mid);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,107,34,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(61,107,34,0); }
}

/* STAT CARD HOVER */
.trust-item {
  transition: background 0.2s;
  border-radius: 8px;
  padding: 1.5rem 2rem;
}
.trust-item:hover { background: rgba(255,255,255,0.07); }

/* SCROLL INDICATOR */
.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-light); margin-top: 2.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* FLOATING CTA BUTTON */
.float-cta {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: var(--g-mid); color: white;
  display: flex; align-items: center; gap: 10px;
  padding: 0.85rem 1.5rem; border-radius: 14px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(42,82,24,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.float-cta:hover {
  background: var(--g-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(42,82,24,0.40);
}
.float-cta i { font-size: 17px; }

/* BUTTON ARROW ANIMATION */
.btn-primary i, .btn-ghost i {
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn-primary:hover i, .btn-ghost:hover i { transform: translateX(4px); }

/* QUOTE BLOCK HOVER */
.quote-block {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
}
.quote-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(42,82,24,0.08);
}

/* TEAM CARD HOVER */
.team-card .team-avatar {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover .team-avatar {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(42,82,24,0.15);
}

/* HERO VISUAL CARD ANIMATION */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-float { animation: float 4s ease-in-out infinite; }

/* LINE ACCENT */
.line-accent {
  width: 48px; height: 3px; background: var(--g-mid);
  border-radius: 2px; margin: 1rem 0 1.5rem;
}

/* NAV LINK UNDERLINE ANIMATION */
.nav-links a:not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--g-mid);
  transition: width 0.25s ease; border-radius: 1px;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { width: 100%; }

/* PAGE HERO ANIMATED BACKGROUND */
.page-hero {
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -60%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,107,34,0.07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

/* FORM FOCUS ANIMATION */
.form-group input, .form-group select, .form-group textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  transform: translateY(-1px);
}

/* SUCCESS STATE */
#form-success { animation: fadeInUp 0.5s ease forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* HERO SECTION */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 3rem 5rem;
  background: var(--warm);
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 420px;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mid);
}
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 440px;
  max-width: 420px;
}
.hero-collage-main {
  grid-row: 1 / 3;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(42,82,24,0.13);
}
.hero-collage-secondary {
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(42,82,24,0.11);
}
.why-us-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* LEGAL PAGES */
.legal-content h2 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; font-weight: 400; color: var(--text); margin: 2rem 0 0.75rem; }
.legal-content p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 0.4rem; }
.legal-content a { color: var(--g-mid); text-decoration: underline; }

/* =====================
   MOBILE HAMBURGER NAV
   ===================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 4px;
  -webkit-appearance: none;
  appearance: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE PHOTO STRIP — hidden on desktop, shown on mobile */
.mobile-photos-wrap { display: none; }

/* =====================
   TABLET (max 1024px)
   ===================== */
@media (max-width: 1024px) {
  section { padding: 4rem 2rem; }
  .page-hero { padding: 3rem 2rem; }
  .cta-banner { padding: 4rem 2rem; }
  nav { padding: 0.75rem 2rem; }
  footer { padding: 3rem 2rem 1.5rem; }
  .trust-bar { padding: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* MOBILE PHOTO CAROUSEL */
@keyframes mobile-photo-cycle {
  0%   { opacity: 0; transform: scale(1.03); }
  8%   { opacity: 1; transform: scale(1); }
  30%  { opacity: 1; transform: scale(1); }
  38%  { opacity: 0; transform: scale(1.03); }
  100% { opacity: 0; }
}

/* =====================
   PREVENT HORIZONTAL SCROLL
   ===================== */
html, body { overflow-x: hidden; max-width: 100%; }

/* =====================
   MOBILE (max 768px)
   ===================== */
@media (max-width: 768px) {

  /* HERO — !important needed to override inline styles */
  .hero-wrap {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.25rem 2.5rem !important;
    min-height: auto !important;
    gap: 1.5rem !important;
    overflow: hidden !important;
  }

  /* Hero heading */
  .hero-wrap h1 { font-size: 1.9rem !important; line-height: 1.2 !important; margin-bottom: 1rem !important; }
  .hero-wrap p { max-width: 100% !important; font-size: 1rem !important; margin-bottom: 1.5rem !important; }

  /* Hero badge — stop it overflowing */
  .hero-badge { font-size: 11px !important; padding: 0.3rem 0.75rem 0.3rem 0.4rem !important; max-width: 100% !important; white-space: nowrap; overflow: hidden; }

  /* Hero buttons — stack them */
  .hero-wrap > div[data-reveal] > div[style*="display:flex"][style*="gap:1rem"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .hero-wrap > div[data-reveal] > div[style*="display:flex"][style*="gap:1rem"] a {
    text-align: center !important;
    justify-content: center !important;
  }

  /* Hero trust items — wrap tightly */
  .hero-wrap > div[data-reveal] > div[style*="display:flex"][style*="gap:2rem"] {
    gap: 0.75rem 1.25rem !important;
    flex-wrap: wrap !important;
    margin-top: 1.5rem !important;
  }

  /* Photo collage — cycling slideshow on mobile */
  .hero-wrap > div[data-reveal="right"] {
    display: block !important;
    position: relative !important;
    height: 220px !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  .hero-wrap > div[data-reveal="right"] .photo-frame {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    border-radius: 16px !important;
    opacity: 0;
    animation: mobile-photo-cycle 9s infinite !important;
    box-shadow: none !important;
  }
  .hero-wrap > div[data-reveal="right"] .photo-frame:nth-child(1) { animation-delay: 0s !important; }
  .hero-wrap > div[data-reveal="right"] .photo-frame:nth-child(2) { animation-delay: 3s !important; }
  .hero-wrap > div[data-reveal="right"] .photo-frame:nth-child(3) { animation-delay: 6s !important; }

  /* NAV — !important needed to override inline display:none */
  .nav-toggle { display: flex !important; }
  nav { padding: 0.75rem 1.25rem; position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 0.5px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 0.5px solid var(--border); font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { display: block !important; width: 100% !important; margin-top: 0.75rem; text-align: center; padding: 0.85rem 1.5rem; border-radius: 8px; border-bottom: none !important; box-sizing: border-box !important; font-size: 13px !important; }

  /* SPACING */
  section { padding: 2.5rem 1.25rem; }
  .page-hero { padding: 2rem 1.25rem; }
  .cta-banner { padding: 2.5rem 1.25rem; }
  footer { padding: 2.5rem 1.25rem 1.25rem; }
  .trust-bar { padding: 1.5rem 1.25rem; }

  /* TYPOGRAPHY */
  .section-title { font-size: 1.75rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .cta-banner h2 { font-size: 1.6rem; }

  /* GRIDS */
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .why-us-cards { grid-template-columns: 1fr; gap: 0.75rem; }

  /* TRUST BAR */
  .trust-bar { grid-template-columns: 1fr; gap: 0; }
  .trust-item { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.15); padding: 1.25rem 0; }
  .trust-item:last-child { border-bottom: none; }

  /* FOOTER */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  /* FORM */
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.25rem !important; }
  .contact-grid { gap: 2rem !important; }

  /* FLOATING CTA */
  .float-cta { bottom: 1rem; right: 1rem; padding: 0.75rem 1.1rem; font-size: 13px; gap: 7px; }

  /* CTA BUTTONS */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions a { text-align: center; }
}

/* =====================
   SMALL MOBILE (max 480px)
   ===================== */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.4rem; }
  .hero-wrap h1 { font-size: 1.75rem !important; }
  .float-cta { padding: 0.75rem 1rem; border-radius: 12px; font-size: 13px; gap: 7px; }
  * { word-break: break-word; }
}
