/* ============================================================
   Club Clyne — luxury client portal design system
   Warm, cosy, boutique-hotel feel. Serif headings + clean sans body.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
  --bg: #F3ECE2;            /* warm cream page */
  --card: #FFFFFF;          /* card surface */
  --border: #EAE0D2;        /* card border */
  --text: #2C2620;          /* primary text */
  --text-2: #6B5D4D;        /* secondary text */
  --muted: #B5AD9F;         /* muted text */
  --accent: #B25E3D;        /* brand rust */
  --accent-tint: #FBEFE7;   /* accent tint background */
  --dark: #2C2117;          /* dark feature surface */
  --dark-2: #3a2c1f;        /* dark surface, slightly lifted */
  --radius: 16px;
  --radius-sm: 12px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(44, 38, 32, 0.04);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

/* ---- Shell: sidebar + content ---- */
.shell { display: flex; align-items: stretch; min-height: 100vh; }

.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 2.4rem 1.5rem 2rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.brand { display: flex; flex-direction: column; gap: 0.35rem; }
.brand-eyebrow {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent); font-weight: 600;
}
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1; color: var(--text); }
.brand-couple { font-size: 0.78rem; color: var(--text-2); margin-top: 0.15rem; }

.nav { display: flex; flex-direction: column; gap: 0.1rem; }
.nav a {
  display: block; text-decoration: none; color: var(--text-2);
  font-size: 0.92rem; padding: 0.5rem 0.7rem; border-radius: 10px;
  transition: background 0.15s, color 0.15s; letter-spacing: 0.01em;
}
.nav a:hover { background: var(--accent-tint); color: var(--text); }
.nav a.active { color: var(--accent); font-weight: 500; background: var(--accent-tint); }

.sidebar-foot { margin-top: auto; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; line-height: 1.5; }

.content { flex: 1; min-width: 0; }
.wrap { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem 5rem; }

/* ---- Page header pattern ---- */
.page-eyebrow {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent); font-weight: 600; margin-bottom: 0.9rem;
}
h1.page-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 1rem;
}
.page-intro { color: var(--text-2); font-size: 1.05rem; max-width: 62ch; margin-bottom: 2.5rem; }

h2.section-title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 2.6rem 0 1.1rem; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.7rem; margin-bottom: 1.2rem; box-shadow: var(--shadow);
}
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: var(--text-2); }
.card-eyebrow { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 0.5rem; }

/* ---- Dark feature surface (one per page max) ---- */
.feature {
  background: var(--dark); color: #F3ECE2; border-radius: var(--radius);
  padding: 2rem 1.9rem; margin: 1.6rem 0; border: 1px solid var(--dark-2);
}
.feature .card-eyebrow { color: #c9a07f; }
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: #fff; margin-bottom: 0.6rem; }
.feature p { color: #d8cbbd; }
.feature a { color: #e9b694; }
.feature .price { font-family: var(--serif); font-size: 2rem; color: #fff; }

/* ---- Editing tracker (dots, no progress bar ever) ---- */
.tracker { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.7rem; margin-bottom: 1.4rem; box-shadow: var(--shadow); }
.tracker-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.tracker-stage { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.tracker-delivery { font-size: 0.86rem; color: var(--text-2); text-align: right; }
.tracker-delivery b { color: var(--accent); font-weight: 600; }

.steps { display: flex; align-items: flex-start; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.step .dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--border); z-index: 2; transition: all 0.2s;
}
.step.done .dot { background: var(--accent); border-color: var(--accent); }
.step.current .dot { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.step .line { position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 1; }
.step.done .line, .step.current .line { background: var(--accent); }
.step:first-child .line { display: none; }
.step .step-label { font-size: 0.66rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.25; max-width: 10ch; }
.step.done .step-label, .step.current .step-label { color: var(--text-2); }
.step.current .step-label { color: var(--accent); font-weight: 600; }

/* ---- Numbered list (album steps etc.) ---- */
.numbered { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; margin: 1.4rem 0; }
.numbered li { display: flex; gap: 1.1rem; }
.numbered .num { font-family: var(--serif); font-size: 0.95rem; color: var(--muted); flex-shrink: 0; width: 2ch; padding-top: 0.1rem; }
.numbered h3 { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; margin-bottom: 0.2rem; }
.numbered p { color: var(--text-2); font-size: 0.95rem; }

/* ---- Accordion (one open at a time, chevron rotates, smooth height) ---- */
.accordion { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.4rem 0; }
.acc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.15rem 1.3rem; display: flex; align-items: center; gap: 1rem; font: inherit; color: var(--text);
}
.acc-head .acc-titles { flex: 1; }
.acc-head .acc-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; display: block; }
.acc-head .acc-sub { font-size: 0.82rem; color: var(--accent); font-style: italic; display: block; margin-top: 0.1rem; }
.acc-head .chev { color: var(--muted); transition: transform 0.3s ease; flex-shrink: 0; font-size: 1.1rem; }
.acc.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc.open .acc-body { max-height: 900px; }
.acc-body-inner { padding: 0 1.3rem 1.3rem; color: var(--text-2); font-size: 0.96rem; }

/* ---- Vertical roadmap (Your Journey) ---- */
.roadmap { list-style: none; margin: 1.6rem 0; position: relative; }
.roadmap li { position: relative; padding: 0 0 1.7rem 2.4rem; }
.roadmap li::before {
  content: ''; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--border); z-index: 2;
}
.roadmap li.done::before { background: var(--accent); border-color: var(--accent); }
.roadmap li::after { content: ''; position: absolute; left: 11px; top: 14px; width: 2px; height: 100%; background: var(--border); }
.roadmap li.done::after { background: var(--accent); }
.roadmap li:last-child::after { display: none; }
.roadmap .rm-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; }
.roadmap .rm-note { font-size: 0.84rem; color: var(--muted); }
.roadmap li.done .rm-note { color: var(--accent); }

/* ---- Contact cards / channels ---- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.channel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.3rem; }
.channel .ch-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.channel .ch-value { font-family: var(--serif); font-size: 1.05rem; margin: 0.3rem 0; word-break: break-word; }
.channel .ch-value a { text-decoration: none; }
.channel .ch-note { font-size: 0.82rem; color: var(--text-2); }

/* ---- Timeline (when you'll hear from me) ---- */
.timeline { list-style: none; margin: 1.2rem 0; }
.timeline li { display: flex; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: none; }
.timeline .tl-when { font-size: 0.82rem; color: var(--accent); font-weight: 600; flex: 0 0 9rem; }
.timeline .tl-what { color: var(--text-2); font-size: 0.95rem; }

/* ---- Vendors ---- */
.vendor-cat { margin-bottom: 1.2rem; }
.vendor-cat h3 { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; margin-bottom: 0.15rem; }
.vendor-cat .v-kind { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 0.7rem; }
.vendor-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vendor-list a, .vendor-list span {
  display: inline-block; padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); font-size: 0.88rem; text-decoration: none; color: var(--text);
}
.vendor-list a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.vendor-list span { color: var(--muted); }

/* ---- Gallery strip (Real life placeholder) ---- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 1.3rem 0; }
.strip .tile {
  aspect-ratio: 3/4; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: linear-gradient(135deg, #efe4d6, #e3d3c0); display: flex; align-items: flex-end;
  padding: 0.6rem; font-size: 0.66rem; color: var(--text-2); letter-spacing: 0.02em;
}
.strip .tile:nth-child(2) { background: linear-gradient(135deg, #e8dccb, #d8c4ad); }
.strip .tile:nth-child(3) { background: linear-gradient(135deg, #f0e6d8, #e0cdb6); }
.strip .tile:nth-child(4) { background: linear-gradient(135deg, #e6d9c6, #d2bda3); }

/* ---- Hero (Welcome) ---- */
.hero {
  border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(135deg, #efe4d6 0%, #e0cdb6 100%); padding: 2.8rem 2rem;
  margin-bottom: 1.6rem; text-align: center;
}
.hero .hero-eyebrow { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); font-weight: 600; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5.5vw, 2.9rem); line-height: 1.08; margin: 0.7rem 0; }
.hero p { color: var(--text-2); max-width: 48ch; margin: 0 auto; }

/* ---- Pills / small bits ---- */
.pill { display: inline-block; font-size: 0.72rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.btn-link { display: inline-block; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--accent); }
.btn-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
hr.soft { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0; }

/* ---- Not found / bare landing ---- */
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.center-card { max-width: 460px; }
.center-card .brand-name { font-size: 2.4rem; margin-bottom: 0.6rem; }

/* ---- Page builder blocks ---- */
.bk-text { color: var(--text-2); margin: 0 0 1.1rem; }
.bk-image { margin: 1.3rem 0; }
.bk-image img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.bk-image figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.bk-imagetext { display: flex; gap: 1.6rem; align-items: center; margin: 1.5rem 0; }
.bk-imagetext.right { flex-direction: row-reverse; }
.bk-it-img { flex: 0 0 44%; }
.bk-it-img img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.bk-it-txt h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: .4rem; }
.bk-it-txt p { color: var(--text-2); }
.bk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: 1.3rem 0; }
.bk-g-cell { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.bk-g-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-quote { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.3rem; margin: 1.5rem 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--text); font-style: italic; }
.bk-button { font-size: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: auto; height: auto; position: sticky; top: 0; z-index: 10;
    flex-direction: column; gap: 1rem; padding: 1.1rem 1.1rem 0.9rem;
    border-right: none; border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(1.2) blur(6px); background: rgba(255,255,255,0.94);
  }
  .brand { flex-direction: row; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
  .brand-eyebrow { display: none; }
  .brand-name { font-size: 1.3rem; }
  .brand-couple { margin-top: 0; }
  .nav { flex-direction: row; gap: 0.3rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.2rem; }
  .nav a { white-space: nowrap; padding: 0.4rem 0.7rem; font-size: 0.86rem; }
  .sidebar-foot { display: none; }
  .wrap { padding: 2.2rem 1.3rem 4rem; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .bk-imagetext, .bk-imagetext.right { flex-direction: column; }
  .bk-it-img { flex: none; width: 100%; }
  .step .step-label { font-size: 0.6rem; }
  .timeline .tl-when { flex: 0 0 7rem; }
}
