/* ══════════════════════════════════════════
   RockySD — Shared Styles
   ══════════════════════════════════════════ */

:root {
  --navy: #1a3a6b;
  --dark-navy: #0e2550;
  --bordeaux: #6d1a2a;
  --sky: #d6eaf8;
  --sky-dark: #a8cfee;
  --fossil: #f5f0e8;
  --fossil-dark: #c8b89a;
  --red-member: #c0392b;
  --gold: #c8a030;
  --white: #ffffff;
  --off-white: #fafaf8;
  --grey-light: #e8e8e4;
  --grey-mid: #999;
  --text: #1a1a2e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-light);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  animation: slideDown 0.5s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.nav-logo {
  text-decoration: none; display: flex; align-items: center;
}
.nav-logo img { height: 44px; width: auto; display: block; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--navy); text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--bordeaux);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--bordeaux); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--bordeaux); }
.nav-links a.active::after { transform: scaleX(1); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── SECTION WRAPPER ── */
section { padding: 72px 40px; }
.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--bordeaux); text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700;
  color: var(--navy); line-height: 1.15;
  margin-bottom: 8px; letter-spacing: -0.5px;
}
.section-sub {
  font-size: 15px; font-weight: 300;
  color: var(--grey-mid); margin-bottom: 40px;
}

/* ── PAGE HERO (for subpages) ── */
.page-hero {
  padding: 100px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--bordeaux); }
.page-hero p {
  font-size: 17px; font-weight: 300;
  color: #556; max-width: 560px;
  margin: 0 auto; line-height: 1.7;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--navy); color: white;
  padding: 14px 32px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(26,58,107,0.3);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,58,107,0.4); background: var(--dark-navy); }

.btn-secondary {
  background: transparent; color: var(--navy);
  padding: 14px 32px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--navy); cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--navy); color: white; }

.btn-fossil {
  background: #7a5a30; color: white;
  padding: 14px 32px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(122,90,48,0.3);
  display: inline-block;
}
.btn-fossil:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(122,90,48,0.4); }

/* ── FOOTER ── */
footer {
  background: var(--dark-navy);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  text-decoration: none; display: flex; align-items: center;
}
.footer-logo img { height: 36px; width: auto; display: block; filter: brightness(1.3); }
.footer-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.footer-right { font-size: 12px; color: rgba(255,255,255,0.3); text-align: right; }
.footer-site {
  font-size: 14px; color: #7aaae0; font-weight: 500;
  text-decoration: none;
}

/* ── CARD STYLES (shared) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 0 16px; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--grey-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  section { padding: 48px 20px; }
  .page-hero { padding: 80px 20px 40px; }
  .card-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-right { text-align: center; }
}
