/* ═══════════════════════════════════════════════════════════════
   Tinder Photography — v2 design system
   Source of truth: ../AI Dating Photos/Tinder_Photography_Brand_Guidelines.md
   Palette: paper/cream foundation, single coral accent (#FF5A45)
   Type: Philosopher (headlines) / Outfit (everything else)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Brand */
  --accent:       #FF5A45;
  --accent-hover: #EE2B24;
  --accent-soft:  #FFE8E4;
  /* Neutrals — warmed + lightened 2026-09-11 per Talib ("keep the orange,
     go a bit lighter"); deviates from brand doc §2.2, update the doc if kept */
  --ink:      #2B2724;
  --ink-soft: #57514A;
  --ink-mute: #7A7368;
  --paper:    #FFFFFF;
  --cream:    #FAF6F0;
  --line:     #EAE4DC;
  /* Semantic */
  --success: #2F7D5B;
  --warning: #C77F1B;
  --danger:  #C0392B;
  /* Shadows (floating elements only — cards use borders) */
  --shadow-soft:  0 1px 2px rgba(28,28,28,0.04), 0 8px 24px rgba(28,28,28,0.06);
  --shadow-pop:   0 4px 12px rgba(255,90,69,0.18);
  --shadow-focus: 0 0 0 2px #FFFFFF, 0 0 0 4px #FF5A45;
  /* Type */
  --font-serif: 'Philosopher', Georgia, 'Times New Roman', serif;
  --font-sans:  'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--ink); }
h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.3; }
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
}

p { color: var(--ink-soft); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }

/* ── Layout ───────────────────────────────────────────────── */

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }

.section-cream { background: var(--cream); }

.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 560px; }
.section-head.centered { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-sub { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Buttons (3 variants, per brand §7.1) ─────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; box-shadow: var(--shadow-pop); }

.btn-outline { background: transparent; color: var(--ink); border: 1px solid #CFC7BC; }
.btn-outline:hover { background: var(--cream); color: var(--ink); border-color: var(--ink-soft); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

.btn-lg { height: 56px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }

/* ── Header / nav ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .nav { padding: 14px 48px; } }

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo:hover { color: var(--ink); }
.nav-logo img { height: 32px; width: auto; display: block; }
.site-footer .nav-logo img { height: 25px; }

.nav-links { display: none; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: none; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* Hamburger + mobile menu */
.nav-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  border-radius: 12px;
}
.nav-burger:hover { background: var(--cream); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px 24px 20px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .nav-burger, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ── Cards (paper + 1px line border, no shadow) ───────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
@media (min-width: 768px) { .card { padding: 32px; } }

.card-cream { background: var(--cream); border: none; }

/* ── Photo placeholders (swap for real <img> when ready) ──── */

.photo-ph {
  background: #F4EEE6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #C6BAA9;
  overflow: hidden;
}
.photo-ph span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.photo-ph img, .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* ── Feature list rows ────────────────────────────────────── */

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.feature-list svg { flex-shrink: 0; margin-top: 3px; }

/* ── Pricing ──────────────────────────────────────────────── */

.price-value { display: flex; align-items: baseline; gap: 6px; }
.price-value .amount { font-family: var(--font-serif); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; color: var(--ink); }
.price-value .currency { font-size: 14px; color: var(--ink-mute); }

/* ── Score bars (signature component, brand §7.4) ─────────── */

.score-row { display: flex; align-items: center; gap: 10px; }
.score-row .score-label { width: 92px; font-size: 13px; font-weight: 500; color: var(--ink-soft); flex-shrink: 0; }
.score-row .score-num { font-size: 15px; font-weight: 600; color: var(--ink); width: 32px; text-align: right; }
.score-track { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.score-fill { height: 8px; background: var(--accent); border-radius: 999px; }

/* ── Filter pills ─────────────────────────────────────────── */

.filter-pill {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.filter-pill:hover { background: var(--cream); color: var(--ink); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 500;
}
.tag-neutral {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

/* ── FAQ accordion (brand §7.7) ───────────────────────────── */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.faq-q svg { flex-shrink: 0; transition: transform 0.2s var(--ease-out); color: var(--ink-soft); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-a > div { padding-bottom: 20px; }

/* ── Forms (brand §7.3) ───────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

/* ── Timeline (about page) ────────────────────────────────── */

.timeline-item { display: flex; gap: 20px; padding-bottom: 40px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Blog / post cards ────────────────────────────────────── */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease-out);
}
.post-card:hover { border-color: var(--ink-mute); color: inherit; }
.post-card-img {
  height: 180px;
  background: #F4EEE6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C6BAA9;
}
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
@media (max-width: 860px) { #featured-post { grid-template-columns: 1fr !important; } }

/* ── Gallery masonry + lightbox ───────────────────────────── */

.masonry {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  column-count: 3;
  column-gap: 20px;
}
@media (max-width: 960px) { .masonry { column-count: 2; } }
@media (max-width: 600px) { .masonry { column-count: 1; } }

.masonry-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}
.masonry-item .img-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(28,28,28,0.55), transparent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.masonry-item:hover .img-overlay, .masonry-item:focus-visible .img-overlay { opacity: 1; }

.placeholder-slot {
  width: 100%;
  background: #F4EEE6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #C6BAA9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28,28,28,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  width: 100%;
  position: relative;
}
.lightbox-inner img { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.lightbox button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(28,28,28,0.6);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox button:hover { background: rgba(28,28,28,0.9); }
.lightbox-close { position: absolute; top: -8px; right: 0; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }

/* ── Sticky mobile booking bar ────────────────────────────── */

.sticky-book {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 10px 20px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 0.25s var(--ease-out);
}
.sticky-book.visible { transform: translateY(0); }
.sticky-book .from-price { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-book .from-price small { font-size: 11px; color: var(--ink-mute); }
.sticky-book .from-price strong { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--ink); }
@media (min-width: 900px) { .sticky-book { display: none; } }

body.has-sticky-book { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-sticky-book { padding-bottom: 0; } }
@media (max-width: 899px) {
  body.has-sticky-book:not(.tidio-open) #tidio-chat-iframe { bottom: 72px !important; }
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--ink); }
.site-footer .copyright { font-size: 13px; color: var(--ink-mute); }

/* ── Article pages (ported blog posts + legal) ────────────── */

.article-head { max-width: 720px; margin: 0 auto 28px; display: flex; flex-direction: column; gap: 14px; }
.article-figure { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.article-figure img { max-width: min(100%, 460px); border-radius: 8px; display: inline-block; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.article-body h2 { margin: 36px 0 12px; }
.article-body h3 { margin: 28px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body hr { border: none; height: 1px; background: var(--line); margin: 32px 0; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 500; }
.article-body img { max-width: 100%; border-radius: 8px; }

.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Scroll reveal ────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

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