/* ===== Photo hero (rotating background) ===== */
.hero { background: var(--navy); color: #e2e8f0; min-height: 640px; display: flex; align-items: center; padding: 96px 0 110px; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: -2%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.slide.active { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(8, 15, 36, .92) 0%, rgba(8, 15, 36, .78) 45%, rgba(8, 15, 36, .35) 100%); }
.hero .hero-grid { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero .lead { color: #cbd5e1; }
.hero .eyebrow { color: #67e8f9; }
.hero .hero-points { color: #e2e8f0; }
.hero .grad { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; }
.hero .status-card { background: rgba(11, 21, 48, .72); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); }
.hero-caption { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 22px; display: inline-flex; align-items: center; gap: .6em; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.hero-dots { position: absolute; z-index: 2; left: 24px; bottom: 34px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.on { width: 28px; background: #fff; }
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 56px 0 96px; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 15, 36, .62), rgba(8, 15, 36, .82)); }
  .hero-dots { display: none; }
}

/* ===== Service cards with photos ===== */
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.07); }
.card-img .icon { position: absolute; left: 18px; bottom: -22px; margin: 0; width: 48px; height: 48px; background: #fff; box-shadow: var(--shadow); font-size: 1.4rem; }
.card-img { overflow: visible; }
.card-img img { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 34px 24px 24px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(8, 15, 36, .85)); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; } .g-wide { grid-column: span 2; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; } .g-tall { grid-row: span 1; } .g-wide { grid-column: span 1; } }

/* ===== Why-us photo ===== */
.why-photo { position: relative; margin-bottom: 28px; }
.why-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.why-badge { position: absolute; right: 16px; bottom: -18px; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 25px rgba(37, 99, 235, .35); display: grid; line-height: 1.25; }
.why-badge b { font-size: 1.15rem; }
.why-badge span { font-size: .82rem; opacity: .9; }
.copyright a { color: #cbd5e1; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .slide.active { animation: none !important; } }
