/* One-day site template — mobile-first, rebranded from client.json */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@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;
  }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
}
.skip-link:focus { top: 1rem; }

.example-banner {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  line-height: 1.4;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow { width: min(720px, calc(100% - 2.5rem)); margin-inline: auto; }

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

body[data-layout="restaurant"] .eyebrow {
  color: var(--color-accent-ink, var(--color-primary));
}

.section-title {
  font-family: var(--font-heading), serif;
  font-weight: 550;
  font-size: clamp(1.9rem, 1.25rem + 2.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

body[data-layout="contractor"] .section-title {
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.section-lead {
  color: var(--color-muted);
  font-size: 1.075rem;
  max-width: 38rem;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius, 4px);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--color-primary-hover, color-mix(in srgb, var(--color-primary) 86%, #000)); }
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-text, #1a1a1a);
}
.btn-accent:hover {
  background: color-mix(in srgb, var(--color-accent) 86%, #000);
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, currentColor 45%, transparent);
  color: inherit;
}
.btn-ghost:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.btn-light {
  background: #fff;
  color: var(--color-text);
}
.btn-light:hover { background: var(--color-bg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading), serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-layout="contractor"] .brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-right: -0.5rem;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 550;
  font-size: 1.15rem;
  padding: 0.7rem 0;
  display: block;
}

.nav-cta { display: none; }

.header-call {
  display: none;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 899px) {
  body.nav-open .site-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    padding: 0.5rem 1.25rem 1.5rem;
    box-shadow: 0 16px 32px color-mix(in srgb, var(--color-text) 8%, transparent);
  }
  body.nav-open .site-nav .btn { margin-top: 0.75rem; width: 100%; }
  body.nav-open .header-call { display: inline-flex; padding: 0.5rem 0 0.75rem; font-size: 1.05rem; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
  }
  .nav-links a {
    font-size: 0.92rem;
    padding: 0;
    opacity: 0.82;
  }
  .nav-links a:hover { opacity: 1; }
  .nav-cta { display: inline-flex; padding: 0.65rem 1.05rem; font-size: 0.88rem; }
  .header-call { display: inline-flex; margin-right: 0.15rem; }
  .site-nav { margin-left: auto; }
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 4.35rem);
  min-height: calc(100svh - 4.35rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

body[data-example="true"] .hero {
  min-height: calc(100vh - 6.9rem);
  min-height: calc(100svh - 6.9rem);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.28) 0%, rgb(0 0 0 / 0.12) 38%, rgb(0 0 0 / 0.78) 100%);
  z-index: 1;
}

body[data-layout="contractor"] .hero-shade {
  background:
    linear-gradient(105deg, rgb(8 16 28 / 0.84) 0%, rgb(8 16 28 / 0.52) 46%, rgb(8 16 28 / 0.28) 100%),
    linear-gradient(180deg, rgb(8 16 28 / 0.12) 0%, rgb(8 16 28 / 0.08) 50%, rgb(8 16 28 / 0.38) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3.5rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.28), 0 10px 32px rgb(0 0 0 / 0.22);
}

.hero-inner .btn,
.hero-inner .btn-ghost {
  text-shadow: none;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-heading), serif;
  font-weight: 520;
  font-size: clamp(2.6rem, 1.2rem + 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 12ch;
  margin-bottom: 1rem;
}

body[data-layout="restaurant"] .hero h1 {
  max-width: 14ch;
  font-weight: 500;
}

body[data-layout="restaurant"] .hero h1 em {
  font-style: italic;
  font-weight: 480;
}

body[data-layout="contractor"] .hero h1 {
  font-weight: 600;
  letter-spacing: 0;
  max-width: 16ch;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.4rem);
  line-height: 1.02;
}

.hero-tagline {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  max-width: 28rem;
  color: rgb(255 255 255 / 0.88);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

body[data-layout="contractor"] .hero {
  align-items: center;
}

body[data-example="true"][data-layout="contractor"] .hero {
  min-height: calc(100vh - 6.9rem);
  min-height: calc(100svh - 6.9rem);
}

body[data-layout="contractor"] .hero-inner {
  padding: 6rem 0 4rem;
}

/* About */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-copy p + p { margin-top: 1rem; }
.about-copy p { color: var(--color-muted); font-size: 1.08rem; }

.about-facts {
  display: grid;
  gap: 1rem;
}

.fact {
  background: var(--color-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius, 4px);
}

.fact strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.fact span { font-weight: 550; }

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.3fr 0.8fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Menu */

.menu-category + .menu-category { margin-top: 2.75rem; }

.menu-category h3 {
  font-family: var(--font-heading), serif;
  font-size: 1.6rem;
  font-weight: 550;
  padding-bottom: 0.7rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.menu-item h4 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.menu-item .price {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.menu-item p {
  grid-column: 1 / -1;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Services */

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: var(--radius, 4px);
  padding: 1.5rem 1.4rem 1.55rem;
}

.card-index {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent-ink, var(--color-primary));
  margin-bottom: 0.65rem;
}

.card h3 {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.25rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.card p { color: var(--color-muted); font-size: 0.98rem; }

body[data-layout="contractor"] .card {
  border-top: 3px solid var(--color-accent);
}

/* Why us / service area */

.why-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.why-item h3 {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.3rem;
  margin: 0.4rem 0 0.6rem;
}

.why-item p { color: var(--color-muted); }

.why-num {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.75rem;
  font-weight: 650;
  color: var(--color-accent);
  line-height: 1;
}

.area-box {
  background: var(--color-primary);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--radius, 4px);
}

.area-box .eyebrow { color: var(--color-accent); }
.area-box .section-title { color: #fff; margin-bottom: 0.85rem; }
.area-box p { color: rgb(255 255 255 / 0.86); max-width: 40rem; }

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  list-style: none;
}

.town-list li {
  border: 1px solid rgb(255 255 255 / 0.28);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 550;
}

/* Hours + map */

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 840px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: stretch; }
}

.hours-panel,
.map-panel {
  background: var(--color-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: var(--radius, 4px);
  overflow: hidden;
}

.hours-panel { padding: 1.75rem 1.5rem; }

.hours-panel h3,
.map-panel h3 {
  font-family: var(--font-heading), serif;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  font-size: 0.98rem;
}

.hours-row dt { font-weight: 550; }
.hours-row dd { margin: 0; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hours-row.is-closed dd { font-style: italic; }

.address-block {
  margin-top: 1.4rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}
.address-block a { color: var(--color-primary); font-weight: 650; text-decoration: none; }
.address-block a:hover { text-decoration: underline; }

.map-frame {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-caption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9rem;
}
.map-caption a { color: var(--color-primary); font-weight: 650; text-decoration: none; }

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius, 4px);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-grid a:hover img { transform: scale(1.04); }

.gallery-grid figcaption,
.gallery-label {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgb(0 0 0 / 0.45);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(0 0 0 / 0.88);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 5rem);
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
}
.lightbox-close { top: 0.75rem; right: 1rem; font-size: 2.2rem; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox p {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}

/* Contact / form */

.contact-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 840px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; }
}

.contact-copy p { color: var(--color-muted); margin-top: 0.85rem; }

.contact-methods {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.contact-methods a {
  color: var(--color-primary);
  font-weight: 650;
  text-decoration: none;
}
.contact-methods a:hover { text-decoration: underline; }

.form {
  background: var(--color-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: var(--radius, 4px);
  padding: 1.5rem;
}

.form h3 {
  font-family: var(--font-heading), serif;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 600px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
  border-radius: var(--radius, 4px);
  background: var(--color-bg);
  padding: 0.7rem 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 450;
  font-size: 1rem;
}

.form textarea { min-height: 8rem; resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.hp { position: absolute; left: -9999px; }

.form-note {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: color-mix(in srgb, var(--color-accent) 18%, var(--color-bg));
  border-radius: var(--radius, 4px);
  font-size: 0.95rem;
}
.form-note.is-visible { display: block; }

/* Footer */

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  padding: 2.5rem 0 6.5rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .site-footer { padding-bottom: 2.5rem; }
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer h2,
.site-footer h3 {
  font-family: var(--font-heading), serif;
  color: var(--color-text);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.socials { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.75rem; }
.socials a { font-weight: 650; color: var(--color-primary); }

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  font-size: 0.82rem;
}

.footer-note {
  font-weight: 450;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

/* Mobile action bar */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface, #fff);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-text) 8%, transparent);
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}

.mobile-cta .btn { width: 100%; padding: 0.8rem 0.5rem; font-size: 0.88rem; }

@media (min-width: 900px) {
  .mobile-cta { display: none; }
}

/* Testimonials: hidden when empty (section not rendered) */

.map-frame {
  position: relative;
  background:
    linear-gradient(color-mix(in srgb, var(--color-primary) 6%, var(--color-bg-alt)),
                    color-mix(in srgb, var(--color-primary) 6%, var(--color-bg-alt))),
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 12px,
      color-mix(in srgb, var(--color-text) 4%, transparent) 12px,
      color-mix(in srgb, var(--color-text) 4%, transparent) 13px);
}
.map-frame::before {
  content: "Map loads in the browser";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 0;
  pointer-events: none;
}
.map-frame iframe { position: relative; z-index: 1; background: transparent; }
.map-frame iframe[src=""],
.map-frame.is-empty iframe { display: none; }


/* Mobile hero clearance */
@media (max-width: 899px) {
  .example-banner {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    padding: 0.4rem 0.85rem;
  }
  .hero-inner { padding-bottom: 7.25rem; }
  body[data-layout="contractor"] .hero-inner { padding-bottom: 7.25rem; }
  .hero .btn { padding: 0.8rem 1.15rem; }
}

section[id] { scroll-margin-top: 6rem; }

@media (min-width: 840px) {
  .hours-panel,
  .map-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .map-frame { flex: 1; min-height: 0; }
}

/* Agency layout — Looked Up and other professional-service sites */

.mobile-cta.is-single { grid-template-columns: 1fr; }

body[data-layout="agency"] .brand-name {
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}

body[data-layout="agency"] .hero {
  align-items: center;
  background: var(--color-primary);
  color: #fff;
  min-height: calc(100svh - 4.35rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-inline: max(1.25rem, calc((100% - 1180px) / 2));
}

body[data-layout="agency"] .hero-media,
body[data-layout="agency"] .hero-shade {
  display: none;
}

body[data-layout="agency"] .hero-inner {
  position: relative;
  z-index: 2;
  width: auto;
  flex: 1 1 22rem;
  max-width: 34rem;
  margin: 0;
  padding: clamp(3.25rem, 8vw, 5.5rem) 0 2.5rem;
  text-shadow: none;
  order: 1;
}

body[data-layout="agency"] .hero-kicker {
  color: var(--color-accent);
}

body[data-layout="agency"] .hero h1 {
  max-width: 10ch;
  font-weight: 520;
  letter-spacing: -0.035em;
}

body[data-layout="agency"] .hero h1 em {
  font-style: italic;
  font-weight: 480;
}

body[data-layout="agency"] .hero-tagline {
  color: rgb(255 255 255 / 0.86);
  max-width: 24rem;
}

body[data-layout="agency"] .hero-preview {
  position: relative;
  flex: 1 1 24rem;
  max-width: 36rem;
  min-height: 16rem;
  padding: 2.5rem 0 3rem;
  z-index: 2;
  order: 2;
}

.hero-frame {
  background: var(--color-surface, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgb(0 0 0 / 0.38);
}

.hero-frame.is-front {
  position: relative;
  z-index: 2;
}

.hero-frame.is-back {
  position: absolute;
  width: 72%;
  top: 8%;
  z-index: 1;
  box-shadow: 0 16px 32px rgb(0 0 0 / 0.28);
  opacity: 0.9;
}

.hero-frame.is-back-1 {
  right: -6%;
  transform: rotate(6deg);
}

.hero-frame.is-back-2 {
  left: -8%;
  top: 18%;
  transform: rotate(-7deg);
  z-index: 0;
  opacity: 0.72;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #ece7de;
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
}

.browser-chrome span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #c8c1b5;
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-frame.is-front figcaption {
  margin: 0;
  padding: 0.55rem 0.85rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-surface, #fff);
}

body[data-layout="agency"] .section-title {
  font-weight: 520;
  letter-spacing: -0.03em;
}

.steps-grid {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.price-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
}

.price-card {
  background: var(--color-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: var(--radius, 8px);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-card.is-featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.price-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-ink, var(--color-primary));
  margin-bottom: 0.55rem;
}

.price-card h3 {
  font-family: var(--font-heading), serif;
  font-size: 1.45rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.price-amount {
  font-family: var(--font-heading), serif;
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-primary);
}

.price-term {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0.35rem 0 1rem;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.price-card li {
  color: var(--color-muted);
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.price-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.pricing-foot {
  margin-top: 1.25rem;
  color: var(--color-muted);
  font-size: 0.98rem;
  max-width: 44rem;
}

.seo-block {
  width: min(820px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.seo-line {
  font-family: var(--font-heading), serif;
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.85rem, 1.1rem + 3vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 0 1.5rem;
  color: var(--color-text);
}

.seo-copy p { color: var(--color-muted); font-size: 1.08rem; }
.seo-copy p + p { margin-top: 1rem; }

.why-lead {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  line-height: 1.45;
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.stat-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.stat-card {
  margin: 0;
  background: var(--color-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: var(--radius, 8px);
  padding: 1.5rem 1.4rem 1.4rem;
  border-top: 3px solid var(--color-accent);
}

.stat-value {
  font-family: var(--font-heading), serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.stat-value.is-text {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.15;
}

.stat-card:not(:has(.stat-value)) p:first-of-type {
  font-family: var(--font-heading), serif;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.3;
  color: var(--color-text);
  font-weight: 520;
  letter-spacing: -0.02em;
}

.stat-card p { color: var(--color-muted); }

.stat-card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-card cite a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.portfolio-card h3 {
  font-family: var(--font-heading), serif;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 0.85rem 0 0.2rem;
}

.portfolio-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.portfolio-card a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius, 8px);
  background: var(--color-bg-alt);
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--color-text) 8%, transparent);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.portfolio-card a:hover img { transform: scale(1.03); }

.portfolio-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgb(255 252 247 / 0.92);
  padding: 0.25rem 0.5rem;
  border-radius: 99px;
}

body[data-layout="agency"] .contact-methods span {
  color: var(--color-muted);
  font-style: italic;
}

@media (max-width: 899px) {
  body[data-layout="agency"] .hero-inner { padding-bottom: 1.25rem; }
  body[data-layout="agency"] .hero-preview { padding-bottom: 6.5rem; }
  .hero-frame.is-back { display: none; }
}

@media (min-width: 900px) {
  body[data-layout="agency"] .hero-preview { padding: 4.5rem 0; }
}
