
:root {
  --paper: #EFEBE3;
  --paper-deep: #E4DFD3;
  --ink: #202A3B;
  --ink-soft: #4B5568;
  --accent: #4B6455;
  --accent-deep: #344839;
  --accent-pale: #E1E7DF;
  --line: #CFC9BA;
  --white: #FBFAF7;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; line-height: 1.6; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: 'Source Serif 4', serif; font-weight: 500; color: var(--ink); margin: 0; }
a { color: inherit; text-decoration: none; }

header.top { border-bottom: 1px solid var(--line); background: var(--paper); flex-shrink: 0; }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { font-family: 'Source Serif 4', serif; font-size: 19px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a.nav-btn, nav button.nav-btn {
  background: transparent; border: none; padding: 8px 14px; font-size: 14px; color: var(--ink-soft);
  font-family: 'IBM Plex Sans', sans-serif; cursor: pointer; border-radius: 3px; display: inline-flex; align-items: center;
}
nav a.nav-btn:hover, nav button.nav-btn:hover { background: var(--paper-deep); color: var(--ink); }
nav a.nav-btn.active, nav button.nav-btn.active { background: var(--accent-deep); color: var(--white); }

.nav-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(32,42,59,0.12);
  z-index: 20;
}
.nav-dropdown-menu.open { display: block; }
.dropdown-item { padding: 14px 16px; border-bottom: 1px solid var(--paper-deep); cursor: pointer; display: block; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--paper); }
.dropdown-item-title { font-family: 'Source Serif 4', serif; font-size: 15px; color: var(--ink); }
.dropdown-item-sub { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

.dropdown-toggle-dark { color: var(--ink-soft); }
.nav-dropdown-menu-dark {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 260px;
  background: var(--ink); border: 1px solid #3B4658; box-shadow: 0 8px 20px rgba(32,42,59,0.18);
  z-index: 20;
}
.nav-dropdown-menu-dark.open { display: block; }
.dropdown-item-dark {
  padding: 13px 16px; border-bottom: 1px solid #3B4658; cursor: pointer; display: block;
  color: #D8DCE3; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500;
}
.dropdown-item-dark:last-child { border-bottom: none; }
.dropdown-item-dark:hover { background: #262F42; color: var(--white); }

main { flex: 1; }
.page { max-width: 1080px; margin: 0 auto; padding: 24px 32px 40px; }

/* Home page */
.hero { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 36px; align-items: center; }
.hero h1 { font-size: 28px; line-height: 1.26; }
.hero p.lede { font-size: 15px; color: var(--ink-soft); margin-top: 12px; }
.btn-primary { background: var(--accent-deep); color: var(--white); border: none; padding: 12px 22px; font-size: 14px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: transparent; color: var(--accent-deep); border: 1px solid var(--accent-deep); padding: 11px 21px; font-size: 14px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; cursor: pointer; display: inline-block; }
.btn-secondary:hover { background: var(--accent-pale); }
.cta-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-photo { max-height: 210px; width: auto; max-width: 100%; object-fit: contain; object-position: top center; border: 1px solid var(--line); background: var(--white); justify-self: end; }

.about-teaser { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.link-btn { background: none; border: none; color: var(--accent-deep); font-size: 14px; font-family: 'IBM Plex Sans', sans-serif; cursor: pointer; padding: 0; font-weight: 500; white-space: nowrap; display: inline-block; }
.link-btn:hover { text-decoration: underline; }

.about-full { max-width: 640px; }
.about-full p { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; }

section.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); margin-top: 20px; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-size: 13px; color: var(--ink-soft); padding: 12px 0; }
.strip-inner b { color: var(--ink); font-weight: 500; }

.about-short { max-width: 640px; margin-top: 40px; }
.about-short p { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; }
.signoff { font-family: 'Source Serif 4', serif; font-size: 16px; margin-top: 10px; }

/* Self-check page */
.selfcheck-intro { max-width: 680px; font-size: 15px; color: var(--ink-soft); margin-bottom: 28px; }
.selfcheck-panel { max-width: 680px; }
.sc-q { border-top: 1px solid var(--line); padding: 20px 0; }
.sc-question { font-size: 15px; margin-bottom: 12px; }
.sc-options { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-opt {
  background: var(--white); border: 1px solid var(--line); padding: 9px 14px; font-size: 13px;
  cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; color: var(--ink-soft);
}
.sc-opt:hover { border-color: var(--accent-deep); }
.sc-opt.selected { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }
.selfcheck-result { display: none; max-width: 680px; background: var(--white); border: 1px solid var(--line); padding: 28px; margin-top: 20px; }
.selfcheck-result.show { display: block; }
.selfcheck-result h3 { font-size: 20px; margin-bottom: 12px; }
.selfcheck-result p { font-size: 15px; color: var(--ink-soft); }
.sc-crisis { display: none; background: #F4E9E5; border-left: 3px solid #8C4A3A; padding: 14px 16px; font-size: 14px; color: #5A3327; margin-top: 16px; }
.sc-crisis.show { display: block; }

/* Problems page */
.howwework { max-width: 680px; margin-bottom: 40px; }
.howwework h3 { font-size: 20px; margin-bottom: 14px; }
.howwework p { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; }
.howwework-steps { margin: 0 0 14px; padding-left: 20px; }
.howwework-steps li { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; padding-left: 4px; }

.problems-panel { background: var(--accent-deep); padding: 36px 32px; }
.problems-panel h3 { color: var(--white); font-size: 22px; margin-bottom: 20px; }
.problems-list { max-width: 760px; }
.problem-item { border-top: 1px solid #5A7563; padding: 14px 0; }
.problem-item:last-child { border-bottom: 1px solid #5A7563; }
.problem-item summary {
  font-family: 'Source Serif 4', serif; font-size: 16px; color: var(--white); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.problem-item summary::-webkit-details-marker { display: none; }
.problem-item summary::after { content: '+'; font-size: 20px; color: var(--white); flex-shrink: 0; margin-left: 12px; }
.problem-item[open] summary::after { content: '\2013'; }
.problem-item p { font-size: 14px; color: #DCE6DF; margin: 12px 0 0; max-width: 620px; }

/* Approaches page */
.approach-highlight { background: var(--white); border: 1px solid var(--accent-deep); border-left-width: 4px; padding: 28px; max-width: 700px; margin-bottom: 28px; }
.approach-highlight-tag { font-size: 12px; color: var(--accent-deep); font-weight: 500; letter-spacing: 0.03em; margin-bottom: 8px; }
.approach-highlight h3 { font-size: 22px; margin-bottom: 12px; }
.approach-highlight p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.approach-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 700px; }
.approach-col { border-top: 1px solid var(--line); padding-top: 14px; }
.approach-col h3 { font-size: 16px; margin-bottom: 8px; }
.approach-col p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.approach-note { font-size: 13px; color: var(--ink-soft); margin-top: 24px; max-width: 700px; }

/* Services page */
.page h2.page-title { font-size: 26px; margin-bottom: 28px; }
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-col { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.service-col .tag { font-size: 12px; color: var(--accent-deep); font-weight: 500; letter-spacing: 0.02em; }
.service-col h3 { font-size: 20px; margin: 10px 0 12px; }
.service-col p.desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.service-col ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--paper-deep); }
.service-col li { padding: 12px 0; border-bottom: 1px solid var(--paper-deep); font-size: 14px; display: flex; justify-content: space-between; }
.service-col li span:first-child { color: var(--ink-soft); }

/* Booking pages */
.booking-panel { background: var(--ink); color: var(--white); padding: 32px; }
.booking-panel h2 { color: var(--white); font-size: 24px; }
.booking-panel p.intro { color: #B7BECB; margin-top: 10px; font-size: 15px; max-width: 520px; }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.panel { background: #262F42; border: 1px solid #3B4658; padding: 22px; }
.panel h3 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { background: transparent; border: 1px solid #4A5670; color: #D8DCE3; padding: 10px 4px; font-size: 13px; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; }
.slot:hover { border-color: #8FA894; }
.slot.selected { background: #4B6455; border-color: #4B6455; color: var(--white); }
.day-label { font-size: 13px; color: #8891A3; margin: 16px 0 8px; }
.day-label:first-child { margin-top: 0; }
.tz-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #D8DCE3; margin-bottom: 4px; }
.tz-picker b { color: var(--white); font-weight: 600; }
.tz-select { background: #1B2333; border: 1px solid #4A5670; color: #D8DCE3; font-size: 12px; padding: 5px 8px; font-family: 'IBM Plex Sans', sans-serif; cursor: pointer; }
.tz-note { font-size: 12px; color: #8891A3; margin: 0 0 14px; line-height: 1.5; }
label { display: block; font-size: 13px; color: #B7BECB; margin: 12px 0 6px; }
label:first-child { margin-top: 0; }
input, textarea, select { width: 100%; background: #1B2333; border: 1px solid #4A5670; color: var(--white); padding: 10px 12px; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; }
textarea { resize: vertical; min-height: 56px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 0; border-top: 1px solid #3B4658; margin-top: 14px; }
.summary-line.total { font-size: 16px; font-weight: 500; color: var(--white); }
.pay-btn { width: 100%; margin-top: 16px; background: #4B6455; color: var(--white); border: none; padding: 14px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; }
.pay-btn:hover { background: #3E5548; }
.pay-note { font-size: 12px; color: #8891A3; margin-top: 10px; }
.error-text { color: #E0998A; font-size: 13px; margin-top: 4px; display: none; }
.confirm-box { display: none; border: 1px solid #4B6455; padding: 18px; margin-top: 18px; background: #1F2A24; }
.confirm-box.show { display: block; }
.confirm-box .ref { font-family: 'Source Serif 4', serif; font-size: 19px; color: #A8C2AC; }

/* Education page */
.edu-block { margin-bottom: 32px; max-width: 680px; }
.edu-label { font-size: 12px; color: var(--accent-deep); font-weight: 500; letter-spacing: 0.03em; margin-bottom: 12px; }
.edu-item { padding: 14px 0; border-top: 1px solid var(--line); }
.edu-title { font-family: 'Source Serif 4', serif; font-size: 16px; }
.edu-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* FAQ page */
.faq-list { max-width: 700px; }
.faq-item { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-family: 'Source Serif 4', serif; font-size: 16px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent-deep); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; max-width: 620px; }

/* Articles page */
.empty-state { border: 1px dashed var(--line); padding: 40px; text-align: center; color: var(--ink-soft); font-size: 15px; }

.subscribe-banner { background: var(--accent-deep); padding: 32px; margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.subscribe-text { color: var(--white); font-size: 16px; max-width: 480px; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input { width: 220px; background: var(--white); border: none; padding: 12px 14px; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; color: var(--ink); }
.subscribe-btn { background: var(--ink); color: var(--white); border: none; padding: 12px 20px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; }
.subscribe-btn:hover { background: #10151F; }
.subscribe-confirm { display: none; color: var(--white); font-size: 13px; margin-top: 12px; width: 100%; }
.subscribe-confirm.show { display: block; }

footer { border-top: 1px solid var(--line); padding: 24px 32px; flex-shrink: 0; }
.footer-inner { max-width: 1080px; margin: 0 auto; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .approach-cols { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; }
}
