/* ===========================
   Wyckmont — Base Styles
   =========================== */

:root {
  --navy-deep: #0a1a2f;
  --navy-mid: #10233d;
  --navy-light: #1e3a5f;
  --gold: #c9a34a;
  --gold-soft: #d9bb74;
  --ink: #1a2433;
  --body-text: #33404f;
  --bg-page: #f5f6f7;
  --border-hairline: #e2e5e9;
  --white: #ffffff;

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===========================
   Navbar
   =========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(201, 163, 74, 0.2);
}

.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.navbar-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-links a:hover,
.navbar-links a.is-active {
  color: var(--gold-soft);
}

/* ===========================
   Hero
   =========================== */

.hero {
  background:
    linear-gradient(160deg, rgba(10,26,47,0.94), rgba(10,26,47,0.88)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 42px);
  background-color: var(--navy-deep);
  padding: 96px 0 88px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 600;
  color: var(--white);
  max-width: 15ch;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero p {
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 58ch;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 32px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(201, 163, 74, 0.6);
}

/* ===========================
   Section base
   =========================== */

section {
  padding: 88px 0;
}

.section-white { background: var(--white); }
.section-tint { background: var(--bg-page); }

h2.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--body-text);
  max-width: 64ch;
  margin-bottom: 48px;
}

.section-index {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Scroll-reveal (progressive enhancement — content is visible without JS/animation) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===========================
   About Wyckmont — editorial two-column
   =========================== */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}

.about-grid .section-heading {
  margin-bottom: 0;
}

.about-grid p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--body-text);
  margin-bottom: 22px;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===========================
   Hero load-in
   =========================== */

.hero h1,
.hero p,
.hero .btn-primary {
  opacity: 0;
  animation: heroIn 0.7s ease forwards;
}

.hero h1 { animation-delay: 0.05s; }
.hero p { animation-delay: 0.2s; }
.hero .btn-primary { animation-delay: 0.35s; }

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

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .hero .btn-primary {
    opacity: 1;
    animation: none;
  }
}

/* ===========================
   Tabs (Capital / Transactions / Governance)
   =========================== */

.tabs-menu {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-link {
  flex: 1 1 0;
  min-width: 200px;
  background: var(--navy-deep);
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-width 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tab-link:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(10, 26, 47, 0.5);
}

.tab-link.is-current {
  background: var(--navy-light);
  border-width: 3px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.15s ease;
}

.tab-pane.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-pane h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.tab-pane p {
  margin-bottom: 16px;
  color: var(--body-text);
}

.tab-pane p:last-child {
  margin-bottom: 0;
}

/* ===========================
   Core Mandates — bordered card system with domain index
   =========================== */

.mandate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mandate-card {
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 32px 28px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mandate-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(10, 26, 47, 0.35);
}

.mandate-card .section-index { margin-bottom: 18px; }

.mandate-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.mandate-card p {
  font-size: 0.97rem;
  color: var(--body-text);
}

/* ===========================
   Authority Scales — icon badge treatment
   =========================== */

.authority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.authority-item .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.authority-item:hover .icon-badge {
  background: var(--navy-light);
  transform: scale(1.06);
}

.authority-item .icon-badge svg {
  width: 22px;
  height: 22px;
  color: var(--gold-soft);
}

.authority-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.authority-item p {
  font-size: 0.97rem;
  color: var(--body-text);
}

/* ===========================
   How Wyckmont Operates — connected flow treatment
   =========================== */

.operates-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.operates-item {
  position: relative;
  padding: 0 28px;
  border-top: 2px solid var(--border-hairline);
  padding-top: 28px;
  transition: border-color 0.2s ease;
}

.operates-item:first-child { padding-left: 0; }
.operates-item:last-child { padding-right: 0; }

.operates-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 28px;
  width: 32px;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.operates-item:first-child::before { left: 0; }

.operates-item:hover::before {
  width: 56px;
}

.operates-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.operates-item p {
  font-size: 0.97rem;
  color: var(--body-text);
}

@media (max-width: 900px) {
  .mandate-grid,
  .authority-grid,
  .operates-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .operates-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .operates-item::before {
    left: 0 !important;
  }
}

@media (max-width: 700px) {
  .tabs-menu {
    flex-direction: column;
  }
  .tab-link {
    width: 100%;
  }
}

.cta-section .btn-primary {
  background: var(--navy-deep);
  border-color: var(--gold);
  color: var(--white);
}

.cta-section .btn-primary:hover {
  background: var(--navy-mid);
}

/* ===========================
   Footer
   =========================== */

footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 40px;
}

footer .footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 6px;
}

footer .footer-location {
  font-size: 14px;
  margin-bottom: 24px;
}

footer .footer-copyright {
  font-size: 13px;
}

footer .footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
}

footer .footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.4);
  max-width: none;
}
