/* ============================================================
   HGO DRYWALL — Main Stylesheet
   Design tokens + components + pages + responsive
   ============================================================ */

/* -------- Fonts -------- */
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Colors — palette */
  --hgo-navy-50:  #E7ECF2;
  --hgo-navy-100: #C2CCD9;
  --hgo-navy-200: #8B9AB1;
  --hgo-navy-300: #56688A;
  --hgo-navy-400: #2D4264;
  --hgo-navy-500: #1A2D4D;
  --hgo-navy-600: #0F1F36;
  --hgo-navy-700: #0A172A;
  --hgo-navy-800: #060F1C;

  --hgo-blue-50:  #EAF2F8;
  --hgo-blue-100: #C7DDEC;
  --hgo-blue-200: #94BCD6;
  --hgo-blue-300: #6CA0C2;
  --hgo-blue-400: #4D8BB1;
  --hgo-blue-500: #357EA9;
  --hgo-blue-600: #2A688E;
  --hgo-blue-700: #1F5170;
  --hgo-blue-800: #143A52;

  --hgo-orange-50:  #FFF3EB;
  --hgo-orange-100: #FFD9BF;
  --hgo-orange-200: #FFB78A;
  --hgo-orange-300: #FF9355;
  --hgo-orange-400: #F58030;
  --hgo-orange-500: #F26B1F;
  --hgo-orange-600: #D85812;
  --hgo-orange-700: #B0440A;
  --hgo-orange-800: #823104;

  --hgo-graphite-50:  #F4F5F7;
  --hgo-graphite-100: #E5E8EC;
  --hgo-graphite-200: #C8CDD4;
  --hgo-graphite-300: #9AA1AB;
  --hgo-graphite-400: #6B7380;
  --hgo-graphite-500: #4A5260;
  --hgo-graphite-600: #2E3542;
  --hgo-graphite-700: #1A2230;
  --hgo-graphite-800: #0F1F36;
  --hgo-graphite-900: #060F1C;

  --hgo-drywall-0:   #FFFFFF;
  --hgo-drywall-50:  #FAF8F5;
  --hgo-drywall-100: #F4F1EC;
  --hgo-drywall-200: #ECE7DF;
  --hgo-drywall-300: #DDD6CB;

  /* Semantic tokens */
  --fg-1: var(--hgo-graphite-800);
  --fg-2: var(--hgo-graphite-500);
  --fg-3: var(--hgo-graphite-400);
  --fg-muted: var(--hgo-graphite-300);
  --fg-on-accent: #FFFFFF;
  --fg-on-dark: var(--hgo-drywall-50);

  --bg-page: var(--hgo-drywall-50);
  --bg-surface: var(--hgo-drywall-0);
  --bg-surface-alt: var(--hgo-drywall-100);
  --bg-inset: var(--hgo-drywall-200);
  --bg-dark: var(--hgo-navy-600);
  --bg-dark-alt: var(--hgo-navy-500);

  --brand: var(--hgo-navy-500);
  --brand-hover: var(--hgo-navy-600);
  --accent: var(--hgo-blue-400);
  --accent-hover: var(--hgo-blue-500);
  --accent-press: var(--hgo-blue-600);
  --accent-soft: var(--hgo-blue-50);

  --border-1: var(--hgo-drywall-300);
  --border-2: var(--hgo-graphite-200);
  --border-strong: var(--hgo-graphite-800);

  /* Type */
  --font-display: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-22: 1.375rem;
  --fs-24: 1.5rem;
  --fs-26: 1.625rem;
  --fs-28: 1.75rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-40: 2.5rem;
  --fs-48: 3rem;
  --fs-52: 3.25rem;
  --fs-60: 3.75rem;
  --fs-72: 4.5rem;
  --fs-80: 5rem;
  --fs-96: 6rem;

  /* Spacing — 4px base */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Radii */
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 16px; --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(26,26,26,0.06);
  --shadow-sm: 0 2px 6px rgba(26,26,26,0.07), 0 1px 2px rgba(26,26,26,0.05);
  --shadow-md: 0 8px 22px -8px rgba(26,26,26,0.18), 0 2px 4px rgba(26,26,26,0.06);
  --shadow-lg: 0 24px 48px -16px rgba(26,26,26,0.24), 0 4px 10px rgba(26,26,26,0.06);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* On dark surfaces, lift --brand to a brighter blue so primary
   buttons, testimonial dots, and quote marks stay visible
   against the navy background. */
.hero,
.process,
.cta-strip,
.footer,
.finish-guide,
.page-header,
.service-showcase,
.bg-dark {
  --brand: var(--hgo-blue-300);
  --brand-hover: var(--hgo-blue-200);
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; }
p { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; padding: 0; margin: 0; }


/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-15);
  letter-spacing: 0.02em;
  color: var(--brand);
  display: inline-block;
}
.eyebrow-on-dark { color: var(--accent); }

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(var(--fs-36), 4vw, var(--fs-60));
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(var(--fs-30), 3.5vw, var(--fs-48));
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg-1);
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-22);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--fg-1);
}
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.2;
  color: var(--fg-1);
}
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--fg-1);
}

.t-body-sm { font-size: var(--fs-14); line-height: 1.5; color: var(--fg-2); }
.required { color: var(--accent); }


/* ============================================================
   LOGO LOCKUP
   ============================================================ */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-1);
  text-decoration: none;
}
.lockup .mark { width: 48px; height: auto; flex: none; display: block; }
.lockup .word {
  font-family: var(--font-display);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.32em;
}
.lockup .hgo { font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: 0.01em; }
.lockup .drywall { font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }
.lockup.on-dark { color: var(--fg-on-dark); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-15);
  letter-spacing: 0;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 180ms var(--ease-out);
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-dark { background: var(--bg-dark); color: white; }
.btn-dark:hover { background: var(--bg-dark-alt); }
.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border: 1.5px solid var(--fg-1);
  padding: 11.5px 20.5px;
}
.btn-ghost:hover { background: var(--fg-1); color: white; }
.btn-light {
  background: white;
  color: var(--bg-dark);
  border: 1.5px solid white;
  padding: 11.5px 20.5px;
}
.btn-light:hover { background: rgba(255,255,255,0.92); }
.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 11.5px 20.5px;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.nav-menu { display: contents; }
.nav-links { display: flex; gap: 28px; justify-content: center; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-15);
  color: var(--fg-1);
  padding: 6px 0;
  position: relative;
  transition: color 180ms;
}
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}
.nav-links a:hover { color: var(--brand); }
.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.nav .phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  transition: all 180ms var(--ease-out);
}
.nav .phone:hover { color: var(--brand); border-color: var(--brand); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg-1);
  border-radius: 1px;
  transition: all var(--dur-base) var(--ease-out);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 620px;
  background: var(--bg-dark);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(53,126,169,0.22), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.025) 80px 81px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: 80px;
}
.hero h1 {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 22px 0 24px;
  color: #fff;
}
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: var(--fs-18); line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 32px; margin-top: 56px; }
.hero-meta .item .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-36);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.hero-meta .item .l {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-13);
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}
.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-visual .hero-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-visual .badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-13);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,31,54,0.75);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--r-sm);
}
.hero-visual .badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}


/* ============================================================
   SERVICES SECTION (HOME)
   ============================================================ */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
}
.services-head h2 {
  margin: 12px 0 0;
  max-width: 720px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  padding: 28px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  transition: all 220ms var(--ease-out);
  display: flex;
  gap: 22px;
  text-decoration: none;
  color: var(--fg-1);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 24px 48px -16px rgba(15,31,54,0.18);
}
.service-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-40);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
  min-width: 56px;
}
.service-card h3 { margin: 0 0 6px; }
.service-card p { font-size: var(--fs-15); line-height: 1.55; color: var(--fg-2); margin: 0; }
.service-card .arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--fg-3);
  transition: all 220ms;
}
.service-card:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }


/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--bg-dark); color: white; position: relative; overflow: hidden; }
.process-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.process-head h2 {
  margin: 12px 0 16px;
  color: #fff;
}
.process-head p { color: rgba(255,255,255,0.7); font-size: var(--fs-18); line-height: 1.6; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.step {
  padding: 28px 22px;
  border-left: 2px solid rgba(255,255,255,0.08);
}
.step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-28);
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-22);
  letter-spacing: -0.015em;
  margin: 14px 0 8px;
  color: #fff;
}
.step p { font-size: var(--fs-15); line-height: 1.55; color: rgba(255,255,255,0.7); margin: 0; }


/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonials { position: relative; overflow: hidden; width: 100%; }
.testimonials-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.testimonials-track .quote-block {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.testimonials-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 200ms;
}
.testimonials-dot.is-active { background: var(--brand); border-color: var(--brand); }

.quote-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 48px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.quote-block .mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 0.7;
  color: var(--brand);
}
.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-26);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  max-width: 760px;
}
.quote-block .who {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--fs-14);
  flex-wrap: wrap;
}
.quote-block .who strong { font-weight: 600; }
.quote-block .who span { color: var(--fg-2); }
.quote-block .who span + span::before { content: "\00B7\00a0"; }


/* ============================================================
   WHY HGO (HOME)
   ============================================================ */
.why-hgo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-hgo-text h2 { margin: 12px 0 20px; }
.why-hgo-text p { color: var(--fg-2); font-size: var(--fs-16); line-height: 1.65; margin-bottom: 24px; }
.why-hgo-text .btn { margin-top: 8px; }
.why-hgo-image img { border-radius: var(--r-md); width: 100%; }


/* ============================================================
   CHECKLIST
   ============================================================ */
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-15);
  color: var(--fg-1);
}
.check-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}


/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--bg-dark);
  color: white;
  padding: 56px 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 90% at 100% 50%, rgba(53,126,169,0.32), transparent 60%);
  pointer-events: none;
}
.cta-strip h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  flex: 1;
  color: #fff;
  position: relative;
}
.cta-strip .actions { display: flex; gap: 12px; position: relative; flex-wrap: wrap; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: white; padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .brand .lockup { margin-bottom: 16px; }
.footer .brand .lockup .mark { width: 56px; }
.footer .brand .lockup .hgo { font-size: 30px; }
.footer .brand .lockup .drywall { font-size: 25px; }
.footer .brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-14);
  line-height: 1.6;
  max-width: 320px;
  margin-top: 0;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color 180ms;
  display: flex;
}
.footer-social a:hover { color: var(--accent); }
.footer h5 { color: #fff; margin: 0 0 14px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: var(--fs-14);
  color: rgba(255,255,255,0.78);
  transition: color 180ms;
}
.footer ul a:hover { color: var(--accent); }
.footer ul li { font-size: var(--fs-14); color: rgba(255,255,255,0.78); }
.footer-address { line-height: 1.5; }
.legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-13);
  color: rgba(255,255,255,0.5);
  gap: 24px;
  flex-wrap: wrap;
}
.legal-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legal-credit a { display: inline-flex; align-items: center; }
.unrivaled-logo { height: 16px; width: auto; opacity: 0.5; transition: opacity 180ms; }
.unrivaled-logo:hover { opacity: 0.85; }


/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--bg-dark);
  color: white;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(53,126,169,0.18), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.02) 80px 81px);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--accent); }
.page-header h1 { color: #fff; margin: 16px 0; }
.page-header-sub {
  font-size: var(--fs-18);
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
}


/* ============================================================
   SERVICES PAGE — Showcase (Type A)
   ============================================================ */
.service-showcase {
  background: var(--bg-dark);
  color: white;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.service-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 20% 50%, rgba(53,126,169,0.15), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.02) 80px 81px);
  pointer-events: none;
}
.service-showcase .container { position: relative; z-index: 1; }
.service-showcase .eyebrow { color: var(--accent); }
.service-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-showcase-grid--reverse {
  grid-template-columns: 1fr 1.1fr;
}
.service-showcase-img img {
  border-radius: var(--r-lg);
  width: 100%;
  box-shadow: 0 20px 60px -12px rgba(0,0,0,0.5);
}
.service-showcase-text h2 {
  font-size: clamp(var(--fs-30), 3.5vw, var(--fs-40));
  margin: 16px 0;
  color: #fff;
}
.service-showcase-text p {
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 24px;
  font-size: var(--fs-18);
}
.service-showcase-text .check-list li::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.service-showcase-text .check-list li { color: rgba(255,255,255,0.9); }
.service-showcase-text .btn { margin-top: 12px; }

/* ============================================================
   SERVICES PAGE — Unified Service List
   ============================================================ */
.service-list .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-1);
}
.service-item:first-child { padding-top: 0; }
.service-item:last-child { border-bottom: 0; }
.service-item--reverse { direction: rtl; }
.service-item--reverse > * { direction: ltr; }
.service-item-img {
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 320px;
}
.service-item-img img {
  border-radius: var(--r-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-item-text h2 {
  font-size: clamp(var(--fs-24), 2.5vw, var(--fs-30));
  margin: 8px 0 12px;
}
.service-item-text p {
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 16px;
}
.service-item-text .btn { margin-top: 8px; }
.service-list + .section-tight { padding-top: 0; }

/* ============================================================
   SERVICES PAGE — Finish Level Guide
   ============================================================ */
.finish-guide {
  background: var(--bg-dark-alt);
  color: white;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}
.finish-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 30%, rgba(53,126,169,0.18), transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(242,107,31,0.06), transparent 50%);
  pointer-events: none;
}
.finish-guide .container { position: relative; z-index: 1; }
.finish-guide-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.finish-guide-header .eyebrow { color: var(--accent); }
.finish-guide-header h2 { color: #fff; margin: 12px 0 16px; }
.finish-guide-header p { color: rgba(255,255,255,0.7); font-size: var(--fs-18); line-height: 1.6; }

.finish-guide-widget {
  max-width: 900px;
  margin: 0 auto;
}

.finish-guide-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.finish-guide-tab {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.finish-guide-tab:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.finish-guide-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.finish-guide-track {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin-bottom: 40px;
  position: relative;
}
.finish-guide-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 80%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.finish-guide-panels { position: relative; }
.finish-guide-panel {
  display: none;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  animation: finishFadeIn 0.3s var(--ease-out);
}
.finish-guide-panel.is-active { display: grid; }
@keyframes finishFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.finish-guide-panel-img img {
  border-radius: var(--r-md);
  width: 100%;
}
.finish-guide-panel-text h3 {
  font-size: var(--fs-22);
  color: #fff;
  margin-bottom: 12px;
}
.finish-guide-panel-text p {
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 20px;
}
.finish-guide-best-for strong {
  color: var(--accent);
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 8px;
}
.finish-guide-best-for ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.finish-guide-best-for li {
  color: rgba(255,255,255,0.8);
  padding-left: 20px;
  position: relative;
}
.finish-guide-best-for li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.finish-guide-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.finish-guide-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  font-size: var(--fs-18);
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-photo img { border-radius: var(--r-md); width: 100%; }
.about-text h2 { margin: 12px 0 8px; }
.about-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-18);
  color: var(--brand);
  margin-bottom: 20px;
}
.about-text p { color: var(--fg-2); line-height: 1.65; }

/* Values section */
.bg-dark { background: var(--bg-dark); color: white; }
.values-head { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.values-head h2 { color: #fff; margin: 12px 0 0; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
}
.value-icon { color: var(--accent); margin-bottom: 16px; }
.value-card h3 { color: #fff; font-size: var(--fs-18); margin-bottom: 8px; }
.value-card p { color: rgba(255,255,255,0.7); font-size: var(--fs-14); line-height: 1.55; margin: 0; }

/* Service area */
.area-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.area-text h2 { margin: 12px 0 16px; }
.area-text p { color: var(--fg-2); line-height: 1.65; margin-bottom: 16px; }
.area-text .btn { margin-top: 8px; }
.area-image img { border-radius: var(--r-md); width: 100%; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}
.contact-form-wrap h2 { margin-bottom: 8px; }
.contact-form-wrap .t-body-sm { margin-bottom: 32px; }

/* Form elements */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--fg-1);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--fs-15);
  padding: 12px 14px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  color: var(--fg-1);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(53,126,169,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--fg-muted); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7380' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: var(--fs-13); color: var(--fg-3); margin: 0; }

.form-status { font-size: var(--fs-14); font-weight: 500; padding: 0; border-radius: var(--r-sm); }
.form-status:empty { display: none; }
.form-status-success { color: #2F7D4A; background: #E8F5E9; padding: 12px 16px; }
.form-status-error { color: #C2371D; background: #FDECEA; padding: 12px 16px; }

/* Contact info sidebar */
.contact-info { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 28px;
}
.contact-info-card h3 { margin-bottom: 20px; }
.contact-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hgo-drywall-200);
  align-items: flex-start;
}
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { color: var(--brand); flex: none; margin-top: 2px; }
.contact-item strong { display: block; font-size: var(--fs-13); font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2px; }
.contact-item a { color: var(--fg-1); font-size: var(--fs-15); transition: color 180ms; }
.contact-item a:hover { color: var(--brand); }
.contact-item span { color: var(--fg-1); font-size: var(--fs-15); line-height: 1.5; }
.contact-info-cta { background: var(--hgo-blue-50); border-color: var(--hgo-blue-100); }
.contact-info-cta h3 { color: var(--bg-dark); }
.contact-info-cta p { font-size: var(--fs-14); color: var(--fg-2); line-height: 1.55; margin-bottom: 16px; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .why-hgo { grid-template-columns: 1fr; gap: 40px; }
  .why-hgo-image { order: -1; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 400px; }
  .area-split { grid-template-columns: 1fr; gap: 40px; }
  .service-showcase-grid,
  .service-showcase-grid--reverse { grid-template-columns: 1fr; gap: 40px; }
  .service-showcase-img { max-width: 560px; }
  .service-item { grid-template-columns: 1fr; gap: 24px; }
  .service-item--reverse { direction: ltr; }
  .service-item-img { min-height: 240px; max-height: 300px; }
  .finish-guide-panel { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer .brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}

/* Mobile */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding-block: 64px; }
  .section-tight { padding-block: 48px; }

  /* Nav — mobile */
  .nav {
    /* Drop backdrop-filter on mobile — it creates a containing block that
       traps the position:fixed mobile menu inside the nav bar. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .nav-inner { padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
  .nav-toggle { display: flex; order: 2; }
  .nav-menu {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 80px 24px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
    z-index: 55;
    overflow-y: auto;
  }
  .nav-menu.is-open { opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: center; gap: 24px; margin: 0; }
  .nav-links a { font-size: var(--fs-22); font-weight: 600; color: #fff; }
  .nav-links a:hover, .nav-links a.active { color: var(--accent); }
  .nav-links a.active::after { display: none; }
  .nav-right { flex-direction: column; justify-content: center; align-items: stretch; gap: 12px; width: 100%; max-width: 280px; }
  .nav-right .phone, .nav-right .btn { justify-content: center; }
  .nav-menu .phone {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
  }
  .nav-menu .phone:hover { color: var(--accent); border-color: var(--accent); }

  /* Hamburger bars flip to white when the dark menu is open so the X is visible. */
  body.nav-open .nav-toggle-bar { background: #fff; }

  body.nav-open { overflow: hidden; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-grid { padding-block: 48px; }
  .hero-visual { display: none; }
  .hero-meta { gap: 24px; }
  .hero-meta .item .n { font-size: var(--fs-28); }

  /* Services */
  .services-head { flex-direction: column; align-items: flex-start; }
  .services-head .btn { align-self: flex-start; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; }

  /* Quote */
  .quote-block { grid-template-columns: 1fr; gap: 0; }
  .quote-block .mark { font-size: 72px; }
  .quote-block blockquote { font-size: var(--fs-22); }

  /* CTA strip */
  .cta-strip { flex-direction: column; text-align: center; padding: 40px 24px; }
  .cta-strip .actions { justify-content: center; }

  /* Values */
  .values-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }

  /* Page header */
  .page-header { padding: 48px 0; }

  /* Services page */
  .service-showcase { padding: 64px 0; }
  .service-showcase-text h2 { font-size: var(--fs-28); }
  .service-list .container { gap: 48px; }
  .service-item-text h2 { font-size: var(--fs-22); }
  .finish-guide { padding: 64px 0; }
  .finish-guide-tabs { gap: 6px; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .finish-guide-tab { width: 42px; height: 42px; font-size: var(--fs-16); flex-shrink: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero-meta { flex-direction: column; gap: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .cta-strip .actions { flex-direction: column; width: 100%; }
  .cta-strip .actions .btn { width: 100%; justify-content: center; }
  .lockup .hgo { font-size: 18px; }
  .lockup .drywall { font-size: 16px; }
}


/* ============================================================
   BRAND PATTERN (chevron motif from logo)
   ============================================================ */
.brand-chevron {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  color: var(--accent);
}
.brand-chevron svg { display: block; }
.hero .brand-chevron { opacity: 0.16; }

.hero .brand-chevron--1 { right: -80px; top: -60px; width: 500px; transform: rotate(-12deg); }
.hero .brand-chevron--2 { left: 40%; bottom: -100px; width: 350px; transform: rotate(8deg); }
.process .brand-chevron--1 { right: -60px; bottom: -40px; width: 400px; transform: rotate(-15deg); opacity: 0.13; }
.cta-strip .brand-chevron--1 { right: -40px; top: -20px; width: 280px; transform: rotate(-10deg); opacity: 0.16; }
.page-header .brand-chevron--1 { right: -60px; bottom: -30px; width: 420px; transform: rotate(-12deg); opacity: 0.13; }
.service-showcase .brand-chevron--1 { left: -80px; top: -40px; width: 380px; transform: rotate(8deg); opacity: 0.13; }
.finish-guide .brand-chevron--1 { right: -60px; bottom: -50px; width: 440px; transform: rotate(-14deg); opacity: 0.13; }


/* ============================================================
   FOOTER CONTACT ICONS
   ============================================================ */
.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-contact-item svg {
  color: var(--accent);
  flex: none;
  margin-top: 1px;
}
.footer-contact-item a,
.footer-contact-item span {
  font-size: var(--fs-14);
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.footer-contact-item a { transition: color 180ms; }
.footer-contact-item a:hover { color: var(--accent); }



/* ============================================================
   GALLERY PAGE — Before & After Sliders
   ============================================================ */
.gallery-ba-header { margin-bottom: 48px; }
.gallery-ba-header h2 { margin: 12px 0 0; }
.gallery-ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.ba-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ba-slider {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 3 / 2;
}
.ba-slider-img { position: absolute; inset: 0; }
.ba-slider-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider-before { clip-path: inset(0 50% 0 0); }
.ba-slider-after { z-index: 1; }
.ba-slider-before { z-index: 2; }
.ba-label {
  position: absolute;
  bottom: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: rgba(15,31,54,0.7);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-slider-line {
  flex: 1;
  width: 3px;
  background: white;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}
.ba-slider-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  flex: none;
}
.ba-card-info { padding: 24px 28px; }
.ba-card-info h3 { margin: 0 0 4px; }
.ba-card-loc {
  font-size: var(--fs-13);
  color: var(--fg-3);
  display: block;
  margin-bottom: 10px;
}
.ba-card-info p { font-size: var(--fs-15); color: var(--fg-2); line-height: 1.55; margin: 0; }


/* ============================================================
   GALLERY PAGE — Project Grid & Filters
   ============================================================ */
.gallery-projects-header { margin-bottom: 32px; }
.gallery-projects-header h2 { margin: 12px 0 0; }

.gallery-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.gallery-filter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-14);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-2);
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.gallery-filter:hover { border-color: var(--brand); color: var(--brand); }
.gallery-filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  transition: all 220ms var(--ease-out);
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-card.is-hidden {
  display: none;
}
.gallery-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.gallery-card:hover .gallery-card-img img { transform: scale(1.04); }
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,31,54,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-zoom {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  cursor: pointer;
  transform: scale(0.8);
  transition: transform 220ms var(--ease-out);
}
.gallery-card:hover .gallery-card-zoom { transform: scale(1); }
.gallery-card-text { padding: 18px 22px; }
.gallery-card-text h3 { font-size: var(--fs-16); margin: 0 0 2px; }
.gallery-card-loc { font-size: var(--fs-13); color: var(--fg-3); }


/* ============================================================
   GALLERY PAGE — Lightbox
   ============================================================ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.gallery-lightbox.is-open { opacity: 1; pointer-events: auto; }
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,15,28,0.88);
  backdrop-filter: blur(4px);
}
.gallery-lightbox-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(12px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-lightbox.is-open .gallery-lightbox-content { transform: scale(1) translateY(0); }
.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15,31,54,0.7);
  backdrop-filter: blur(6px);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms;
}
.gallery-lightbox-close:hover { background: rgba(15,31,54,0.9); }
.gallery-lightbox-img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}
.gallery-lightbox-info { padding: 24px 28px; }
.gallery-lightbox-title { margin: 0 0 8px; }
.gallery-lightbox-desc { color: var(--fg-2); font-size: var(--fs-15); line-height: 1.55; margin: 0; }


/* ============================================================
   GALLERY PAGE — Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .gallery-ba-grid { grid-template-columns: 1fr; max-width: 640px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 480px; }
  .gallery-ba-grid { max-width: none; }
  .gallery-filters { gap: 6px; }
  .gallery-filter { font-size: var(--fs-13); padding: 7px 14px; }
  .gallery-lightbox-content { width: 95%; }
}


/* ============================================================
   IMAGE HOVER — subtle zoom on photographic media
   ============================================================ */
.hero-visual,
.service-showcase-img,
.service-item-img,
.about-photo,
.area-image,
.why-hgo-image,
.finish-guide-panel-img {
  border-radius: var(--r-md);
  overflow: hidden;
}
.hero-visual { border-radius: var(--r-lg); }
.service-showcase-img { border-radius: var(--r-lg); }

.hero-visual img,
.service-showcase-img img,
.service-item-img img,
.about-photo img,
.area-image img,
.why-hgo-image img,
.finish-guide-panel-img img {
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
.hero-visual:hover img,
.service-showcase-img:hover img,
.service-item-img:hover img,
.about-photo:hover img,
.area-image:hover img,
.why-hgo-image:hover img,
.finish-guide-panel-img:hover img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .service-showcase-img img,
  .service-item-img img,
  .about-photo img,
  .area-image img,
  .why-hgo-image img,
  .finish-guide-panel-img img {
    transition: none;
  }
  .hero-visual:hover img,
  .service-showcase-img:hover img,
  .service-item-img:hover img,
  .about-photo:hover img,
  .area-image:hover img,
  .why-hgo-image:hover img,
  .finish-guide-panel-img:hover img {
    transform: none;
  }
}

/* ============================================================
   UTILITY — hide reCAPTCHA badge (disclosure in form footer)
   ============================================================ */
.grecaptcha-badge { visibility: hidden !important; }
