/*
Theme Name: Capital Counsel
Theme URI: #
Author: Sovereign Guild LLC
Description: A luxury editorial WordPress theme for a sovereign-capital advisory firm. Refined, anonymous, authoritative.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: All Rights Reserved
Text Domain: capital-counsel
Tags: business, full-width-template, custom-menu, custom-logo
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --ink:         #0c0b09;
  --ink-mid:     #46433c;
  --ink-light:   #857f78;
  --ink-faint:   #c5c0b8;
  --paper:       #f6f3ee;
  --paper-warm:  #edeae1;
  --paper-dark:  #e2ddd2;
  --gold:        #a8823e;
  --gold-light:  #c9a262;
  --gold-pale:   #eedfc0;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(246,243,238,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--ink-faint);
  transition: padding 0.3s;
}
.site-header.scrolled { padding-top: 0.85rem; padding-bottom: 0.85rem; }

.site-branding a {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s;
}
.site-branding a:hover { color: var(--gold); }

.main-navigation ul {
  display: flex;
  gap: 2.75rem;
  list-style: none;
  align-items: center;
}
.main-navigation a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--gold); }

.main-navigation .menu-item-contact > a {
  color: var(--gold);
  border: 0.5px solid var(--gold);
  padding: 0.45rem 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.main-navigation .menu-item-contact > a:hover {
  background: var(--gold);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.cc-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5rem 7rem;
  position: relative;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 26vw;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--ink-faint);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
  letter-spacing: -0.04em;
}
.hero-rule {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.025em;
  max-width: 860px;
  opacity: 0;
  animation: fadeUp 0.9s 0.38s forwards;
}
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-subline {
  margin-top: 2.75rem;
  font-size: 0.92rem;
  color: var(--ink-mid);
  max-width: 500px;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem; right: 5rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeIn 1s 1.3s forwards;
}
.hero-scroll-hint::before {
  content: '';
  display: block;
  width: 40px;
  height: 0.5px;
  background: var(--ink-faint);
}

/* ============================================================
   SHARED SECTION
   ============================================================ */
.cc-section { padding: 7rem 5rem; }
.section-rule {
  width: 100%;
  height: 0.5px;
  background: var(--ink-faint);
  margin-bottom: 4.5rem;
}
.section-tag {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}
.about-left p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}
.about-left p.lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.65;
}
.stat-list { margin-top: 0.5rem; }
.stat-item {
  padding: 1.65rem 0;
  border-bottom: 0.5px solid var(--ink-faint);
}
.stat-item:first-child { border-top: 0.5px solid var(--ink-faint); }
.stat-num {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.3rem;
}

/* ============================================================
   CREDENTIALS (replaces named founder)
   ============================================================ */
.credentials-section { background: var(--paper-warm); }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink-faint);
  margin-top: 3.5rem;
}
.cred-card {
  background: var(--paper-warm);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}
.cred-card:hover { background: var(--paper); }
.cred-card-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}
.cred-card-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cred-card-body {
  font-size: 0.8rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--ink); color: var(--paper); }
.services-section .section-rule { background: rgba(255,255,255,0.1); }
.services-section .section-tag { color: rgba(255,255,255,0.3); }
.services-section .section-title { color: var(--paper); }
.services-intro {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.72;
  color: rgba(246,243,238,0.65);
  max-width: 620px;
  margin-bottom: 4rem;
  font-style: italic;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid rgba(255,255,255,0.1);
  border-left: 0.5px solid rgba(255,255,255,0.1);
}
.service-cell {
  padding: 2.25rem 2rem;
  border-right: 0.5px solid rgba(255,255,255,0.1);
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  transition: background 0.25s;
}
.service-cell:hover { background: rgba(168,130,62,0.07); }
.accent-line {
  width: 18px;
  height: 0.5px;
  background: var(--gold);
  margin-bottom: 1.1rem;
  transition: width 0.3s;
}
.service-cell:hover .accent-line { width: 34px; }
.service-name {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 0.55rem;
}
.service-desc {
  font-size: 0.78rem;
  color: rgba(246,243,238,0.42);
  line-height: 1.65;
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-section { background: var(--paper); }
.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-faint);
  border: 0.5px solid var(--ink-faint);
  margin-top: 3rem;
}
.client-tile {
  background: var(--paper);
  padding: 2.5rem 2.25rem;
  transition: background 0.2s;
}
.client-tile:hover { background: var(--paper-warm); }
.client-tile-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.client-tile-desc {
  font-size: 0.8rem;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ============================================================
   PRINCIPAL (anonymous founder block)
   ============================================================ */
.principal-section { background: var(--paper-warm); }
.principal-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 6rem;
  align-items: start;
}
.principal-visual {
  position: relative;
}
.principal-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2.5rem;
  overflow: hidden;
  position: relative;
}
/* Decorative abstract background in frame */
.principal-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(168,130,62,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 70%, rgba(168,130,62,0.06) 0%, transparent 60%);
}
.principal-frame-label {
  position: relative;
  z-index: 1;
}
.principal-frame-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.principal-frame-sub {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
/* Monogram watermark inside frame */
.principal-frame-mono {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -56%);
  font-family: var(--serif);
  font-size: 11rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(168,130,62,0.18);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}
.principal-corner {
  position: absolute;
  top: -7px; right: -7px;
  width: 22px; height: 22px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}

/* Photo override when set */
.principal-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}
.principal-frame img ~ .principal-frame-mono { display: none; }
.principal-frame img ~ .principal-frame-label { z-index: 2; }

.principal-bio-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.principal-bio-headline {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 2.25rem;
}
.principal-bio p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.principal-bio p strong {
  color: var(--ink);
  font-weight: 500;
}
/* Credential pills */
.principal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.ptag {
  font-size: 0.7rem;
  padding: 0.35rem 0.9rem;
  border: 0.5px solid var(--ink-faint);
  color: var(--ink-mid);
  background: var(--paper);
  letter-spacing: 0.03em;
}
/* Media row */
.media-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.media-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  flex-shrink: 0;
}
.media-outlets { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.media-outlet {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.media-outlet:hover { color: var(--ink-mid); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: var(--gold);
  text-align: center;
  padding: 8rem 5rem;
}
.cta-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.cta-sub {
  font-size: 0.92rem;
  color: rgba(12,11,9,0.62);
  max-width: 460px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}
.cta-btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 1.05rem 2.75rem;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.cta-btn:hover { background: rgba(12,11,9,0.78); color: var(--paper); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 2.75rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  color: rgba(246,243,238,0.38);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(246,243,238,0.7);
  letter-spacing: 0.04em;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: rgba(246,243,238,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(246,243,238,0.7); }

/* ============================================================
   GENERIC PAGE / BLOG
   ============================================================ */
.content-area {
  max-width: 820px;
  margin: 9rem auto 7rem;
  padding: 0 2rem;
}
.entry-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.15;
}
.entry-content p {
  font-size: 0.96rem;
  line-height: 1.88;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}
.entry-content h2, .entry-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 2rem 0 0.9rem;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .principal-layout { grid-template-columns: 320px 1fr; gap: 4rem; }
}
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.5rem; }
  .main-navigation { display: none; }
  .main-navigation.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 999;
  }
  .main-navigation.open ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2.25rem;
    font-size: 1.1rem;
  }
  .menu-toggle { display: flex; }
  .cc-section, .cc-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .cc-hero { padding-bottom: 5.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .principal-layout { grid-template-columns: 1fr; gap: 3rem; }
  .principal-visual { max-width: 380px; }
  .hero-scroll-hint { right: 1.5rem; }
  .cta-section { padding: 5.5rem 1.5rem; }
  .site-footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .footer-nav ul { justify-content: center; }
}
@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
}
