/* Basic Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font, 'Montserrat', sans-serif);
  color: var(--text-color, #333);
  background-color: var(--background-color, #f9f9f9);
  line-height: 1.6;
}

/* Color variables and fonts */
:root {
  /* Primary colours: black and white reflect Zara's minimalist palette while a deep blue accent draws attention to calls to action. */
  --primary-color: #000000;
  --accent-color: #1769aa;
  --background-color: #f5f5f5;
  --text-color: #333333;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Montserrat', sans-serif;
}

/* Layout container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--primary-color);
  text-decoration: none;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  padding: 0.5rem;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-color);
}

/* Hamburger toggle for mobile navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 4px 0;
}

/* Hero section styles */
/*
  The hero component uses an inline `background-image` on the element rather than a
  CSS custom property to specify the asset. This avoids issues where older
  browsers might misinterpret the variable and accidentally render a directory
  listing instead of a single file. The section remains positioned relative to
  support an overlay via the `::after` pseudo-element. Text elements are
  stacked above the overlay using a positive z-index.
*/
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 100vh;
  color: #ffffff;
  text-align: left;
  padding: 0 0 6rem;
  background-size: cover;
  background-position: center;
}

/* Semi-transparent overlay to darken the background image for better
   text contrast. */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 4.5rem;
  margin-bottom: 1.2rem;
  z-index: 1;
  position: relative;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 700px;
  z-index: 1;
  position: relative;
}

.hero .container {
  max-width: 760px;
  margin-left: 160px; 
}

.hero .hero-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero .hero-lede {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 620px;
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 4rem;
  }

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

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 0;
}

.button:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* Section padding */
.section {
  padding: 4rem 0;
}

.section-light {
  background-color: #ffffff;
}

.section-dark {
  background-color: #f5f5f5;
}

.section h2 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Impact section */
.impact-section h2 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.impact-item {
  text-align: center;
  padding: 1rem 2rem;
}

.impact-item:not(:last-child) {
  border-right: 1px solid #bdbdbd;
}

.impact-number {
  font-family: var(--heading-font);
  font-size: 4rem;
  color: #1b4dff;
  margin-bottom: 1rem;
}

.impact-title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.impact-subtitle {
  font-size: 1rem;
  color: #666666;
}

@media (max-width: 900px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #bdbdbd;
  }
}

/* Card grid for products, blogs, etc. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.card-content p {
  flex-grow: 1;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #555555;
}

.card-content .button {
  align-self: flex-start;
}

/* Team cards */
.team-card {
  text-align: center;
}

.team-card img {
  border-radius: 0;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
}

.team-card p {
  font-size: 0.9rem;
  color: #666666;
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer .container {
  display: block;
}

.site-footer p {
  font-size: 0.9rem;
  color: #777777;
}

.site-footer .social {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.site-footer .social a {
  color: var(--primary-color);
  font-size: 1.2rem;
  text-decoration: none;
}

.site-footer .social a:hover {
  color: var(--accent-color);
}

.mck-footer {
  padding: 0;
  border-top: 1px solid #dedede;
  background-color: #ffffff;
}

.mck-footer .footer-pre {
  border-bottom: 1px solid #e6e6e6;
  background-color: #f6f6f4;
}

.mck-footer .footer-pre .container {
  padding: 1.5rem 0;
}

.mck-footer .footer-social {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.mck-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #222222;
  text-decoration: none;
}

.mck-footer .footer-social span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: background-color 0.2s ease;
}

.mck-footer .footer-social span img {
  width: 18px;
  height: 18px;
  display: block;
  filter: none;
}

.mck-footer .footer-social a:hover span {
  background-color: var(--accent-color);
}

.mck-footer .footer-social a:hover span img {
  filter: invert(1);
}

.mck-footer .footer-main {
  background-color: #ffffff;
}

.mck-footer .footer-main .container {
  padding: 2.5rem 0;
  
}

.mck-footer .footer-wordmark {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: #111111;
  text-decoration: none;
  display: inline-block;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.mck-footer .footer-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 2.5rem;
  align-items: start;
}

.mck-footer .footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 2rem;
}

.mck-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mck-footer .footer-links a {
  color: #222222;
  text-decoration: none;
  font-weight: 500;
}

.mck-footer .footer-links a:hover {
  color: var(--accent-color);
}

/* .mck-footer .footer-subscribe {
  text-align: left;
} */

.mck-footer .footer-subscribe {
  text-align: left;
  justify-self: end;
  width: min(100%, 520px);
}

.mck-footer .footer-subscribe h3 {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.mck-footer .footer-subscribe p {
  color: #555555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}


.mck-footer .footer-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  justify-items: end;
  max-width: none;
  width: auto;
  margin: 0;
}

.mck-footer .footer-form input {
  border: 1px solid #b8b8b8;
  padding: 0.7rem 0.9rem;
  font-family: var(--body-font);
  border-radius: 0;
}

.mck-footer .footer-form button {
  background-color: #1b4dff;
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.2rem;
  font-weight: 200;
  cursor: pointer;
  border-radius: 0;
}

.mck-footer .footer-divider {
  border-top: 1px solid #e0e0e0;
}

.mck-footer .footer-legal .container {
  padding: 1.5rem 0;
}

.mck-footer .footer-legal-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.4fr) 1fr;
  gap: 2rem;
  align-items: start;
}

.mck-footer .footer-icon-row {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.mck-footer .footer-icon-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: background-color 0.2s ease;
}

.mck-footer .footer-icon-row img {
  width: 18px;
  height: 18px;
  display: block;
  filter: none;
}

.mck-footer .footer-icon-row a:hover {
  background-color: var(--accent-color);
}

.mck-footer .footer-icon-row a:hover img {
  filter: invert(1);
}

.mck-footer .footer-policy {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: flex-end;
}

.mck-footer .footer-policy a {
  color: #222222;
  text-decoration: none;
  font-size: 0.9rem;
}

.mck-footer .footer-policy a:hover {
  color: var(--accent-color);
}

.mck-footer .footer-bottom {
  background-color: #ffffff;
  border-top: 1px solid #efefef;
}

.mck-footer .footer-bottom .container {
  padding: 1.5rem 0 2.5rem;
}

.mck-footer .footer-bottom-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.mck-footer .footer-apps p {
  color: #555555;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.mck-footer .app-badges {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.mck-footer .app-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid #111111;
  border-radius: 0;
  text-decoration: none;
  font-size: 0.85rem;
  color: #111111;
}

.mck-footer .footer-copy {
  font-size: 0.9rem;
  color: #666666;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .mck-footer .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .mck-footer .footer-subscribe {
    text-align: left;
    justify-self: start;
    width: 100%;
  }

  .mck-footer .footer-form {
    justify-items: stretch;
  }

  .mck-footer .footer-links-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .mck-footer .footer-legal-grid {
    grid-template-columns: 1fr;
  }

  .mck-footer .footer-bottom-grid {
    grid-template-columns: 1fr;
  }

  .mck-footer .footer-copy {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .mck-footer .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .mck-footer .footer-form {
    grid-template-columns: 1fr;
  }
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

form .form-group {
  margin-bottom: 1.2rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #cccccc;
  border-radius: 0;
  font-family: var(--body-font);
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  padding: 0.8rem 1.5rem;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  border-radius: 0;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0f4c75;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .nav ul.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}
