/* Base */
body {
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

section {
    padding: 48px 16px;
    max-width: 900px;
    margin: auto;
}

/* Hero */
 .intro {
    padding: 80px 16px;
    text-align: center;
    background: white;
    border-bottom: 1px solid #e0e0e0;
} 

/* === 4. HERO SYSTEM === */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;                 /* responsive height band */
  max-height: 300px;            /* cap height */
  min-height: 200px;            /* ensure visibility on small screens */
  background-size: cover;       /* scale image without distortion */
  background-repeat: no-repeat;
  background-position: center center; /* default focal point */
  display: flex;
  align-items: center;          /* vertical centering for overlay */
}

/* Overlay container */
.hero-overlay {
  position: relative;           /* sits inside hero flexbox */
  color: #fff;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.6);  /* readability background */
  border-radius: 4px;
  max-width: 400px;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered children */
.hero-overlay h1 {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.hero-overlay p {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Left-bottom */
.hero-overlay--left-bottom {
  align-self: flex-end; 
  margin-bottom: 2rem;
  margin-left: clamp(1rem, 6vw, 4rem);
  text-align: left;
} 

.tagline {
    color: #555;
    font-size: 1.2rem;
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    flex: 1 1 calc(33% - 16px);
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }
}

/* Links */
#links ul {
    list-style: none;
    padding: 0;
}

#links li {
    margin-bottom: 8px;
}

a {
    color: #c48a6a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    color: #555;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Optional nav toggle (if you add one later) */
.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        cursor: pointer;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.open {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 30vh;                 /* responsive height band */
    }
}