/* Wireframe styles — greyscale palette, Lora. Swap role tokens for brand colors later. */
:root {
  /* Brand palette (see style-guide.html) */
  --maroon: #834D44;
  --sage: #99B0AA;
  --sand: #CFC3AF;
  --cream: #F5F0EA;
  /* Greyscale */
  --dark-00: #000000;
  --dark-10: #1D1D1D;
  --dark-20: #3D3D3D;
  --dark-30: #555555;
  --border: #878787;
  --light-30: #D1D1D1;
  --light-20: #EBEBEB;
  --light-10: #FAFAFA;
  --light-00: #FFFFFF;

  /* Wireframe roles -> greyscale (swap these to brand colors later) */
  --bg: var(--light-00);
  --bg-alt: var(--light-20);
  --ink: var(--dark-10);
  --text-light: var(--light-10);   /* text on dark/photo sections: hero, align, social */
  --text-dark: var(--dark-10);     /* text everywhere else, incl. footer */
  --muted: var(--text-dark);
  --line: var(--border);
  --hairline: var(--light-30);
  --ph: var(--light-30);
  --ph-line: var(--border);
  --accent: var(--dark-10);
  --focus: var(--dark-10);
  --error: var(--dark-00);

  --serif: "Lora", Georgia, serif;
  --heading: "Fraunces", Georgia, serif;
  --maxw: 1080px;
  --measure: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--serif);
}
/* Lora: regular (400) for all upright text, medium (500) for all italics */
strong, b, th, dt { font-weight: 400; }
em, i, .btn { font-weight: 500; }

button, input { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }

h1, h2 { font-family: var(--heading); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; margin: 0 auto 24px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 14em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 16em; }
.lede { max-width: var(--measure); margin: 0 auto 40px; color: var(--muted); font-size: 1.05rem; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.services { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 1.2em; row-gap: .2em; font-family: var(--serif); font-size: 1.2rem; margin: 0 0 40px; }
.services .plus { color: var(--muted); }

.btn {
  display: inline-block;
  padding: 18px 40px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--light-00);
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  transition: opacity .15s;
}
.btn:hover { opacity: .8; }
.btn:focus-visible, .arrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Placeholders */
.ph, .ph-inline {
  background: var(--ph);
  border: 1px dashed var(--ph-line);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: .9rem;
}
.ph small { display: block; opacity: .75; }
a.ph-inline { color: var(--ink); text-decoration: none; }
.ph-inline { display: inline-flex; padding: 8px 18px; margin-bottom: 40px; }
.ph-scheduler { width: 100%; max-width: 760px; min-height: 560px; margin: 0 auto; background: var(--light-00); }

/* Carousel */
.carousel { display: flex; align-items: center; gap: 16px; margin-top: 56px; }
.track { flex: 1; touch-action: pan-y; position: relative; aspect-ratio: 100 / 53; overflow: hidden; }
/* Slides share one size and are positioned by --o (-1 left, 0 center, 1 right); side slides scale down */
.slide {
  --o: 0; --s: .76;
  position: absolute; top: 50%; left: 50%; width: 34%; aspect-ratio: 2 / 3;
  transform: translate(calc(-50% + var(--o) * 98%), -50%) scale(var(--s));
  opacity: .85; cursor: pointer;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .7s ease;
  will-change: transform, opacity;
}
.slide.active { --s: 1; opacity: 1; cursor: default; }
.slide.fade-out { opacity: 0; transition: opacity .35s ease; }   /* slide leaving the loop fades out in place */
.slide.jump { transition: none; opacity: 0; }                    /* then repositions unseen, and fades back in at the other end */
.slide .ph { width: 100%; height: 100%; border-radius: 6px; flex-direction: column; }
.play {
  width: 56px; height: 56px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  border: 2px solid var(--ink); background: transparent; cursor: pointer;
  margin-bottom: 10px; color: var(--ink);
}
.play svg { display: block; margin-left: 3px; }  /* nudge: a triangle looks centered when shifted right */
.arrow {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; flex: 0 0 auto;
}
.arrow svg { display: block; }
@media (hover: hover) { .arrow:hover { background: var(--ink); color: var(--light-00); } }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 48px 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer .ph-inline { margin: 0; }
.footer nav a { margin: 0 12px; color: var(--ink); font-size: .9rem; }
.small { margin: 0; font-size: .8rem; color: var(--muted); }

/* Opt-in */
.optin { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; text-align: left; }
.optin h2 { margin-left: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.optin .lede { margin-left: 0; margin-bottom: 28px; }
.ph-cover { aspect-ratio: 3 / 4; width: 100%; max-width: 340px; margin: 0 auto; }
.optin-form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.optin-form input {
  padding: 14px 16px; font: inherit; border: 1px solid var(--line); background: var(--light-00); color: var(--ink);
}
.optin-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.optin-form input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.optin-form .btn { font-size: 1rem; cursor: pointer; }
.optin-form .btn[disabled] { opacity: .5; cursor: wait; }
.form-msg { margin: 0; min-height: 1.2em; font-size: .85rem; color: var(--error); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Modal */
.modal { border: 1px solid var(--ink); padding: 40px 32px 32px; max-width: 520px; width: calc(100% - 32px); text-align: center; background: var(--bg); color: var(--ink); }
.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal h2 { font-size: 1.9rem; }
.modal .lede { margin-bottom: 24px; }
.modal .optin-form { margin: 0 auto; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* Thank-you page */
.divider { max-width: 120px; border: 0; border-top: 1px solid var(--hairline); margin: 64px auto; }
.thanks { min-height: 100vh; display: flex; align-items: center; }

/* Sticky header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--maroon); color: var(--text-light);
  transform: translateY(-100%); transition: transform .25s;
}
.site-header.visible { transform: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.site-header .btn { background: transparent; border-color: var(--text-light); color: var(--text-light); }
.header-inner .ph-inline { margin: 0; color: var(--ink); text-decoration: none; }
.btn-sm { padding: 7px 18px; font-size: .85rem; }
.section[id], #book { scroll-margin-top: 64px; }

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .lede { font-size: .95rem; line-height: 1.55; }
  .services { font-size: .9rem; column-gap: .8em; }
  /* testimonials: bigger preview, arrows float over its edges */
  .carousel { position: relative; gap: 0; margin-top: 40px; }
  .track { aspect-ratio: 100 / 134; }
  .slide { width: 88%; --s: .85; }
  .slide:not(.active) { opacity: 0; pointer-events: none; }
  .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(250, 250, 250, .85); width: 40px; height: 40px; }
  #prev { left: 0; }
  #next { right: 0; }
  .btn-sm { padding: 6px 12px; font-size: .78rem; }
  .optin { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .optin h2, .optin .lede { margin-left: auto; }
  .optin-form { margin: 0 auto; }
  .ph-cover { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .btn { transition: none; }
  .slide.jump, .slide.fade-out { opacity: 0; transition: none; }
}

/* Logo (SVG lockup has built-in padding, so the box is larger than the visible mark) */
.logo-link { display: inline-block; line-height: 0; margin-bottom: 24px; }
.logo-img { display: block; height: 100%; width: auto; }
.logo-lg { height: 120px; margin-bottom: 16px; }
.logo-hero { height: 72px; margin-bottom: 16px; }
.logo-md { height: 80px; margin-bottom: 0; }
.logo-sm { height: 36px; margin: 0; }
.footer .logo-link { margin: 0; }

/* Stone texture: covers the whole section at 10% with multiply */
.stone { position: relative; isolation: isolate; }
.stone::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/images/stone-texture.jpg") center / cover no-repeat;
  opacity: .1; mix-blend-mode: multiply; pointer-events: none;
}
.hero.stone::before { opacity: .15; }

/* Full-bleed mockup backgrounds: copy sits on the empty wall at the top, device below */
.bg-img {
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
  padding-top: 80px;
  min-height: min(84.3vw, 1500px);   /* image is 2160x1821, keep the whole device in view */
}
.bg-vision { --bgimg: url("assets/images/vision.jpg"); background-image: var(--bgimg); background-color: var(--dark-30); }
.bg-mobile { --bgimg: url("assets/images/mobile.jpg"); background-image: var(--bgimg); background-color: var(--light-30); }
.bg-social { --bgimg: url("assets/images/social.jpg"); background-image: var(--bgimg); background-color: var(--dark-30); }
.bg-img h2 { max-width: 20em; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark .lede, .on-dark .services, .on-dark .services span { color: var(--text-light); }
/* Section background colors (brand) */
.hero { background-color: var(--maroon); }
.testimonials { background-color: var(--cream); }
.hero .btn { background: transparent; border-color: var(--text-light); color: var(--text-light); }

/* Testimonial video previews */
.slide .thumb { position: relative; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: var(--ph); }
.slide .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .thumb .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0;
  border-color: var(--light-00); color: var(--light-00); background: rgba(0, 0, 0, .25);
}
.slide .thumb .play:hover { background: rgba(0, 0, 0, .5); }
.slide:not(.active) .play { opacity: 0; transition: opacity .3s; }

@media (max-width: 720px) {
  /* phones: copy sits on a flat block matched to the wall; the image comes below it with the empty top of the wall cropped off */
  .bg-img { background-image: none; padding-top: 64px; padding-bottom: 0; min-height: 0; }
  .bg-vision { background-color: #7b9a8f; }
  .bg-mobile { background-color: #cdbfad; }
  .bg-social { background-image: linear-gradient(90deg, #874a45, #a47a62); }
  /* Fraunces headings, about 10% smaller on phones */
  h1 { font-size: 1.95rem; }
  h2, .bg-img h2 { font-size: 1.7rem; }
  .optin h2 { font-size: 1.5rem; }
  .modal h2 { font-size: 1.7rem; }
  .logo-hero { height: 52px; }
  .logo-md { height: 56px; }
  .bg-img::after {
    content: ""; display: block; margin-top: 36px;
    height: calc(84.3vw * .78);                       /* show the bottom 78% of the image */
    background: var(--bgimg) center bottom / 100% auto no-repeat;
  }
}
}
