/* ============================================
   SENTIENT WEALTH GROUP - TYPOGRAPHY SYSTEM
   "Approachable Expert" Tone
   Barlow + Cormorant Garamond
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Font Families */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Typography Scale - Matching Endeavr (5-6 sizes) */
  --h1-size: clamp(2.5rem, 4vw, 3rem);
  /* 40-48px - Hero headings */
  --h2-size: clamp(1.75rem, 3vw, 2rem);
  /* 28-32px - Section titles */
  --h3-size: 1.5rem;
  /* 24px - Subsection titles */
  --h4-size: 1.25rem;
  /* 20px - Card headings */
  --body-size: 1.25rem;
  /* 20px - Primary body text (matches Endeavr's 19.2px, rounded up) */
  --body-small: 1rem;
  /* 16px - Smaller body text for specific uses */
  --small-size: 0.875rem;
  /* 14px - Labels, captions */
  --tiny-size: 0.75rem;
  /* 12px - Tiny text (rarely used) */

  /* Colors */
  --primary: #1a1a1a;
  --secondary: #666666;
  --accent-gold: #c5a065;
  /* Updated gold accent color */
  --accent-navy: #0e2240;
  --text: #2c3e50;
  --text-light: #6c757d;
  --bg: #ffffff;
  --bg-light: #f8f9fa;

  /* Spacing */
  --heading-margin: 1.5rem;
  --paragraph-margin: 1rem;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADINGS - Cormorant Garamond (Elegant & Confident)
   ============================================ */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: var(--heading-margin);
  font-weight: 600;
}

h1 {
  font-size: var(--h1-size);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 2rem;
}

h2 {
  font-size: var(--h2-size);
  font-weight: 500;
  letter-spacing: -0.3px;
  margin-bottom: 1.75rem;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* ============================================
   SUBHEADINGS - Barlow (Clean & Approachable)
   ============================================ */
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 1rem;
}

h4 {
  font-size: var(--h4-size);
  letter-spacing: 0px;
}

h5 {
  font-size: var(--h5-size);
}

h6 {
  font-size: var(--h6-size);
}

/* ============================================
   BODY TEXT - Barlow (Readable & Friendly)
   ============================================ */
p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: var(--paragraph-margin);
}

/* Lists */
ul,
ol {
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.6;
  margin-bottom: var(--paragraph-margin);
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--accent-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-gold);
}

/* ============================================
   BUTTONS & UI - Barlow (Structured & Friendly)
   ============================================ */
button,
.btn,
.cta-button,
.view-bio,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  /* 16px */
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: none;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Navigation Links */
nav a,
.nav-link {
  font-family: var(--font-sans);
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  /* 14px */
  letter-spacing: 0.1px;
}

/* Labels & Form Elements */
label,
.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--small-size);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

input,
textarea,
select {
  font-family: var(--font-sans);
  font-size: var(--body-small);
  line-height: 1.5;
}

/* ============================================
   QUOTES & TESTIMONIALS - Cormorant Italic (Warm & Human)
   ============================================ */
blockquote,
.quote,
.testimonial {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  /* 20px */
  line-height: 1.6;
  color: var(--text-light);
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-gold);
}

/* ============================================
   SMALL TEXT & CAPTIONS - Barlow
   ============================================ */
small,
.small-text,
.caption {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--small-size);
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.tiny-text {
  font-size: var(--tiny-size);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Font Family Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Weight Utilities */
.font-light {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Text Transform */
.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.italic {
  font-style: italic;
}

/* Text Colors */
.text-gold {
  color: var(--accent-gold);
}

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

.text-light {
  color: var(--text-light);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   Mobile: Reduce heading sizes by 20-25%
   ============================================ */
@media (max-width: 768px) {
  :root {
    --h1-size: clamp(2rem, 6vw, 2.75rem);
    /* 32-44px (22% reduction) */
    --h2-size: clamp(1.625rem, 5vw, 2rem);
    /* 26-32px (20% reduction) */
    --h3-size: clamp(1.25rem, 4vw, 1.625rem);
    /* 20-26px (19% reduction) */
    --h4-size: 1.25rem;
    /* 20px (17% reduction) */
    --body-size: 1rem;
    /* 16px */
  }

  /* Adjust spacing for mobile */
  h1 {
    margin-bottom: 1.5rem;
  }

  h2 {
    margin-bottom: 1.25rem;
  }

  h3 {
    margin-bottom: 1rem;
  }

  /* Adjust whitespace */
  p,
  ul,
  ol {
    margin-bottom: 0.875rem;
  }

  blockquote,
  .quote,
  .testimonial {
    font-size: 1.125rem;
    /* 18px */
    margin: 1.5rem 0;
  }
}

/* ============================================
   WHITESPACE ENHANCEMENTS
   Add breathing room around H1 and H2
   ============================================ */
.section-title {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.hero-title {
  margin-bottom: 2.5rem;
}

/* Add space before headings that follow content */
*+h1,
*+h2 {
  margin-top: 2.5rem;
}

*+h3,
*+h4 {
  margin-top: 2rem;
}

/* ============================================
   SPECIAL CASES
   ============================================ */

/* Hero/Banner Text */
.hero-text,
.banner-text {
  font-family: var(--font-serif);
  font-size: var(--h1-size);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-subtitle,
.banner-subtitle {
  font-family: var(--font-sans);
  font-size: var(--h3-size);
  font-weight: 400;
  line-height: 1.5;
}

/* Card Titles */
.card-title {
  font-family: var(--font-serif);
  font-size: var(--h3-size);
  font-weight: 500;
  line-height: 1.3;
}

/* Section Labels */
.section-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

/* Stats/Numbers */
.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-navy);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body {
    font-size: 12pt;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
  }

  h3 {
    font-size: 14pt;
  }
}

/* ============================================
   UTILITY CLASSES FOR TYPOGRAPHY
   ============================================ */

/* Typography Size Utilities */
.text-h1 {
  font-size: var(--h1-size) !important;
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
}

.text-h2 {
  font-size: var(--h2-size) !important;
  font-family: var(--font-serif) !important;
  font-weight: 500 !important;
}

.text-h3 {
  font-size: var(--h3-size) !important;
  font-family: var(--font-serif) !important;
  font-weight: 500 !important;
}

.text-h4 {
  font-size: var(--h4-size) !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
}

.text-h5 {
  font-size: var(--h5-size) !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
}

.text-body {
  font-size: var(--body-size) !important;
  font-weight: 400 !important;
}

.text-body-small {
  font-size: var(--body-small) !important;
  font-weight: 400 !important;
}

.text-small {
  font-size: var(--small-size) !important;
  font-weight: 400 !important;
}

.section-label {
  font-family: var(--font-sans) !important;
  font-size: var(--small-size) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: var(--accent-gold) !important;
}