/* ============================================================
  Fitlicious Co. — Root / Shared Theme Styles
  Theme: Gold, Gray, Black, White
  File: static/css/root.css

  Purpose:
  - Consistent typography, spacing, and layout across pages
  - Professional header/footer, buttons, cards, and utilities
  - Accessible contrast + responsive defaults
============================================================ */

/* =========================
  1) Reset + Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

img,
picture {
  max-width: 100%;
  display: block;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;

  background: var(--bg);
  color: var(--text);
}

/* Visible, consistent focus (keyboard accessibility) */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 70%, white 30%);
  outline-offset: 3px;
}

/* =========================
  2) Design Tokens
========================= */
:root {
  /* Core theme */
  --black: #0b0b0d;
  --white: #ffffff;

  /* Grays */
  --gray-900: #111114;
  --gray-800: #17171b;
  --gray-700: #1f1f25;
  --gray-500: #8b8b95;

  /* Accent (Gold) */
  --gold: #d4af37;       /* classic gold */
  --gold-2: #f2c94c;     /* brighter gold for hover */

  /* Semantic */
  --bg: var(--gray-900);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);

  /* Layout */
  --container: 1120px;
  --gutter: 20px;

  /* Effects */
  --radius: 16px;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.55);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t-med: 240ms;
}

/* =========================
  3) Utilities
========================= */
.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: 0.4px;
}

.section-subtitle {
  margin-top: 8px;
  color: var(--muted);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;

  background: var(--white);
  color: var(--black);
  padding: 10px 12px;
  border-radius: 10px;
}
.skip-link:focus {
  left: 12px;
}

/* Simple grid helper */
.grid {
  display: grid;
  gap: 16px;
}

/* =========================
  4) Header / Nav (shared)
  Used by home.html & menu.html updates
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(17, 17, 20, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: url("../data/images/Logo_gold.png") center / contain no-repeat;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* Nav links */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 0.95rem;

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;

  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
  color: var(--white);
}

/* Exit link treatment (optional) */
.nav-link-exit {
  border-color: rgba(212, 175, 55, 0.35);
}

/* Mobile header stacking */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav {
    justify-content: center;
  }
  .brand {
    justify-content: center;
  }
}

/* =========================
  5) Buttons (shared)
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
  text-decoration: none;
  font-weight: 800;

  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;

  transition:
    transform var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.18);
}

.btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

/* =========================
  6) Cards (shared)
========================= */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
  7) Footer (shared)
  Used by home.html & menu.html updates
========================= */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
}

.footer-grid {
  padding: 26px 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: start;
}

.footer-brand .footer-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.logo-display {
  width: 100%;
  height: 130px;
  border-radius: var(--radius);
  background: url("../data/images/logo_black.png") center / contain no-repeat;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.03);
}

.footer-address {
  color: var(--black);
  display: grid;
  gap: 12px;
}

.footer-address-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-link {
  color: var(--black);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.7);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  padding: 14px 0 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  border-top: 5px solid var(--gold-2);
}

.socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-socials {
  width: 30px;
  height: 30px;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.socials a:hover .footer-socials {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
}

.reservedrights {
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
  8) Legacy support (for your current index.html)
  These keep older markup working while you transition.
========================= */

/* Fixed logo (older pages) */
.logo-head {
  width: 70px;
  height: 70px;
  position: fixed;
  top: 2%;
  right: 2%;
  z-index: 60;

  background: url("../data/images/Logo_gold.png") center / contain no-repeat;
}

/* Fixed address block (older pages) */
.address {
  position: fixed;
  top: 2%;
  left: 2%;
  z-index: 60;
  color: var(--gold-2);
}

/* Simple link default */
a {
  color: var(--gold);
}
a:hover {
  color: var(--gold-2);
}