/* GLOBAL SETTINGS */
* {
box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Template colors */
  --dark-bg: #1F2937;
  --hero-main-text: #FFFFFF;
  --hero-secondary-text: #d1d5db;
  --button-color: #3882F6;
  --quote-bg: #E5E7EB;
  --quote-text: #1F2937;

  /* Font Sizes */
  --font-lg: 48px;
  --font-md: 24px;
  --font-sm: 18px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--dark-bg); /* Sets default text color */
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 100px;
    background-color: var(--dark-bg);
    color: var(--hero-secondary-text);
    
}

header a {
  text-decoration: none; /* removed underline */
  color: var(--hero-secondary-text);
  font-size: var(--font-sm);
}

header ul {
    display: flex;
    list-style-type: none; /* removed bullepoints */
    gap: 16px;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
    gap: 32px;
    background-color: var(--dark-bg);
    color: var(--hero-secondary-text);
}

.hero-section h1 {
  font-size: var(--font-lg);
  font-weight: 900;
  color: var(--hero-main-text);
}

.hero-section p {
  font-size: var(--font-sm);
  color: var(--hero-secondary-text);
}

.hero-section button {
  background-color: var(--button-color);
  color: var(--hero-main-text);
  font-weight: bold;
  font-size: var(--font-sm);
  padding: 8px 24px;
  border-radius: 8px;
  border: none;
}

.hero-section img {
  /* width: 450px; */
  /* height: 220px; */
  max-width: 30%;
  height: auto;  
  border-radius: 8px;
}

/* INFO SECTION */
.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    gap: 32px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 200px;
}

.card-image-placeholder {
  width: 150px;
  height: 150px;
  border: 4px solid var(--button-color);
  border-radius: 15px;
}

.info-section h2 {
  font-size: 36px;
  font-weight: 900; /* Core Mechanics extra-bold */
  color: var(--dark-bg);
}

/* QUOTE SECTION */
.quote-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--quote-bg);
    color: var(--quote-text);
    padding: 100px; 
}

.quote-section p {
  font-size: 36px;
  font-style: italic;
  font-weight: 300;
  color: var(--quote-text);
}

.quote-section figcaption {
  font-weight: bold;
  font-size: 20px;
  text-align: right;
  margin-top: 8px;
}

/* CTA SECTION */
.cta-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--button-color);
    color: var(--hero-main-text);
    margin: 50px 150px;
    padding: 50px 100px;
    border-radius: 8px;
}

.cta-section button {
  background-color: var(--button-color);
  color: var(--hero-main-text);
  font-weight: bold;
  font-size: var(--font-sm);
  padding: 8px 24px;
  border-radius: 8px;
  border: none;
}

/* FOOTER */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: var(--dark-bg);
    color: var(--hero-secondary-text);
}

/* ADJUSTED FOR MOBILE */
/* Applies to all screens 768px wide or smaller */
@media (max-width: 768px) {

    /* 1. HEADER */
    header {
        flex-direction: column; /* Stacking logo and nav links */
        gap: 20px;
        padding: 20px;
    }

    header ul {
        flex-direction: column; /* Stacking nav links for better order and readability */
        align-items: center; /* Centering the links */
        gap: 15px;
    }

    /* 2. HERO SECTION */
    .hero-section {
        flex-direction: column; /* Stacking text and image below it*/
        text-align: center;
        padding: 50px 20px;
    }

    .hero-section img {
        max-width: 80%; /* image larger for mobile */
    }

    /* 3. INFO SECTION */
    .info-section {
        padding: 50px 20px;
    }

    .cards-container {
        flex-direction: column; /* Stacking info cards for readability */
        align-items: center;
    }

    /* 4. QUOTE SECTION */
    .quote-section {
        padding: 50px 20px;
        text-align: center;
    }

    /* 5. CTA SECTION */
    .cta-section {
        flex-direction: column; /* Stacking text and button */
        text-align: center;
        gap: 20px;
        margin: 50px 20px;
        padding: 30px;
    }
}