/* ============================================
   Capital H Ventures — Global Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary-dark: #1B1B2F;
  --color-secondary-dark: #2E2E48;
  --color-accent-gold: #B68D40;
  --color-light-bg: #EDE8E0;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #6B6B7B;
  --color-text-on-dark: #D5D5E0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1140px;
  --nav-height: 72px;

  --transition-base: 0.3s ease;
  --shadow-card: 0 2px 8px rgba(27, 27, 47, 0.08);
  --shadow-card-hover: 0 8px 28px rgba(27, 27, 47, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold {
  color: var(--color-accent-gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }
.fade-in-delay-4 { transition-delay: 0.6s; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(182, 141, 64, 0.15);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 0.04em;
  line-height: 1;
  border: 2px solid var(--color-accent-gold);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-company-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-on-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent-gold);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 6px 0;
  transition: var(--transition-base);
  border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  background: linear-gradient(170deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(182, 141, 64, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 12px;
  border: 3px solid var(--color-accent-gold);
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-company {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-accent-gold);
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--color-text-on-dark);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Gold Divider ---------- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent-gold);
  margin: 40px auto;
  border: none;
}

/* ============================================
   FOUNDER SECTION
   ============================================ */
.founder-section {
  padding: 80px 24px;
  background: var(--color-white);
  text-align: center;
}

.founder-headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 3px solid var(--color-accent-gold);
  box-shadow: 0 4px 20px rgba(27, 27, 47, 0.1);
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.founder-title {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
  font-weight: 400;
}

.founder-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.founder-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-accent-gold);
  font-weight: 500;
  transition: opacity var(--transition-base);
}

.founder-links a:hover {
  opacity: 0.75;
}

.founder-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
  padding: calc(var(--nav-height) + 60px) 24px 50px;
  background: linear-gradient(170deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-header p {
  color: var(--color-text-on-dark);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-header .divider {
  margin: 24px auto 0;
}

/* ============================================
   AUDIENCE CARDS (Who We Serve)
   ============================================ */
.cards-section {
  padding: 60px 24px 80px;
  background: var(--color-light-bg);
}

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

.audience-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 36px 28px;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.audience-card:hover::before {
  transform: scaleX(1);
}

.audience-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  transition: color var(--transition-base);
}

.audience-card:hover h3 {
  color: var(--color-accent-gold);
}

.audience-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.audience-card:hover .card-arrow svg {
  transform: translateX(4px);
}

/* ============================================
   SUB-PAGE CONTENT (Individual Serve Pages, About, Contact)
   ============================================ */
.content-section {
  padding: 60px 24px 80px;
  background: var(--color-white);
}

.content-section .container {
  max-width: 720px;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.content-section .inquiry-note {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-light-bg);
  border-left: 3px solid var(--color-accent-gold);
  border-radius: 4px;
  font-size: 0.95rem;
}

.content-section .inquiry-note a {
  color: var(--color-accent-gold);
  font-weight: 600;
  transition: opacity var(--transition-base);
}

.content-section .inquiry-note a:hover {
  opacity: 0.75;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity var(--transition-base);
}

.back-link:hover {
  opacity: 0.75;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-block {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-block .contact-item {
  margin-bottom: 28px;
}

.contact-block .contact-item a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--color-accent-gold);
  font-weight: 500;
  transition: opacity var(--transition-base);
}

.contact-block .contact-item a:hover {
  opacity: 0.75;
}

.contact-block .contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-block .location-text {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-light-bg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  text-align: center;
}

.about-content .founder-headshot {
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.about-content .founder-name {
  margin-bottom: 4px;
}

.about-content .founder-title {
  margin-bottom: 32px;
}

.about-content .about-text {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 32px 24px;
  background: var(--color-primary-dark);
  text-align: center;
  border-top: 1px solid rgba(182, 141, 64, 0.15);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--color-text-on-dark);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(182, 141, 64, 0.15);
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-logo {
    font-size: 4rem;
    width: 90px;
    height: 90px;
  }

  .hero-company {
    font-size: 1.2rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .founder-headshot {
    width: 140px;
    height: 140px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .audience-card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }

  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
  }

  .hero-logo {
    font-size: 3rem;
    width: 72px;
    height: 72px;
    border-width: 2px;
  }

  .hero-company {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .founder-links {
    flex-direction: column;
    gap: 16px;
  }

  .nav-company-name {
    font-size: 0.95rem;
  }
}
