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

html {
  scroll-padding-top: 150px;
}

:root {
  /* Cappa Energy Brand Color Palette */
  --cappa-red: #C24A2E;
  --charcoal: #1F2326;
  --warm-grey: #E6E4E1;
  --steel-blue-grey: #4E6A7A;
  --sand: #B8A38A;
  --signal-yellow: #FFD200;
  --signal-cyan: #00B3C7;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-logotype: 'Bitter', serif;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--warm-grey);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--warm-grey)
}

h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--cappa-red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

a {
  color: var(--steel-blue-grey);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cappa-red);
}

/* ===== LAYOUT & CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.prose {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 2rem 0;
}

/* ===== HEADER STYLES ===== */
header {
  background-color: var(--charcoal);
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: var(--cappa-red);
  padding: 1rem 0;
  box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  padding: 1rem;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0;
}

/* ===== MOBILE HEADER ADJUSTMENTS ===== */
@media (width <= 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  header h1 {
    font-size: 1.2rem;
    text-align: right;
    max-width: 60%;
    flex-shrink: 1;
  }

  .logo {
    height: 80px;
    flex-shrink: 0;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--cappa-red) 0%, var(--charcoal) 100%);
  color: white;
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: none;
}

.hero p {
  font-size: 1.2rem;
  color: rgb(255 255 255 / 90%);
}

.hero .cta-button {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 3rem;
}

.cta-button {
  display: inline-block;
  background-color: rgb(255 255 255 / 8%);
  color: white;
  border: 1.5px solid rgb(255 255 255 / 70%);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: white;
  border-color: white;
  color: var(--charcoal);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  background-color: white;
  padding: 1.5rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--warm-grey);
}

.content-section h2 {
  color: var(--cappa-red);
  margin-bottom: 2rem;
}

.content-section p {
  color: var(--charcoal);
}

/* ===== AUDIENCE NAV ===== */
.audience-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.audience-nav a {
  display: inline-block;
  background-color: transparent;
  color: var(--cappa-red);
  border: 1.5px solid var(--cappa-red);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.audience-nav a:hover {
  background-color: var(--cappa-red);
  color: white;
}

/* ===== FOUNDERS SECTION ===== */
.founders {
  color: white;
  padding: 1.5rem 0;
  margin-top: 4rem;
  background-color: var(--charcoal);
}

.founders h2 {
  color: var(--signal-cyan);
  border-bottom-color: var(--signal-cyan);
  margin-bottom: 2rem;
}

.founder-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (width <= 768px) {
  .founder-cards {
    flex-direction: column;
  }
}

.founder-card {
  flex: 1;
  min-width: 0;
  background-color: rgb(255 255 255 / 5%);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--signal-cyan);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.founder-card-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}


.founder-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--signal-cyan);
  flex-shrink: 0;
  filter: grayscale(70%) contrast(1.2);
}

.founder-info {
  flex: 1;
}

.founder-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--signal-cyan);
}

.founder-link:hover {
  color: white;
}

.founder-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.founder-info h3 {
  color: var(--signal-cyan);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.founder-info p {
  color: rgb(255 255 255 / 90%);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(135deg, var(--steel-blue-grey) 0%, var(--charcoal) 100%);
  color: white;
  padding: 1.5rem;
}

.contact .container {
  display: block;
}

.contact p {
  margin-bottom: 1rem;
}

.contact h2 {
  color: var(--signal-cyan);
  border-bottom-color: var(--signal-cyan);
}

.contact-info {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}

@media (width <= 768px) {
  .contact-info {
    flex-direction: column;
  }

  .contact-person {
    min-width: 0;
  }
}

/* Contact cards stack when smaller than 260px */
@media (width <= 520px) {
  .contact-info {
    flex-direction: column;
  }

  .contact-person {
    min-width: 0;
    width: 100%;
  }
}

/* Hide title text on very small screens */
@media (width <= 350px) {
  header h1 {
    display: none;
  }

  .header-content {
    justify-content: center;
  }
}

.contact-person {
  background-color: rgb(255 255 255 / 10%);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--signal-cyan);
  min-width: 0;
  flex: 1;
}

.contact-person h3 {
  color: var(--signal-cyan);
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.contact-person p {
  margin-bottom: 0.5rem;
}

.contact-person a {
  color: white;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-person a:hover {
  color: var(--signal-cyan);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-color: var(--cappa-red);
  color: white;
  padding: 2rem;
  margin-top: 4rem;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  border-bottom: none;
  display: block;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgb(255 255 255 / 90%);
  margin-bottom: 2rem;
}

.cta-section-button {
  display: inline-block;
  background-color: rgb(255 255 255 / 8%);
  color: white;
  border: 1.5px solid rgb(255 255 255 / 70%);
  margin-bottom: 2rem;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-section-button:hover {
  background-color: white;
  border-color: white;
  color: var(--charcoal);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 5rem 0 2rem;
}

footer p {
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (width <= 768px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .founder-image {
    width: 120px;
    height: 120px;
  }

  section {
    padding: 2rem 0;
  }
}

@media (width <= 480px) {
  h1 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.btn-primary {
  background-color: var(--cappa-red);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--steel-blue-grey);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--signal-cyan);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}
