:root {
  --accent: #f3cfab;
  --ink: #222831;
  --muted: #6c757d;
  --icon-blue: #20256f;
  --light-gray: #f6f7f8;
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Merriweather Sans", Arial, sans-serif;
  line-height: 1.65;
  background: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
.button,
.site-nav {
  font-family: "Merriweather Sans", Arial, sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.site-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-height: 53px;
  padding: 0 6.25%;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav.scrolled,
.site-nav.open {
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 31px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.site-nav.scrolled .nav-link,
.site-nav.open .nav-link {
  color: #212529;
}

.nav-link.active,
.nav-link:hover,
.site-nav.scrolled .nav-link.active,
.site-nav.scrolled .nav-link:hover,
.site-nav.open .nav-link.active,
.site-nav.open .nav-link:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-self: center;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  min-height: 100vh;
  padding: 90px 24px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url("assets/hero-capture.png") center center / cover no-repeat;
}

.hero-content {
  max-width: 980px;
  transform: translateY(15px);
  opacity: 0;
}

.hero h1 {
  margin-bottom: 30px;
  text-transform: uppercase;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
}

.hero p {
  max-width: 850px;
  margin: 35px auto 42px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.55;
}

.divider {
  width: 52px;
  height: 3px;
  margin: 0 auto;
}

.divider-dark {
  background: #000;
}

.divider-light {
  background: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 177px;
  min-height: 62px;
  padding: 17px 32px;
  border: 0;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button-dark {
  color: #fff;
  background: #000;
}

.button-dark:hover {
  background: #1a1a1a;
}

.section {
  padding: 76px 0 92px;
}

#about,
#products {
  scroll-margin-top: 53px;
}

.container {
  width: min(1110px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.container.narrow {
  width: min(720px, calc(100% - 40px));
}

.about-section {
  min-height: 533px;
  padding-top: 75px;
  background: var(--accent);
  color: #000;
}

.about-section h2,
.products-section h2,
.delivery-section h2,
.contact-section h2 {
  margin-bottom: 22px;
  font-size: 32px;
  line-height: 1.2;
}

.about-section p {
  margin: 26px auto 47px;
  font-size: 16px;
  line-height: 1.55;
}

.products-section {
  padding-bottom: 0;
}

.products-section h2 {
  font-size: 34px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 68px 0 128px;
}

.product-card {
  text-align: center;
}

.product-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  color: var(--icon-blue);
  fill: currentColor;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.25;
}

.product-card p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.portfolio-heading {
  margin-bottom: 23px;
}

.portfolio-heading h2 {
  margin-bottom: 22px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.portfolio-box {
  position: relative;
  aspect-ratio: 320 / 172;
  overflow: hidden;
  background: #e5e5e5;
  cursor: zoom-in;
}

.portfolio-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.18s ease;
}

.portfolio-box:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

.portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-section {
  background: #fff;
  text-align: center;
}

.delivery-section h2 {
  margin: 0;
  padding: 32px 20px 84px;
  background: var(--accent);
  font-size: 32px;
}

.delivery-section iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  background: #fff;
}

.contact-section {
  padding-top: 39px;
  padding-bottom: 46px;
}

.contact-section h2 {
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 32px;
}

.contact-details {
  display: grid;
  gap: 2px;
  margin: 0 auto 4px;
  color: var(--muted);
  font-family: "Merriweather Sans", Arial, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto;
}

.contact-details svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-form {
  display: grid;
  gap: 15px;
  width: 100%;
  margin-top: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: #495057;
  font-family: "Merriweather Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form textarea {
  min-height: 62px;
  resize: vertical;
}

.contact-form .button {
  justify-self: center;
  min-width: 174px;
  min-height: 61px;
  margin-top: 1px;
}

.site-footer {
  padding: 49px 20px 48px;
  background: var(--light-gray);
  color: var(--muted);
  text-align: center;
  font-family: "Merriweather Sans", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.site-footer p {
  margin: 0 0 2px;
}

.site-footer a:hover {
  color: #000;
}

.lightbox {
  width: min(94vw, 1100px);
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    justify-content: flex-end;
    padding: 0 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-toggle {
    display: block;
    color: #212529;
  }

  .nav-menu {
    position: absolute;
    top: 53px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 14px;
    background: #fff;
  }

  .site-nav.open .nav-menu {
    display: flex;
  }

  .nav-link {
    color: #212529;
    padding: 10px 0;
  }

  .hero {
    min-height: 100vh;
    padding-top: 100px;
    background:
      linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)),
      url("assets/portfolio/7.png") center center / cover no-repeat;
  }

  .hero-content {
    opacity: 1;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 86px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-details {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 62px 0 72px;
  }

  .about-section {
    min-height: auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .delivery-section h2 {
    padding-bottom: 56px;
  }

  .contact-details a {
    display: flex;
    width: 100%;
  }
}
