/* ═══════════════════════════════════════════
   DLLC Website — Shared Styles
   Used by: index.html, gallery.html, about.html
═══════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #1a1a2e; }

/* ── Nav ── */
#navbar { transition: background 0.3s, box-shadow 0.3s; }
#navbar.scrolled {
  background: rgba(13,31,60,0.97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}

/* ── Nav link ── */
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em;
  text-decoration: none; padding: 0.25rem 0; position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 2px; background: #F5C518;
  transition: right 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { right: 0; }
.nav-link.active { color: #fff; }
.nav-link.active::after { right: 0; }
.nav-link:focus-visible { outline: 2px solid #F5C518; outline-offset: 4px; border-radius: 2px; }

/* ── Mobile menu ── */
#mobile-menu { transition: max-height 0.3s ease, opacity 0.3s ease; overflow: hidden; max-height: 0; opacity: 0; }
#mobile-menu.open { max-height: 440px; opacity: 1; }

/* ── Primary button ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #F5C518; color: #0D1F3C;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.875rem 2rem; border-radius: 8px; border: none; cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(245,197,24,0.35), 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
}
.btn-primary:hover { background: #FFD84D; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,197,24,0.45), 0 4px 8px rgba(0,0,0,0.15); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 3px solid #F5C518; outline-offset: 3px; }

/* ── Grain texture overlay ── */
.grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
}

/* ── Bolt divider ── */
.bolt-divider {
  display: flex; align-items: center; gap: 1rem;
  color: #F5C518; font-size: 1.5rem;
}
.bolt-divider::before, .bolt-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.4), transparent);
}

/* ── Service card (index + about) ── */
.service-card {
  background: #fff;
  border: 1px solid rgba(27,58,107,0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(27,58,107,0.06), 0 8px 24px rgba(27,58,107,0.04);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(27,58,107,0.1), 0 24px 48px rgba(27,58,107,0.08), 0 0 0 2px rgba(245,197,24,0.3);
}
.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(27,58,107,0.1), rgba(27,58,107,0.05));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  transition: background 0.25s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(245,197,24,0.2), rgba(245,197,24,0.1));
}

/* ── Section label ── */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5C518;
  margin-bottom: 1rem;
}
.section-label-dark {
  background: rgba(27,58,107,0.08);
  border-color: rgba(27,58,107,0.18);
  color: #1B3A6B;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.7s ease both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.34,1.2,.64,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── Phone CTA button (used in about + gallery CTAs) ── */
.btn-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.875rem 2rem; border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
.btn-phone:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-phone:active { transform: translateY(0); }
.btn-phone:focus-visible { outline: 2px solid #F5C518; outline-offset: 4px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #1B3A6B; border-radius: 4px; }
