/* =============================================
   BERAAL GROUP FENCING — PREMIUM REDESIGN
   Font: Poppins only
   All magic numbers live in :root as variables
============================================= */

:root {
  /* ── BRAND COLOURS ────────────────────────── */
  --teal-dark:      #003D3D;   /* header, footer, dark sections */
  --teal-deeper:    #004F4F;   /* gradient stop (areas/why-us) */
  --teal-mid-dark:  #005050;   /* gradient stop (why-us) */
  --teal:           #006E6E;   /* nav CTA hover */
  --teal-mid:       #008080;   /* primary CTA, icons, links */
  --teal-accent:    #5BB8B8;   /* borders & accents on light backgrounds */
  --teal-light:     #C8DCDC;   /* subtle text/icons on dark backgrounds */
  --teal-pale:      #E6F4F4;   /* icon bg, hover bg on light surfaces */
  --teal-mist:      #F0F8F8;   /* lightest teal tint */

  --gold:           #C9973A;   /* badge accent */

  /* ── TEXT COLOURS ─────────────────────────── */
  --text:           #1A2530;   /* primary body text */
  --text-muted:     #5A6E7A;   /* secondary / supporting text */
  --placeholder:    #9EAFB5;   /* input placeholders */

  /* ── SURFACE COLOURS ──────────────────────── */
  --white:          #FFFFFF;
  --off-white:      #F8FAFB;   /* FAQ, subtle section bg */
  --focus-glow:     #0080801A; /* 10% */

  /* ── ON-DARK TEXT ───────────────────────────── */
--on-dark-high:   #FFFFFFE6; /* 90% */
--on-dark-mid:    #FFFFFFB8; /* 72% */
--on-dark-low:    #FFFFFF9E; /* 62% */
--on-dark-subtle: #FFFFFF94; /* 58% */

/* ── WHITE OVERLAYS ─────────────────────────── */
--overlay-white-xs:  #FFFFFF12; /* 7% */
--overlay-white-sm:  #FFFFFF14; /* 8% */
--overlay-white-md:  #FFFFFF1A; /* 10% */
--overlay-white-lg:  #FFFFFF2E; /* 18% */
--overlay-white-btn: #FFFFFF17; /* 9% */

/* ── WHITE BORDERS ON DARK ──────────────────── */
--border:         #D4E2E2;   /* card & input borders */
--border-on-dark-xs:  #FFFFFF12; /* 7% */
--border-on-dark-sm:  #FFFFFF14; /* 8% */
--border-on-dark-md:  #FFFFFF24; /* 14% */
--border-on-dark-lg:  #FFFFFF38; /* 22% */
--border-on-dark-cta: #FFFFFF40; /* 25% */

/* ── DARK OVERLAYS ──────────────────────────── */
--overlay-black-mid:        #000000A6; /* 65% */
--overlay-teal-caption:     #001414B8; /* 72% */
--overlay-black-nav:        #00000047; /* 28% */
--overlay-badge:            #00000038; /* 22% */

  /* ── STATE COLOURS ────────────────────────── */
  --error:          #C0392B;
  --error-bg:       #FDF2F2;
  --error-border:   #E74C3C;
  --success:        #1A8C5E;
  --success-bg:     #EAF7F0;
  --success-border: #2ECC88;

  /* ── BORDER RADIUS ────────────────────────── */
  --radius-s:       4px;    /* radio options, small chips */
  --radius:         8px;   /* inputs, cards, buttons */
  --radius-lg:      16px;   /* service cards, gallery, about image */
  --radius-xl:      24px;   /* quote form */
  --radius-pill:    999px;  /* fully rounded: buttons, tags, badges */
  --radius-circle:  50%;    /* avatar, social icons, gallery buttons */

  /* ── TYPOGRAPHY ───────────────────────────── */
  --font:           'Poppins', system-ui, sans-serif;

  --text-s:      14px;   /* body small, nav, form fields */
  --text-base:   16px;   /* base body, logo text, form inputs */
  --text-m:      20px;
  --text-l:      26px;

  --leading-tight:  1.25;   /* headings */
  --leading-body:   1.5;   /* body */
  --leading-relaxed:1.7;    /* section-sub, footer brand */
  --leading-loose:  1.75;   /* faq answers, hero p */

  /* ── SPACING ──────────────────────────────── */
  --space-xs:       4px;
  --space-sm:       8px;
  --space-md:       16px;
  --space-xl:       80px; /* standard section padding top/bottom */
 
  --pad-page:       40px;   /* horizontal page padding */
  --pad-mobile:     16px;   /* horizontal padding on mobile */
  --pad-tablet:     24px;   /* horizontal padding on tablet */
  --pad-laptop:     28px;   /* horizontal padding on tablet wide */
  

  /* ── SHADOWS ──────────────────────────────── */
  --shadow-sm:      0 2px  8px  rgba(0, 61, 61, 0.08);
  --shadow-md:      0 6px  24px rgba(0, 61, 61, 0.12);
  --shadow-lg:      0 16px 48px rgba(0, 61, 61, 0.16);
  --shadow-scroll:  0 4px  24px rgba(0,  0,  0, 0.22);
  --shadow-btn:     0 6px  20px rgba(0, 110, 110, 0.32);
  --shadow-badge:   0 8px  24px rgba(0,   0,  0, 0.22);

  /* ── TRANSITIONS ──────────────────────────── */
  --transition-fast:  0.15s ease;
  --transition:       0.2s ease;
  --transition-slow:  0.3s ease;
  --transition-xslow: 8s ease;    /* hero bg parallax */

  /* ── Z-INDEX ──────────────────────────────── */
  --z-skip:    9999;
  --z-dropdown: 2000;
  --z-header:  1000;
  --z-nav:      999;
  --z-content:    2;

  /* ── LAYOUT ───────────────────────────────── */
  --max-w:      1280px;
  --header-h:   76px;       /* header height — keep in sync with JS top: 76px */
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: var(--leading-tight);
}
h1 { font-size: 48px; font-weight: 600; margin-bottom: 40px;}
h2 { font-size: 38px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: var(--text-base); font-weight: 600; }

.section-label {
  font-family: var(--font);
  font-size: var(--text-s);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 10px;
  display: block;
}
.section-label.light { color: var(--on-dark-low); }

.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 10px auto 44px;
  text-align: center;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.section-sub.light { color: var(--on-dark-mid); }

/* ================================
   SKIP LINK (accessibility)
================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  color: var(--teal-mist);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-size: var(--text-base);
  z-index: var(--z-skip);
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ================================
   HEADER
================================ */
#site-header {
  background: var(--teal-dark);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--border-on-dark-sm);
  transition: box-shadow var(--transition-slow);
}
#site-header.scrolled {
  box-shadow: var(--shadow-scroll);
}

.header-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 0 var(--pad-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-link:focus-visible {
  outline: 2px solid var(--on-dark-high);
  outline-offset: var(--space-xs);
  border-radius: var(--radius);
}

.logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.logo-text {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.logo-text em {
  font-style: normal;
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-base);
}

/* ── NAV ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.main-nav > a {
  color: var(--on-dark-high);
  font-size: var(--text-base);
  font-weight: 500;
  padding: var(--space-sm) 13px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav > a:hover {
  color: var(--white);
  background: var(--overlay-white-btn);
}
.main-nav > a:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-more-btn {
  background: none;
  border: none;
  color: var(--on-dark-high);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 500;
  padding: var(--space-sm) 13px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-more-btn:hover,
.nav-more-btn[aria-expanded="true"] {
  color: var(--white);
  background: var(--overlay-white-btn);
}
.nav-more-btn:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}
.nav-more-btn .fa-chevron-down {
  font-size: var(--text-s);
  transition: transform var(--transition-slow);
}
.nav-more-btn[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  list-style: none;
  padding: var(--space-sm);
  z-index: var(--z-dropdown);
  animation: dropdownIn 0.18s ease both;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-more-menu.open { display: block; }

.nav-more-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-more-menu li a:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}
.nav-more-menu li a:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: -2px;
}
.nav-more-menu li a i {
  width: 16px;
  color: var(--teal-mid);
  font-size: var(--text-s);
}

/* Nav CTA */
.main-nav .nav-cta {
  background: var(--teal-mid);
  color: var(--white) !important;
  padding: var(--space-sm) 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  margin-left: var(--space-xs);
}
.main-nav .nav-cta:hover {
  background: var(--teal);
  color: var(--white) !important;
}

/* Burger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: var(--space-xs);
  border-radius: var(--radius-s);
}
.menu-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: var(--radius-s);
  transition: var(--transition-slow);
  display: block;
}

/* ================================
   HERO
================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform var(--transition-xslow);
}
.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-black-mid);
}

.hero-content {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 60px var(--pad-page);
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: var(--overlay-white-lg);
  border: 1px solid var(--border-on-dark-lg);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: var(--text-s);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
  color: var(--on-dark-high);
}
.hero h1 span {
  color: var(--white);
  display: block;
  margin-top: 12px;
}

.hero p {
  font-size: var(--text-base);
  color: var(--on-dark-high);
  margin-bottom: 32px;
  line-height: var(--leading-loose);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.stat span {
  display: block;
  font-size: var(--text-l);
  font-weight: 700;
  color: var(--teal-light);
}
.stat em {
  font-style: normal;
  font-size: var(--text-s);
  color: var(--on-dark-mid);
}
.stat-divider {
  width: 1px; height: 38px;
  background: var(--overlay-white-lg);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* treat arrows as ONE unit */
.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  
  /* 👇 THIS is what makes it bounce as a whole */
  animation: bounce 1.6s ease-in-out infinite;
}

/* arrow shape only (NO animation here) */
.scroll-arrows span {
  width: 12px;
  height: 12px;
  margin-top:-5px;
  border-right: 2px solid rgba(255,255,255,0.75);
  border-bottom: 2px solid rgba(255,255,255,0.75);
  transform: rotate(45deg);
  opacity: 0.8;
}

/* smooth straight up-down motion */
@keyframes bounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* ================================
   BUTTONS
================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-mid);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--teal-mid);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-on-dark-cta);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--overlay-white-md);
  border-color: var(--on-dark-high);
}
.btn-ghost:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
}

/* ================================
   TRUST BAR
================================ */
.trust-bar {
  background: var(--teal-dark);
  border-top: 1px solid var(--border-on-dark-xs);
  padding: 13px var(--pad-page);
}
.trust-inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-item {
  color: var(--on-dark-high);
  font-size: var(--text-s);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust-item i { color: var(--teal-pale); }

/* ================================
   SECTION WRAPPER
================================ */
.section {
  max-width: var(--max-w);
  margin: auto;
  padding: var(--space-xl) var(--pad-page);

}
.section > h2 { text-align: center; }
.section > .section-label { text-align: center; }

/* ================================
   SERVICES GRID
================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 26px;
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--teal-pale);
}
.service-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover .service-img-wrap img { transform: scale(1.06); }
.service-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-badge);
}

.service-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 42px; height: 42px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--teal-mid);
  font-size: var(--text-base);
}

.service-body h3 { margin-bottom: var(--space-sm); }
.service-body p { color: var(--text-muted); font-size: var(--text-base); flex: 1; line-height: 1.6; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-mid);
  font-weight: 600;
  font-size: var(--text-base);
  margin-top: 14px;
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }
.service-link:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* ================================
   WHY US
================================ */
.why-us-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid-dark) 100%);
  color: var(--white);
  padding: var(--space-xl) var(--pad-page);
}
.why-us-inner {
  max-width: var(--max-w);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.why-us-text h2 { color: var(--white); margin: 10px 0 var(--space-md); }
.why-us-text > p {
  color: var(--on-dark-mid);
  margin-bottom: 32px;
  font-size: var(--text-base);
}

.why-list { display: flex; flex-direction: column; gap: 26px; }
.why-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.why-icon {
  width: 46px; height: 46px;
  background: var(--overlay-white-md);
  border: 1px solid var(--border-on-dark-md);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-light);
  font-size: var(--text-base);
  flex-shrink: 0;
}
.why-item h3 { color: var(--white); margin-bottom: var(--space-xs); font-size: var(--text-base); }
.why-item p { color: var(--on-dark-low); font-size: var(--text-base); }

.why-us-image { position: relative; }
.why-us-image img {
  width: 100%; height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.why-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-circle);
  width: 110px; height: 110px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-badge);
}
.badge-num { font-size: var(--text-l); font-weight: 700; line-height: 1; }
.badge-label { font-size: var(--text-s); font-weight: 500; text-align: center; }

/* ================================
   PROCESS — 7 steps, no ol markers
================================ */
.process-section { background: var(--white); }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  list-style: none;
  padding-left: 0;
}
.process-steps,
.process-steps li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  position: relative;
  min-width: 0;
}
.step-number {
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--teal-mid);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.step-icon {
  width: 56px; height: 56px;
  background: var(--teal-pale);
  border: 2px solid var(--teal-accent);
  border-radius: var(--radius-circle);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--teal-mid);
  font-size: var(--text-m);
  transition: all var(--transition-slow);
}
.process-step:hover .step-icon {
  background: var(--teal-mid);
  color: var(--white);
  transform: scale(1.08);
}
.process-step h3 { margin-bottom: 6px; font-size: var(--text-s); font-weight: 600; line-height: 1.3; }
.process-step p { color: var(--text-muted); font-size: var(--text-s); line-height: 1.5; }

.process-connector {
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(to right, var(--teal-accent), var(--border));
  margin-top: 60px;
  align-self: flex-start;
}

/* ================================
   GALLERY — max-width contained
================================ */
.gallery-section {
  background: var(--off-white);
  padding: var(--space-xl) 0 60px;
}
.gallery-header {
  max-width: var(--max-w);
  margin: auto;
  padding: 0 var(--pad-page);
  text-align: center;
}

.gallery-slider-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.gallery-slider {
  position: relative;
  background: var(--teal-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.gallery-track-container { overflow: hidden; }
.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.gallery-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
}
.gallery-slide img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 56px 36px 22px;
  background: linear-gradient(transparent, var(--overlay-teal-caption));
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 500;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--overlay-white-md);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-on-dark-lg);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: var(--radius-circle);
  cursor: pointer;
  font-size: var(--text-base);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.gallery-btn:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
}
.gallery-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.prev-btn { left: 18px; }
.next-btn { right: 18px; }

.gallery-counter {
  position: absolute;
  bottom: 20px;
  right: 30px;
  color: var(--on-dark-low);
  font-size: var(--text-s);
  font-weight: 500;
}

/* ================================
   ABOUT
================================ */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-col { position: relative; }
.about-img-col img {
  width: 100%; height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.about-accent {
  position: absolute;
  top: -18px; left: -18px;
  right: 36px; bottom: 36px;
  border: 3px solid var(--teal-accent);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-text-col h2 { margin: 10px 0 var(--space-md); }
.about-text-col p { color: var(--text-muted); margin-bottom: 14px; font-size: var(--text-base); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 32px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--teal-dark);
}
.highlight i { color: var(--teal-mid); }

/* ================================
   SERVICE AREAS
================================ */
.areas-section {
  background: linear-gradient(135deg, var(--teal-deeper), var(--teal-dark));
  padding: var(--space-xl) var(--pad-page);
  text-align: center;
}
.areas-inner { max-width: var(--max-w); margin: auto; }
.areas-inner h2 { color: var(--white); margin: 10px 0 14px; }

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 36px 0 26px;
  list-style: none;
  padding: 0;
}
.area-tag {
  background: var(--overlay-white-md);
  border: 1px solid var(--border-on-dark-lg);
  color: var(--on-dark-high);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-s);
  font-weight: 500;
  transition: all var(--transition);
}
.area-tag:hover {
  background: var(--overlay-white-lg);
  color: var(--white);
}

.areas-note { color: var(--on-dark-low); font-size: var(--text-base); }
.areas-note a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 3px; }

/* ================================
   TESTIMONIALS
================================ */
#testimonials { background: var(--white); }
#testimonials > .section-label,
#testimonials > h2,
#testimonials > .section-sub { text-align: center; }

/* ================================
   FAQ
================================ */
.faq-section {
  background: var(--off-white);
  padding: var(--space-xl) var(--pad-page);
}
.faq-inner { max-width: 780px; margin: auto; }
.faq-inner .section-label,
.faq-inner h2 { text-align: center; }
.faq-inner h2 { margin-bottom: 44px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-accent);
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color var(--transition);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: var(--text-m);
  color: var(--teal-mid);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 14px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: -2px;
}

.faq-answer {
  padding: 18px 22px;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  border-top: 1px solid var(--border);
}

/* ================================
   QUOTE FORM
================================ */
#request-quote {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.quote-wrap {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 40px;
  align-items: start;
}

.quote-info .section-label { text-align: left; }
.quote-info h2 { text-align: left; margin: 10px 0 14px; }
.quote-info > p { color: var(--text-muted); margin-bottom: 32px; font-size: var(--text-base); }

.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
  text-decoration: none;
}
.contact-item:hover { box-shadow: var(--shadow-md); }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-mid);
  font-size: var(--text-base);
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.contact-item span { font-size: var(--text-s); color: var(--text); }

.quote-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--pad-page);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; }
.form-group:not(.fence-fieldset) { margin-bottom: var(--space-md); }

label {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}

input, textarea, select {
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px var(--focus-glow);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { resize: vertical; }

.fence-fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: var(--space-md);
}
.fence-fieldset legend {
  padding: 0 var(--space-sm);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}
.radio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: 12px;
}

/* Hide the native radio button completely */
label.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

label.radio-option {
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  text-align: center;
  transition: all var(--transition);
  user-select: none;
}

label.radio-option:hover {
  border-color: var(--teal-mid);
  background: var(--teal-pale);
  color: var(--teal-dark);
}

/* Selected state */
label.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--teal-mid);
  background: var(--teal-mid);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: 6px;
}

.btn-submit {
  border-radius: var(--radius);
  padding: 13px 30px;
  font-size: var(--text-base);
  min-width: 210px;
}

.field-error { border-color: var(--error-border) !important; }
.fence-fieldset.field-error { border-color: var(--error-border) !important; }

.form-message {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-message.error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}
.form-message.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.hp-field { display: none; }
.captcha { min-height: 78px; }

/* ================================
   FOOTER
================================ */
.site-footer {
  background: var(--teal-dark);
  color: var(--white);
}

.footer-top {
  max-width: var(--max-w);
  margin: auto;
  padding: 60px var(--pad-page) 44px;
  display: grid;
  grid-template-columns: 360px 1fr 1fr 240px; 
  gap: 44px;
}

.footer-logo {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-circle);
}
.footer-brand > div p {
  color: var(--on-dark-subtle);
  font-size: var(--text-s);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-sm);
  max-width: 260px;
}

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  background: var(--overlay-white-xs);
  border: 1px solid var(--overlay-white-sm);
  border-radius: var(--radius-circle);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-subtle);
  font-size: var(--text-s);
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: var(--white);
}
.social-links a:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.footer-col h3 {
  font-size: var(--text-s);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-md);
  font-family: var(--font);
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--on-dark-subtle);
  font-size: var(--text-s);
  margin-bottom: 9px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-col p i,
.footer-col a i { width: 15px; margin-right: 7px; color: var(--teal-light); }
.footer-col p a { display: inline; color: var(--on-dark-subtle); }
.footer-col p a:hover { color: var(--white); }
.footer-col a:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 2px; border-radius: 3px; }

.footer-bottom {
  border-top: 1px solid var(--border-on-dark-xs);
  padding: 18px var(--pad-page);
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-s);
  color: var(--on-dark-subtle);
}

/* ================================
   TABLET LANDSCAPE  1025–1280px
================================ */
@media (min-width: 1025px) and (max-width: 1280px) {
  h1 { font-size: 40px; font-weight: 600; margin-bottom: 40px;}
  h2 { font-size: 32px; font-weight: 600; }
  h3 { font-size: 18px; font-weight: 600; }
  /* Header: tighten nav spacing */
  .header-inner { padding: 0 var(--pad-laptop); }
  .main-nav > a { padding: var(--space-sm) 10px; }
  .main-nav .nav-cta { padding: var(--space-sm) 16px; }
  .nav-more-btn { padding: var(--space-sm) 10px; }

  /* Sections */
  .section { padding: var(--space-xl) var(--pad-laptop); }

  /* Why Us: keep 2-col but tighten gap */
  .why-us-section { padding: var(--space-xl) var(--pad-laptop); }
  .why-us-inner { gap: 40px; }

  /* Services */
  .service-img-wrap {
    height: 250px;
  }

  /* Gallery */
  .gallery-section { padding: var(--space-xl) 0 50px; }
  .gallery-header { padding: 0 var(--pad-laptop); }
  .gallery-slider-wrap { padding: 0 var(--pad-laptop); }
  .gallery-slide img { height: 500px; }

  /* About: keep 2-col but tighten gap */
  .about-wrap { gap: 40px; }
  .about-img-col img { height: 440px; }

  /* Areas */
  .areas-section { padding: var(--space-xl) var(--pad-laptop); }

  /* Quote Form */
  .quote-wrap { grid-template-columns: 280px 1fr; gap: var(--pad-laptop); }
  .quote-form { padding: var(--pad-page); }

  /* FAQ */
  .faq-section { padding: var(--space-xl) var(--pad-laptop); }

  /* Footer */
  .footer-top {padding: 48px var(--pad-laptop) 36px; gap: 28px; }
  .footer-bottom { padding: 18px var(--pad-laptop); }
}

/* ================================
   TABLET PORTRAIT  769–1024px
================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  h1 { font-size: 36px; font-weight: 600; margin-bottom: 40px;}
  h2 { font-size: 28px; font-weight: 600; }
  h3 { font-size: 18px clamp(16px, 2vw, 20px); font-weight: 600; }
  /* ── Header: hamburger nav (nav items overflow at this width) ── */
  .header-inner { padding: 0 20px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--teal-dark);
    border-top: 1px solid var(--border-on-dark-sm);
    padding: 14px 20px;
    gap: 2px;
    box-shadow: 0 8px 32px var(--overlay-black-nav);
    z-index: var(--z-nav);
  }
  .main-nav.active > a { padding: 12px 14px; }
  .main-nav.active .nav-cta { margin-top: 0; text-align: center; }
  .main-nav.active .nav-dropdown { display: contents; }
  .nav-more-btn { display: none; }
  .nav-more-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    border-top: 1px solid var(--overlay-white-sm);
    box-shadow: none;
    border-radius: 0;
    padding: var(--space-xs) 0 0;
    min-width: unset;
    animation: none;
    margin-top: var(--space-xs);
  }
  .nav-more-menu li a { color: var(--on-dark-high); padding: 11px 14px; border-radius: var(--radius); }
  .nav-more-menu li a:hover { background: var(--overlay-white-sm); color: var(--white); }
  .nav-more-menu li a i { color: var(--teal-light); }

  /* ── Sections ── */
  .section { padding: 56px var(--pad-tablet); }

  /* ── Hero ── */
  .hero { min-height: 82vh; }
  .hero-content { padding: 48px var(--pad-tablet); }
  .hero-stats { gap: 18px; }
  .stat-divider { display: none; }
  .hero-scroll-hint { display: none; }

  /* ── Trust ── */
  .trust-bar { padding: 12px var(--pad-tablet); }
  .trust-inner { gap: 18px; }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Why Us: stack to single column ── */
  .why-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Optional: better alignment for each item */
  .why-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }
  .why-us-section { padding: 56px var(--pad-tablet); }
  .why-us-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-us-image { order: -1; }
  .why-us-image img { height: 380px; }
  .why-badge { bottom: -14px; right: 14px; width: 90px; height: 90px; }
  .badge-num { font-size: var(--text-m); }

  /* ── Process: shorten connectors ── */
  .process-step h3 { font-size: var(--text-s); }
  .process-step p { font-size: var(--text-s); }
  .process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    grid-auto-rows: auto;
    gap: 20px;
  }

  /* hide connectors on tablet since layout breaks flow */
  .process-connector {
    display: none;
  }
  .step-icon { width: 48px; height: 48px; font-size: var(--text-base); }

  /* ── Gallery ── */
  .gallery-section { padding: 56px 0 44px; }
  .gallery-header { padding: 0 var(--pad-tablet); }
  .gallery-slider-wrap { padding: 0 var(--pad-tablet); }
  .gallery-slide img { height: 400px; }

  /* ── About: stack to single column ── */
  .about-wrap { grid-template-columns: 1fr; gap: 36px; }
  .about-img-col img { height: 380px; }
  .about-accent { display: none; }
  .about-highlights { grid-template-columns: 1fr 1fr; }

  /* ── Areas ── */
  .areas-section { padding: 56px var(--pad-tablet); }

  /* ── Quote Form ── */
  .contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  #request-quote { padding-top: 56px; padding-bottom: 56px; }
  .quote-wrap { grid-template-columns: 1fr; gap: 36px; }
  .quote-form { padding: var(--pad-page); border-radius: var(--radius-lg); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .radio-grid { grid-template-columns: repeat(4, 1fr); }

  /* ── FAQ ── */
  .faq-section { padding: 56px var(--pad-tablet); }

  /* ── Footer: 2-column ── */
  .footer-top { grid-template-columns: 1fr 1fr; padding: 36px var(--pad-tablet) 28px; gap: var(--space-md); }
  .footer-bottom { padding: 14px var(--pad-tablet); flex-direction: column; gap: var(--space-xs); text-align: center; }
}

/* ================================
   MOBILE  ≤ 768px
================================ */
@media (max-width: 768px) {
  h1 { font-size: 32px; font-weight: 600; margin-bottom: 40px;}
  h2 { font-size: 24px; font-weight: 600; }
  h3 { font-size: 16px; font-weight: 600; }
  /* Header — hamburger menu */
  .header-inner { padding: 0 var(--pad-mobile); }
  .main-nav { display: none; }
  .logo-link {
    gap: 0;
  }
  .logo-text {
    white-space: pre-wrap;
    max-width: 150px;
  }
  .menu-toggle { display: flex; }

  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--teal-dark);
    border-top: 1px solid var(--border-on-dark-sm);
    padding: 14px var(--pad-mobile);
    gap: 2px;
    box-shadow: 0 8px 32px var(--overlay-black-nav);
    z-index: var(--z-nav);
  }
  .main-nav.active > a { padding: 12px 14px; }
  .main-nav.active .nav-cta { margin-top: 6px; text-align: center; }

  /* Flatten More dropdown on mobile */
  .main-nav.active .nav-dropdown { display: contents; }
  .nav-more-btn { display: none; }
  .nav-more-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    border-top: 1px solid var(--overlay-white-sm);
    box-shadow: none;
    border-radius: 0;
    padding: var(--space-xs) 0 0;
    min-width: unset;
    animation: none;
    margin-top: var(--space-xs);
  }
  .nav-more-menu li a {
    color: var(--on-dark-high);
    padding: 11px 14px;
    border-radius: var(--radius);
  }
  .nav-more-menu li a:hover {
    background: var(--overlay-white-sm);
    color: var(--white);
  }
  .nav-more-menu li a i { color: var(--teal-light); }

  /* Sections */
  .section { padding: 48px var(--pad-mobile); }

  /* Hero */
  .hero { min-height: 80vh; }
  .hero-content { padding: 40px var(--pad-mobile); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 14px; }
  .stat-divider { display: none; }
  .hero-scroll-hint { display: none; }

  /* Trust */
  .trust-bar { padding: 12px var(--pad-mobile); }
  .trust-inner {
    align-items: center;
    gap: var(--space-md);
  }

  /* Why Us */
  .why-us-section { padding: 48px var(--pad-mobile); }
  .why-us-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-us-image { order: -1; }
  .why-us-image img { height: 340px; }
  .why-badge { bottom: -14px; right: 14px; width: 84px; height: 84px; }
  .badge-num { font-size: var(--text-m); }

  /* Process */
  .process-steps { flex-direction: column; align-items: center; gap: 0; }
  .process-step { max-width: 320px; width: 100%; padding: 0 0 var(--space-sm); }
  .process-connector {
    width: 2px; height: 28px;
    background: linear-gradient(to bottom, var(--teal-accent), var(--border));
    margin: 0 auto;
    align-self: auto;
  }

  /* Gallery */
  .gallery-section { padding: 48px 0 36px; }
  .gallery-header { padding: 0 var(--pad-mobile); }
  .gallery-slider-wrap { padding: 0 var(--pad-mobile); }
  .gallery-slide img { height: 52vw; min-height: 200px; max-height: 320px; }
  .gallery-counter { right: 16px; bottom: 14px; }

  /* About */
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
  .about-img-col img { height: 300px; }
  .about-accent { display: none; }
  .about-highlights { grid-template-columns: 1fr; }

  /* Areas */
  .areas-section { padding: 48px var(--pad-mobile); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Quote Form */
  #request-quote { padding-top: 48px; padding-bottom: 48px; }
  .quote-wrap { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .radio-grid { grid-template-columns: 1fr 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { min-width: unset; width: 100%; }
  .quote-form { padding: 24px var(--pad-mobile); border-radius: var(--radius); }

  /* FAQ */
  .faq-section { padding: 48px var(--pad-mobile); }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    padding: 32px var(--pad-mobile) 24px;
    gap: var(--space-md);
  }
  .footer-bottom {
    padding: 14px var(--pad-mobile);
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  /* Extra-small adjustments (formerly ≤480px) */
  .radio-grid { grid-template-columns: 1fr; }
}

/* ================================
   REDUCED MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { transform: none !important; }
  .scroll-line { animation: none; }
}

/* ================================
   HIGH CONTRAST
================================ */
@media (forced-colors: active) {
  .btn-primary, .btn-ghost, .nav-cta { border: 2px solid ButtonText; }
  .service-card, .faq-item, .contact-item { border: 1px solid ButtonText; }
}
