/* ============================================================
   SITE EXTENSIONS: dropdown nav, mobile menu, session/programme
   cards, dedicated page layout. Builds on top of base.css.
   ============================================================ */

/* ---- NAV: dropdown + mobile menu ---- */
.nav-links { gap: 8px; }
.nav-links > a:not(.nav-contact-btn),
.nav-item > .nav-top-link {
  padding: 10px 14px;
  border-radius: 8px;
}
.nav-links > a:not(.nav-contact-btn):hover,
.nav-item > .nav-top-link:hover { background: rgba(28,24,21,0.05); }

.nav-item { position: relative; }
.nav-top-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text-2); text-decoration: none; text-transform: uppercase;
  background: none; border: none; cursor: pointer; font-family: "Jost", sans-serif;
  transition: color 0.2s;
}
.nav-top-link:hover { color: var(--text-1); }
.nav-caret { width: 9px; height: 9px; flex-shrink: 0; transition: transform 0.25s ease; opacity: 0.7; }
.nav-item.open .nav-caret, .nav-item:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md);
  min-width: 280px; padding: 10px; z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.nav-dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 8px;
  text-decoration: none; color: var(--text-1);
  text-transform: none; letter-spacing: normal;
  font-family: "Jost", sans-serif;
}
.nav-dropdown a:hover { background: var(--surface-2); }
.nav-dropdown a strong { font-size: 0.98rem; font-weight: 700; color: var(--text-1); }
.nav-dropdown a span { font-size: 0.86rem; font-weight: 500; color: var(--text-3); text-transform: none; letter-spacing: normal; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- LOGOS ROW (used on cards + sidebar) ---- */
.cred-row { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.cred-row img { display: block; object-fit: contain; background: transparent; }
.cred-row .cred-round { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cred-row .cred-square { width: 48px; height: auto; border-radius: 6px; }
.cred-row .ifs-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: "Lora", serif; font-weight: 700; font-size: 0.92rem; color: var(--accent); flex-shrink: 0; }

/* ---- SESSION / PROGRAMME OVERVIEW SECTIONS ---- */
.offer-section { padding: 110px 0; background: var(--surface); }
.offer-section.alt { background: var(--bg); border-top: 1px solid var(--border); }
.offer-intro { max-width: 760px; }
.offer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 50px;
}
.offer-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.offer-section.alt .offer-card { background: var(--surface); }
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.offer-card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.offer-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-card-body { padding: 32px 34px 34px; display: flex; flex-direction: column; flex: 1; }
.offer-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.offer-card h3 { font-family: "Lora", serif; font-weight: 600; font-size: 1.42rem; line-height: 1.3; color: var(--text-1); margin-bottom: 14px; }
.offer-card p.offer-excerpt { font-size: 1.05rem; font-weight: 500; color: var(--text-2); line-height: 1.85; margin-bottom: 22px; }
.offer-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Jost", sans-serif; font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--text-1); border: 1.5px solid var(--border); border-radius: 8px;
  padding: 12px 22px; transition: all 0.25s ease; flex-shrink: 0;
}
.btn-more:hover { border-color: var(--accent); color: var(--accent); }
.btn-more::after { content: "\2192"; transition: transform 0.2s; }
.btn-more:hover::after { transform: translateX(4px); }

/* ---- DEDICATED PAGE LAYOUT ---- */
.page-hero { padding: 150px 40px 70px; background: var(--bg); border-bottom: 1px solid var(--border); }
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb { font-size: 0.92rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.breadcrumb:hover { color: var(--accent); }
.page-hero h1 { font-family: "Lora", serif; font-weight: 600; font-size: clamp(2.5rem, 4.2vw, 3.6rem); line-height: 1.15; color: var(--text-1); margin-bottom: 20px; max-width: 760px; }
.page-hero-excerpt { font-size: 1.22rem; font-weight: 500; color: var(--text-2); line-height: 1.85; max-width: 700px; }

.page-body { padding: 90px 0 110px; background: var(--surface); }
.page-layout { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.page-content h2 { font-family: "Lora", serif; font-weight: 600; font-size: 1.62rem; color: var(--text-1); margin: 44px 0 16px; }
.page-content h2:first-child { margin-top: 0; }

/* ---- JOURNAL ARTICLE ---- */
.journal-article { max-width: 720px; margin: 0 auto 60px; }
.journal-article h2 { font-family: "Lora", serif; font-weight: 600; font-size: 1.5rem; color: var(--text-1); margin: 42px 0 16px; }
.journal-article h3 { font-family: "Lora", serif; font-weight: 600; font-size: 1.2rem; color: var(--text-1); margin: 30px 0 12px; }
.journal-article p { font-size: 1.1rem; font-weight: 500; color: var(--text-2); line-height: 1.9; margin-bottom: 16px; }
.journal-article strong { color: var(--text-1); }
.page-top-image { width: 100%; max-height: 420px; border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.page-top-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-content p { font-size: 1.1rem; font-weight: 500; color: var(--text-2); line-height: 1.9; margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px; padding: 0; list-style: none; }
.page-content ul li { position: relative; padding: 7px 0 7px 24px; font-size: 1.08rem; font-weight: 500; color: var(--text-2); line-height: 1.8; }
.page-content ul li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.page-content .step-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; margin: 0 0 20px; }
.page-content .step-block h3 { font-family: "Lora", serif; font-weight: 600; font-size: 1.2rem; color: var(--text-1); margin-bottom: 10px; }
.page-content .step-block p:last-child { margin-bottom: 0; }
.page-content .note-block { background: var(--surface-2); border-radius: 10px; padding: 22px 26px; font-size: 1rem; font-weight: 500; color: var(--text-2); line-height: 1.8; margin: 8px 0 28px; }
.page-content .note-block em { font-style: italic; display: block; margin-top: 8px; color: var(--text-3); font-size: 0.95rem; }

.page-sidebar { position: sticky; top: 110px; }
.sidebar-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.sidebar-logos-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sidebar-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 16px; }
.sidebar-row:first-child { padding-top: 0; }
.sidebar-row:last-of-type { border-bottom: none; }
.sidebar-row .sidebar-label { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); flex-shrink: 0; }
.sidebar-row .sidebar-value { font-size: 1.02rem; font-weight: 600; color: var(--text-1); text-align: right; }
.sidebar-invest-note { font-size: 0.92rem; font-weight: 500; color: var(--text-3); line-height: 1.7; margin-top: 14px; }
.btn-start-today {
  display: block; width: 100%; text-align: center; margin-top: 26px;
  font-family: "Jost", sans-serif; font-size: 0.98rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  background: var(--text-1); color: #fff; border-radius: 10px; padding: 17px 0;
  transition: all 0.25s ease;
}
.btn-start-today:hover { background: #2e2820; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(28,24,21,0.14); }
.inquiry-email-note { margin-top: 18px; font-size: 0.98rem; font-weight: 500; color: var(--text-3); }
.inquiry-email-note a { color: var(--accent); text-decoration: underline; }

.page-bottom-cta { background: var(--text-1); border-radius: 18px; padding: 60px 50px; text-align: center; margin-top: 70px; }
.page-bottom-cta p { color: rgba(255,255,255,0.82); font-size: 1.12rem; font-weight: 500; margin-bottom: 22px; }
.page-bottom-cta .btn-start-today { display: inline-block; width: auto; padding: 17px 44px; margin-top: 0; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: 40px; }
  .page-sidebar { position: static; }
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---- JOURNAL ---- */
.journal-grid { max-width: 880px; margin: 50px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.journal-item-card { display: block; background: var(--surface); border-radius: var(--radius); padding: 30px 32px; text-decoration: none; transition: box-shadow 0.25s, transform 0.25s; }
.journal-item-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.journal-item-card h3 { font-family: "Lora", serif; font-weight: 600; font-size: 1.18rem; color: var(--text-1); margin-bottom: 10px; }
.journal-item-card p { font-size: 0.98rem; font-weight: 500; color: var(--text-2); line-height: 1.7; margin: 0; }
.journal-cta { text-align: center; margin-top: 44px; }
@media (max-width: 700px) {
  .journal-grid { grid-template-columns: 1fr; }
}

/* ---- DISCLAIMER ---- */
.disclaimer-bar { background: var(--surface-2); padding: 22px 40px; border-top: 1px solid var(--border); }
.disclaimer-bar p { max-width: 900px; margin: 0 auto; font-size: 0.82rem; font-weight: 500; color: var(--text-3); line-height: 1.6; text-align: center; }
@media (max-width: 860px) {
  .disclaimer-bar { padding: 20px 22px; }
}

/* ---- COACH PAGE ---- */
.coach-bio-layout { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 60px; align-items: start; margin-bottom: 30px; }
.coach-photo-col { max-width: 380px; }
.coach-photo-col .about-image-frame { width: 100%; aspect-ratio: 3/4; border-radius: 20px; overflow: hidden; background: linear-gradient(145deg, #ede9e3 0%, #ddd5ca 100%); box-shadow: 0 8px 40px rgba(100,70,50,0.13); }
.coach-photo-col .about-credentials-logos { display: flex; align-items: center; gap: 16px; margin-top: 20px; }

.credentials-section { margin-top: 60px; }
.credentials-section h2 { font-family: "Lora", serif; font-weight: 600; font-size: 1.62rem; color: var(--text-1); margin-bottom: 24px; }
.cred-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 50px; }
.cred-card { background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 16px; }
.cred-card img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.cred-card .cred-card-icon-text { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: "Lora", serif; font-weight: 700; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.cred-card h4 { font-family: "Lora", serif; font-weight: 600; font-size: 1.08rem; color: var(--text-1); margin-bottom: 6px; }
.cred-card p { font-size: 0.95rem; font-weight: 500; color: var(--text-2); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .coach-bio-layout { grid-template-columns: 1fr; gap: 32px; }
  .coach-photo-col { max-width: 260px; margin: 0 auto; }
  .cred-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  nav { flex-direction: row; align-items: center; padding: 14px 22px; height: auto; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 16px 22px 40px; overflow-y: auto; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-top-link { width: 100%; justify-content: space-between; padding: 16px 6px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-dropdown {
    position: static; transform: none; box-shadow: none; border: none;
    min-width: 0; width: 100%; padding: 0 0 0 14px; max-height: 0; overflow: hidden;
    opacity: 1; visibility: visible; pointer-events: auto; transition: max-height 0.3s ease;
  }
  .nav-item.open .nav-dropdown {
    position: static; transform: none; box-shadow: none; border: none;
    min-width: 0; width: 100%; padding: 0 0 0 14px; max-height: 0; overflow: hidden;
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-item.open .nav-dropdown { max-height: 600px; }
  .nav-links > a:not(.nav-contact-btn) { padding: 16px 6px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-contact-btn { align-self: flex-start; margin-top: 18px; }
  .page-hero { padding: 130px 22px 50px; }
  .page-body { padding: 60px 0 70px; }
  .page-layout { padding: 0 22px; }
  .page-bottom-cta { padding: 44px 26px; margin-left: 22px; margin-right: 22px; }
  .offer-card-body { padding: 26px 24px 28px; }
}
