/* =========================================================
   Al-Rawabet — main stylesheet
   Brand colors are taken from the logo (sand + bronze gold).
   ========================================================= */

:root {
  --gold: #a88a4a;          /* primary accent */
  --gold-dark: #8a7236;     /* logo text colour; white text on it passes WCAG AA */
  --gold-ink: #7a642e;      /* gold for small text on white, cream and sand-light (passes WCAG AA) */
  --sand: #c4b794;          /* logo calligraphy */
  --sand-light: #efe9dc;
  --cream: #f8f6f1;

  --ink: #1b1f24;           /* dark sections */
  --ink-2: #252a31;
  --text: #2b2f35;
  --muted: #6b6f76;
  --line: #e4ded1;
  --white: #fff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(27, 31, 36, .08);
  --shadow-lg: 0 20px 50px rgba(27, 31, 36, .18);

  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.icon { width: 1em; height: 1em; flex: none; }
.icon-sprite { display: none; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold-dark); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: .8em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold-dark); color: #fff; box-shadow: 0 8px 20px rgba(138, 114, 54, .35); }
.btn--primary:hover { background: var(--gold-ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn--outline:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- 1. Top bar & header ---------- */
.topbar { background: var(--ink); color: #c9c5bb; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar__contact a:hover { color: var(--sand); }
.topbar .icon { color: var(--sand); }
@media (max-width: 640px) {
  .topbar__contact a:first-child { display: none; }
}

.social { display: flex; gap: 8px; }
.social a {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  color: inherit; transition: background .2s, color .2s;
}
.social a:hover { background: var(--gold); color: #fff; }
.social .icon { width: 16px; height: 16px; color: inherit; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--text);
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--gold-dark); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 54px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
}

/* ---------- 2. Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 42px - var(--header-h)); min-height: calc(100svh - 42px - var(--header-h));
  display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  background-image: url("../img/hero.jpg");
  animation: heroZoom 18s ease-out both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20, 23, 27, .92) 0%, rgba(20, 23, 27, .7) 45%, rgba(20, 23, 27, .25) 100%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__content { padding-top: 80px; padding-bottom: 100px; max-width: var(--container); }
/* the brand is the big line; "HVAC Products" sits under it at about half the size */
.hero .eyebrow {
  color: var(--sand); font-size: clamp(2.2rem, 11vw, 6.2rem); font-weight: 800; line-height: 1.05;
  letter-spacing: .04em; gap: .3em; margin-bottom: .12em;
}
.hero .eyebrow::before { width: .55em; height: .05em; min-height: 2px; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.1; margin-bottom: .6em; letter-spacing: -.01em; }
.hero__lead { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #dcd8cf; margin-bottom: 2em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__content > * { animation: fadeUp .9s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .1s; }
.hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__content > *:nth-child(4) { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--sand); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections (shared) ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section__head .eyebrow { justify-content: center; }
.section__head p:last-child { color: var(--muted); margin: 0; }

/* ---------- 3. About ---------- */
.about__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 1.1fr; } }
.about__media { position: relative; margin: 0 0 30px; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 10 / 11; object-fit: cover; width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 60%; height: 60%;
  border: 2px solid var(--sand); border-radius: var(--radius); z-index: -1;
}
.about__badge {
  position: absolute; right: -10px; bottom: -28px; background: var(--ink); color: #fff;
  padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; border-left: 4px solid var(--gold);
}
@media (min-width: 900px) { .about__badge { right: -30px; } }
.about__badge strong { font-size: 1.5rem; color: var(--sand); }
.about__badge span { font-size: .9rem; color: #c9c5bb; }
.about__text > p { color: var(--muted); font-size: 1.05rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist strong { color: var(--ink); }

.about__more { margin-bottom: 24px; animation: fadeUp .5s var(--ease); }
.mv { display: grid; gap: 16px; }
@media (min-width: 560px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv > div { background: var(--cream); border-radius: var(--radius-sm); padding: 20px 22px; border-top: 3px solid var(--gold); }
.mv h3 { margin-bottom: .4em; }
.mv p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 4. Highlights slider ---------- */
.slider { position: relative; height: clamp(440px, 58vw, 680px); overflow: hidden; background: var(--ink); }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
  display: flex; align-items: flex-end;
}
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 23, 27, .92) 0%, rgba(20, 23, 27, .2) 70%); }
.slide.is-active { opacity: 1; visibility: visible; }
/* ?v= makes browsers fetch a replaced photo instead of the cached copy */
/* crop higher so the top row of logos stays in view */
.slide--1 { background-image: url("../img/slides/slide-1.jpg?v=5"); background-position: center 32%; }
.slide--2 { background-image: url("../img/slides/slide-2.jpg"); }
.slide--3 { background-image: url("../img/slides/slide-3.jpg"); }
.slide--4 { background-image: url("../img/slides/slide-4.jpg"); }
.slide--5 { background-image: url("../img/slides/slide-5.jpg?v=3"); }
/* main.js adds .is-near when the slideshow is about to scroll into view, so the photos don't slow the first page load */
.js .slider:not(.is-near) .slide { background-image: none; }
.slide__caption { position: relative; padding-bottom: 110px; color: #fff; }
.slide__caption h2 { color: #fff; max-width: 720px; font-size: clamp(1.6rem, 4vw, 3rem); margin: 0; }
.slide.is-active .slide__caption > * { animation: fadeUp .9s var(--ease) both; }
.slide.is-active .slide__caption h2 { animation-delay: .15s; }
.slide__num { display: block; font-size: .9rem; font-weight: 800; letter-spacing: .2em; color: var(--sand); margin-bottom: 12px; }
.slider__controls { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; align-items: center; gap: 16px; }
.slider__arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.slider__arrow:hover { background: var(--gold); border-color: var(--gold); }
.slider__arrow .icon { width: 20px; height: 20px; }.slider__dots { display: flex; gap: 8px; }
.slider__dots button {
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .35);
  transition: background .3s, width .3s;
}
.slider__dots button[aria-current="true"] { background: var(--sand); width: 48px; }

/* ---------- 5. Products ---------- */
.products { background: var(--cream); }
.products__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__media {
  width: 100%; aspect-ratio: 16 / 11; object-fit: contain; background: #fff; padding: 18px;
  border-bottom: 1px solid var(--line); transition: transform .5s var(--ease);
}
.card:hover .card__media { transform: scale(1.04); }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 28px; background: #fff; position: relative; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card__brands { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card__brands li {
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-ink);
  background: var(--sand-light); padding: 4px 10px; border-radius: 999px;
}
.card__catalog { margin-top: auto; align-self: flex-start; }
.card__brands:has(+ .card__catalog) { margin-bottom: 20px; }
.card__catalog .icon { width: 18px; height: 18px; }

/* Catalogue viewer (PDF in a popup) */
.pdf-modal {
  width: min(1100px, calc(100% - 32px)); height: min(92vh, 1000px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink);
  box-shadow: var(--shadow-lg); flex-direction: column;
}
.pdf-modal[open] { display: flex; animation: fadeUp .35s var(--ease); }
.pdf-modal::backdrop { background: rgba(20, 23, 27, .75); backdrop-filter: blur(3px); }
.pdf-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 24px; }
.pdf-modal__bar h2 { color: #fff; font-size: 1.1rem; margin: 0; }
.pdf-modal__actions { display: flex; align-items: center; gap: 8px; }
.pdf-modal__actions .btn:hover { transform: none; }
.pdf-modal__actions .icon { width: 18px; height: 18px; }
.pdf-modal__close {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; transition: background .2s;
}
.pdf-modal__close:hover { background: rgba(255, 255, 255, .12); }
.pdf-modal__close .icon { width: 20px; height: 20px; }
.pdf-modal__frame { flex: 1; width: 100%; border: 0; background: #525659; }

/* ---------- 6. Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(196, 183, 148, .06);
}
.stats__inner { display: grid; gap: 48px; align-items: center; position: relative; }
@media (min-width: 960px) { .stats__inner { grid-template-columns: 1fr 1.2fr; } }
.stats h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.stats__intro p { color: #b9b5ab; margin-bottom: 1.8em; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.stat { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; container-type: inline-size; }
.stat dd { margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; color: var(--sand); line-height: 1; font-variant-numeric: tabular-nums; }
/* shrink with the tile on narrow phones so "100,000" still fits on one line */
.stat dd { font-size: min(clamp(2.2rem, 4.5vw, 3.2rem), 24cqi); }
.stat dt { color: #b9b5ab; margin-top: 10px; font-weight: 600; font-size: .95rem; }

/* ---------- 7. Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 34px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.step:hover { border-color: var(--sand); box-shadow: var(--shadow); }
.step__num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--sand); font-weight: 800; margin-bottom: 20px; position: relative; z-index: 1;
}
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 61px; left: calc(28px + 56px + 12px); right: -12px;
    border-top: 2px dashed var(--sand);
  }
}
.step p { color: var(--muted); margin: 0; }

/* ---------- 8. Projects ---------- */
.projects { background: var(--cream); }
.projects__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.project { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.project img { width: 100%; aspect-ratio: 226 / 179; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project figcaption {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none;
}

.cities { display: grid; gap: 48px; }
.city h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.city h3 .icon { color: var(--gold); width: 20px; height: 20px; }

/* ---------- 9. Brands ---------- */
.brands { padding: 56px 0; border-bottom: 1px solid var(--line); }
.brands__label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .container { margin-top: 36px; }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 35s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__track > * { flex: none; }
.logo {
  display: grid; place-items: center; min-width: 180px; height: 72px; padding: 10px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.logo img { max-height: 50px; max-width: 150px; width: auto; height: auto; }

/* ---------- 10. Customer feedback ---------- */
.feedback__form { max-width: 820px; margin: 0 auto; }
.rating { border: 0; margin: 0; padding: 0; min-width: 0; }
.form fieldset.rating legend { display: block; padding: 0; margin-bottom: 8px; }
/* stars are in reverse order so "this star and the ones before it" can light up with CSS only */
.rating__stars { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; height: 50px; align-items: center; }
/* .form prefix so it beats ".form input { width: 100% }", which made the page scroll sideways */
.form .rating__stars input { position: absolute; left: 0; opacity: 0; width: 1px; height: 1px; padding: 0; }
.form .rating__stars label { display: block; cursor: pointer; color: var(--line); transition: color .15s, transform .15s; }
/* the outline keeps empty stars visible on the white form */
.rating__stars .icon { width: 34px; height: 34px; stroke: var(--gold-dark); stroke-width: 1.2; stroke-linejoin: round; }
.rating__stars label:hover, .rating__stars label:hover ~ label,
.rating__stars input:checked ~ label { color: var(--gold); }
.rating__stars label:hover { transform: scale(1.12); }
.rating__stars input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- 11. Contact ---------- */
.contact { background: var(--cream); }
.contact__grid { display: grid; gap: 32px; }
/* phones and tablets stack info, form, map; desktop puts info and form side by side
   (the message box grows so the form ends level with the info cards) with the map full width below */
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1fr 1.25fr; grid-template-areas: "info form" "map map"; }
  .contact__info { grid-area: info; }
  .contact .form { grid-area: form; grid-template-rows: auto auto auto 1fr auto; }
  .contact .form > label { grid-template-rows: auto 1fr; }
  .contact .map { grid-area: map; }
}
.contact__info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__info li { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 18px 20px; border-radius: 4px; border: 1px solid var(--line); }
.contact__info li > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--ink); color: var(--sand); }
.contact__info strong { display: block; color: var(--ink); }
.contact__info span, .contact__info a { color: var(--muted); }
.contact__info .phones { display: grid; gap: 2px; }
.contact__info a:hover { color: var(--gold-dark); }
.locations { flex: 1; min-width: 0; display: grid; gap: 8px; }
.locations > small { margin-top: -6px; font-size: .82rem; color: var(--muted); }
.location {
  display: block; width: 100%; text-align: left; background: var(--cream); color: inherit;
  border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.location strong { font-size: .95rem; }
.location span { display: block; font-size: .88rem; line-height: 1.45; }
.location:hover { border-color: var(--sand); background: #fff; }
.location[aria-pressed="true"] { border-color: var(--gold); background: #fff; box-shadow: inset 4px 0 0 var(--gold); }
.map { position: relative; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); height: clamp(220px, 40vw, 420px); background: var(--sand-light); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* main.js puts the next location's map on top and fades it in once it has loaded */
.map__frame { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.map__frame.is-shown { opacity: 1; }
/* clickable spot over Google's pin, which always sits in the middle of the map */
.map__pin { position: absolute; z-index: 1; left: 50%; top: 50%; width: 40px; height: 50px; margin: -46px 0 0 -20px; border-radius: 50% 50% 45% 45%; }
.map__pin:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* formal look: squared corners, gold rule on top, small uppercase labels, plain white fields */
.form { background: #fff; padding: clamp(24px, 4vw, 44px); border-radius: 4px; border: 1px solid var(--line); border-top: 3px solid var(--gold-dark); box-shadow: 0 1px 3px rgba(27, 31, 36, .06); display: grid; gap: 20px; align-content: start; }
.form__head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form__head h3 { margin: 0 0 6px; font-size: 1.35rem; color: var(--ink); }
.form__head p { margin: 0; font-size: .92rem; color: var(--muted); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label, .form .rating legend { display: grid; gap: 8px; align-content: start; font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.form label small, .form .rating legend small { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .95rem; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--text); background: #fff;
  border: 1px solid #d3ccbc; border-radius: 3px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #b9b09b; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(138, 114, 54, .15); }
.form .is-invalid { border-color: #c0392b; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form__note { margin: 0; font-size: .82rem; color: var(--muted); }
.form__foot .btn { border-radius: 3px; background: var(--ink); box-shadow: none; padding: 14px 32px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.form__foot .btn:hover { background: var(--gold-dark); transform: none; }
@media (max-width: 599px) { .form__foot .btn { width: 100%; } }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status:empty { display: none; }
.form__status.is-success { color: #2e7d4f; }
.form__status.is-error { color: #c0392b; }
.form button[disabled] { opacity: .7; cursor: wait; }

/* ---------- 12. Footer ---------- */
.footer { background: var(--ink); color: #b9b5ab; padding-top: 72px; font-size: .95rem; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 56px; }
.footer__brand img { height: 90px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 280px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--sand); }
.footer .social a { background: var(--ink-2); }
.footer .social a:hover { background: var(--gold); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .88rem; text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2.4s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Tablets & phones ---------- */
@media (max-width: 899px) {
  /* stacked layout: a landscape crop keeps the photo from filling the whole screen */
  .about__media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) {
  /* arrows and dots on one row down to 320px wide */
  .slider__controls { gap: 12px; }
  .slider__arrow { width: 40px; height: 40px; }
  .slider__dots { gap: 6px; }
  .slider__dots button { width: 18px; }
  .slider__dots button[aria-current="true"] { width: 32px; }

  .products__grid { gap: 16px; }
  .card__media { aspect-ratio: 2 / 1; padding: 12px; }
  .card__body { padding: 18px 20px 22px; }
  .card__brands { margin-top: 12px; }
  .card__brands:has(+ .card__catalog) { margin-bottom: 16px; }

  .stats__grid { gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat dt { font-size: .85rem; }

  .steps { gap: 14px; }
  .step { padding: 22px 20px; }
  .step__num { width: 44px; height: 44px; margin-bottom: 14px; font-size: .9rem; }

  /* two projects per row instead of one long column */
  .cities { gap: 36px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .project figcaption { padding: 22px 10px 8px; font-size: .8rem; }

  .logo { min-width: 140px; height: 64px; padding: 8px 16px; }
  .logo img { max-width: 110px; max-height: 44px; }

  .contact__info li { padding: 16px; gap: 12px; }
  .contact__info li > .icon { width: 38px; height: 38px; padding: 9px; }

  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float .icon { width: 26px; height: 26px; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  /* the slideshow and the map still cross-fade: a fade is not motion */
  .slide { transition-duration: 1s !important; }
  .map__frame { transition-duration: .6s !important; }
}
