/* Sunday South Creative: shared styles.
   Palette comes from the logo: orange, sand and sage fill, black outline and offset shadow.
   The hard black offset shadow is the one signature device; it repeats on buttons, photos and tiers. */

:root {
  --black: #000;
  --text: #24211c;
  --orange: #f09a4f;
  --sand: #e2b97e;
  --sage: #c5cda6;
  --sage-light: #e9edd8;
  --paper: #fbfaf4;
  --white: #fff;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --shadow: 6px 6px 0 var(--black);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--orange); }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type */
h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--black); }
h1 { font-size: clamp(2.5rem, 6.5vw, 5.25rem); line-height: 0.98; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.65; margin: 0 0 1.1em; max-width: 62ch; }
.lede { font-size: 1.3rem; line-height: 1.55; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--black);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) {
  font-weight: 600; text-decoration: none; padding: 0.5rem 0.8rem;
}
.nav a:not(.btn):hover { box-shadow: inset 0 -3px 0 var(--sand); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.nav .btn { margin-left: 0.5rem; }

/* Submenu: "Video & Photo" is a menu button, not a link. Hover (desktop) or tap (phone) opens it. */
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 600 1rem var(--display); color: var(--black);
  background: none; border: 0; padding: 0.5rem 0.8rem; cursor: pointer;
}
.sub-toggle::after {
  content: ""; width: 0.4rem; height: 0.4rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.has-sub:hover > .sub-toggle { box-shadow: inset 0 -3px 0 var(--sand); }
.has-sub.is-section > .sub-toggle { box-shadow: inset 0 -3px 0 var(--orange); }
.subnav {
  display: none; position: absolute; left: 0; top: 100%; z-index: 60; min-width: 12rem;
  margin: 0; padding: 0.35rem 0; list-style: none;
  background: var(--paper); border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black);
}
.has-sub:hover .subnav, .has-sub:has(:focus-visible) .subnav, .has-sub.open .subnav { display: block; }
.nav .subnav a:not(.btn) { display: block; padding: 0.6rem 1rem; }
.nav .subnav a:not(.btn):hover { box-shadow: none; background: var(--sage-light); }
.nav .subnav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); }

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

.nav-toggle {
  display: none; font: 700 1rem var(--display); color: var(--black);
  background: var(--white); border: 2px solid var(--black); border-radius: 999px;
  padding: 0.5rem 1.1rem; cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--black);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--sage); }
  .nav .btn { margin: 1rem 0 0; text-align: center; }
  .has-sub { display: block; }
  .sub-toggle { display: flex; width: 100%; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--sage); box-shadow: none !important; text-align: left; }
  .subnav {
    position: static; min-width: 0; padding: 0 0 0 1.25rem;
    background: none; border: 0; box-shadow: none;
  }
  .has-sub:hover .subnav, .has-sub:has(:focus-visible) .subnav { display: none; }
  .has-sub.open .subnav { display: block; }
  .has-sub.open > .sub-toggle::after { transform: rotate(225deg); margin-top: 0.2rem; }
  .nav .subnav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--sage); }
  .nav .subnav a:not(.btn):hover { background: none; box-shadow: none; }
}

/* Buttons */
.btn {
  display: inline-block; font: 700 1rem var(--display); color: var(--black);
  background: var(--orange); border: 2px solid var(--black); border-radius: 999px;
  padding: 0.8rem 1.5rem; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); text-decoration: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--black); }
.btn-sm { padding: 0.5rem 1.1rem; box-shadow: 3px 3px 0 var(--black); }
.btn-light { background: var(--white); }
.on-dark .btn { box-shadow: 4px 4px 0 var(--white); }
.on-dark .btn:hover { box-shadow: 2px 2px 0 var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  min-height: clamp(30rem, 86svh, 52rem);
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, #f09a4f 0%, #c5cda6 100%);
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,0.74), rgba(0,0,0,0.22) 58%, rgba(0,0,0,0.34));
}
.hero-copy { padding-block: clamp(2.5rem, 7vw, 5rem); max-width: 48rem; }
.hero h1 { color: var(--white); text-shadow: 0.045em 0.045em 0 var(--black); margin-bottom: 1.25rem; }
.hero p { color: var(--white); font-size: 1.3rem; max-width: 36rem; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* Page title block for inner pages */
.page-head { background: var(--sage); border-bottom: 2px solid var(--black); padding-block: clamp(1.5rem, 3.5vw, 2.25rem); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head p { margin: 0.6rem 0 0; font-size: 1.1rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-sage { background: var(--sage); }
.band-light { background: var(--sage-light); }
.band-sand { background: var(--sage-light); border-block: 2px solid var(--black); }
.band-black { background: var(--black); color: var(--white); }
.band-black h2, .band-black h3 { color: var(--white); }
.band-black p { color: var(--white); }
.band-sunset { background: linear-gradient(180deg, var(--orange) 0%, var(--sage) 100%); border-block: 2px solid var(--black); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

/* Two-column split with a photo */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.split-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-flip .split-media { order: 2; }
.split h2 { margin-bottom: 1.25rem; }
@media (max-width: 820px) {
  .split, .split-flip { grid-template-columns: 1fr; }
  .split-flip .split-media { order: 0; }
}

.photo-frame {
  border: 2px solid var(--black); box-shadow: var(--shadow); background: var(--sand);
}
.photo-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem 2rem; margin: 2.25rem 0; }
.value { border-top: 6px solid var(--black); padding-top: 0.9rem; }
.value h3 { margin-bottom: 0.4rem; }
.value p { font-size: 1.05rem; line-height: 1.55; margin: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.facts li { font-weight: 600; line-height: 1.2; }
.facts strong { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--black); }

/* Services list */
.service {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 1rem 2rem; align-items: baseline;
  padding-block: 1.75rem; border-top: 2px solid var(--black);
}
.service:last-child { border-bottom: 2px solid var(--black); }
.service h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.service p { margin: 0; }
.service a { font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
}

/* Detailed service blocks (What we offer) */
.offer { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 2px solid var(--black); }
.offer:first-of-type { border-top: 0; padding-top: 0; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 1.5rem clamp(1.5rem, 5vw, 4rem); }
.offer ul { margin: 0 0 1.25rem; padding-left: 1.2rem; font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; }
@media (max-width: 820px) { .offer-grid { grid-template-columns: 1fr; } }

/* Work tiles on dark band */
.tile { display: block; position: relative; }
.tile img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border: 2px solid var(--black); box-shadow: 6px 6px 0 var(--black); background: var(--sage); }

/* Video grid: six tiles flush together, hairline black dividers, looping preview in each */
.vgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin: 0; padding: 0; list-style: none;
  background: var(--black); border: 2px solid var(--black); box-shadow: 6px 6px 0 var(--orange);
}
.vtile { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.vcard {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  padding: 0; margin: 0; border: 0; background: none; text-align: left;
  font: inherit; color: var(--white); cursor: pointer;
}
.vcard[aria-disabled="true"] { cursor: default; }
.vposter, .vprev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 48%);
}
.vcard:focus-visible { outline: 3px solid var(--orange); outline-offset: -6px; }
.vbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0.9rem 1rem;
}
.vcta {
  flex: none; font-weight: 600; font-size: 0.8rem; line-height: 1.2; color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
@media (max-width: 900px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vgrid { grid-template-columns: 1fr; } }

/* Vertical reels (real estate): 6 spaced 9:16 tiles, orange outline and shadow */
.vgrid.vgrid-reels { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; background: none; border: 0; box-shadow: none; max-width: 52rem; margin-inline: auto; padding-right: 5px; padding-bottom: 5px; }
.vgrid-reels .vtile { aspect-ratio: 9 / 16; border: 2px solid var(--orange); box-shadow: 5px 5px 0 var(--orange); }
@media (max-width: 900px) { .vgrid.vgrid-reels { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* Photo gallery */
.gallery { columns: 3 16rem; column-gap: 1.5rem; }
.gallery figure { margin: 0 0 1.5rem; break-inside: avoid; }
.photo { display: block; width: 100%; padding: 0; border: 2px solid var(--orange); box-shadow: 5px 5px 0 var(--orange); background: var(--sand); cursor: zoom-in; }
.photo img { width: 100%; }

/* Dialogs (video player, photo viewer) */
dialog { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; max-height: 94vh; overflow: visible; }
dialog::backdrop { background: rgba(0, 0, 0, 0.84); animation: dlg-fade 0.3s ease-out; }
dialog[open] { animation: dlg-in 0.3s ease-out; }
@keyframes dlg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog::backdrop, dialog[open] { animation: none; } }
.dlg-close {
  display: block; margin: 0 0 0.75rem auto; font: 700 1rem var(--display); color: var(--black);
  background: var(--orange); border: 2px solid var(--black); border-radius: 999px; padding: 0.4rem 1.1rem; cursor: pointer;
}
.dlg-frame { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((88vh - 3.5rem) * 16 / 9)); margin-inline: auto; background: #000; border: 2px solid var(--white); }
.dlg-frame.vertical { aspect-ratio: 9 / 16; width: min(100%, calc((88vh - 3.5rem) * 9 / 16), 30rem); }
.dlg-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dlg-photo { max-height: 82vh; width: auto; margin-inline: auto; border: 2px solid var(--white); }

/* Packages */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.tier { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--black); box-shadow: var(--shadow); }
.tier-bar { height: 1rem; border-bottom: 2px solid var(--black); background: var(--orange); }
.tier:nth-child(2) .tier-bar { background: var(--sand); }
.tier:nth-child(3) .tier-bar { background: var(--sage); }
.tier:nth-child(4) .tier-bar { background: var(--black); }
.tier-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tier h3 { font-size: 1.6rem; font-weight: 800; }
.tier .price { font-weight: 800; font-size: 1.15rem; margin: 0.35rem 0 1rem; font-family: var(--display); }
.tier ul { margin: 0 0 1.5rem; padding-left: 1.15rem; font-family: var(--serif); line-height: 1.6; flex: 1; }
.tier .btn { align-self: flex-start; }
.note { margin-top: 2.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem var(--display); color: var(--black);
  background: var(--white); border: 2px solid var(--black); border-radius: 8px; padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 2px; box-shadow: 3px 3px 0 var(--orange); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 1rem 0 0; font-family: var(--display); font-weight: 600; min-height: 1.5em; }
.contact-card { background: var(--sage); border: 2px solid var(--black); box-shadow: var(--shadow); padding: 1.75rem; }
.contact-card h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.contact-card p { margin-bottom: 0.9rem; }
.contact-card strong { font-family: var(--display); display: block; }

/* CTA band */
.cta { text-align: left; }
.cta h2 { margin-bottom: 1rem; max-width: 20ch; }
.cta p { margin-bottom: 1.75rem; }

/* Footer */
.site-footer { background: var(--sage-light); color: var(--text); border-top: 2px solid var(--black); padding-block: 3rem 2rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.foot img { height: 64px; width: auto; margin-bottom: 1rem; }
.foot h2 { font-size: 1.1rem; letter-spacing: 0; color: var(--black); margin-bottom: 0.75rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.4rem; }
.foot p { color: var(--text); font-size: 1rem; line-height: 1.55; margin-bottom: 0.5rem; }
.foot a { color: var(--black); }
.foot a:hover { text-decoration-color: var(--orange); }
.legal { max-width: none; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--black); font-size: 0.9rem; color: var(--text); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

/* Featured package + a la carte */
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem; }
.feature { background: var(--white); border: 2px solid var(--black); box-shadow: var(--shadow); max-width: 62rem; }
.feature-bar { height: 1rem; border-bottom: 2px solid var(--black); background: var(--orange); }
.feature-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 2.75rem); }
.feature-price { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 0; }
.feature-price span { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--black); }
.feature-terms { margin: 1rem 0 1.5rem; }
.feature-list h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.feature-list ul { list-style: none; margin: 0; padding: 0; font-family: var(--serif); }
.feature-list li { padding: 0.7rem 0 0.7rem 1.75rem; border-top: 1px solid rgba(0,0,0,0.15); position: relative; line-height: 1.45; }
.feature-list li:first-child { border-top: 0; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.8rem; height: 0.8rem; background: var(--orange); border: 2px solid var(--black); }
.feature-list strong { font-family: var(--display); font-weight: 700; color: var(--black); }
.feature-foot { background: var(--sage-light); border-top: 2px solid var(--black); padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.75rem); }
.feature-foot h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.feature-foot p { margin: 0; max-width: 46rem; }
.alc { list-style: none; margin: 0; padding: 0; max-width: 62rem; border-top: 2px solid var(--black); }
.alc li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 2px solid var(--black); }
.alc h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.alc-group h3 { margin-bottom: 0.9rem; }
.alc p { margin: 0; }
.alc-price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
@media (max-width: 760px) {
  .feature-body { grid-template-columns: 1fr; }
  .alc li { flex-direction: column; gap: 0.35rem; }
}
.alc .alc-group { display: block; }
.alc-sub { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.alc .alc-sub li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1rem; border: 2px solid var(--black); background: var(--white); }
.alc-sub li > span:first-child { font-family: var(--display); font-weight: 700; }
@media (max-width: 560px) { .alc-sub { grid-template-columns: 1fr; } }
.alc-sub small { font-family: var(--serif); font-weight: 400; font-size: 0.9rem; }
.alc-sub-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .alc-sub-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .alc-sub-4 { grid-template-columns: 1fr; } }
.alc-label { font-family: var(--display); font-size: 1.05rem; font-weight: 800; margin: 1.5rem 0 0; }
.alc-label small { font-family: var(--serif); font-weight: 400; font-size: 0.95rem; }
.alc-label + .alc-sub { margin-top: 0.75rem; }
.alc h3 small { font-family: var(--serif); font-weight: 400; font-size: 0.95rem; }
.field label .opt { font-weight: 400; }

/* Header social icons */
.nav .nav-social { display: flex; align-items: center; gap: 0.1rem; margin-left: 0.5rem; }
.nav .nav-social a { display: inline-flex; padding: 0.45rem; color: var(--black); border: 0; box-shadow: none; }
.nav .nav-social a:hover { color: var(--orange); box-shadow: none; }
.nav .nav-social svg { display: block; }
@media (max-width: 900px) {
  .nav .nav-social { margin: 1rem 0 0; gap: 0.5rem; }
  .nav .nav-social a { padding: 0.5rem; border: 2px solid var(--black); border-radius: 50%; }
}
.card-social { display: flex; gap: 0.6rem; margin-top: 0.15rem; }
.card-social a { display: inline-flex; padding: 0.45rem; color: var(--black); border: 2px solid var(--black); border-radius: 50%; background: var(--white); text-decoration: none; }
.card-social a:hover { background: var(--orange); }

/* Values and stats: when they wrap in a narrow space, center the leftover items */
.cq { container-type: inline-size; }
@container (max-width: 34rem) {
  .values { display: flex; flex-wrap: wrap; justify-content: center; }
  .value { flex: 0 0 max(10rem, calc(50% - 1rem)); }
  .facts { justify-content: center; text-align: center; }
}

/* Slide in from the right when scrolled into view (only when JavaScript is running) */
.reveal-section { overflow-x: clip; }
.js [data-reveal="right"] { opacity: 0; transform: translateX(6rem); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="right"].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="right"] { opacity: 1; transform: none; transition: none; }
}

/* Pop in with a little bounce */
.js [data-reveal="pop"] { opacity: 0; transform: translateY(2.5rem) scale(0.7) rotate(-3deg); transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="pop"]:nth-child(even) { transform: translateY(2.5rem) scale(0.7) rotate(3deg); }
.js [data-reveal="pop"].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="pop"] { opacity: 1; transform: none; transition: none; }
}
.tile-vid { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--black); box-shadow: 6px 6px 0 var(--black); background: var(--sage); }
/* Recent work carousel: five tiles fit on a wide desktop; smaller screens scroll with arrows */
.wrap-wide { width: min(1760px, 100% - 2 * var(--gutter)); }
.carousel { position: relative; margin: 0 0 1.25rem; }
.tiles { display: flex; gap: 1.1rem; margin: 0; padding: 0.4rem 0.5rem 1.6rem 0; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 0.5rem; scrollbar-width: thin; scrollbar-color: var(--black) transparent; }
.tiles::-webkit-scrollbar { height: 10px; }
.tiles::-webkit-scrollbar-thumb { background: var(--black); border-radius: 10px; }
.tiles::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.12); border-radius: 10px; }
.tiles > li { flex: 0 0 clamp(16rem, calc((100% - 4.4rem) / 5), 22rem); scroll-snap-align: start; }
.tiles > li:first-child { margin-left: auto; }
.tiles > li:last-child { margin-right: auto; }
.tile { display: block; position: relative; }
.tile img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border: 2px solid var(--black); box-shadow: 5px 5px 0 var(--black); background: var(--sage); }
.tile-vid { box-shadow: 5px 5px 0 var(--black); }
.car-btn { position: absolute; top: calc(50% - 1.5rem); z-index: 2; width: 2.9rem; height: 2.9rem; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--black); background: var(--white); color: var(--black); box-shadow: 3px 3px 0 var(--orange); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.car-btn:hover { background: var(--orange); }
.car-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.car-btn[hidden] { display: none; }
.car-prev { left: -0.5rem; }
.car-next { right: -0.5rem; }
@media (max-width: 560px) { .tiles > li { flex-basis: 78%; } .car-btn { width: 2.5rem; height: 2.5rem; } }

/* Listing location label, top left of each reel */
.vloc {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 0.8rem 1rem;
  font-weight: 600; font-size: 0.8rem; line-height: 1.2; color: var(--white); text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); pointer-events: none;
}
.vcard::after { display: none; }

/* Featured video above the grid */
.vgrid.vgrid-feature { grid-template-columns: 1fr; margin-bottom: 2rem; }

/* Real estate reels: centered, so any number of listings (2, 5, 6...) looks right */
.vgrid.vgrid-reels { display: flex; flex-wrap: wrap; justify-content: center; }
.vgrid-reels .vtile { flex: 0 0 calc((100% - 3.5rem) / 3); }
@media (max-width: 900px) { .vgrid-reels .vtile { flex-basis: calc((100% - 1.25rem) / 2); } }

/* Real estate pricing boxes */
.re-price { grid-template-columns: repeat(2, 1fr); margin: 1.5rem 0 0; }
.re-price li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1rem; border: 2px solid var(--black); background: var(--white); }
.re-price li > span:first-child { font-family: var(--display); font-weight: 700; }
.re-note { margin: 0.75rem 0 2rem; font-size: 0.95rem; }
@media (max-width: 560px) { .re-price { grid-template-columns: 1fr; } }
