@tailwind base;
@tailwind components;
@tailwind utilities;

/* ── Navy + Gold Theme — CSS Custom Properties ── */
/* To swap themes later: update these variables only. */

:root {
  /* Nav */
  --nav-bg:          #0f2c4a;
  --nav-muted:       rgba(255, 255, 255, 0.52);
  --gold:            #c9a84c;
  --gold-light:      #e8c97a;

  /* Page backgrounds */
  --page-bg:         #f5f2eb;
  --section-bg:      #ffffff;
  --section-alt:     #f5f2eb;
  --card-bg:         #faf8f3;

  /* Text */
  --heading:         #0a1e30;
  --body:            #3a5068;
  --muted:           #6b7f90;

  /* Borders */
  --border:          #ddd8cc;
  --border-strong:   #c5bfb0;

  /* Tags / Pills */
  --tag-bg:          #e8f0f7;
  --tag-txt:         #0f2c4a;
  --tag-border:      #b5cfe8;

  /* Dark stat bar */
  --dark-bg:         #0a1e30;
  --dark-border:     rgba(255, 255, 255, 0.08);
  --dark-muted:      rgba(255, 255, 255, 0.42);

  /* Photo placeholders */
  --photo-bg:        #c8c2b4;
  --photo-icon:      rgba(0, 0, 0, 0.22);
  --photo-overlay:   rgba(10, 30, 48, 0.82);

  /* Hero badge */
  --badge-bg:        rgba(255, 255, 255, 0.95);

  /* CTA banner */
  --cta-inner:       #061422;
  --cta-heading:     #f5f2eb;

  /* Footer */
  --footer-bg:       #0f2c4a;
  --footer-copy-bg:  #0a1e30;
}

.dark {
  --nav-bg:          #0a1825;
  --nav-muted:       rgba(255, 255, 255, 0.42);
  --gold:            #c9a84c;
  --gold-light:      #e8c97a;

  --page-bg:         #0d1520;
  --section-bg:      #0f1c28;
  --section-alt:     #0a1520;
  --card-bg:         #111e2c;

  --heading:         #e8e4dc;
  --body:            #7a9ab4;
  --muted:           #5a7a90;

  --border:          #1e3040;
  --border-strong:   #2a4055;

  --tag-bg:          #162438;
  --tag-txt:         #c9a84c;
  --tag-border:      #253850;

  --dark-bg:         #070f17;
  --dark-border:     rgba(255, 255, 255, 0.06);
  --dark-muted:      rgba(255, 255, 255, 0.32);

  --photo-bg:        #1a2530;
  --photo-icon:      rgba(255, 255, 255, 0.18);
  --photo-overlay:   rgba(5, 12, 22, 0.88);

  --badge-bg:        rgba(15, 28, 42, 0.96);

  --cta-inner:       #04090f;
  --cta-heading:     #e8e4dc;

  --footer-bg:       #0a1825;
  --footer-copy-bg:  #070f17;
}

/* ── Base ── */
* { box-sizing: border-box; }

body {
  background-color: var(--page-bg);
  color: var(--heading);
  font-family: 'Inter', system-ui, sans-serif;
  transition: background-color 0.2s, color 0.2s;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1.22; }
p { color: var(--body); line-height: 1.72; }

/* ── Scroll behaviour ── */
html { scroll-behavior: smooth; }

/* ── Utility classes ── */
.gold          { color: var(--gold); }
.bg-nav        { background: var(--nav-bg); }
.bg-page       { background: var(--page-bg); }
.bg-section    { background: var(--section-bg); }
.bg-section-alt{ background: var(--section-alt); }
.bg-card       { background: var(--card-bg); }
.bg-dark       { background: var(--dark-bg); }
.border-theme  { border-color: var(--border); }

/* ── Button base ── */
.btn-primary {
  background: var(--nav-bg);
  color: var(--gold);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: opacity 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--heading);
  font-weight: 400;
  padding: 10px 18px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--nav-bg);
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: opacity 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn-gold:hover { opacity: 0.9; }

/* ── Section labels ── */
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 5px;
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 10px;
}

/* ── Tags / Pills ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tag-bg);
  color: var(--tag-txt);
  border: 0.5px solid var(--tag-border);
  font-size: 0.6875rem;
  padding: 4px 13px;
  border-radius: 100px;
  font-weight: 500;
}

/* ── Google stars ── */
.g-stars { color: #f5a623; }

/* ── Divider ── */
.divider { border-top: 0.5px solid var(--border); }
