/* ============ Home Page ============ */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(249,247,243,0.55) 0%, rgba(241,236,230,0.92) 70%, rgba(241,236,230,1) 100%),
    url("/images/hero-bg.jpg") center/cover no-repeat,
    linear-gradient(180deg, #f9f7f3 0%, #f1ece6 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(3,32,64,0.04), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(253,93,4,0.04), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 36px;
  align-items: center;
  padding: 40px 0 48px;
  position: relative;
}
.hero h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.04;
}
.hero h1 .accent { color: var(--orange); }
.hero p.lede {
  margin: 20px 0 30px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.hero-trust .item { display: flex; align-items: center; gap: 10px; }
.hero-trust .ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--orange);
}

/* ── Hero collage ────────────────────────────────────────── */
.collage {
  display: flex;
  padding: 24px 0 32px;
}
.collage .tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 320px;
  transition: transform .3s ease;
  cursor: pointer;
}
.collage .tile + .tile { margin-left: -5.2%; }
.collage .tile:hover { transform: translateY(-10px); z-index: 2; }
.collage .tile-frame {
  position: relative;
  height: 100%;
  background: #fff;
  padding: 8px;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 220' preserveAspectRatio='none'><path d='M 24 6 Q 24 0 30 0 L 96 0 Q 100 0 100 4 L 100 6 L 78 220 L 4 220 L 0 220 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 220' preserveAspectRatio='none'><path d='M 24 6 Q 24 0 30 0 L 96 0 Q 100 0 100 4 L 100 6 L 78 220 L 4 220 L 0 220 Z' fill='black'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  overflow: hidden;
  filter: drop-shadow(0 14px 30px rgba(15, 42, 82, 0.22));
  transition: filter .3s ease;
}
.collage .tile:hover .tile-frame { filter: drop-shadow(0 22px 44px rgba(15, 42, 82, 0.32)); }
.collage .tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collage .ph { width: 100%; height: 100%; }
.collage .cap {
  position: absolute;
  left: 0; right: 22%; bottom: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 10px;
  text-align: center;
}
.collage .badge {
  position: absolute;
  left: 39%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(253,93,4,0.4);
  z-index: 3;
}

/* ── Services grid ───────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 20px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(253,93,4,0.05) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(253,93,4,0.4);
  box-shadow: var(--shadow-md);
}
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.svc-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.svc-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
  min-height: 44px;
}
.svc-card .more {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-card .more .arr { transition: transform .2s ease; }
.svc-card:hover .more .arr { transform: translateX(3px); }

/* ── Why Choose ──────────────────────────────────────────── */
.why {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
  mask-image: radial-gradient(circle at 30% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, #000 0%, transparent 70%);
}
.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  position: relative;
}
.why h2 {
  color: #fff;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}
.why .eyebrow { color: #fffefd; }
.why .lede { color: rgba(255,255,255,0.78); font-size: 15px; margin: 0; }
.why-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.why-feats::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.why-feat { padding-left: 16px; position: relative; }
.why-feat + .why-feat::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.why-feat .icon-pill {
  width: 38px; height: 38px;
  background: rgba(253,93,4,0.16);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 12px;
}
.why-feat h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-feat p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* ── Gallery preview ─────────────────────────────────────── */
.gallery {
  background: #fff;
  padding: 60px 0 60px;
}
.gallery-head { text-align: center; margin-bottom: 32px; }
.gallery-head .eyebrow { text-align: center; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.gal-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gal-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gal-item .ph { width: 100%; height: 100%; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,42,82,0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .2s ease;
}
.gal-item:hover .overlay { opacity: 1; }
.gallery-cta { display: flex; justify-content: center; }

/* ── Testimonial + Map ───────────────────────────────────── */
.bottom-band {
  background: var(--bg-soft);
  padding: 60px 0;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}
.testimonial {
  position: relative;
  padding-left: 56px;
}
.testimonial::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 30px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='30' viewBox='0 0 36 30'><path fill='%23FD5D04' d='M0 18C0 8 6 0 16 0v6c-5 0-8 4-8 10h8v14H0V18zm20 0c0-10 6-18 16-18v6c-5 0-8 4-8 10h8v14H20V18z'/></svg>") no-repeat;
}
.testimonial .stars {
  display: flex;
  gap: 2px;
  color: var(--orange);
  margin: 14px 0 10px;
}
.testimonial p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}
.testimonial .who {
  margin-top: 14px;
  font-weight: 700;
  color: var(--navy);
}
.testimonial .dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.testimonial .dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cfd5e1;
  transition: background .2s ease, width .2s ease;
}
.testimonial .dots button.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}
.scope-card {
  position: relative;
  padding-left: 56px;
}
.scope-card .scope-icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
}
.scope-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 24px;
}
.scope-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}
.scope-card .who {
  margin-top: 14px;
  font-weight: 700;
  color: var(--navy);
}

.map-card {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.map-card h3 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.map-card p { color: rgba(255,255,255,0.78); font-size: 14px; margin: 0 0 16px; }
.map-card .btn { padding: 11px 18px; font-size: 12px; }
.map-card .map-art {
  width: 180px; height: 130px;
  position: relative;
}
.map-art svg { width: 100%; height: 100%; opacity: 0.85; }
.map-art .pin {
  position: absolute;
  top: 32%;
  right: 38%;
  width: 22px; height: 22px;
  background: var(--orange);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 4px rgba(253,93,4,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(253,93,4,0.25); }
  50% { box-shadow: 0 0 0 10px rgba(253,93,4,0.05); }
}
.map-art .pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}

/* ── Tweak variants ──────────────────────────────────────── */
html.hide-trust .hero-trust { display: none; }
html[data-hero-variant="Straight"] .collage .tile:hover { transform: translateY(-8px); }
html[data-hero-variant="Straight"] .collage .tile-frame {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 42, 82, 0.22);
  background: #fff;
  padding: 8px;
}
html[data-hero-variant="Straight"] .collage .cap { right: 0; }
html[data-hero-variant="Straight"] .collage .badge { left: 50%; }

/* ── Responsive — home ───────────────────────────────────── */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .why-feats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .collage { max-width: 720px; }
  .collage .tile { height: 280px; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0; }
  .collage .tile { height: 220px; }
  .why-inner { grid-template-columns: 1fr; gap: 24px; }
  .why-feats { grid-template-columns: 1fr 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .services, .gal-grid { grid-template-columns: 1fr; }
  .why-feats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
