@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Libre+Franklin:wght@700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --navy: #0b1c2d;
  --dark: #06101a;
  --gold: #b89241;
  --gold-light: #d4af5f;
  --parchment: #f8f6f1;
  --cream: #f1ede4;
  --text: #1a232e;
  --muted: #4e5968;
  --line: #d5dce3;
  --white: #ffffff;
  --max: 1400px;
}

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

html { scroll-behavior: smooth; }

/* 1. Ensure root spans 100% width with no horizontal scroll gaps */
html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
p, a, li, button, small, strong { font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

h1, h2, h3, h4, .section-title, .brand-text {
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  color: var(--dark);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

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

/* 2. Container strictly handles INNER content alignment now */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
}

.section-copy {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.02rem;
  margin-top: 1rem;
}

/* Photo slot: real <img> filling its layout box, cropped to fit without distortion. */
.img-slot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--cream);
}

/* Rule-divided list: replaces card grids for services / focus-area content */
.rule-list { border-top: 1px solid var(--line); }
.rule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.rule-row h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.rule-row > div > p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 620px;
}
.rule-row .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  justify-self: end;
  padding-top: 0.3rem;
  white-space: nowrap;
}
.rule-row ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 0.4rem;
  max-width: 640px;
}
.rule-row li:before {
  content: "-";
  color: var(--gold);
  margin-right: 0.5rem;
}
@media(max-width:700px) {
  .rule-row { grid-template-columns: 1fr; }
  .rule-row .num { justify-self: start; }
}

/* 3. Outer Sections extend 100% full-width */
.topbar, .header, .page-banner, .hero, .audience, .services, .about, .insights, .principles-section, .contact, .footer { width: 100%; }

/* Page Header / Banner */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
  border-bottom: 4px solid var(--gold);
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  margin-bottom: 0.75rem;
}

.page-banner p {
  color: #c2cfdd;
  font-size: 1.15rem;
  max-width: 700px;
  font-family: Georgia, serif;
}

/* Page banner with a photo background: pair with an inline background-image
   (a navy gradient stacked over the photo url) so the white heading stays legible. */
.page-banner-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Header & Navigation */
.topbar {
  background: var(--dark);
  color: #aebccb;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand img { width: 220px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav a:hover, .nav a.active { color: var(--gold); }

/* Classic Structured Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

/* Hero Section */
.hero {
  color: var(--white);
  padding: 6.5rem 0 6rem;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.4fr;
  gap: 3rem;
  align-items: stretch;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 15ch;
}

.hero h1 span {
  color: var(--gold-light);
  font-style: italic;
}

.hero-copy {
  font-size: 1.15rem;
  color: #c2cfdd;
  max-width: 680px;
  margin-bottom: 2.2rem;
  font-family: Georgia, serif;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card {
  padding: 2.2rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 16, 26, 0.6);
}

.hero-card h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.6rem;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.hero-card li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.8rem;
  color: #d1dbe5;
  font-size: 0.95rem;
}

.hero-card li:before {
  content: "■";
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1.6;
}

/* Hero visual: thin gold rule + image slot, replaces the boxed checklist card */
.hero-visual {
  border-left: 2px solid var(--gold);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-visual .mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #c2cfdd;
  line-height: 1.8;
}
.hero-visual .img-slot {
  flex: 1;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.06);
}

/* Audience Ribbon */
.audience {
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: 3rem;
}

.audience-label h2 {
  font-size: 1.3rem;
  max-width: 9ch;
}

.audience-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.audience-item {
  padding: 0 2rem;
  border-left: 1px solid var(--line);
}

.audience-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.audience-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.audience-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Services Section & Card Grid Alignment */
.services, .insights, .principles-section { padding: 6.5rem 0; }

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.card {
  padding: 2.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--gold); }

.num {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card h3 {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  min-height: 2rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 5.5rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-top: 0;
}

.card li:before {
  content: "-";
  color: var(--gold);
  margin-right: 0.5rem;
}

/* About Section & Founder Bio */
.about {
  padding: 6.5rem 0;
  background: var(--parchment);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.founder-card {
  align-self: start;
  border: 1px solid var(--line);
  background: var(--white);
  border-top: 4px solid var(--gold);
  padding: 2rem;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center; /* Keeps your face centered if slight cropping occurs */
  background: var(--navy);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.founder-meta h3 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.founder-meta p {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.visual {
  align-self: start;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(0deg, rgba(6, 16, 26, 0.9) 0%, rgba(6, 16, 26, 0.4) 100%), var(--navy);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 2px;
}

.visual strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.35;
}

/* Points Section Layout Fix */
.points {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
}

.point-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--navy);
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
}

.point h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  position: static;
}

.point p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  position: static;
}

.tools-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  padding: 1.75rem;
  margin-top: 2rem;
  clear: both;
}

.tools-box h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.tools-box p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* Insights & Principles Grid */
.insight-grid, .principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.insight, .principle-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.insight small, .principle-card small {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.insight h3, .principle-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0.8rem 0;
}

.insight p, .principle-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact Callout */
.contact {
  padding: 6.5rem 0;
  background: var(--navy);
  border-top: 1px solid var(--line);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
  background: transparent;
  color: var(--white);
}

.contact-panel h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.8rem;
}

.contact-panel p {
  color: #c2cfdd;
  font-family: Georgia, serif;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #8c9ba8;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  width: 220px;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
}

.footer p {
  font-size: 0.9rem;
  max-width: 440px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.82rem;
}

.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 1.8rem;
  color: var(--navy);
}

/* Responsive Adjustments */
@media(max-width:900px) {
  .menu { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 1rem; }
  .hero-grid, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .audience-grid, .cards, .insight-grid, .principles-grid { grid-template-columns: 1fr; }
  .audience-items { grid-template-columns: 1fr; }
  .audience-item {
    border-left: 0;
    padding-left: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.4rem;
  }
  .services-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-actions, .footer-links { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media(max-width:600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar .container { justify-content: center; }
  .topbar span:last-child { display: none; }
  .brand img { width: 170px; }
  .header-inner { min-height: 76px; }
  .hero { padding: 4.5rem 0; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .contact-panel { padding: 2.2rem 0; }
  .footer-bottom { flex-direction: column; }
}

/* Language Switcher (links between the English and Spanish version of each page) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 1rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #aebccb;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}
