/* ═══════════════════════════════════════════════════════════════
   FURROW DESIGN LAYER (shared by every page)
   Warm paper palette, coral accent, Red Hat fonts (self-hosted).
   This block overrides the older dark theme above. To go back to the
   old look, remove the <link> to this file (and restore the Google Fonts
   tags in <head>, see git history).
   ═══════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/red-hat-display-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/red-hat-display-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/red-hat-display-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/red-hat-display-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/red-hat-text-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/red-hat-text-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/red-hat-text-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/red-hat-text-latin-700.woff2') format('woff2'); }

:root {
  --paper: #F7F3EA;
  --surface: #FFFDF8;
  --ink: #1E1B18;
  --line: #DDD5C4;
  --line-strong: #C9BFAA;
  --coral: #E17847;
  --coral-hover: #CC6A3C;
  --coral-text: #A9501F;
  --coral-bg: #FDF0E6;
  --coral-bg-2: #F8E1D3;
  --coral-line: #F5C6A5;
  --text-2: #4F4840;
  --text-3: #645C53;
  --text-muted: #8A8176;
  --warm-2: #EFE9DB;
  --row-hover: #F3EDDF;
  --shadow-card: 0 1px 2px rgba(30,27,24,.08), 0 6px 14px -8px rgba(30,27,24,.28);

  /* older names now point at the new palette */
  --orange: var(--coral);
  --orange-dim: var(--coral-text);
  --dark: var(--paper);
  --dark-2: var(--warm-2);
  --dark-3: var(--surface);
  --dark-4: var(--line);
  --mid: var(--line-strong);
  --light-mid: var(--text-3);
  --light: var(--text-2);
  --white: var(--ink);
  --font-display: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hero: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body { background: var(--paper); color: var(--text-2); }

/* ── Headings: sentence case, tight tracking ── */
.hero-headline, .section-title, .step-title, .feature-title, .diff-item-title,
.testi-name, .footer-col-title, .mobile-menu a {
  text-transform: none;
  letter-spacing: -0.02em;
}
.section-title { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; line-height: 1.1; color: var(--ink); }
.section-title .outline { color: var(--coral-text); }
.section-label { color: var(--coral-text); letter-spacing: 0.14em; }
.section-body { font-weight: 400; color: var(--text-3); }

/* ── Nav ── */
nav {
  background: rgba(247,243,234,0.94);
  border-bottom: 1px solid var(--line);
  padding: 14px 48px;
}
.nav-links a { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--text-3); }
.nav-links a:hover { color: var(--ink); }

/* ── Buttons ── */
.btn-primary, .btn-ghost, .btn-dark {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  border-radius: 6px;
}
.btn-primary {
  color: var(--ink);
  background: var(--coral);
  border: 1px solid var(--coral-text);
  box-shadow: inset 0 -2px 0 rgba(30,27,24,.35);
}
.btn-primary:hover { background: var(--coral-hover); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--coral-text); color: var(--ink); }
.btn-large { border-radius: 6px; }

/* ── Hero (stays dark: it sits on top of the video) ── */
.hero { background: var(--ink); }
.hero-bg { background: linear-gradient(180deg, rgba(30,27,24,0.62) 0%, rgba(30,27,24,0.80) 100%); }
/* Homepage only (the hero with the background video): lighter overlay so the footage stays clear.
   Darker on the text side (left), light on the right, a soft shade at the bottom for the stats. */
.hero-film + .hero-bg {
  background:
    linear-gradient(180deg, rgba(30,27,24,0) 72%, rgba(30,27,24,0.32) 100%),
    linear-gradient(90deg, rgba(30,27,24,0.58) 0%, rgba(30,27,24,0.34) 45%, rgba(30,27,24,0.12) 100%);
}
.hero .hero-film { background-color: var(--ink); }
/* The video fills the first screen from the top, however long the hero gets */
.hero .hero-film { bottom: auto; height: 100vh; }
@media (max-width: 1024px), (max-height: 860px) {
  /* Soft edge where the hero continues below the video */
  .hero .hero-film::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
    background: linear-gradient(180deg, rgba(30,27,24,0) 0%, var(--ink) 100%);
  }
}
@media (max-width: 768px) {
  /* On phones the text spans the whole width, so keep an even, slightly stronger overlay */
  .hero-film + .hero-bg { background: linear-gradient(180deg, rgba(30,27,24,0.50) 0%, rgba(30,27,24,0.58) 100%); }
}
.hero-film ~ .hero-content .hero-headline { text-shadow: 0 2px 20px rgba(30,27,24,0.45); }
.hero-film ~ .hero-proof .proof-num, .hero-film ~ .hero-proof .proof-label { text-shadow: 0 1px 8px rgba(30,27,24,0.6); }
.hero-grid { display: none; }
.hero-eyebrow { color: var(--coral); letter-spacing: 0.12em; }
.hero-eyebrow::before { background: var(--coral); }
.hero-headline {
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--paper);
}
.hero-headline .accent, .hero-headline .outline { color: var(--coral); }
.hero-sub { color: var(--row-hover); text-shadow: 0 1px 3px rgba(30,27,24,0.6); font-weight: 500; }
.hero .btn-ghost { color: var(--paper); background: transparent; border-color: rgba(247,243,234,0.45); }
.hero .btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.proof-num { color: var(--paper); }
.proof-num span { color: var(--coral); }
.proof-label { color: rgba(247,243,234,0.72); }
.proof-divider { background: rgba(247,243,234,0.3); }
.scroll-hint { color: rgba(247,243,234,0.6); }
.scroll-hint-line { background: rgba(247,243,234,0.4); }

/* ── Ticker ── */
.ticker { background: var(--coral); }
.ticker-item { color: var(--ink); font-weight: 700; letter-spacing: 0.06em; }
.ticker-dot { background: rgba(30,27,24,0.45); }

/* ── How it works (paper) ── */
.how { background: var(--paper); }
.how-steps { background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.step { background: var(--surface); }
.step:hover { background: var(--row-hover); }
.step-num { color: var(--coral-bg-2); font-weight: 800; }
.step:hover .step-num { color: var(--coral-line); }
.step-title { color: var(--ink); font-weight: 700; }
.step-desc { color: var(--text-3); }
/* ── Features (warm) ── */
.features { background: var(--warm-2); }
.features-grid { background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feature-card { background: var(--surface); }
.feature-card:hover { background: var(--row-hover); }
.feature-card::before { background: var(--coral); }
.feature-title { color: var(--ink); font-weight: 700; }
.feature-desc { color: var(--text-3); }
.feature-tag { color: var(--coral-text); background: var(--coral-bg); border: 1px solid var(--coral-line); border-radius: 4px; }
.feature-card-wide a.fcw-link { color: var(--coral-text); text-transform: none; }
.feature-card-wide a.fcw-link:hover { color: var(--ink); }

/* ── Branded portal (warm) ── */
.branded { background: var(--warm-2); border-top: 1px solid var(--line); }
.branded-list li { color: var(--text-2); }
.branded-list code { color: var(--ink); }
.branded-shot { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); }
.branded-email img { border: 1px solid var(--line); border-radius: 10px; }
.branded-email figcaption { color: var(--text-3); }

/* ── Quality / before-after (warm) ── */
.diff { background: var(--warm-2); }
.diff-visual { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); overflow: hidden; }
.diff-mock-left .diff-mock-label { background: var(--coral-bg-2); color: var(--coral-text); border-radius: 4px; }
.diff-mock-right .diff-mock-label { background: rgba(30,27,24,0.65); color: var(--paper); border-radius: 4px; }
.diff-handle, .diff-handle-circle, .diff-badge { background: var(--coral); }
.diff-handle-circle { color: var(--ink); box-shadow: 0 2px 10px rgba(30,27,24,0.35); }
.diff-badge { color: var(--ink); }
.diff-item-title { color: var(--ink); font-weight: 700; }
.diff-item-text { color: var(--text-3); }

/* ── Client portal mockup (paper) ── */
.portal { background: var(--paper); }
.portal-mockup { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); overflow: hidden; }
.portal-bar { background: var(--warm-2); border-bottom: 1px solid var(--line); }
.portal-url { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--text-3); }
.portal-sidebar { background: var(--paper); border-right: 1px solid var(--line); }
.ps-logo { border-bottom: 1px solid var(--line); }
.ps-logo-text { color: var(--ink); }
.ps-logo-text span { color: var(--coral-text); }
.ps-logo-sub { color: var(--text-3); }
.ps-item { color: var(--text-3); border-radius: 6px; }
.ps-item.active { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--coral); }
.ps-item:hover:not(.active) { background: var(--row-hover); color: var(--ink); }
.portal-main { background: var(--paper); }
.pm-title { color: var(--ink); }
.pm-sub { color: var(--text-3); }
.pm-month { background: var(--coral-bg-2); color: var(--coral-text); border-radius: 6px; }
.pm-month.active { background: var(--coral); color: var(--ink); }
.pm-thumb { background: var(--warm-2); border-radius: 6px; }

/* ── Why LapseCloud cards (paper) ── */
.testimonials { background: var(--paper); }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); }
.testi-card:hover { border-color: var(--coral-line); }
.testi-quote { color: var(--coral-bg-2); }
.testi-text { color: var(--text-3); }
.testi-avatar { background: var(--coral); color: var(--ink); }
.testi-name { color: var(--ink); font-weight: 700; }
.testi-role { color: var(--text-3); }
.testi-stars { color: var(--coral-text); font-weight: 800; }

/* ── Contact form (warm) ── */
.contact { background: var(--warm-2); }
.form-field label { color: var(--text-3); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.form-field input, .form-field textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 6px;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--coral-text);
  box-shadow: 0 0 0 3px var(--coral-bg-2);
}

/* ── Closing band (coral) ── */
.cta-band { background: var(--coral); }
.cta-band::before { color: rgba(30,27,24,0.07); }
.cta-band .section-title { color: var(--ink); }
.cta-band .section-body { color: rgba(30,27,24,0.78); }
.btn-dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-dark:hover { background: #38322c; }

/* ── Footer (ink) ── */
footer { background: var(--ink); border-top: none; }
.footer-top { border-bottom: 1px solid rgba(247,243,234,0.14); }
.footer-brand-name { color: var(--paper); }
.footer-brand-name span { color: var(--coral); }
.footer-brand-desc { color: rgba(247,243,234,0.7); }
.footer-col-title { color: var(--paper); font-weight: 700; }
.footer-links a { color: rgba(247,243,234,0.7); }
.footer-links a:hover { color: var(--coral); }
.footer-copy { color: rgba(247,243,234,0.55); }
.footer-legal a { color: rgba(247,243,234,0.55); }
.footer-legal a:hover { color: var(--paper); }
footer a[href^="mailto"], footer a[href*="email-protection"] { color: var(--coral); }
.features a[href*="email-protection"] { color: inherit; text-decoration: none; }

/* ── Mobile menu ── */
.mobile-menu { background: rgba(247,243,234,0.98); }
.mobile-menu a { color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 700; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--coral-text); }
.mobile-menu-cta a { border-radius: 6px; }
.mobile-menu-cta a.btn-primary { background: var(--coral); color: var(--ink); }
.mobile-menu-cta a.btn-primary:hover { background: var(--coral-hover); }
.mobile-menu-cta a.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.mobile-menu-cta a.btn-outline:hover { border-color: var(--coral-text); color: var(--ink); }

/* The three role cards used a fixed 3-column grid; stack them on phones */
@media (max-width: 760px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
}

/* ══════════ Inner pages (about, contact, projects, features, pricing...) ══════════ */
/* Text-only page headers become light so they match the rest of the page */
.page-hero { background: var(--warm-2); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: none; }

/* Closing band used on the inner pages */
.cta-title { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.cta-sub { color: rgba(30,27,24,0.78); font-weight: 400; }

/* About page: real site photo instead of the empty emoji box */
.about-img-main {
  background: url('images/gallery/gallery-6.jpg') center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.about-img-badge { background: var(--coral); color: var(--ink); border-radius: 6px; }

/* ══════════ Ad landing pages ══════════ */
.lp-header { background: rgba(247,243,234,0.94); border-bottom: 1px solid var(--line); }
.photo-section, .video-section { background: var(--warm-2); border-top: 1px solid var(--line); }
.photo-strip figure { border: 1px solid var(--line); border-radius: 6px; }
.video-wrap { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(30,27,24,.08), 0 18px 40px -14px rgba(30,27,24,.35); }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); }
.feat-card:hover { border-color: var(--coral-line); }
.feat-title { letter-spacing: -0.01em; }

/* Dark hero bands: flip the legacy text variables so old rules stay readable */
.hero { --white: #F7F3EA; --light: #EFE9DB; --light-mid: rgba(247,243,234,0.78); --mid: rgba(247,243,234,0.4); }
.cta-band p, .cta-band .section-body, .cta-band .cta-note { color: rgba(30,27,24,0.82); }

/* Before/after band on the service landing page, features player */
.ba-section { background: var(--warm-2); border-top: 1px solid var(--line); }
.mt-player { background: var(--ink); }
