/*
Theme Name: Expand Advisory
Theme URI: https://expand-advisory.com
Author: Expand Advisory
Author URI: https://expand-advisory.com
Description: Custom institutional theme for Expand Advisory — Organizational Advisory for Growth.
Version: 1.0.0
License: Private
Text Domain: expand-advisory
*/

/* ============================================================
   EXPAND ADVISORY — WordPress Theme
   Brand: #aa6402  |  Fonts: Cormorant Garamond + Inter
   ============================================================ */

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

:root {
  --brand:        #aa6402;
  --brand-light:  #c97d1a;
  --brand-dark:   #7d4a01;
  --brand-tint:   #fdf3e7;
  --brand-tint2:  #f9e8cc;

  --ink:          #1a1410;
  --ink-mid:      #4a3d30;
  --ink-soft:     #7a6a57;
  --ink-muted:    #a89880;

  --canvas:       #ffffff;
  --surface:      #faf8f5;
  --dark-bg:      #1a1410;
  --dark-surface: #231d16;

  --border:       rgba(170, 100, 2, 0.15);
  --border-mid:   rgba(170, 100, 2, 0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1120px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 72px;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

/* Remove WordPress default margins */
body.page { margin: 0; padding: 0; }
.wp-site-blocks { padding: 0 !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

em { font-style: italic; color: var(--brand); }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---- Sections ---- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--dark { background: var(--dark-bg); color: #f5ede0; }
.section--warm { background: var(--brand-tint); }

/* ---- Section Header ---- */
.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 1rem;
  color: var(--ink);
}
.section-header p { color: var(--ink-soft); }
.section-header--light h2 { color: #f5ede0; }
.section-header--light p  { color: rgba(245, 237, 224, 0.65); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}
.section-label--light {
  background: rgba(170, 100, 2, 0.2);
  color: var(--brand-light);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 2px 20px rgba(170, 100, 2, 0.08); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav__logo-icon {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links li a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: color 0.2s;
}
.nav__links li a:hover { color: var(--brand); }
.nav__cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 3px;
  font-size: 0.82rem !important;
  transition: background 0.2s !important;
}
.nav__cta:hover { background: var(--brand-dark) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost  { background: transparent; color: var(--ink); border-color: var(--border-mid); }
.btn--ghost:hover  { border-color: var(--brand); color: var(--brand); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 0.9rem 2.25rem; font-size: 0.95rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background: var(--canvas);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1.5rem;
}
.hero__tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--brand);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500; line-height: 1.05;
  color: var(--ink); margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-mid); max-width: 520px;
  margin-bottom: 2.5rem; line-height: 1.65;
}
.hero__actions {
  display: flex; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.hero__credibility {
  display: flex; align-items: center;
  gap: 0.75rem; font-size: 0.8rem;
  color: var(--ink-muted); font-weight: 500;
}
.hero__credibility .sep { color: var(--brand-tint2); }
.hero__strip {
  position: absolute; right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  border-radius: 50%; background: var(--brand-tint);
  opacity: 0.6; pointer-events: none;
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: var(--surface); }
.problem__inner { max-width: 860px; }
.problem__label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1.25rem;
}
.problem__headline {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--ink); margin-bottom: 1.5rem; font-weight: 500;
}
.problem__body {
  color: var(--ink-mid); max-width: 680px;
  font-size: 1.05rem; line-height: 1.75;
  margin-bottom: 3rem;
}
.problem__stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 1rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 400;
  color: var(--brand); line-height: 1; letter-spacing: -0.02em;
}
.stat__label {
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============================================================
   PURPOSE
   ============================================================ */
.purpose { background: var(--canvas); }
.purpose__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.purpose__label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.purpose__text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ink); margin-bottom: 1.5rem;
}
.purpose__text p { color: var(--ink-mid); margin-bottom: 1rem; line-height: 1.75; }
.purpose__text .btn { margin-top: 1rem; }
.purpose__visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 340px;
}
.purpose__ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--brand-tint2);
}
.purpose__ring--outer { width: 320px; height: 320px; }
.purpose__ring--mid   { width: 220px; height: 220px; border-color: var(--border-mid); }
.purpose__ring--inner {
  width: 130px; height: 130px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  border: none; color: #fff;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500;
  text-align: center; line-height: 1.3;
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  list-style: none;
  margin: 0; padding: 0;
}
.phase {
  background: var(--dark-surface);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
}
.phase:hover { background: #2a2218; }
.phase__num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 400;
  color: var(--brand); line-height: 1;
  margin-bottom: 1rem; letter-spacing: -0.03em;
}
.phase__title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 500;
  color: #f5ede0; margin-bottom: 0.75rem;
}
.phase__obj {
  font-size: 0.85rem;
  color: rgba(245,237,224,0.55);
  margin-bottom: 1.5rem; line-height: 1.6;
}
.phase__deliverables { display: flex; flex-direction: column; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.phase__deliverables li {
  font-size: 0.8rem; font-weight: 500;
  color: var(--brand-light);
  padding-left: 0.75rem; position: relative; letter-spacing: 0.01em;
}
.phase__deliverables li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 4px; height: 4px;
  background: var(--brand); border-radius: 50%;
}

/* ============================================================
   SERVICES / PILLARS
   ============================================================ */
.services { background: var(--surface); }
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pillar {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 2.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.pillar:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 24px rgba(170,100,2,0.08);
}
.pillar--featured {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-tint) 0%, var(--canvas) 60%);
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 2.5rem;
  align-items: start;
}
.pillar--featured .pillar__tag   { grid-column: 1; }
.pillar--featured .pillar__num   { grid-column: 1; grid-row: 2/5; align-self: start; }
.pillar--featured .pillar__title { grid-column: 2; }
.pillar--featured .pillar__desc  { grid-column: 2; }
.pillar--featured .pillar__list  { grid-column: 2; }
.pillar__tag {
  font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.pillar__num {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 400;
  color: var(--brand-tint2); line-height: 1;
  margin-bottom: 1rem; letter-spacing: -0.03em;
}
.pillar--featured .pillar__num { font-size: 6rem; }
.pillar__title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.75rem;
}
.pillar__desc {
  font-size: 0.9rem; color: var(--ink-mid);
  line-height: 1.7; margin-bottom: 1.25rem;
}
.pillar__list { display: flex; flex-direction: column; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.pillar__list li {
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft);
  padding-left: 1rem; position: relative;
}
.pillar__list li::before {
  content: '';
  position: absolute; left: 0; top: 0.6em;
  width: 4px; height: 4px;
  background: var(--brand); border-radius: 50%;
}

/* ============================================================
   FOUNDER
   ============================================================ */
.founder__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.founder__portrait {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding-top: 2rem;
}
.founder__avatar {
  width: 180px; height: 180px;
  border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 500;
  color: #fff; position: relative; z-index: 1;
}
.founder__bg-shape {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%; background: var(--brand-tint2);
  top: 0; right: -10px; z-index: 0;
}
.founder__content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ink); margin: 0.5rem 0;
}
.founder__role {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1.5rem; display: block;
}
.founder__content p {
  color: var(--ink-mid); margin-bottom: 1rem;
  line-height: 1.75; font-size: 0.95rem;
}
.founder__companies { margin: 2rem 0 1.5rem; }
.founder__companies-label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.75rem;
}
.founder__logos { display: flex; gap: 1rem; flex-wrap: wrap; }
.founder__logos span {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500;
  color: var(--ink-mid); padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-mid);
  border-radius: 3px; background: var(--canvas);
}
.founder__reach { display: flex; gap: 2.5rem; margin-top: 2rem; }
.reach-item { display: flex; flex-direction: column; }
.reach-item strong {
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 500;
  color: var(--brand); line-height: 1; letter-spacing: -0.02em;
}
.reach-item span {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-top: 0.25rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.contact__headline {
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: #f5ede0; margin: 0.75rem 0 1.25rem;
}
.contact__headline em { color: var(--brand-light); }
.contact__sub {
  color: rgba(245,237,224,0.6);
  max-width: 560px; margin-bottom: 2.5rem;
  font-size: 1rem; line-height: 1.75;
}
.contact__methods {
  display: flex; gap: 1.5rem;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 2.5rem;
}
.contact__link {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 500;
  color: rgba(245,237,224,0.8);
  border: 1px solid rgba(245,237,224,0.15);
  padding: 0.65rem 1.25rem; border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.contact__link:hover { color: var(--brand-light); border-color: var(--brand); }
.contact__link-icon { font-size: 0.9rem; color: var(--brand); font-style: normal; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #120f0a;
  padding: 2rem 0;
  border-top: 1px solid rgba(170,100,2,0.2);
}
.footer__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 500; color: #f5ede0;
}
.footer__copy { font-size: 0.78rem; color: rgba(245,237,224,0.35); }
.footer__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__links a {
  font-size: 0.8rem; color: rgba(245,237,224,0.45);
  font-weight: 500; transition: color 0.2s;
}
.footer__links a:hover { color: var(--brand-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .purpose__inner { grid-template-columns: 1fr; }
  .purpose__visual { height: 240px; order: -1; }
  .purpose__ring--outer { width: 220px; height: 220px; }
  .purpose__ring--mid   { width: 160px; height: 160px; }
  .purpose__ring--inner { width: 96px; height: 96px; font-size: 0.85rem; }
  .founder__inner { grid-template-columns: 1fr; }
  .founder__portrait { justify-content: flex-start; }
  .pillars { grid-template-columns: 1fr; }
  .pillar--featured { grid-column: auto; display: flex; flex-direction: column; }
  .pillar--featured .pillar__num { font-size: 4rem; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--canvas); padding: 1.5rem var(--pad-x);
    border-bottom: 1px solid var(--border);
    gap: 1.25rem; z-index: 999;
  }
  .nav__links.is-open li a { font-size: 1rem; }
  .nav__burger { display: flex; }
  .phases { grid-template-columns: 1fr; }
  .hero__headline { font-size: 2.5rem; }
  .problem__stats { gap: 1.5rem; }
  .contact__methods { flex-direction: column; align-items: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
