/* ── Font ── */
@font-face {
  font-family: 'Alan Sans';
  src: url('fonts/alan sans/AlanSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --green: #076315;
  --green-dark: #054a10;
  --green-light: #0a8a1d;
  --green-subtle: #e8f5e9;
  --green-glass: rgba(7, 99, 21, 0.06);
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-light: #888;
  --bg: #fafaf8;
  --white: #ffffff;
  --border: #e8e6e3;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --max-width: 960px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Alan Sans', 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ── */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(7, 99, 21, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(7, 99, 21, 0.05) 0%, transparent 50%),
    var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('logo/magnolia_strategies_logo_final.svg') center center no-repeat;
  background-size: 500px;
  opacity: 0.025;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 2px 8px rgba(7, 99, 21, 0.15));
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  border: none;
  border-radius: 2px;
  margin: 2rem auto 0;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Sections ── */
section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* ── About ── */
.about {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-content {
  max-width: 680px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ── Focus Areas ── */
.focus {
  background: var(--bg);
}

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

.focus-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.focus-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}

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

.focus-card-icon {
  width: 40px;
  height: 40px;
  background: var(--green-glass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green);
}

.focus-card-icon svg {
  width: 20px;
  height: 20px;
}

.focus-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.focus-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Contact ── */
.contact {
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-inner {
  max-width: 480px;
  margin: 0 auto;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  transition: var(--transition);
  margin-top: 1rem;
}

.contact-email:hover {
  background: var(--green);
  color: var(--white);
}

.contact-email svg {
  width: 18px;
  height: 18px;
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--bg);
}

footer p {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger cards */
.focus-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.focus-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Keyframes ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-heading {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: 55vh;
    padding: 2.5rem 1.25rem;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .focus-card {
    padding: 1.5rem;
  }
}
