/* Kelvin Studios — real estate video & social. Clean SaaS-style marketing site. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --ink: #191713;
  --ink-soft: #4a463e;
  --muted: #7a756b;
  --accent: #b07a2e;
  --accent-ink: #8a5d1f;
  --line: #e7e2d7;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --bar-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ---------- Top bar (left: brand · center: nav · right: insta + CTA) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.topbar-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 14px clamp(24px, 4vw, 48px);
}
.brand { justify-self: start; font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: .3px; }
.brand em { font-style: normal; color: var(--accent); }
.topbar nav.nav-center { justify-self: center; display: flex; align-items: center; gap: 28px; }
.topbar nav.nav-center a.link { font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.topbar nav.nav-center a.link:hover { color: var(--accent-ink); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.ig-icon { display: inline-flex; align-items: center; color: var(--ink-soft); transition: color .2s; }
.ig-icon svg { width: 21px; height: 21px; }
.ig-icon:hover { color: var(--accent-ink); }
/* Hamburger + mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink-soft); flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,.14); padding: 6px 24px 18px; flex-direction: column; }
.mobile-menu a { padding: 14px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .mobile-cta { margin-top: 16px; text-align: center; }
body.home .menu-toggle { color: #fff; }
body.home .topbar.scrolled .menu-toggle { color: var(--ink-soft); }


/* Home: transparent over the hero video */
body.home .topbar { background: transparent; border-bottom: none; backdrop-filter: none; }
body.home .brand { color: #fff; }
body.home .topbar nav.nav-center a.link { color: rgba(255,255,255,.92); }
body.home .topbar nav.nav-center a.link:hover { color: #fff; }
body.home .ig-icon { color: rgba(255,255,255,.92); }
body.home .ig-icon:hover { color: #fff; }

/* Home: scrolled → solid bar */
body.home .topbar.scrolled {
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(8px);
}
body.home .topbar.scrolled .brand { color: var(--ink); }
body.home .topbar.scrolled nav.nav-center a.link { color: var(--ink-soft); }
body.home .topbar.scrolled nav.nav-center a.link:hover { color: var(--accent-ink); }
body.home .topbar.scrolled .ig-icon { color: var(--ink-soft); }
body.home .topbar.scrolled .ig-icon:hover { color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 500; letter-spacing: .2px;
  padding: 12px 24px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: all .18s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Hero (full-screen video) ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  padding: 150px clamp(20px, 5vw, 40px) 96px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.52) 0%, rgba(0,0,0,.34) 45%, rgba(0,0,0,.62) 100%);
}
.hero-content { position: relative; max-width: 960px; }
.eyebrow {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero .eyebrow { color: #ecc27a; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px); line-height: 1.07; margin-bottom: 26px;
}
.hero .sub { color: rgba(255,255,255,.9); font-size: 20px; max-width: 56ch; margin: 0 auto 38px; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 76px clamp(20px, 5vw, 40px); }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin-bottom: 16px;
}
.lede { color: var(--ink-soft); font-size: 18px; max-width: 60ch; }

/* Feature: media/text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #111; box-shadow: 0 24px 60px rgba(20,15,5,.14); }
.split .media video, .split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .copy .eyebrow { margin-bottom: 14px; }
.split .copy p { color: var(--ink-soft); margin-top: 6px; }
.split.flip .media { order: 2; }
.split.flip .copy { order: 1; }
.split .media.square { aspect-ratio: 1 / 1; }
.split .media.portrait { aspect-ratio: 3 / 4; }

/* Phone mockup: transparent bezel overlay on top of a video */
.media.phone {
  position: relative;
  width: 250px;
  aspect-ratio: 534 / 1099;
  justify-self: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform-style: preserve-3d;
  animation: phone-sway 9s ease-in-out infinite;
  will-change: transform;
}
.media.phone video {
  position: absolute;
  left: 4.12%; top: 1.55%;
  width: 91.76%; height: 96.91%;
  object-fit: cover;
  border-radius: 9.18% / 4.23%;
}
.media.phone .gloss {
  position: absolute;
  left: 4.12%; top: 1.55%;
  width: 91.76%; height: 96.91%;
  border-radius: 9.18% / 4.23%;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.05) 52%,
    rgba(255,255,255,0.14) 72%,
    rgba(210,228,250,0.12) 88%,
    rgba(255,255,255,0) 100%
  );
  background-size: 170% 170%;
  background-position: 0% 0%;
  animation: gloss-shift 9s ease-in-out infinite;
}
.media.phone .bezel {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
@keyframes phone-sway {
  0%, 100% { transform: perspective(1400px) rotateY(-7deg) rotateX(1.5deg); }
  50%      { transform: perspective(1400px) rotateY(7deg) rotateX(-1.5deg); }
}
@keyframes gloss-shift {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}


/* Centered experience block */
.experience { text-align: center; }
.experience .lede { margin: 0 auto; max-width: 64ch; }
.experience .checklist {
  list-style: none; margin: 40px auto 0; max-width: 520px; text-align: left;
}
.experience .checklist li { padding: 11px 0 11px 34px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.experience .checklist li:last-child { border-bottom: none; }
.experience .checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 88px clamp(20px, 5vw, 40px); }
.cta-band h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.12; margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: #c78a37; }

/* Page top spacing for sub-pages (clears fixed bar) */
.page-pad { padding-top: 128px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about-photo img { width: 100%; border-radius: 10px; box-shadow: 0 24px 60px rgba(20,15,5,.16); }
.about-copy h2 { margin-bottom: 8px; }
.about-copy .name { font-family: var(--serif); font-size: 26px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.75; }

/* Our story prose */
.story { max-width: 760px; }
.story h2 { margin-bottom: 22px; }
.story p { color: var(--ink-soft); font-size: 18px; line-height: 1.8; margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-family: var(--serif); font-size: 22px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); font-size: 26px; font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { color: var(--ink-soft); padding: 14px 0 2px; }

/* ---------- Form ---------- */
.intake-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-soft); }
.opt { color: var(--muted); }
input, textarea, select {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); padding: 13px 15px; font-size: 16px; font-family: var(--sans);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { grid-column: 1 / -1; font-size: 15px; color: var(--accent-ink); min-height: 1.2em; }
.intake-form .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px clamp(20px, 5vw, 40px); }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer p { color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: var(--ink); }

/* ---------- Services page ---------- */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: stretch;
}
.tier {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 28px 28px;
}
.tier.tier-alt { background: var(--bg-alt); }
.tier .save-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600;
}
.tier h3 {
  font-family: var(--serif); font-weight: 500; font-size: 27px;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px;
}
.tier .tier-tag { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.tier .price {
  font-family: var(--serif); font-weight: 400; font-size: 46px;
  line-height: 1; margin-bottom: 18px; color: var(--ink);
}
.tier ul { list-style: none; margin: 0 0 26px; flex: 1; }
.tier ul li {
  position: relative; padding: 9px 0 9px 26px; font-size: 15px;
  color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.tier ul li:last-child { border-bottom: none; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tier .btn { align-self: start; }

/* À la carte */
.alacarte-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: stretch;
}
.alacarte {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px;
}
.alacarte h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 4px; }
.alacarte .cat-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.alacarte .from {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; margin-bottom: 12px;
}
.alacarte .cat-bullets { list-style: none; margin: 0 0 16px; padding: 0; }
.alacarte .cat-bullets li {
  position: relative; padding: 3px 0 3px 16px;
  font-size: 13.5px; color: var(--ink-soft);
}
.alacarte .cat-bullets li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); }
.cat-select { display: flex; gap: 8px; margin-bottom: 12px; }
.cat-select select {
  flex: 1; min-width: 0; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); padding: 11px 12px; font-size: 14px; font-family: var(--sans);
}
.cat-select select:focus { outline: none; border-color: var(--accent); }
.cat-select .btn { white-space: nowrap; }
.cat-from { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.alacarte .cat-note { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.alacarte .btn { align-self: start; }
.btn-warn { background: #b3261e; color: #fff; }
.btn-warn:hover { background: #8f1d16; }

/* ---------- Cart ---------- */
.cart-link {
  position: relative; display: inline-flex; align-items: center;
  color: var(--ink-soft); transition: color .2s;
}
.cart-link:hover { color: var(--accent-ink); }
.cart-link svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #22c55e; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 17px;
  border-radius: 999px; text-align: center;
  border: 2px solid #fff;
}
.cart-pulse { animation: cartPulse .7s ease; }
@keyframes cartPulse { 0%,100% { transform: scale(1); } 30% { transform: scale(1.25); } }

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; align-items: start; margin-top: 36px;
}
.checkout-step {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px;
}
.checkout-step h3 {
  font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 20px;
}
.checkout-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--sans);
  font-size: 15px; margin-right: 8px;
}
.checkout-step .field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-step .btn { margin-top: 8px; }
.card-block {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; margin-top: 10px; background: var(--bg-alt);
}
.card-block h4 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.card-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.step-actions { display: flex; gap: 12px; margin-top: 12px; }
.checkout-summary {
  position: sticky; top: 100px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
}
.checkout-summary h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 14px; }
.summary-items { list-style: none; margin: 0; }
.summary-items li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; font-size: 14px; color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.summary-items li span:last-child { color: var(--ink); white-space: nowrap; }
.summary-total {
  display: flex; justify-content: space-between;
  font-size: 17px; font-weight: 600; color: var(--ink);
  padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line);
}
.summary-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .hero .eyebrow, .hero .sub { display: none; }
  .topbar nav.nav-center { display: none; }
  .nav-right .ig-icon { display: none; }
  .nav-right .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .topbar.menu-open .mobile-menu { display: flex; }
  .topbar.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .topbar.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.home .topbar.menu-open { background: #fff; border-bottom: 1px solid var(--line); }
  body.home .topbar.menu-open .brand { color: var(--ink); }
  body.home .topbar.menu-open .menu-toggle { color: var(--ink-soft); }
  .split, .about-grid { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .split.flip .media { order: 0; }
  .split.flip .copy { order: 0; }
  .intake-form { grid-template-columns: 1fr; }
  .tier-grid, .alacarte-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .row2 { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; padding-top: 120px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 46px); }
  .hero .sub { font-size: 17px; }
}