/* ==== Global Reset & Base ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 100%; /* 16px */
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
}

/* ==== Utility & Buttons ==== */
.btn,
.email-form button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #1a1a1a;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  /* Center buttons even if parent text-align is left */
  margin: 1rem auto 0;
}
.btn:hover,
.email-form button:hover {
  background-color: #333333;
}

/* ==== Generic Section Padding & Centering ==== */
.section {
  padding: 3rem 1rem;
  max-width: 100%;
  margin: 0 auto;
  text-align: center; /* default center; overridden on larger */
}
@media (min-width: 1024px) {
  .section {
    max-width: 1200px;
    padding: 4rem 2rem;
  }
}
@media (min-width: 768px) {
  .section {
    text-align: left;
  }
}

/* ==== Section 1: Hero ==== */
.section-hero .hero-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.5rem;
}
.section-hero img {
  max-width: 100%;
  border-radius: 12px;
}
.section-hero .hero-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0;
}
.section-hero .highlight {
  color: #444444;
}
.section-hero .hero-content p {
  margin-top: 0.75rem;
  color: #333333;
}
@media (min-width: 481px) {
  .section-hero .hero-content h1 {
    font-size: 2rem;
  }
}
@media (min-width: 768px) {
  .section-hero .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .section-hero .hero-content,
  .section-hero .hero-image {
    flex: 1;
  }
  .section-hero .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* ==== Section 2 & 3 Headings ==== */
.small-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555555;
  margin-bottom: 0.5rem;
}
.large-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.subtext {
  color: #333333;
  margin-bottom: 1.5rem;
}
@media (min-width: 481px) {
  .large-heading {
    font-size: 1.75rem;
  }
}
@media (min-width: 768px) {
  .large-heading {
    font-size: 2rem;
  }
}

/* ==== Cards Container ==== */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .cards {
    flex-direction: row;
    gap: 1.5rem;
  }
}
.card {
  background-color: #f7f7f7;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}
.card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #1a1a1a;
}
@media (min-width: 481px) {
  .card h4 {
    font-size: 1.2rem;
  }
}

/* ==== Subscription Form ==== */

.subscribe p {
  color: #333333;
  max-width: 70%;
  margin: 0 auto 1rem;
  margin-left: 0%;
  margin-bottom: 5%;
  line-height: 1.4;
}

/* Email+Feedback form always centered */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
}
.email-form input,
.email-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 1rem;
}
.email-form textarea {
  resize: vertical;
}

/* ==== Footer ==== */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #555555;
  font-size: 0.875rem;
}
.footer nav {
  margin-bottom: 1rem;
}
.footer nav a {
  margin: 0 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.footer nav a:hover {
  color: #1a1a1a;
}
@media (max-width: 480px) {
 .subscribe p{
  margin-left: 15%;
 }
}

.confirmation-box {
  margin-top: 20px;
  padding: 15px 20px;
  background-color: #e6ffee;
  border: 1px solid #00cc66;
  border-radius: 8px;
  color: #006644;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}
