/* =========================
   GLOBAL RESET & VARIABLES
   ========================= */

:root {
  --aegean-blue: #467DA8;
  --ivory: #FBF8F2;
  --limestone: #F4F1EC;
  --text-dark: #1f2933;
  --text-muted: #5f6b7a;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Calibri, Tahoma, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.6;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =========================
   LAYOUT HELPERS
   ========================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

/* =========================
   HEADER / NAV
   ========================= */

header {
  background: var(--ivory);
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav img {
  height: 48px;
  width: auto;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

.nav a:hover {
  color: var(--aegean-blue);
}

/* =========================
   HERO
   ========================= */

.hero {
  background: var(--limestone);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

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

/* =========================
   PILLARS / FEATURES
   ========================= */

.pillar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.pillar h3 {
  font-size: 1rem;
  color: var(--aegean-blue);
}

/* =========================
   IMAGE SAFETY (IMPORTANT)
   ========================= */

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

/* =========================
   FOOTER
   ========================= */

footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
}

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

  .pillars {
    grid-template-columns: 1fr;
  }

  .nav ul {
    gap: 1rem;
  }
}

/* TEMP STABILIZERS (keep during migration) */

/* clamp headings + body so text doesn't blow up */
body { font-size: 16px; }
h1 { font-size: clamp(2rem, 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); }
p  { font-size: clamp(1rem, 1.2vw, 1.1rem); }

/* stop images dominating sections */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* constrain any “hero” style images until we style properly */
.hero img,
section img {
  max-height: 520px;
  object-fit: cover;
}

/* NAV ALIGNMENT (matches current HTML structure) */
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* MIGRATION: Pillars basic layout */
.subtext {
  max-width: 720px;
  margin: 0.75rem auto 2rem;
  opacity: 0.65;
  font-size: 1rem;
}

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

.pillar {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 160px;
}

.pillar h3 {
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0;
}

@media (max-width: 1200px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 120px; }
}

