/*
Theme Name: Muscle Shoals Electric Board
Theme URI: https://www.mseb.net
Author: MSEB
Description: Official theme for the Muscle Shoals Electric Board — refined industrial editorial aesthetic.
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: mseb-theme
*/

/* ─────────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:           #0B1F3A;
  --ink-dark:      #060F1E;
  --ink-mid:       #162D52;
  --copper:        #C8860A;
  --copper-light:  #E09A18;
  --copper-pale:   #F8EDD4;
  --copper-glow:   rgba(200,134,10,0.18);
  --cream:         #F5F0E8;
  --cream-dark:    #EDE8DC;
  --white:         #FFFFFF;
  --steel:         #6B7D8F;
  --steel-light:   #A8B6C2;
  --border:        #D9D1C2;
  --border-ink:    rgba(255,255,255,0.10);
  --sage:          #2A5C45;

  /* Typography */
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-ui:      'Oswald', 'Impact', sans-serif;
  --font-body:    'Lora', 'Georgia', serif;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-w:       1240px;
  --nav-h:       54px;
  --topbar-h:    34px;
  --radius:      3px;
  --radius-lg:   8px;

  /* Effects */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.10);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.18);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);

  /* Grain texture — subtle noise overlay for tactile depth */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)' opacity='0.042'/%3E%3C/svg%3E");
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

a {
  color: var(--copper);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--copper-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 400;
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease),
              box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-copper {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}
.btn-copper:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(200,134,10,0.4);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--ink-mid); color: var(--white); }

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-white:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-ghost-copper {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}
.btn-ghost-copper:hover {
  background: var(--copper);
  color: var(--white);
}

/* Label/eyebrow */
.label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.section-head { margin-bottom: var(--space-xl); }
.section-head .label { display: block; margin-bottom: 10px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 560px;
  line-height: 1.7;
}
.rule {
  width: 40px;
  height: 2px;
  background: var(--copper);
  margin: 12px 0 20px;
}

/* Fade-in animation utility */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOP BAR
───────────────────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--ink-dark);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(200,134,10,0.25);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar-group {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.topbar-item svg { opacity: 0.65; flex-shrink: 0; }
.topbar-item a { color: var(--steel-light); }
.topbar-item a:hover { color: var(--copper); }
.topbar-cta {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  padding: 4px 14px;
  border: 1px solid rgba(200,134,10,0.45);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.topbar-cta:hover {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--ink);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logotype */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 46px;
  height: 46px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text-top {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.logo-text-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--steel-light);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-ink);
  color: var(--white);
  padding: 8px 10px;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.1rem;
  line-height: 1;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────────────────────
   PRIMARY NAVIGATION
───────────────────────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--ink-mid);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 2px solid var(--copper);
  position: relative;
  z-index: 850;
}
.nav-menu {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu > li { position: relative; flex-shrink: 0; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: var(--nav-h);
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  background: rgba(200,134,10,0.12);
  color: var(--copper-light);
  border-bottom-color: var(--copper);
}
.nav-menu > li > a .arrow {
  font-size: 0.5rem;
  opacity: 0.6;
  transition: transform 0.2s var(--ease);
}
.nav-menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-top: 3px solid var(--copper);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 1000;
}
.nav-menu > li:hover .nav-dropdown,
.nav-menu > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 11px 18px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.15s, padding-left 0.15s;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover {
  background: var(--cream);
  color: var(--copper);
  padding-left: 24px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SLIDER
───────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  height: 620px;
  background: var(--ink-dark);
}

/* Hero slides with real photos */
@keyframes kb-drift {
  0%   { background-position: center 50%; }
  100% { background-position: 54% 47%; }
}
.hero-slide--photo {
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
}
.hero-slide--photo.active {
  animation: kb-drift 12s ease-out forwards;
}
.hero-slide--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 15, 30, 0.72) 0%,
    rgba(6, 15, 30, 0.48) 55%,
    rgba(6, 15, 30, 0.28) 100%
  );
  z-index: 1;
}

/* Dot-grid atmospheric background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(200,134,10,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
  pointer-events: none;
}

/* Warm glow in lower-left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,134,10,0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero-slide.active { opacity: 1; z-index: 3; }

.hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* Large decorative background numeral */
.hero-deco {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: clamp(160px, 18vw, 280px);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--copper);
}

.hero-slide-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-slide-inner h1 em {
  font-style: normal;
  color: var(--copper-light);
}

.hero-slide-inner p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider controls */
.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.25s, width 0.25s;
  padding: 0;
}
.hero-dot.active {
  background: var(--copper);
  width: 40px;
}
.hero-arrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.hero-arrow:hover {
  background: var(--copper);
  border-color: var(--copper);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ALERT BANNER
───────────────────────────────────────────────────────────────────────────── */
.alert-banner {
  background: var(--copper-pale);
  border-bottom: 1px solid rgba(200,134,10,0.3);
}
.alert-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}
.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--copper);
}
.alert-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #6B3F00;
  flex: 1;
}
.alert-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(107,63,0,0.5);
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.alert-dismiss:hover { color: #6B3F00; }

/* ─────────────────────────────────────────────────────────────────────────────
   QUICK ACTIONS BAR
───────────────────────────────────────────────────────────────────────────── */
.quick-actions {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.qa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 16px;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.qa-card:last-child { border-right: none; }
.qa-card:first-child { background: var(--copper); }
.qa-card:first-child:hover { background: var(--copper-light); }
.qa-card:not(:first-child):hover { background: rgba(255,255,255,0.05); }

.qa-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--copper);
  transition: transform 0.25s var(--ease);
}
.qa-card:not(:first-child):hover::after { transform: translateX(-50%) scaleX(1); }

.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-icon svg { width: 20px; height: 20px; stroke: var(--white); fill: none; }
.qa-card:first-child .qa-icon { background: rgba(255,255,255,0.22); }

.qa-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.25;
}
.qa-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin-top: -4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STATS BAR
───────────────────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--ink-dark);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(200,134,10,0.2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.stat-item {
  background: var(--ink-dark);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}
.stat-number {
  font-family: var(--font-ui);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────────────────────────────────────── */
.section-about {
  padding: var(--space-3xl) 0;
  background: var(--grain), var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--space-3xl);
  align-items: center;
}
.about-content p {
  font-size: 1rem;
  color: var(--steel);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.about-content p:last-of-type { margin-bottom: var(--space-xl); }
.about-aside {
  position: relative;
}
.about-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--copper-glow);
  pointer-events: none;
}
.about-card-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-card-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--copper);
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 20px;
  font-style: italic;
}
.about-stat-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.about-stat-item:last-child { border-bottom: none; }
.about-stat-key {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.about-stat-val {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--copper-light);
  letter-spacing: 0.02em;
}

/* About section photo */
.about-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  display: block;
  box-shadow: var(--shadow-md), 6px 6px 0 0 var(--copper);
  filter: saturate(0.88) contrast(1.06);
}

/* Header logo image */
.logo-img {
  height: 90px;
  width: auto;
  display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RATES PREVIEW STRIP
───────────────────────────────────────────────────────────────────────────── */
.rates-strip {
  background: var(--cream);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rates-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.rates-strip-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}
.rates-strip-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  font-style: italic;
}
.rates-cards {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.rate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-xl);
  min-width: 200px;
}
.rate-card.highlight { border-top-color: var(--copper); }
.rate-name {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 6px;
}
.rate-row:last-child { margin-bottom: 0; }
.rate-row-key {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--steel);
  font-style: italic;
}
.rate-row-val {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.rate-effective {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--steel-light);
  font-style: italic;
  text-align: center;
  margin-top: var(--space-md);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESOURCES SECTION
───────────────────────────────────────────────────────────────────────────── */
.section-resources {
  padding: var(--space-3xl) 0;
  background: var(--grain), var(--cream-dark);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.res-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.res-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.res-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: var(--cream);
}
.res-icon svg { width: 22px; height: 22px; }
.res-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 8px;
  color: var(--ink);
}
.res-card p {
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: var(--steel);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-md);
}
.res-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.res-link {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, gap 0.15s;
}
.res-link::after {
  content: '→';
  font-size: 0.8rem;
  color: var(--copper);
}
.res-link:hover { color: var(--copper); gap: 12px; }

/* ─────────────────────────────────────────────────────────────────────────────
   STAFF SECTION
───────────────────────────────────────────────────────────────────────────── */
.section-staff {
  padding: var(--space-3xl) 0;
  background: var(--white);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}
.staff-card {
  text-align: center;
}
.staff-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  border: 3px solid var(--copper-pale);
  transition: border-color 0.2s;
}
.staff-card:hover .staff-avatar { border-color: var(--copper); }
.staff-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 4px;
}
.staff-title {
  font-family: var(--font-ui);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}
.staff-email {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--copper);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CREW GALLERY
───────────────────────────────────────────────────────────────────────────── */
.section-crew {
  padding: var(--space-3xl) 0;
  background: var(--grain), var(--cream);
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.crew-photo {
  overflow: hidden;
  border-radius: var(--radius);
  height: 140px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.crew-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(200, 134, 10, 0.0) 0%,
    rgba(6, 15, 30, 0.0) 100%
  );
  transition: background 0.4s var(--ease);
  z-index: 1;
}
.crew-photo:hover::after {
  background: linear-gradient(
    160deg,
    rgba(200, 134, 10, 0.22) 0%,
    rgba(6, 15, 30, 0.38) 100%
  );
}
.crew-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.92) contrast(1.04);
}
.crew-photo:hover img {
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.06);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TVA PARTNERSHIP BAND
───────────────────────────────────────────────────────────────────────────── */
.section-tva {
  background: var(--ink);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.section-tva::before {
  content: 'TVA';
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: 160px;
  font-weight: 700;
  color: rgba(255,255,255,0.022);
  pointer-events: none;
  letter-spacing: -0.04em;
}
.tva-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
.tva-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  font-style: italic;
  margin-bottom: 8px;
}
.tva-text p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  line-height: 1.7;
}
.tva-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tva-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 10px 20px;
  text-align: center;
  min-width: 130px;
}
.tva-badge-top {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.tva-badge-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  margin-top: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEWS / ANNOUNCEMENTS SECTION
───────────────────────────────────────────────────────────────────────────── */
.section-news {
  padding: var(--space-3xl) 0;
  background: var(--grain), var(--cream);
}
.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
}
.news-list { display: flex; flex-direction: column; }
.news-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}
.news-item:first-child { padding-top: 0; }
.news-meta {
  font-family: var(--font-ui);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 6px;
}
.news-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 6px;
}
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--copper); }
.news-item p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--steel);
  line-height: 1.7;
}

/* Sidebar info boxes */
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.info-box-title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.info-box p, .info-box li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--steel);
  line-height: 1.65;
}
.info-box li {
  padding: 5px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.info-box li:last-child { border-bottom: none; }
.info-box li a { color: var(--ink); }
.info-box li a:hover { color: var(--copper); }

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT STRIP (above footer)
───────────────────────────────────────────────────────────────────────────── */
.contact-strip {
  background: var(--ink-dark);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(200,134,10,0.2);
}
.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
}
.cs-item {
  background: var(--ink-dark);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cs-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200,134,10,0.15);
  border: 1px solid rgba(200,134,10,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-icon svg { width: 16px; height: 16px; stroke: var(--copper); fill: none; }
.cs-text-label {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 4px;
}
.cs-text-val {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  font-style: italic;
}
.cs-text-val a { color: var(--white); }
.cs-text-val a:hover { color: var(--copper-light); }
.cs-text-note {
  font-size: 0.75rem;
  color: var(--steel-light);
  font-style: normal;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-dark);
  padding: var(--space-3xl) 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
  text-decoration: none;
}
.footer-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.footer-logo-mark svg { width: 100%; height: 100%; }
.footer-logo-text {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
}
.footer-logo-text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--steel-light);
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-style: italic;
  text-transform: none;
}
.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--steel-light);
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--steel-light);
}
.footer-contact-line svg { width: 13px; height: 13px; stroke: var(--copper); fill: none; flex-shrink: 0; margin-top: 3px; }
.footer-contact-line a { color: var(--steel-light); }
.footer-contact-line a:hover { color: var(--copper); }

.footer-col h5 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-md);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--steel-light);
  font-style: italic;
  transition: color 0.15s, padding-left 0.15s;
  display: block;
}
.footer-col ul li a:hover { color: var(--copper); padding-left: 4px; }

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-copy {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}
.footer-bottom-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-links a:hover { color: var(--copper); }

/* ─────────────────────────────────────────────────────────────────────────────
   INNER PAGE STYLES
───────────────────────────────────────────────────────────────────────────── */
.page-banner {
  background: var(--ink);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200,134,10,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,134,10,0.12) 0%, transparent 70%);
}
.page-banner-inner { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  color: var(--white);
  margin-bottom: 10px;
}
.page-banner p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
}

.page-content-wrap { padding: var(--space-2xl) 0 var(--space-3xl); }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}
.page-main h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  margin: var(--space-xl) 0 10px;
  color: var(--ink);
}
.page-main h2:first-child { margin-top: 0; }
.page-main h3 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: var(--space-lg) 0 8px;
}
.page-main p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.page-main ul, .page-main ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.page-main ul { list-style: none; }
.page-main ul li {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--steel);
  line-height: 1.7;
  padding: 5px 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.page-main ul li::before {
  content: '—';
  color: var(--copper);
  flex-shrink: 0;
  font-family: var(--font-ui);
}
.page-main ol { list-style: decimal; }
.page-main ol li {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Rate tables */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0 var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.rate-table thead tr {
  background: var(--ink);
  color: var(--white);
}
.rate-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.rate-table tbody tr { border-bottom: 1px solid var(--border); }
.rate-table tbody tr:hover { background: var(--cream); }
.rate-table td {
  padding: 11px 16px;
  color: var(--steel);
}
.rate-table td:last-child {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* Page sidebar */
.page-sidebar {}
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.sidebar-box-title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-box ul li { margin-bottom: 8px; padding: 5px 0; border-bottom: 1px solid var(--cream-dark); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a {
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: var(--ink);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, gap 0.15s;
}
.sidebar-box ul li a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--copper);
  font-style: normal;
  font-family: var(--font-ui);
}
.sidebar-box ul li a:hover { color: var(--copper); gap: 10px; }
.sidebar-box p {
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 8px;
}
.sidebar-box a.btn { width: 100%; justify-content: center; margin-top: 10px; }

/* Notice box */
.notice-box {
  background: var(--copper-pale);
  border: 1px solid rgba(200,134,10,0.25);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}
.notice-box p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #5C3900;
  line-height: 1.65;
  margin: 0;
}
.notice-box strong { color: #3A2200; }

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid      { grid-template-columns: 1fr; gap: var(--space-xl); }
  .resources-grid  { grid-template-columns: repeat(2, 1fr); }
  .staff-grid      { grid-template-columns: repeat(3, 1fr); }
  .crew-grid       { grid-template-columns: repeat(3, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .news-layout     { grid-template-columns: 1fr; }
  .tva-inner       { flex-direction: column; align-items: flex-start; }
  .rates-strip-inner { flex-direction: column; align-items: flex-start; }
  .contact-strip-grid { grid-template-columns: 1fr; gap: 1px; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .topbar          { display: none; }
  .header-actions .btn:not(.btn-copper) { display: none; }
  .nav-toggle      { display: flex; }
  .site-nav        { display: none; }
  .site-nav.open   { display: block; }
  .nav-menu        { flex-direction: column; overflow: visible; }
  .nav-menu > li > a { height: auto; padding: 12px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); border-bottom-width: 1px !important; }
  .nav-dropdown    { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; border-left: 3px solid var(--copper); margin-left: 20px; display: none; }
  .nav-menu > li.open .nav-dropdown { display: block; }
  .hero            { height: 440px; }
  .hero-slide-inner h1 { font-size: 2rem; }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .resources-grid  { grid-template-columns: 1fr; }
  .staff-grid      { grid-template-columns: repeat(2, 1fr); }
  .crew-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr; }
  .page-layout     { grid-template-columns: 1fr; }
  .hero-deco       { display: none; }
  .rates-cards     { flex-direction: column; }
  .page-banner h1  { font-size: 1.8rem; }
  .about-card      { margin-top: 0; }
}
