:root {
  --footer-bg: #242424;
  --footer-text: #f3f3f3;
  --footer-heading: #e4e792;
  --body-text: #828b97;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--body-text);
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero {
  min-height: clamp(300px, 48vw, 650px);
  background-image: url('../images/massad-hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.intro-section {
  background: #ffffff;
  position: relative;
  z-index: 2;
}

/*
  White curved transition under the hero.
  This version avoids negative z-index so the curve stays visible above the hero image.
*/
.curve-panel {
  position: relative;
  max-width: 1600px;
  margin: -95px auto 0;
  padding: 30px 28px 72px;
  background: #ffffff;
  overflow: visible;
  z-index: 5;
}

.curve-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -75px;
  width: 125vw;
  height: 155px;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
  pointer-events: none;
}

.curve-panel > * {
  position: relative;
  z-index: 2;
}

.intro-copy {
  max-width: 700px;
  margin: 0 auto 58px;
  text-align: center;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  letter-spacing: 0.01em;
}

.brand-grid {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(32px, 8vw, 120px);
}

.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  transform: translateY(-4px);
  opacity: 0.86;
}

.brand-link:focus-visible {
  outline: 3px solid #0a68a9;
  outline-offset: 6px;
}

.brand-link img {
  width: min(230px, 100%);
  max-height: 190px;
  object-fit: contain;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 58px 28px 64px;
}

.footer-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr;
  gap: clamp(36px, 7vw, 110px);
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--footer-heading);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
}

.footer-column p {
  margin: 0 0 10px;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.footer-column a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  text-decoration: underline;
}

.copyright {
  padding-top: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .curve-panel {
    margin-top: -70px;
    padding-top: 76px;
  }

  .curve-panel::before {
    top: -55px;
    height: 115px;
  }

  .brand-grid {
    gap: 28px;
  }

  .brand-link img {
    width: min(190px, 100%);
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 280px;
    background-position: center top;
  }

  .curve-panel {
    margin-top: -46px;
    padding: 58px 22px 50px;
  }

  .curve-panel::before {
    top: -38px;
    height: 80px;
  }

  .intro-copy {
    margin-bottom: 36px;
    font-size: 0.95rem;
  }

  .brand-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brand-link {
    min-height: 120px;
  }

  .brand-link img {
    width: min(210px, 70vw);
  }

  .site-footer {
    padding: 44px 28px 50px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 230px;
  }

  .curve-panel {
    margin-top: -30px;
  }

  .curve-panel::before {
    top: -26px;
    height: 56px;
  }
}
