/* ============================================================
   The Climatology — Renoir-style theme
   Dark cinematic · vintage serif · gold→orange · glass-morphism
   Vanilla CSS (no framework). Shared across all pages.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --cream: #FDF8F3;
  --gold: #C9A962;
  --orange: #D4763E;
  --charcoal: #2D2D2D;
  --grad: linear-gradient(90deg, #C9A962 0%, #D4763E 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.10);
  --maxw: 1400px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- Typography helpers ---- */
.font-vintage { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35); margin-bottom: 1rem;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* ---- Layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 1.5rem; position: relative; z-index: 1; }
.section-narrow { max-width: 56rem; margin: 0 auto; }

h1, h2, h3 { line-height: 1.1; color: #fff; }
.h2 { font-size: clamp(26px, 4vw, 38px); }
.h3 { font-size: clamp(22px, 3vw, 30px); }

/* ============================================================
   Flowing-light background (renoir's animated orbs)
   ============================================================ */
.flow-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.orb-1 { width: 600px; height: 600px; background: rgba(106, 48, 64, 0.55);  top: 5%;  left: -8%;  animation: flow1 22s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; background: rgba(128, 96, 48, 0.45);  top: 35%; right: -6%; animation: flow2 26s ease-in-out infinite; }
.orb-3 { width: 560px; height: 560px; background: rgba(58, 80, 128, 0.40);  top: 62%; left: 5%;   animation: flow3 24s ease-in-out infinite; }
.orb-4 { width: 480px; height: 480px; background: rgba(80, 64, 112, 0.40);  top: 85%; right: 10%; animation: flow1 28s ease-in-out infinite; }
@keyframes flow1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,40px); } }
@keyframes flow2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,50px); } }
@keyframes flow3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-50px); } }

/* ============================================================
   Navigation (reuses existing class names; restyled)
   ============================================================ */
/* Sticky floating capsule — hidden, then slides down + fades in past the hero (renoir-style) */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1500; padding: 1rem 1.5rem;
  transform: translateY(-130%); opacity: 0; pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.navbar.revealed { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-container {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.6rem 0.5rem 1.5rem;
  background: rgba(10, 10, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Hero nav — transparent bar with a glass link-pill, sits over the hero and scrolls away */
.hero-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 1.75rem;
}
.hero-nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  background: rgba(255, 255, 255, 0.10); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 0.5rem 0.7rem 0.5rem 1.5rem;
}
.nav-logo a {
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: 1.4rem; color: #fff; letter-spacing: 0.3px;
}
.nav-menu { display: flex; gap: 1.75rem; align-items: center; }
.nav-link {
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease; cursor: pointer; background: none; border: none;
}
.nav-link:hover { color: #fff; }

/* Models dropdown */
.nav-dropdown { position: relative; }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; background: rgba(18, 18, 18, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: 16px; padding: 0.6rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-top: 0; padding-top: 0.9rem;
}
.nav-dropdown:hover .dropdown-content,
.nav-dropdown.open .dropdown-content { display: block; }
.dropdown-content a {
  display: block; padding: 0.6rem 0.9rem; border-radius: 10px;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); white-space: nowrap;
}
.dropdown-content a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* Renoir cross-link pill in nav */
.nav-cta {
  padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: #fff; color: #0a0a0a; white-space: nowrap; transition: background 0.25s ease;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.88); }

.nav-mobile-cta { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border-radius: 16px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease; white-space: nowrap; border: none;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-glass {
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn-white { background: #fff; color: var(--charcoal); }
.btn-white:hover { background: rgba(255, 255, 255, 0.9); }

/* ============================================================
   Glass cards
   ============================================================ */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 24px; backdrop-filter: blur(16px);
}

/* ---- Alternating text/image rows (renoir-style methodology) ---- */
.method { max-width: 1100px; margin: 5rem auto 0; padding: 0 1.5rem; position: relative; z-index: 1; }
.method-head { text-align: center; margin-bottom: 3.5rem; }
.method-row { display: flex; flex-direction: column; gap: 2rem; align-items: center; margin-bottom: 4.5rem; }
.method-row > div { flex: 1; width: 100%; }
.method-chip {
  display: inline-block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4); background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 0.4rem 1rem; margin-bottom: 1.25rem;
}
.method-row h2 {
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); color: #fff; line-height: 1.15; margin-bottom: 1rem;
}
.method-row p { color: rgba(255, 255, 255, 0.55); line-height: 1.75; font-size: 1.02rem; }
.method-row img { width: 100%; border-radius: 20px; border: 1px solid var(--glass-border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); display: block; }
.method-cap { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); margin-top: 0.6rem; text-align: center; }
/* full-width workflow block + recommendation-level tiers */
.method-flow { margin-bottom: 4.5rem; }
.method-flow > p { color: rgba(255, 255, 255, 0.55); line-height: 1.75; font-size: 1.02rem; max-width: 760px; }
.rl-tiers { margin: 1.5rem 0 0; max-width: 760px; }
.rl-tier { margin-bottom: 1.15rem; }
.rl-tier > b { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.rl-tier span { color: rgba(255, 255, 255, 0.55); font-size: 0.96rem; line-height: 1.65; }
.rl-good > b { color: #6ba3e8; }
.rl-mid  > b { color: #5ec27d; }
.rl-low  > b { color: #e87a5e; }
.method-flow-img { width: 100%; border-radius: 16px; border: 1px solid var(--glass-border); display: block; }
@media (max-width: 600px) { .rl-tier { grid-template-columns: 1fr; gap: 0.25rem; } }
@media (min-width: 760px) {
  .method-row { flex-direction: row; gap: 4.5rem; }
  .method-row.reverse { flex-direction: row-reverse; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative; z-index: 1; padding: 4rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06); text-align: center;
}
.site-footer .foot-logo { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.5rem; color: rgba(255, 255, 255, 0.2); }
.site-footer .foot-links { margin-top: 1rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.3); }
.site-footer .foot-links a { transition: color 0.25s ease; }
.site-footer .foot-links a:hover { color: rgba(255, 255, 255, 0.7); }
.site-footer .foot-sep { margin: 0 0.6rem; }
.site-footer .foot-tag { margin-top: 0.6rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.2); }

/* ============================================================
   Scroll fade-in
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .nav-menu { display: none; }
  .nav-mobile-cta { display: inline-flex; }
  .hero-nav { padding: 1.25rem 1.5rem; }
  .hero-nav-links { background: transparent; border: none; backdrop-filter: none; padding: 0; gap: 0; }
  .hero-nav-links .nav-link { display: none; }
  .section { padding: 4.5rem 1.25rem; }
}
