/* main.css - Core Tokens, Reset, and Base Typography */

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

/* Design Tokens */
:root{
  /* Colors */
  --primary-color: #003366;       /* Deep Navy */
  --color-primary: #003366;
  --primary-dark: #001e40;        /* Dark Navy */
  --primary-light: #3a5f94;       /* Slate Blue */
  --accent-color: #B8960C;        /* Gold */
  --accent-hover: #9a7c0a;        /* Darker Gold */
  
  --bg-primary: #fbf9f8;          /* Off-white */
  --bg-secondary: #ffffff;        /* Pure white */
  --bg-alt: #F5F5F5;              /* Light grey */
  --border-color: #E5E5E5;        /* Subtle border grey */
  
  --text-primary: #1B1C1C;        /* Charcoal */
  --text-secondary: #43474F;      /* Dark grey */
  --text-light: #6E727A;          /* Muted grey */
  --text-white: #ffffff;
  
  /* Typography */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing */
  --space-stack-sm: 8px;
  --space-stack-md: 24px;
  --space-stack-lg: 48px;
  --section-padding: 120px;
  
  /* Radii & Shadows */
  --border-radius-sm: 2px;
  --border-radius: 4px;
  --shadow-flat: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-prestige: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html{
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body{
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1{
  font-size: 2.5rem; /* 40px */
}

h2{
  font-size: 1.75rem; /* 28px */
}

h3{
  font-size: 1.375rem; /* 22px */
}

p{
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
}

a{
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* Responsive Grid Base Containers */
.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container{
    padding: 0 40px;
  }
  h1{
    font-size: 3rem; /* 48px */
  }
  h2{
    font-size: 2.25rem; /* 36px */
  }
}

@media (min-width: 1280px) {
  .container{
    padding: 0 80px;
  }
  h1{
    font-size: 3.5rem; /* 56px */
  }
  h2{
    font-size: 2.5rem; /* 40px */
  }
}

/* --- Hero Section overrides for 2-column layout --- */
.hero{
  background-color: var(--color-primary) !important; /* Set to exactly #003366 primary color */
  text-align: left; /* Align text to the left */
}

.hero-actions{
  justify-content: flex-start;
}

.hero .hero-container{
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.hero-accent-line{
  width: 64px;
  height: 2px;
  background-color: var(--accent-color);
  margin-bottom: 24px;
}

/* Disable the centered pseudo-element line from components.css */
.hero .hero-container .hero-title::after{
  display: none !important;
}

.hero-image-container{
  display: none; /* Hide on mobile to maintain clean responsive hierarchy */
}

.hero-image{
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-prestige);
}

@media (min-width: 768px) {
  .hero .hero-container{
    grid-template-columns: 1.1fr 0.9fr; /* 2-column layout on desktop */
  }
  
  .hero-image-container{
    display: block; /* Show image on desktop */
  }
}

/* --- Mobile Typography & Base Overrides --- */
@media (max-width: 767px) {
  html, body{
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  
  h1, .hero-title{
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h2, .section-title{
    font-size: 1.5rem !important;
    line-height: 1.35 !important;
  }
  
  h3, .card-title{
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
  }
  
  p, .card-text, .fact-value, li{
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  
  .container{
    padding: 0 16px !important;
  }
}

