/* ==========================================================================
   RYG main site — shared styles (index.html, privacy.html, future pages)
   Contains: design tokens, reset, header (nav + mobile menu), footer.
   Page-specific styles live in their own file (home.css, privacy.css).
   Do NOT put page content styles here.
   ========================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  /* Brand navy scale */
  --navy-dark: #071a38;    /* headings, footer, dark sections */
  --navy: #102f5c;         /* primary buttons, active states */
  --navy-mid: #274d78;

  /* Accent blues (the main site has NO gold) */
  --accent: #6f92bc;       /* links hover, small accents */
  --accent-light: #b7cce2; /* highlights on dark backgrounds */
  --accent-ink: #31577f;   /* eyebrow labels on light backgrounds */

  /* Neutrals */
  --white: #fff;
  --off-white: #f4f7fb;    /* light section background */
  --slate: #647992;        /* secondary text */
  --light-blue: #dbe6f2;   /* body text on dark backgrounds */
  --text-dark: #071a38;
  --text-body: #2c4058;
  --line: #dfe7f0;         /* borders on light backgrounds */

  /* Header */
  --nav-height: 68px;
  --nav-bg: rgba(255, 255, 255, .98);
  --nav-link: #243b55;

  --radius: 12px;
  --transition: .3s ease;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 125;
  background: var(--nav-bg);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img {
  display: block;
  width: 205px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  background: var(--white);
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy-dark); }

.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: .45rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .8rem;
  transition: background var(--transition);
}
.nav-links .nav-cta:hover { background: var(--navy-dark); color: var(--white); }

/* Language switcher (buttons are generated by site.js from the language list) */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: #edf2f7;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  color: #5a6f88;
  letter-spacing: .05em;
  transition: all var(--transition);
}
.lang-btn.active { background: var(--navy); color: var(--white); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 120;
  background: var(--white);
  flex-direction: column;
  gap: 1.5rem;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  color: var(--navy-dark);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 1px solid #e2e9f1;
}
.mobile-menu > a.mobile-cta { color: var(--accent); }
.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.mobile-lang-label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 3rem 2rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 26px; width: auto; margin-bottom: .6rem; }
.footer-brand p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  line-height: 1.6;
  margin-top: .5rem;
  max-width: 220px;
}
.footer-brand .ryg-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: .05em;
}
/* LinkedIn link (brand area): grey icon, blue icon + text on hover */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-social img { display: block; width: 22px; height: 22px; }
.footer-social .is-hover,
.footer-social:hover img { display: none; }
.footer-social:hover .is-hover { display: block; }
.footer-social:hover { color: var(--accent); }
.footer-brand .ryg-tag {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-col h2 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 1rem;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-col .footer-soon { color: rgba(255, 255, 255, .2); font-size: .78rem; }
/* Footer language list: clickable codes that look exactly like plain text */
.footer-col .lang-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .78rem;
  color: rgba(255, 255, 255, .25);
}
.footer-bottom a { color: inherit; text-decoration: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .nav-logo img { width: 175px; height: 50px; }
  .footer-top { grid-template-columns: 1fr; }
}
