/* ==========================================================================
   Harbor & Hearth Home Services — template stylesheet
   --------------------------------------------------------------------------
   Customize the look by editing the tokens in :root below.
   No external fonts or frameworks: system font stacks keep the page fast.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy-900: #0b1f2e;
  --navy-800: #0f2a3d;
  --navy-700: #173a52;
  --teal-600: #1f6f78;
  --teal-100: #dcefef;
  --amber-500: #e8913a;
  --amber-600: #d27a22;
  --amber-100: #fbe9d4;

  /* Neutrals */
  --ink: #15212b;
  --ink-soft: #47545f;
  --muted: #59636c;
  --line: #e4ddd2;
  --paper: #fbf8f3;
  --tint: #f3eee6;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--paper);
  --text: var(--ink);
  --accent: var(--amber-500);
  --accent-ink: var(--navy-900);
  --focus: #2a7de1;
  --error: #b42318;
  --success: #1c7c4a;

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.35rem, 1.8rem + 2.6vw, 4rem);

  /* Spacing & shape */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 42 61 / 0.06), 0 2px 6px rgb(15 42 61 / 0.05);
  --shadow: 0 2px 4px rgb(15 42 61 / 0.04), 0 12px 32px rgb(15 42 61 / 0.09);
  --shadow-lg: 0 24px 60px rgb(15 42 61 / 0.18);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul[role="list"], ol { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: var(--space-section); }
.section-tint { background: var(--tint); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.75rem);
  text-align: center;
}
.section-head h1,
.section-head h2,
.about-copy h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}
.section-sub { margin-top: 1rem; color: var(--ink-soft); }

.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: -0.2em 0.6rem 0 0;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head .eyebrow::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: -0.2em 0 0 0.6rem;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Placeholder marker ----------
   Everything with .ph is content to replace. Delete these styles
   (or the class) once real content is in place. */
.ph {
  background: linear-gradient(transparent 55%, rgb(232 145 58 / 0.28) 55%);
  border-bottom: 1px dashed var(--amber-600);
}

.template-banner {
  background: var(--navy-900);
  color: #d7e2ea;
  font-size: var(--step--1);
  text-align: center;
  padding: 0.55rem var(--gutter);
}
.template-banner .ph { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn-primary:hover { --btn-bg: #f09c48; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: rgb(15 42 61 / 0.2);
}
.btn-ghost:hover { border-color: var(--navy-800); background: var(--white); }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--navy-800); }
.btn-lg { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-weight: 650;
  color: var(--teal-600);
  text-decoration: none;
}
.text-link span { transition: transform 0.2s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(251 248 243 / 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgb(15 42 61 / 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy-800);
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-text small {
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-name { white-space: nowrap; }
.brand .amp { color: var(--amber-600); font-style: italic; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
.primary-nav ul a {
  position: relative;
  display: block;
  padding: 0.5rem 0.8rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}
.primary-nav ul a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.3rem;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.primary-nav ul a:hover,
.primary-nav ul a[aria-current="true"] { color: var(--navy-800); }
.primary-nav ul a:hover::after,
.primary-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 0.55rem 1.1rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 5vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, var(--amber-100) 0%, transparent 62%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle at center, var(--teal-100) 0%, transparent 65%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--navy-800);
}
.hero h1 em {
  font-style: italic;
  color: var(--teal-600);
}
.lead {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2.2rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--ink-soft);
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points svg { flex: none; color: var(--teal-600); }

.hero-art { position: relative; }
.hero-art > img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgb(15 42 61 / 0.18));
}
.hero-card {
  position: absolute;
  left: -4%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--step--1);
  animation: float 6s ease-in-out infinite;
}
.hero-card strong { display: block; color: var(--navy-800); }
.hero-card span { color: var(--muted); }
.hero-card-dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgb(28 124 74 / 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(28 124 74 / 0.45); }
  70% { box-shadow: 0 0 0 10px rgb(28 124 74 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(28 124 74 / 0); }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card h3 {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--navy-800);
}
.service-card p { margin: 0.6rem 0 1.4rem; color: var(--ink-soft); }
.service-card .text-link { margin-top: auto; }
.service-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--teal-100);
  color: var(--teal-600);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--navy-800);
  color: var(--amber-500);
  transform: rotate(-6deg);
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.8rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: color-mix(in srgb, var(--amber-500) 80%, #000);
}
.step h3 { margin-top: 1rem; font-size: var(--step-1); color: var(--navy-800); }
.step p { margin-top: 0.5rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.about-media { position: relative; }
.about-copy > p:not(.eyebrow) { margin-top: 1.1rem; color: var(--ink-soft); }
.about-copy h2 { margin-bottom: 0.3rem; }
.about-badge {
  position: absolute;
  right: -1.25rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.4rem;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
}
.about-badge .ph { border-color: var(--amber-500); }
.about-badge span:last-child { font-size: var(--step--1); color: #b9c8d3; }

.values { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.values li { display: flex; gap: 1rem; align-items: flex-start; }
.values svg {
  flex: none;
  box-sizing: content-box;
  padding: 0.65rem;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-600);
}
.values h3 { font-size: 1.05rem; color: var(--navy-800); }
.values p { margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Photo placeholders ---------- */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.06) 0 12px, transparent 12px 24px),
    linear-gradient(145deg, var(--navy-700), var(--teal-600));
  color: rgb(255 255 255 / 0.85);
  text-align: center;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}
.photo-placeholder small { font-weight: 400; opacity: 0.75; }
.photo-tall { aspect-ratio: 4 / 5; }
.tone-1 { --t1: #173a52; --t2: #1f6f78; }
.tone-2 { --t1: #2c4a5e; --t2: #8a6a4b; }
.tone-3 { --t1: #0f2a3d; --t2: #4a6b55; }
.tone-4 { --t1: #1f6f78; --t2: #3d8f8b; }
.tone-5 { --t1: #6b4a2e; --t2: #d27a22; }
.tone-6 { --t1: #2d3f4c; --t2: #5f7a8c; }
[class*="tone-"] {
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.06) 0 12px, transparent 12px 24px),
    linear-gradient(145deg, var(--t1), var(--t2));
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.chip {
  min-height: 42px;
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--navy-800); color: var(--navy-800); }
.chip.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 18vw + 80px, 300px);
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery-item { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.gallery-item.is-hidden { display: none; }
.gallery-wide { grid-column: span 2; }
.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: none;
  cursor: zoom-in;
  text-align: left;
}
.gallery-btn .photo-placeholder,
.gallery-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s var(--ease);
}
.gallery-btn:hover .photo-placeholder,
.gallery-btn:hover img,
.gallery-btn:focus-visible .photo-placeholder { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgb(11 31 46 / 0.82));
  color: var(--white);
  font-weight: 650;
}
.gallery-caption small {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(960px, 100% - 2rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgb(11 31 46 / 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox[open] { animation: zoom-in 0.3s var(--ease); }
.lightbox-media .photo-placeholder,
.lightbox-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  object-fit: cover;
  font-size: 1rem;
}
.lightbox-caption { padding: 1rem 1.4rem 1.2rem; font-weight: 550; }
.lightbox-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--navy-900);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.lightbox-close:hover { transform: rotate(90deg); }
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
}
.testimonial figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px dashed #cfc5b6;
  border-radius: var(--radius-lg);
}
.quote-mark { color: var(--amber-500); opacity: 0.85; }
.testimonial blockquote {
  flex: 1;
  margin: 1.1rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.testimonial figcaption > span:last-child { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial figcaption small { color: var(--muted); font-size: 0.88rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-600);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 20%, rgb(232 145 58 / 0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgb(31 111 120 / 0.45), transparent 50%),
    var(--navy-800);
  color: var(--white);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.cta-inner p { margin-top: 0.4rem; color: #c6d3dd; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: start;
}
.contact-info > p:not(.eyebrow) { margin-top: 1rem; color: var(--ink-soft); }
.contact-list { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--navy-800);
  text-decoration: none;
}
.contact-list a:hover { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-600);
}

.contact-form {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--navy-800);
}
.field label span[aria-hidden] { color: var(--amber-600); }
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2347545f' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #cbbfae; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgb(31 111 120 / 0.15);
}
.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgb(180 35 24 / 0.1);
}
.field-error {
  min-height: 0;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--error);
}
.field-error:empty { display: none; }
.form-note { margin-bottom: 1rem; font-size: 0.85rem; color: var(--muted); }
.form-note span { color: var(--amber-600); }
.form-status { margin-top: 1rem; font-weight: 600; text-align: center; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  background: var(--navy-900);
  color: #b9c8d3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.brand-light { color: var(--white); }
.brand-light .brand-text small { color: #8ea2b1; }
.footer-brand p { max-width: 22rem; margin-top: 1.1rem; }
.footer-title {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--amber-500); }
.site-footer .ph { color: #dfe7ed; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--step--1);
}

/* ---------- Mobile call bar ---------- */
.mobile-call {
  position: fixed;
  left: 1rem; right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  transition: transform 0.4s var(--ease);
}
.mobile-call.is-visible { transform: translateY(0); }

/* ---------- Scroll reveal ----------
   Only hidden when JS is running (html.js), so content is always
   visible if JavaScript fails or is disabled. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: fixed;
    inset: var(--nav-top, var(--header-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgb(15 42 61 / 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a {
    padding: 0.9rem 0.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .primary-nav ul a::after { display: none; }
  .nav-cta { min-height: 52px; }

  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-card { left: 0; }
  .about-media { max-width: 480px; }
  .about-badge { right: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mobile-call { display: flex; }
  body { padding-bottom: 88px; }
}

@media (max-width: 640px) {
  .services-grid,
  .testimonials,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-wide { grid-column: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-inner .btn { width: 100%; }
  .brand-text { font-size: 1.12rem; }
  .section-head { text-align: left; }
  .section-head .eyebrow::after { display: none; }
  .gallery-filters { justify-content: flex-start; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-call, .template-banner, .cta-band, .contact-form, .lightbox { display: none !important; }
  body { background: #fff; padding: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
