/* ==========================================================================
   Deera Constructions — Landing Page Styles
   Palette/structure restyled after a navy + orange "Conztru"-style reference.
   Content structure follows the construction-company usability checklist
   (pricing intentionally omitted per request).
   ========================================================================== */

:root {
  --navy: #14233f;
  --navy-2: #1c3157;
  --navy-3: #0e1a30;
  --orange: #f2703e;
  --orange-light: #ff8f61;
  --cream: #f7f5f1;
  --panel: #f4f6fa;
  --white: #ffffff;
  --ink: #1c2430;
  --ink-soft: #626c7a;
  --border: #e7e9f0;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -24px rgba(20, 35, 63, 0.28);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 span, h2 span { color: var(--orange); }

h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.eyebrow.light { color: var(--orange-light); }

.center { text-align: center; }
.light { color: var(--white); }
.section-sub.center { max-width: 620px; margin: 0 auto 40px; color: var(--ink-soft); }

.section { padding: 90px 0; }
.section.materials { background: var(--white); }
.section.why-choose { background: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(242,112,62,0.55); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.full-width { width: 100%; }
.btn-whatsapp { display: flex; background: #25D366; color: #08331b; margin-top: 4px; }
.btn-whatsapp:hover { background: #2fe374; }

/* ===== Top utility bar ===== */
.topbar { background: var(--navy-3); color: rgba(255,255,255,0.75); font-size: 0.82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a:hover { color: var(--orange-light); }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); transition: color 0.2s ease; }
.topbar-social a:hover { color: var(--orange-light); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(20,35,63,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.logo span { color: var(--orange); font-weight: 600; }
.logo.light { color: var(--white); }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--navy), var(--orange), var(--navy));
  flex-shrink: 0;
}

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== Hero — light two-column layout, 3-slide crossfade ===== */
.hero { position: relative; background: var(--cream); overflow: hidden; }

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 36px;
}

/* Decorative dot-grid pattern, top-right of the hero */
.hero-dot-grid {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(var(--orange) 1.7px, transparent 1.7px);
  background-size: 18px 18px;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 56px;
}

/* Only the active slide sits in normal flow (so the stack auto-sizes to it,
   including on mobile where the columns stack); inactive slides are
   absolutely overlaid on top of that box for the crossfade, contributing
   no height of their own. */
.hero-slides-stack { position: relative; width: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(.4,0,.2,1), visibility 0s linear 1s;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 1s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
  z-index: 1;
}

/* Contained project photo, right column */
.hero-bg {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s cubic-bezier(.25,.1,.25,1);
}
.hero-slide.is-active .hero-bg img { transform: scale(1.1); }

.hero-copy { max-width: 560px; }
.hero-copy > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: translateY(0); }
.hero-slide.is-active .hero-copy > *:nth-child(1) { transition-delay: 0.15s; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { transition-delay: 0.28s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { transition-delay: 0.41s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { transition-delay: 0.54s; }

.hero-copy h1 { color: var(--navy); font-size: clamp(2.15rem, 4vw, 3.15rem); line-height: 1.16; margin-bottom: 22px; }
.hero-copy h1 span { color: var(--orange); }
.hero-sub { color: var(--ink-soft); margin-bottom: 32px; max-width: 500px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.slider-nav {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: center;
}

.slider-progress { width: 160px; height: 3px; background: rgba(20,35,63,0.1); border-radius: 4px; overflow: hidden; }
.slider-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 4px;
}
.slider-progress-fill.running { animation-name: progressFill; animation-timing-function: linear; animation-fill-mode: forwards; }
.slider-progress-fill.paused { animation-play-state: paused; }
@keyframes progressFill { from { width: 0%; } to { width: 100%; } }

/* Bottom orange diagonal accent band — sized to match the marquee strip below it */
.hero-diagonal {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: var(--orange);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Marquee runner — scrolling specialties strip ===== */
.marquee-strip {
  position: relative;
  background: var(--orange);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-group span:not(.dot) {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
  padding: 0 22px;
}
.marquee-group .dot { color: rgba(255,255,255,0.6); font-size: 1.1rem; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Trust stats — full-bleed dark strip with photo backdrop */
.stats-section { position: relative; overflow: hidden; padding: 76px 0; background: var(--navy-3); }
.stats-bg { position: absolute; inset: 0; z-index: 0; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,17,32,0.9), rgba(9,17,32,0.86)); }

.stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}
.stats-row .stat { position: relative; padding: 0 20px; }
.stats-row .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 56%;
  width: 1px;
  background: rgba(255,255,255,0.16);
}
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2.1rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--orange-light); }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

/* ===== Who We Are — collage visual + feature list (reference layout) ===== */
.who-we-are { overflow: hidden; }
.about-grid-v2 {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 70px;
  align-items: center;
}

/* Visual collage */
.about-visual { position: relative; height: 540px; }
.about-img-primary,
.about-img-secondary {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-primary { left: 0; bottom: 0; width: 46%; height: 62%; z-index: 1; }
.about-img-secondary { right: 6%; top: 0; width: 42%; height: 48%; z-index: 1; }
.about-img-primary img,
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }

.about-badge-circle {
  position: absolute;
  left: 40%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
  filter: drop-shadow(0 14px 24px rgba(20,35,63,0.28));
}
.badge-circle-bg { fill: var(--orange); }
.badge-circle-label {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  fill: rgba(255,255,255,0.95);
}
.badge-circle-num {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  fill: var(--white);
}

.about-rating-card {
  position: absolute;
  right: 0;
  bottom: 4%;
  z-index: 2;
  width: 45%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.rating-score { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--orange); line-height: 1; }
.rating-avatars { display: flex; justify-content: center; margin: 14px 0 10px; }
.rating-avatars img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--white);
  margin-left: -12px;
  box-shadow: 0 0 0 1px var(--border);
}
.rating-avatars img:first-child { margin-left: 0; }
.rating-stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 8px; }
.rating-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.about-bg-decor {
  position: absolute;
  right: -6%;
  bottom: -4%;
  color: var(--border);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

/* Content column */
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow-line span { display: block; width: 34px; height: 2px; background: var(--orange); border-radius: 2px; }

.about-content > p { color: var(--ink-soft); margin: 0 0 28px; }

.about-features { display: flex; gap: 40px; margin-bottom: 24px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.feature-item strong { font-family: var(--font-head); font-size: 0.95rem; color: var(--navy); font-weight: 700; line-height: 1.35; }

.about-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 24px; }

.about-checklist { margin-bottom: 22px; }
.about-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: var(--ink); margin-bottom: 12px; }
.tick-icon { color: var(--orange); flex-shrink: 0; display: flex; align-items: center; margin-top: 3px; }

.about-bold-note { font-weight: 700; color: var(--navy); margin-bottom: 28px !important; }

/* ===== Services (reference: editorial cards, arrow-link, dashed eyebrow) ===== */
.section.services { background: var(--cream); }

.eyebrow-dashed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow-dashed .dash { display: block; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }

.services h2 { max-width: 780px; margin-left: auto; margin-right: auto; }

.services-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}
.service-card-v2 {
  min-width: 0;
  background: var(--white);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 44px -30px rgba(20,35,63,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card-v2:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card-v2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-card-v2 h3 { font-size: 1.2rem; margin-bottom: 0; line-height: 1.3; }
.arrow-btn {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.service-card-v2:hover .arrow-btn { background: var(--orange); color: var(--white); transform: rotate(45deg); }
.service-card-v2-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.service-card-v2 p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }
.service-card-v2-media { border-radius: 14px; overflow: hidden; }
.service-card-v2-media img { width: 100%; height: 190px; object-fit: cover; display: block; }

.link-arrow { color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.link-arrow:hover { color: var(--orange); }

/* ===== Process ===== */
.process-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 26px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--orange);
  width: 44px; height: 44px;
  line-height: 44px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.process-step p { font-size: 0.88rem; color: var(--ink-soft); }

/* ===== Materials ===== */
.materials-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.materials p { color: var(--ink-soft); margin: 14px 0 22px; }
.cert-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-pill {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cert-pill:hover { background: var(--navy); color: var(--orange-light); border-color: var(--navy); }

.materials-list {
  padding: 0;
}
.materials-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy);
}
.materials-list li:last-child { border-bottom: none; }
.materials-list li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* ===== Completed Projects ===== */
.portfolio-dark { background: var(--cream); }

.portfolio-filters { display: flex; justify-content: center; gap: 12px; margin: 10px 0 44px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project-card {
  min-width: 0;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 44px -30px rgba(20,35,63,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover .project-media img { transform: scale(1.08); }
.project-info { padding: 24px 26px 26px; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  background: rgba(242,112,62,0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.portfolio-dark .project-info h3 { color: var(--navy); margin-bottom: 4px; }
.portfolio-dark .project-info p { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 0; }
.project-card.hidden { display: none; }

/* ===== Project Gallery Modal ===== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}
.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.32s ease, visibility 0s linear 0s;
}
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 30, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow: hidden;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 40px 90px -20px rgba(9, 16, 30, 0.6);
  transform: scale(0.92) translateY(18px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(.16,1,.3,1), opacity 0.32s ease;
}
.project-modal.is-open .project-modal__dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.project-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 26, 48, 0.55);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.3s ease;
}
.project-modal__close:hover { background: var(--orange); transform: rotate(90deg) scale(1.06); }
.project-modal__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--panel);
  overflow: hidden;
}
.project-modal__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.28s ease, transform 0.5s cubic-bezier(.16,1,.3,1);
}
.project-modal__image.is-fading { opacity: 0; transform: scale(1.03); }
.project-modal__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 26, 48, 0.55);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.project-modal__nav:hover { background: var(--orange); transform: translateY(-50%) scale(1.1); }
.project-modal__nav--prev { left: 14px; }
.project-modal__nav--next { right: 14px; }
.project-modal__nav[hidden] { display: none; }
.project-modal__counter {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 26, 48, 0.55);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .project-modal { padding: 16px; }
  .project-modal__dialog { max-width: 100%; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-modal,
  .project-modal__dialog,
  .project-modal__image,
  .project-modal__close,
  .project-modal__nav {
    transition: none;
  }
}

/* ===== Why Choose Us ===== */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 70px; align-items: center; }

.why-checklist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 30px; }
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border-radius: 16px;
  padding: 20px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.why-item:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: 0 20px 40px -26px rgba(20,35,63,0.3);
}
.check-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}
.why-item strong { display: block; font-family: var(--font-head); color: var(--navy); margin-bottom: 4px; font-size: 0.95rem; }
.why-item span { font-size: 0.85rem; color: var(--ink-soft); }

.why-media { position: relative; }
.why-media-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.why-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,35,63,0) 55%, rgba(14,26,48,0.55) 100%);
  pointer-events: none;
}
.why-media-frame img { display: block; width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.why-media::before {
  content: '';
  position: absolute;
  top: -22px;
  right: -22px;
  width: 65%;
  height: 55%;
  background: var(--orange);
  border-radius: var(--radius);
  z-index: 0;
  opacity: 0.14;
}
.why-badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  z-index: 2;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 190px;
}
.why-badge strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--orange); line-height: 1; }
.why-badge span { font-size: 0.78rem; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ===== Testimonials — continuous auto-scrolling carousel ===== */
.section.testimonials { background: var(--cream); overflow: hidden; }
.section.testimonials .container { margin-bottom: 10px; }

.testimonial-carousel {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonialScroll 42s linear infinite;
}
.testimonial-carousel:hover .testimonial-track { animation-play-state: paused; }
.testimonial-group { display: flex; gap: 26px; flex-shrink: 0; padding: 6px 13px; }
@keyframes testimonialScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

.testimonial-card {
  position: relative;
  flex: 0 0 380px;
  width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px 30px;
  box-shadow: 0 16px 34px -26px rgba(20,35,63,0.35);
  display: flex;
  flex-direction: column;
}
.quote-mark { color: var(--orange); opacity: 0.45; margin-bottom: 6px; }
.stars { color: var(--orange); margin-bottom: 14px; letter-spacing: 2px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.rating-num { font-family: var(--font-head); font-weight: 700; color: var(--navy); letter-spacing: 0; font-size: 0.82rem; }
.testimonial-card blockquote { color: var(--ink); font-size: 0.95rem; line-height: 1.65; margin-bottom: 22px; flex-grow: 1; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-card figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-card figcaption strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-card .verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.testimonial-card .verified svg { color: var(--orange); flex-shrink: 0; }

/* ===== FAQ ===== */
.section.faq { background: var(--white); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq-intro p { color: var(--ink-soft); margin-top: 14px; line-height: 1.7; }

.faq-trust-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.faq-trust-item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.faq-trust-item svg { color: var(--orange); }
.faq-trust-item span { font-size: 0.78rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: 16px;
  box-shadow: 0 10px 26px -20px rgba(20,35,63,0.25);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.open {
  background: rgba(242, 112, 62, 0.05);
  border-color: rgba(242, 112, 62, 0.25);
  border-left-color: var(--orange);
  box-shadow: 0 18px 36px -22px rgba(20,35,63,0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-align: left;
}
.faq-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.faq-q-text { flex-grow: 1; }

.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.faq-toggle::before { width: 12px; height: 2px; }
.faq-toggle::after { width: 2px; height: 12px; }
.faq-item.open .faq-toggle { background: var(--orange); }
.faq-item.open .faq-toggle::before,
.faq-item.open .faq-toggle::after { background: var(--white); }
.faq-item.open .faq-toggle::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 24px 24px 24px;
  margin-left: 50px;
}
.faq-icon { flex-shrink: 0; color: var(--orange); }
.faq-answer p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }

/* ===== Contact ===== */
.section.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 50px; margin-top: 20px; }

.contact-form-wrap {
  min-width: 0;
  background: var(--white);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 20px 44px -30px rgba(20,35,63,0.3);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); min-width: 0; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--panel);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: 2px solid var(--orange); outline-offset: 1px; background: var(--white); }
.contact-form input:invalid.touched,
.contact-form select:invalid.touched { border-color: #d1453b; }

.contact-form select.budget-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626c7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 38px;
}
.contact-form select.budget-select:focus { background-color: var(--white); }

/* Honeypot — visually hidden but present in the DOM/tab order removed, so bots that
   auto-fill every field trip it while real visitors never see or reach it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.captcha-field {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  gap: 8px !important;
}
.captcha-field #captcha-a,
.captcha-field #captcha-b { color: var(--orange); font-weight: 700; }
.captcha-field input { background: var(--white); max-width: 140px; }
.captcha-row { display: flex; align-items: center; gap: 8px; }
.captcha-refresh {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.captcha-refresh:hover { background: var(--panel); }

.form-note { font-size: 0.85rem; color: var(--orange); min-height: 1.2em; }
.form-note.success { color: #1f9d55; }
.form-note.error { color: #d1453b; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 14px 30px -26px rgba(20,35,63,0.25);
}
.info-icon { font-size: 1.3rem; }
.info-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.info-card a { color: var(--navy); font-weight: 600; }
.info-card p { font-size: 0.88rem; color: var(--ink-soft); }
/* ===== Footer ===== */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,0.8); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand p { margin: 14px 0 18px; font-size: 0.9rem; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 0.8rem; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.3); }

/* ===== Responsive ===== */

/* Header nav collapses to the hamburger menu earlier than the general
   tablet breakpoint below, because the full nav links + CTA button
   start overlapping the header well before 980px. */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    top: 82px; left: 0; right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 99;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--white); }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 980px) {
  .about-grid-v2, .materials-grid, .faq-layout, .contact-grid, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .about-visual { width: 100%; max-width: 540px; margin: 0 auto 20px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .stats-row .stat:not(:last-child)::after { display: none; }
  .stats-row .stat:nth-child(odd)::after {
    display: block;
    content: "";
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    height: 56%;
    width: 1px;
    background: rgba(255,255,255,0.16);
  }
  .services-grid-v2, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-card { flex-basis: 320px; width: 320px; padding: 28px 24px 24px; }
  .process-track { grid-template-columns: minmax(0, 1fr); }
  .process-track::before { display: none; }
  .why-checklist { grid-template-columns: minmax(0, 1fr); }
  .why-media { max-width: 440px; margin: 44px auto 0; }
  .why-media::before { top: -16px; right: -16px; }
  .why-badge { left: 16px; bottom: -18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-bg-decor { display: none; }

  /* Hero: stack text above photo */
  .hero-inner { padding-top: 44px; }
  .hero-slide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-bg { aspect-ratio: 16 / 10; order: 2; }
  .hero-copy { max-width: 100%; order: 1; }
  .hero-dot-grid { width: 150px; height: 150px; top: 3%; }
}

@media (max-width: 760px) {
  .topbar-contact a:nth-child(2) { display: none; }

  .marquee-track { animation-duration: 18s; }
  .marquee-group span:not(.dot) { font-size: 0.88rem; padding: 0 14px; }
  .stats-section { padding: 40px 0; }
  .services-grid-v2, .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .testimonial-card { flex-basis: 270px; width: 270px; }
  .testimonial-track { animation-duration: 32s; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .slider-nav { bottom: 10px; }
  .stats-row .stat { padding: 0 10px; }
  .stat-num { font-size: 2rem; }

  .hero-inner { padding-top: 36px; }
  .hero-slider { padding-bottom: 30px; }

  /* About collage collapses to a clean stacked flow on mobile */
  .about-visual { height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 360px; }
  .about-img-primary, .about-img-secondary { position: static; width: 100%; height: 220px; }
  .about-badge-circle { position: static; transform: none; margin-top: -52px; align-self: center; z-index: 3; }
  .about-rating-card { position: static; width: 100%; }
  .about-features { flex-direction: column; gap: 18px; }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .logo { font-size: 0.92rem; gap: 7px; }
  .logo-mark { width: 28px; height: 28px; }

  .hero-inner { padding-top: 28px; }
}

@media (max-width: 360px) {
  .logo span:last-child { display: none; }
}

/* ===== Reveal-on-scroll page content animation =====
   Classes are added by JS only (see script.js), so content is always
   visible by default if JavaScript doesn't run — no flash-hidden risk. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
