/* Design tokens (from Figma variables) */
:root {
  --primary-text: #202020;
  --secondary-text: #4d4d4d;
  --dark-grey: #4d4d4d;
  --light-grey: #c7c7c5;
  --green: #638a57;
  --beige: #e9e0d9;
  --white: #fff;

  --font: "Museo Sans", "Nunito Sans", system-ui, sans-serif;
  --w-light: 300;
  --w-medium: 500;

  --page-max: 1440px;
  --gutter: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--primary-text);
  font-family: var(--font);
  font-weight: var(--w-light);
  -webkit-font-smoothing: antialiased;
}

body > header,
main {
  max-width: var(--page-max);
  margin-inline: auto;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, address { margin: 0; font-style: normal; }

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

/* Typography */
.h2 { font-size: 48px; line-height: 56px; font-weight: var(--w-light); color: var(--primary-text); }
.h3 { font-size: 20px; line-height: 28px; font-weight: var(--w-medium); color: var(--primary-text); }
.lead { font-size: 20px; line-height: 28px; font-weight: var(--w-light); color: var(--secondary-text); }
.body { font-size: 16px; line-height: 26px; font-weight: var(--w-light); color: var(--secondary-text); }
.caption { font-size: 12px; line-height: 16px; font-weight: var(--w-light); color: var(--secondary-text); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: var(--w-medium);
  color: var(--primary-text);
}
.text-link img { transition: transform .2s ease; }
.text-link:hover img { transform: translateX(4px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  font-size: 14px;
  line-height: 26px;
  font-weight: var(--w-medium);
  white-space: nowrap;
  transition: background-color .2s ease;
}
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: #557a4a; }
.btn--lg { font-size: 20px; line-height: 28px; }

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
}
.header__logo img { width: 123px; height: 62px; object-fit: cover; }
.header__right { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 12px; }
.nav a {
  font-size: 14px;
  line-height: 26px;
  font-weight: var(--w-medium);
  color: var(--secondary-text);
}
.nav a:hover { color: var(--green); }
.header__icons { display: flex; align-items: center; gap: 16px; }
.icon-link img { width: 32px; height: 32px; }
.header__toggle { display: none; }

/* Hero */
.hero { height: 720px; padding-inline: var(--gutter); }
.hero__media { position: relative; height: 100%; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slides::after {
  /* Extra legibility for the added demo slides; the original Figma slide stays untouched */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, 0) 75%);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero__slides:has(.hero__image--shade.is-active)::after { opacity: 1; }
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__image:first-child { object-position: center 16%; }
.hero__image.is-active { opacity: 1; }
.hero__content {
  position: absolute;
  left: 64px;
  top: 284px;
  width: 479px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  color: var(--white);
}
.hero__text { display: flex; flex-direction: column; gap: 32px; }
.hero__title { width: 550px; max-width: 100%; font-size: 56px; line-height: 62px; font-weight: var(--w-medium); }
.hero__lead { font-size: 22px; line-height: 30px; font-weight: var(--w-light); }
.hero__content { z-index: 1; }
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 29px;
  z-index: 1;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}
.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--light-grey);
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, .35);
  transition: background-color .3s ease, transform .2s ease;
}
.hero__dot:hover { transform: scale(1.2); }
.hero__dot.is-active { background: var(--green); }
.hero__dot:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hero__image, .hero__slides::after { transition: none; }
}

/* Generic section */
.section { padding-inline: var(--gutter); }
.section-header { display: flex; flex-direction: column; gap: 12px; }

/* Products */
.products {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 80px;
}
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative;
  aspect-ratio: 644 / 720;
  overflow: hidden;
}
.card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card__image--floors { object-position: 35% center; }
.card__image--walls { object-position: center 78%; }
.card:hover .card__image { transform: scale(1.03); }
.card__frame {
  position: absolute;
  top: 24px;
  left: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  pointer-events: none;
}
.card__label {
  position: absolute;
  left: 48px;
  bottom: 42px;
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--w-medium);
  color: var(--white);
}

/* Floating "Order Samples" */
.samples {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 230px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 2px 2px 4.3px rgba(0, 0, 0, .25);
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--w-medium);
  color: var(--dark-grey);
}
.samples img { width: 36px; height: 36px; flex-shrink: 0; }

/* Key benefits */
.benefits {
  display: flex;
  gap: 50px;
  padding: 64px 80px;
}
.benefit { flex: 1 1 0; display: flex; align-items: flex-start; gap: 20px; }
.benefit img { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; }
.benefit > div { display: flex; flex-direction: column; gap: 8px; }

/* Showroom */
.showroom { padding: 80px var(--gutter) 36px; }
.showroom__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 68px 64px 96px;
}
.showroom__content {
  flex: 0 0 519px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.showroom__heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.showroom__address { font-size: 16px; line-height: 26px; color: var(--secondary-text); }
.showroom__address strong { font-weight: var(--w-medium); color: var(--primary-text); line-height: 24px; }
.showroom__image { flex: 1 1 auto; width: 708px; height: 504px; min-width: 0; object-fit: cover; }

/* Reviews */
.reviews {
  display: flex;
  align-items: stretch;
  gap: 46px;
  height: 520px;
  padding: 64px;
  background: var(--beige);
}
.review-card {
  flex: 0 0 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 46px 48px 48px;
  background: var(--white);
  border: 1px solid var(--beige);
}
.review-card__text { display: flex; flex-direction: column; gap: 24px; }
.rating { display: flex; align-items: center; gap: 29px; flex-wrap: wrap; }
.rating__label { font-size: 30px; line-height: 56px; font-weight: var(--w-medium); }
.rating__stars { font-size: 30px; line-height: 56px; color: var(--green); letter-spacing: 2px; }
.review-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.read-more { font-size: 18px; line-height: 28px; font-weight: var(--w-medium); color: var(--primary-text); }
.review-card__arrows { display: flex; justify-content: flex-end; gap: 24px; }
.arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 1px solid var(--light-grey);
  cursor: pointer;
  transition: border-color .2s ease;
}
.arrow-btn:hover { border-color: var(--primary-text); }
.reviews__image { flex: 0 1 520px; min-width: 0; overflow: hidden; }
.reviews__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 67%; }

/* Completed projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 60px;
  padding-bottom: 96px;
}
.projects__content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.projects__content .h2 { max-width: 498px; }
.projects__gallery { height: 620px; overflow: hidden; }
.projects__gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 48px var(--gutter);
  background: var(--dark-grey);
  border: 1px solid #000;
  color: var(--light-grey);
  font-size: 14px;
}
/* Footer background spans the full viewport; content stays aligned with the page */
.footer > * {
  width: 100%;
  max-width: calc(var(--page-max) - 2 * var(--gutter));
  margin-inline: auto;
}
.footer__main { display: flex; gap: 40px; padding-block: 48px; }
.footer__brand { flex: 0 0 266px; display: flex; flex-direction: column; gap: 17px; line-height: 22px; }
.footer__brand img { width: 99px; height: 50px; object-fit: cover; }
.footer__white { color: var(--white); }
.footer__col { flex: 0 0 306px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; line-height: 20px; }
.footer__col--services { flex: 1 1 0; gap: 12px; }
.footer__col a:hover,
.footer__brand a:hover,
.footer__bottom a:hover { color: var(--white); }
.footer__title { font-weight: var(--w-medium); line-height: 22px; color: var(--white); }
.footer__title--link { text-decoration: underline; }

.footer__extra { display: flex; justify-content: space-between; align-items: flex-start; }
.footer__fsc { width: 152px; height: 77px; object-fit: contain; }
.newsletter { width: 300px; display: flex; flex-direction: column; gap: 12px; color: var(--white); }
.newsletter__title { font-size: 16px; line-height: 22px; font-weight: var(--w-medium); }
.newsletter__text { line-height: 22px; }
.newsletter__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  border-bottom: 1px solid rgba(199, 199, 197, .4);
}
.newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--white);
  font: var(--w-medium) 12px/22px var(--font);
}
.newsletter__form input::placeholder { color: var(--white); opacity: 1; }
.newsletter__form button { padding: 0; background: none; border: 0; cursor: pointer; }
.socials { display: flex; gap: 12px; padding: 10px; }
.socials img { width: 40px; height: 40px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 100px;
  padding: 24px 64px;
  border-top: 1px solid rgba(157, 157, 157, .52);
  line-height: 20px;
}
.footer__bottom a { color: var(--white); }

/* Elements that only appear at smaller sizes */
.header__mobile { display: none; align-items: center; gap: 16px; }
.header__mobile img { width: 24px; height: 24px; }
.header__toggle { display: none; padding: 0; background: none; border: 0; cursor: pointer; }
.footer__brand-top { display: flex; flex-direction: column; gap: 17px; }
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
/* Laptop / tablet: no Figma frame, interpolated between desktop and mobile */
@media (max-width: 1280px) {
  :root { --gutter: 40px; }
  .showroom__inner { padding-inline: 0; }
  .showroom__content { flex-basis: 440px; }
  .review-card { flex-basis: 58%; }
  .footer__col { flex: 1 1 0; }
  .footer__brand { flex-basis: 240px; }
}

@media (max-width: 1100px) {
  .header { position: relative; }
  .header__mobile { display: flex; }
  .header__toggle { display: block; }
  .icon-link--desktop { display: none; }
  .header__right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--gutter) 32px;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  }
  .nav-open .header__right { display: flex; }
  .nav { flex-direction: column; gap: 8px; }
  .nav a { font-size: 18px; line-height: 32px; }

  .benefits { flex-direction: column; gap: 32px; padding: 48px var(--gutter); }

  .showroom__inner { flex-direction: column; gap: 40px; padding-block: 0 48px; }
  .showroom__content { flex-basis: auto; }
  .showroom__image { width: 100%; height: auto; aspect-ratio: 708 / 504; }

  .reviews { flex-direction: column; height: auto; padding: 40px var(--gutter); gap: 24px; }
  .review-card { flex-basis: auto; }
  .reviews__image { flex-basis: auto; height: 360px; }

  .footer__main { flex-wrap: wrap; }
  .footer__brand, .footer__col { flex: 1 1 calc(50% - 20px); }
}

/* Mobile: follows Figma frame "Mobile / Home" (393px) */
@media (max-width: 767px) {
  :root { --gutter: 24px; }

  .h2 { font-size: 32px; line-height: 40px; }
  .lead, .projects .body, .showroom .lead { font-size: 16px; line-height: 24px; }

  /* Header */
  .header { height: 72px; padding-block: 0; }
  .header__logo img { width: 79px; height: 40px; }

  /* Hero */
  .hero { height: 620px; }
  .hero__image:first-child { object-position: 85% center; }
  .hero__content { left: 24px; right: 24px; top: auto; bottom: 75px; width: auto; gap: 20px; }
  .hero__text { width: 100%; gap: 12px; }
  .hero__title { width: auto; font-size: 32px; line-height: 40px; }
  .hero__lead { font-size: 16px; line-height: 24px; }
  .hero .btn--lg { font-size: 14px; line-height: 26px; }
  .hero__dots { bottom: 23px; }

  /* Section order: showroom comes before key benefits */
  main { display: flex; flex-direction: column; }
  .hero { order: 1; }
  .products { order: 2; }
  .showroom { order: 3; }
  .benefits { order: 4; }
  .reviews { order: 5; }
  .projects { order: 6; }

  /* Products */
  .products { padding-top: 48px; padding-bottom: 40px; gap: 20px; }
  .products .section-header .body { max-width: 230px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { aspect-ratio: auto; height: 220px; }
  .card__frame { display: none; }
  .card__label { left: 16px; bottom: 7px; font-size: 16px; }

  /* Showroom */
  .showroom { padding: 0 0 24px; }
  .showroom__inner { gap: 24px; padding: 24px var(--gutter) 11px; }
  .showroom__content { gap: 24px; }
  .showroom__heading { gap: 20px; margin-bottom: 0; }
  .showroom__address { display: none; }
  .showroom__image { aspect-ratio: auto; height: 320px; object-position: left 20%; }

  /* Key benefits */
  .benefits { gap: 40px; padding: 48px var(--gutter) 68px; }

  /* Reviews */
  .reviews { padding: 48px var(--gutter); }
  .review-card { padding: 20px 24px 30px; gap: 0; }
  .review-card__text { gap: 32px; }
  .rating { flex-direction: column; align-items: flex-start; gap: 0; }
  .rating__label, .rating__stars { margin-bottom: -13px; }
  .review-card__body { gap: 12px; }
  .review-card__quote {
    line-height: 24px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  .review-card__author { line-height: 24px; }
  .read-more { font-size: 16px; line-height: 24px; }
  .reviews__image { display: none; }

  /* Completed projects */
  .projects { gap: 16px; padding-top: 32px; padding-bottom: 48px; }
  .projects__content { gap: 12px; }
  .projects__content .body { max-width: 300px; }
  .projects__gallery { height: 350px; }

  /* Floating samples box is replaced by the CTA bar */
  .samples { display: none; }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    gap: 1px;
    background: var(--white);
  }
  .mobile-cta .btn { flex: 1 1 0; }

  /* Footer */
  .footer { gap: 17px; padding: 24px var(--gutter) 40px; }
  .footer__main { flex-direction: column; flex-wrap: nowrap; gap: 42px; padding: 9px 0 20px; }
  .footer__brand-top { flex-direction: row; align-items: flex-end; gap: 17px; }
  .footer__brand p:not(.footer__brand-top p) { color: var(--white); }
  .footer__brand, .footer__col { flex: none; }
  .footer__extra { flex-direction: column; gap: 17px; }
  .footer__fsc { order: 2; }
  .newsletter { width: 300px; max-width: 100%; }
  .socials { gap: 10px; }
  .socials img { width: 34px; height: 34px; }
  .footer__bottom { height: auto; padding: 24px 1px; }
}
