/* =========================================================
   College Corridor — main.css
   Slate & Warm Bronze Design System
   Optimized for Smartphone & Desktop Responsiveness
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────── */
:root {
  /* Slate & Warm Bronze Palette */
  --clr-bg:          #F8FAFC;       /* Soft Ice White Background */
  --clr-bg-2:        #FFFFFF;       /* Pure White Card Background */
  --clr-bg-3:        #F1F5F9;       /* Light Warm Slate Surface */
  --clr-surface:     rgba(30, 41, 59, 0.04);
  --clr-surface-2:   rgba(30, 41, 59, 0.08);
  --clr-border:      rgba(30, 41, 59, 0.12);
  --clr-border-2:    rgba(30, 41, 59, 0.22);

  --clr-slate:       #1E293B;       /* Primary Deep Slate */
  --clr-slate-mid:   #334155;       /* Medium Slate */
  --clr-slate-dark:  #0F172A;       /* Midnight Slate */
  --clr-slate-dim:   rgba(30, 41, 59, 0.08);

  --clr-bronze:      #C59B27;       /* Rich Warm Bronze */
  --clr-bronze-light:#E2B842;       /* Bright Warm Bronze */
  --clr-bronze-dark: #A17B16;       /* Deep Antique Bronze */
  --clr-bronze-dim:  rgba(197, 155, 39, 0.16);

  --clr-blue:        #2563EB;       /* Academic Royal Blue */
  --clr-teal:        #0D9488;       /* Academic Teal */
  --clr-green:       #16A34A;       /* Deep Emerald Green */
  --clr-amber:       #D97706;       /* Warm Amber */
  --clr-red:         #DC2626;       /* Crimson Red */

  --clr-text:        #0F172A;       /* Midnight Slate Text */
  --clr-text-2:      #334155;       /* Subdued Slate Text */
  --clr-text-muted:  #64748B;       /* Muted Text */
  --clr-text-dim:    #94A3B8;       /* Dim Text */

  /* Gradients */
  --grad-hero:       linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #334155 100%);
  --grad-bronze:     linear-gradient(135deg, #C59B27, #E2B842);
  --grad-slate:      linear-gradient(135deg, #1E293B, #334155);
  --grad-card:       linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --grad-section:    linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);

  /* Typography */
  --font-heading:    'Outfit', system-ui, sans-serif;
  --font-body:       'Inter', system-ui, sans-serif;

  /* Font Sizes — Reduced by 1.5-2pt for Perfect Smartphone & Desktop Fit */
  --fs-xs:    clamp(0.68rem, 1.4vw, 0.74rem);
  --fs-sm:    clamp(0.78rem, 1.6vw, 0.84rem);
  --fs-base:  clamp(0.88rem, 1.8vw, 0.96rem);
  --fs-lg:    clamp(0.96rem, 2vw, 1.08rem);
  --fs-xl:    clamp(1.08rem, 2.2vw, 1.22rem);
  --fs-2xl:   clamp(1.22rem, 2.6vw, 1.48rem);
  --fs-3xl:   clamp(1.48rem, 3.5vw, 1.88rem);
  --fs-4xl:   clamp(1.75rem, 4.2vw, 2.45rem);
  --fs-5xl:   clamp(2.05rem, 5vw, 3.15rem);
  --fs-6xl:   clamp(2.35rem, 6vw, 3.75rem);

  /* Spacing */
  --sp-1:  0.25rem;   --sp-2:  0.5rem;    --sp-3:  0.75rem;
  --sp-4:  1rem;      --sp-5:  1.25rem;   --sp-6:  1.5rem;
  --sp-8:  2rem;      --sp-10: 2.5rem;    --sp-12: 3rem;
  --sp-16: 4rem;      --sp-20: 5rem;      --sp-24: 6rem;

  --radius-sm:   6px;   --radius-md: 12px;  --radius-lg: 20px;
  --radius-xl:   28px;  --radius-2xl: 40px; --radius-full: 9999px;

  --shadow-sm:   0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md:   0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg:   0 16px 48px rgba(15, 23, 42, 0.14);
  --shadow-xl:   0 24px 64px rgba(15, 23, 42, 0.20);
  --shadow-bronze:0 8px 28px rgba(197, 155, 39, 0.35);

  --trans-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --trans-base:   250ms cubic-bezier(0.4,0,0.2,1);
  --trans-slow:   400ms cubic-bezier(0.4,0,0.2,1);
  --trans-spring: 500ms cubic-bezier(0.34,1.56,0.64,1);

  --max-w: 1280px;  --nav-h: 76px;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.22;
  font-weight: 700;
  color: #FFFFFF;
}

/* ── Layout ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--lg { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-6); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: var(--sp-4); } }

/* ── Typography ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--clr-text-muted); }
.text-bronze { color: var(--clr-bronze-dark); }
.text-slate  { color: var(--clr-slate); }

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-slate);
  background: var(--clr-bronze-dim);
  border: 1px solid rgba(197,155,39,0.45);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.section-heading { max-width: 720px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: var(--fs-4xl); font-weight: 800; line-height: 1.12; margin-bottom: var(--sp-4); color: var(--clr-slate-dark); }
.section-heading p  { font-size: var(--fs-lg); color: var(--clr-text-2); line-height: 1.7; }

.grad-text {
  color: #0F172A;
  background: none;
  -webkit-text-fill-color: initial;
}

.grad-text-bronze {
  color: #C59B27;
  background: none;
  -webkit-text-fill-color: initial;
}

/* ── Tag / Badge ──────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  background: #FFFFFF;
  color: var(--clr-text-2);
  white-space: nowrap;
  transition: all var(--trans-base);
}
.tag:hover { border-color: var(--clr-bronze-dark); color: var(--clr-slate); background: var(--clr-bronze-dim); }
.tag--bronze{ border-color: rgba(197,155,39,0.6); background: var(--clr-bronze-dim); color: var(--clr-slate-dark); }
.tag--slate { border-color: rgba(30,41,59,0.4); background: var(--clr-slate-dim); color: var(--clr-slate); }
.tag--blue  { border-color: rgba(37,99,235,0.3); background: rgba(37,99,235,0.08); color: var(--clr-blue); }
.tag--green { border-color: rgba(22,163,74,0.3); background: rgba(22,163,74,0.08); color: var(--clr-green); }

/* ── Utilities ────────────────────────────────────────── */
.divider { width: 100%; height: 1px; background: var(--clr-border); margin-block: var(--sp-8); }

.disclaimer-block {
  background: #FFFFFF;
  border: 1px solid var(--clr-border-2);
  border-left: 4px solid var(--clr-bronze);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--clr-text-2);
  line-height: 1.7;
  margin-top: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.note-block {
  background: rgba(30, 41, 59, 0.05);
  border-left: 4px solid var(--clr-slate);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  margin-block: var(--sp-6);
}
.note-block.gold { background: var(--clr-bronze-dim); border-left-color: var(--clr-bronze-dark); }

/* Table base */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-slate); padding: var(--sp-3) var(--sp-4); border-bottom: 2px solid var(--clr-border-2); text-align: left; background: var(--clr-surface); }
.data-table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--clr-border); color: var(--clr-text-2); vertical-align: middle; }
.data-table tr:hover td { background: rgba(30,41,59,0.03); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--clr-border); background: #FFFFFF; -webkit-overflow-scrolling: touch; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: rgba(30,41,59,0.3); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-slate); }

/* Selection */
::selection { background: var(--clr-bronze-dim); color: var(--clr-slate-dark); }

/* Focus */
:focus-visible { outline: 2px solid var(--clr-bronze-dark); outline-offset: 3px; border-radius: var(--radius-sm); }
:target { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Responsive utils */
@media (max-width: 768px) { .hide-mobile  { display: none !important; } }
@media (min-width: 769px) { .hide-desktop { display: none !important; } }

.strategy-safe        { background: rgba(22,163,74,0.1); border-color: rgba(22,163,74,0.4); color: var(--clr-green); }
.strategy-balanced    { background: rgba(197,155,39,0.12); border-color: rgba(197,155,39,0.5); color: var(--clr-bronze-dark); }
.strategy-aggressive  { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.4); color: var(--clr-red); }

/* Smartphone Fit & Viewport Stability */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  touch-action: manipulation;
}
