/* ==========================================================================
   Fin, Your Soft Mate — stylesheet
   Sections: 1 Tokens · 2 Base · 3 Header · 4 Buttons · 5 Hero · 6 Ticker
             7 Experience · 8 Quote · 9 Gallery · 10 Kind words · 11 Photo studio
             12 Boundaries · 13 FAQ · 14 Contact · 15 Footer · 16 Motion
             17 Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #f6f2eb;
  --paper: #fffdf9;
  --ink: #302b27;
  --muted: #655c54;
  --line: #e2d9cc;
  --accent: #87563f;
  --accent-dark: #81523f;
  --soft: #eee5da;
  --dark: #282522;
  --shadow: 0 18px 55px rgba(67, 49, 37, .09);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: max(5vw, 24px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body.dark {
  --bg: #252320;
  --paper: #302d29;
  --ink: #f2ece4;
  --muted: #bdb2a6;
  --line: #4a433b;
  --accent: #d29b7e;
  --accent-dark: #e1b198;
  --soft: #39332d;
  --shadow: 0 18px 55px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }

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

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

.section-wrap { width: min(1120px, 90%); margin-inline: auto; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: middle;
}

/* Shared serif headings */
.hero h1,
.section-heading h2,
.boundary-copy h2,
.contact-inner h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.14;
}
.hero h1 em,
.section-heading h2 em,
.boundary-copy h2 em,
.contact-inner h2 em { font-weight: 600; color: var(--accent); }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2,
.boundary-copy h2,
.contact-inner h2 { font-size: clamp(36px, 4.4vw, 54px); margin: 0 0 16px; }
.section-heading > p:last-child,
.boundary-copy > p:last-child { font-size: 16px; color: var(--muted); margin: 0; }

/* 3. Header ---------------------------------------------------------------- */
.announcement {
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 9px 16px;
}

.site-header {
  height: 78px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.wordmark {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
  justify-self: start;
}
.wordmark span { color: var(--accent); }

.desktop-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 500; color: var(--muted); justify-self: center; }
.desktop-nav a { padding: 6px 0; transition: color .2s; }
.desktop-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }

.text-button, .icon-button {
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.text-button { font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 8px 6px; }
.icon-button {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; }

/* 4. Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); background: var(--accent-dark); box-shadow: 0 10px 24px rgba(67, 49, 37, .18); }
.button:active { transform: translateY(0); }
.button span { font-size: 18px; line-height: 1; }
.button-small { padding: 11px 18px; font-size: 13px; }
.button-light { background: #f7f0e8; color: #44382f; }
.button-light:hover { background: #e8d8c9; color: #302b27; }

.underlined-link {
  font-size: 14px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color .2s;
}
.underlined-link:hover { color: var(--accent); }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 7%;
  padding-top: 72px;
  padding-bottom: 92px;
}
.hero h1 { font-size: clamp(44px, 5.2vw, 72px); max-width: 620px; margin: 0; }
.hero-description { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 470px; margin: 26px 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  max-width: 420px;
  margin-top: 44px;
}
.note-mark { color: var(--accent); font-size: 22px; }

.hero-visual { position: relative; padding: 20px 12px 26px 26px; }

.photo-frame {
  position: relative;
  background: var(--soft);
  overflow: hidden;
  min-height: 210px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.hero-photo-frame { height: 470px; transform: rotate(1deg); box-shadow: var(--shadow); }

.photo-target { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-frame.has-photo .photo-target { display: block; }
.photo-frame.has-photo .photo-empty { display: none; }

.photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 26px;
  color: var(--muted);
  gap: 8px;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--paper) 90%, transparent), var(--soft) 75%);
}
.photo-plus {
  width: 44px; height: 44px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
}
.photo-empty strong { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--ink); }
.photo-empty small { font-size: 12px; }

/* Caption only exists on top of a real photo, with a soft shade so it stays readable */
.photo-caption {
  display: none;
  position: absolute;
  bottom: 18px; left: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #fff;
  z-index: 2;
}
.photo-frame.has-photo .photo-caption { display: block; }
.hero-photo-frame.has-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .4));
  pointer-events: none;
  z-index: 1;
}

.floating-note {
  position: absolute;
  bottom: 0; left: -20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 22px 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.floating-note > span { font-size: 26px; color: var(--accent); }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.2; }
.floating-note small { font-size: 12px; color: var(--muted); }

.hero-sparkle { position: absolute; color: var(--accent); }
.sparkle-one { top: 0; right: 2px; font-size: 26px; }
.sparkle-two { bottom: 42px; right: -8px; font-size: 16px; }

/* 6. Ticker ---------------------------------------------------------------- */
.ticker { overflow: hidden; background: var(--soft); padding: 18px 0; }
.ticker-track { display: flex; width: max-content; will-change: transform; animation: ticker-scroll 26s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  min-width: 100vw;
  padding: 0 20px;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--accent-dark);
}
.ticker i { font-style: normal; font-size: 13px; flex: 0 0 auto; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 7. Experience ------------------------------------------------------------ */
.experience-section { padding-top: 116px; padding-bottom: 120px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.experience-card {
  position: relative;
  background: var(--paper);
  padding: 34px 30px 38px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.experience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-number { position: absolute; right: 26px; top: 26px; font-size: 12px; color: var(--muted); }
.card-icon { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); margin-bottom: 26px; }
.experience-card h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; font-weight: 600; margin: 0 0 10px; }
.experience-card p { font-size: 15px; color: var(--muted); margin: 0; max-width: 300px; }
.card-line { position: absolute; bottom: 0; left: 30px; width: 36px; height: 2px; background: var(--accent); }

/* 8. Quote ----------------------------------------------------------------- */
.quote-section { background: var(--soft); padding: 96px 20px; text-align: center; }
.quote-inner { max-width: 760px; margin: auto; }
.quote-mark { font-family: var(--serif); font-size: 72px; line-height: .7; color: var(--accent); }
blockquote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.35;
  margin: 16px 0 24px;
  letter-spacing: -.01em;
}
.quote-inner p { font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 700; margin: 0; }

/* 9. Gallery --------------------------------------------------------------- */
.gallery-section { padding-top: 116px; padding-bottom: 120px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; text-align: left; max-width: none; gap: 40px; }
.gallery-heading h2 { margin-bottom: 0; }
.gallery-heading > p { max-width: 320px; font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.gallery-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; align-items: start; }
.gallery-item { margin: 0; }
.gallery-item .photo-frame { height: 260px; }
.gallery-tall .photo-frame { height: 350px; }
.gallery-item figcaption { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; padding-top: 12px; }

/* 10. Kind words (starts empty on purpose — no invented reviews) ----------- */
.kind-words-section { padding: 104px 0 112px; background: var(--paper); }
.kind-words-section .section-heading { margin-bottom: 40px; }
.kind-words-empty {
  max-width: 660px;
  margin: 0 auto;
  padding: 38px 30px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.kind-words-heart { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--accent); }
.kind-words-empty p { max-width: 480px; margin: 10px auto 14px; color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.kind-words-empty small { font-size: 12px; color: var(--muted); }

.kind-words-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 850px; margin: 0 auto; }
.kind-word-card { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 30px; }
.kind-word-mark { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--accent); }
.kind-word-card blockquote { font-size: 21px; margin: 8px 0 18px; }
.kind-word-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* Photo Studio is owner-preview only; this is a UI convenience, not an access-control boundary. */
.photo-studio-section { display: none; }
body.show-photo-studio .photo-studio-section { display: block; }

/* 11. Photo studio (owner tool) -------------------------------------------- */
.photo-studio-section { background: var(--soft); padding: 100px 0; }
.photo-studio-section[hidden] { display: none !important; }
.photo-studio-section .section-heading { margin-bottom: 40px; }
.studio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.upload-card {
  position: relative;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 4px;
  background: var(--paper);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.upload-card:hover { border-style: solid; transform: translateY(-3px); }
.upload-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Visually hidden but still reachable with the keyboard */
.upload-card input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 11px;
}
.upload-card strong { font-family: var(--serif); font-size: 18px; line-height: 1.25; font-weight: 500; }
.upload-card small { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.upload-action { font-size: 13px; color: var(--accent-dark); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.studio-footnote { font-size: 13px; color: var(--muted); display: flex; gap: 9px; justify-content: center; text-align: center; margin: 26px auto 0; max-width: 720px; }
.studio-footnote span:first-child { color: var(--accent); }

/* 12. Boundaries ----------------------------------------------------------- */
.boundaries-section { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 9%; }
.boundary-copy h2 { font-size: clamp(36px, 4vw, 50px); }
.boundary-list > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.boundary-list > div:first-child { border-top: 1px solid var(--line); }
.boundary-list span { font-size: 13px; font-weight: 600; color: var(--accent); }
.boundary-list p { font-size: 16px; line-height: 1.55; margin: 0; color: var(--ink); }
.boundary-list b { display: none; } /* decorative arrows looked like links */

/* 13. FAQ ------------------------------------------------------------------ */
.faq-section { background: var(--paper); padding: 108px 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; }
.faq-layout .section-heading { text-align: left; margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
}
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--sans); color: var(--accent); font-size: 24px; line-height: 1; flex: 0 0 auto; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { font-size: 16px; color: var(--muted); max-width: 580px; margin: 0 34px 22px 0; }

/* 14. Contact -------------------------------------------------------------- */
.contact-section { background: #44382f; color: #f7f0e8; text-align: center; padding: 108px 20px; }
.contact-inner { max-width: 700px; margin: auto; }
.contact-inner .eyebrow { color: #d6a98e; }
.contact-inner h2 { font-size: clamp(38px, 5vw, 60px); }
.contact-inner h2 em { color: #d6a98e; }
.contact-inner > p:not(.eyebrow) { font-size: 17px; color: #d9cec3; max-width: 480px; margin: 0 auto 30px; }
.contact-inner > small { display: block; font-size: 12px; color: #cdbfb2; margin-top: 26px; letter-spacing: .04em; }

/* 15. Footer --------------------------------------------------------------- */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px var(--gutter); color: var(--muted); font-size: 13px; }
.site-footer .wordmark { color: var(--ink); font-size: 30px; }
.site-footer p { font-family: var(--serif); font-style: italic; font-size: 15px; margin: 0; }

/* 16. Motion --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
/* If scripts are off, never leave content invisible */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .ticker-track { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* 17. Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .desktop-nav { gap: 22px; }
  .experience-card { padding: 30px 24px 34px; }
}

/* Tablet: turn the nav into a menu and stack the two-column sections */
@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }
  .menu-toggle { display: block; }
  .desktop-nav {
    display: none;
    position: absolute;
    justify-self: stretch; /* undo the desktop centring so the dropdown spans the full width */
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(67, 49, 37, .08);
    padding: 14px var(--gutter) 22px;
    flex-direction: column;
    gap: 0;
    font-size: 16px;
  }
  .desktop-nav.open { display: flex; }
  .desktop-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .desktop-nav a:last-child { border-bottom: 0; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
  .hero-visual { width: min(520px, 92%); margin: 0 auto; }
  .hero-photo-frame { height: 400px; }

  .boundaries-section, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-layout .section-heading { margin: 0; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-heading { display: block; }
  .gallery-heading > p { margin-top: 16px; max-width: 520px; }
}

/* Phone */
@media (max-width: 640px) {
  .announcement { font-size: 11px; letter-spacing: .05em; }
  .site-header { height: 68px; }
  .header-actions { gap: 8px; }
  .header-cta { display: none; }
  .wordmark { font-size: 34px; }

  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); line-height: 1.08; }
  .hero-description { font-size: 16px; margin: 22px 0 28px; }
  .hero-note { margin-top: 32px; }
  .hero-visual { width: 90%; padding: 10px 8px 28px 14px; }
  .hero-photo-frame { height: 340px; }
  .floating-note { left: -14px; }

  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .boundary-copy h2, .contact-inner h2 { font-size: clamp(34px, 10vw, 44px); }

  .experience-section, .gallery-section, .boundaries-section { padding-top: 80px; padding-bottom: 84px; }
  .experience-grid { grid-template-columns: 1fr; gap: 12px; }
  .experience-card { min-height: 0; padding: 26px 24px 34px; }
  .card-icon { margin-bottom: 14px; }

  .quote-section { padding: 72px 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .gallery-tall { grid-column: span 2; }
  .gallery-tall .photo-frame { height: 290px; }
  .gallery-item .photo-frame { height: 200px; }
  .photo-empty strong { font-size: 18px; }
  .gallery-item figcaption { font-size: 14px; }

  .kind-words-section { padding: 80px 0; }
  .kind-words-empty { padding: 28px 20px; }
  .kind-words-empty p { font-size: 18px; }
  .kind-words-grid { grid-template-columns: 1fr; }

  .photo-studio-section { padding: 80px 0; }
  .studio-grid { gap: 10px; }
  .upload-card { min-height: 160px; padding: 14px 8px; }
  .upload-card strong { font-size: 16px; }

  .faq-section { padding: 80px 0; }
  .faq-list summary { font-size: 18px; }
  .contact-section { padding: 88px 22px; }

  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; }
  .ticker-group { font-size: 17px; }
  .ticker-track { animation-duration: 22s; }
}
