/* =========================================================
   OlgaPhoenix.com — base.css
   Shared design system. Mirror of OP-Website-Master-Prompt_v16.md.
   If a value changes here, update the master prompt too (and vice versa).

   Requires the page <head> to load the fonts:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:wght@100;200;300;400;500;600&display=swap" rel="stylesheet">

   Includes: design tokens, reset, base typography, shared utilities,
   and the canonical site NAV (.op-home-nav) + FOOTER (.op-footer).
   See AGENTS.md §6.
========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colour system (master prompt) */
  --color-black:        #0d0b08;   /* Near-black warm — nav, footer, dark sections */
  --color-dark:         #1a1714;   /* Body / section text */
  --color-gold:         #b8976a;   /* Accent / eyebrow / hover */
  --color-ivory:        #f5f0e8;   /* ALL light backgrounds — never pure #fff */
  --color-white:        #f5f0e8;   /* Alias — never use #ffffff as a background */
  --color-eyebrow:      rgba(13, 11, 8, 0.75);
  --color-body:         #1a1714;
  --color-divider:      rgba(13, 11, 8, 0.15);
  --color-placeholder:  #c8c4be;   /* Image placeholder fill */

  /* Font system (master prompt) */
  --font-display: 'Cormorant Garamond', serif;  /* Hero names, large display, footer brand, Global Reach numbers */
  --font-serif:   'Playfair Display', serif;     /* Section titles, beliefs, CTA headlines, payoff/quotes */
  --font-body:    'Montserrat', sans-serif;      /* Body, eyebrows, nav, buttons */

  /* Spacing system (master prompt — Three-Level) */
  --section-padding:    120px;  /* Top AND bottom of every section */
  --section-padding-h:  80px;   /* Default horizontal padding */
  --zone-padding:       48px;   /* Between zones within a section */
  --inline-padding-lg:  48px;   /* Title-to-body / major blocks */
  --inline-padding-sm:  28px;   /* Between paragraphs */
  --eyebrow-margin:     80px;   /* Eyebrow to first content element */

  /* Eyebrow */
  --eyebrow-size:    16px;
  --eyebrow-weight:  600;
  --eyebrow-spacing: 0.25em;

  /* Text widths */
  --width-headline: 860px;  /* Section titles / headlines */
  --width-text:     720px;  /* Body, payoff lines, lists, closing lines */
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 90px; }   /* clear the sticky nav on anchor jumps */
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ---------- BASE TYPOGRAPHY ---------- */
body {
  background: var(--color-ivory);
  color: var(--color-body);
  font-family: var(--font-body);   /* Montserrat */
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- SHARED UTILITIES ---------- */

/* Eyebrow — Montserrat 16/600 uppercase, 0.25em tracking */
.u-eyebrow {
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-spacing);
  color: var(--color-eyebrow);
}

/* Italic emphasis — Playfair italic inside Montserrat body (use sparingly; see master prompt) */
.ital {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Copyright mark in headlines/titles (Playfair). For Cormorant hero headlines, override per master prompt. */
.rm {
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0;
}

/* Text-width helpers — always centred */
.u-width-headline { max-width: var(--width-headline); margin-left: auto; margin-right: auto; }
.u-width-text     { max-width: var(--width-text);     margin-left: auto; margin-right: auto; }

/* Image placeholder — fixed pixel height set per use (master prompt) */
.u-img-placeholder {
  background: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(13, 11, 8, 0.45);
}

/* =========================================================
   SITE NAV (canonical)
   Transparent, overlays the hero. Place the <nav class="op-home-nav">
   INSIDE a position:relative hero section. White links over a dark
   hero/overlay. Add class "is-active" to the current page's link.
========================================================= */
.op-home-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 52px;
}
.op-home-nav__group { display: flex; gap: 36px; }
.op-home-nav a {
  color: rgba(255, 255, 255, 1.0);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.op-home-nav a:hover { color: #fff; }
.op-home-nav a.is-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, 0.50);
}

@media (max-width: 768px) {
  .op-home-nav { flex-direction: column; gap: 18px; padding: 24px 20px; }
  .op-home-nav__group { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .op-home-nav a { font-size: 11px; letter-spacing: 0.14em; }
}

/* ---------- STICKY NAV (after hero) ----------
   Toggled by /js/nav.js once the hero scrolls past. Shared by all pages.
*/
.op-home-nav { transition: background 0.3s ease, padding 0.3s ease; }
.op-home-nav.is-stuck {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 52px;
  background: rgba(13, 11, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(184, 151, 106, 0.25);
  animation: opNavDrop 0.35s ease both;
}
@keyframes opNavDrop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
@media (max-width: 768px) {
  .op-home-nav.is-stuck { padding: 14px 20px; }
}

/* =========================================================
   SITE FOOTER (canonical) — mirrors about_v148
   Use <footer class="op-footer"> ... with op-footer__* elements.
========================================================= */
.op-footer {
  background: var(--color-black);
  padding: var(--section-padding) var(--section-padding-h) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
  border-top: 0.5px solid rgba(255,255,255,0.15);
}
.op-footer__nav-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  display: block;
  margin-bottom: 32px;
  text-align: center;
}
.op-footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.op-footer__nav-list a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.op-footer__nav-list a:hover { color: var(--color-gold); }
.op-footer__brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.op-footer__name {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 16px;
  display: block;
}
.op-footer__name .footer-olga    { display: block; font-size: clamp(32px, 3.5vw, 48px); }
.op-footer__name .footer-phoenix { display: block; font-size: clamp(36px, 4vw, 56px); }
.op-footer__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  max-width: 260px;
  line-height: 1.7;
  text-align: center;
}
.op-footer__icons { display: flex; gap: 20px; align-items: center; justify-content: center; }
.op-footer__icons a { color: rgba(255,255,255,0.60); text-decoration: none; transition: color 0.2s; }
.op-footer__icons a:hover { color: var(--color-gold); }
.op-footer__icons svg { width: 26px; height: 26px; fill: currentColor; }
.op-footer__subscribe-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  display: block;
  margin-bottom: 16px;
  text-align: center;
}
.op-footer__subscribe-sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 32px;
  text-align: center;
}
.op-footer__form { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.op-footer__input {
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.30);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  max-width: 220px;
}
.op-footer__input::placeholder { color: rgba(255,255,255,0.40); }
.op-footer__input:focus { border-color: rgba(255,255,255,0.70); }
.op-footer__submit {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-black);
  background: #ffffff;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  align-self: center;
  margin-top: 8px;
}
.op-footer__submit:hover { background: var(--color-gold); color: #fff; }
.op-footer__bottom {
  grid-column: 1 / -1;
  border-top: 0.5px solid rgba(255,255,255,0.10);
  padding-top: 32px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .op-footer { grid-template-columns: 1fr; gap: 60px; padding: 80px 24px; }
  .op-footer__nav-heading, .op-footer__subscribe-heading { font-size: 28px; margin-bottom: 22px; }
  .op-footer__bottom { font-size: 11px; }
}
