/* ========================
   Variables & Reset
======================== */
:root {
  --primary: #05acd6;
  --primary-dark: #0494bb;
  --dark: #062033;
  --dark-2: #0d3352;
  --text: #4a5568;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f0f8fc;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --r: 12px;
  --shadow: 0 1px 4px rgba(6,32,51,.06), 0 4px 16px rgba(6,32,51,.09);
  --shadow-lg: 0 8px 40px rgba(6,32,51,.18);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--t); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
iframe { border: none; display: block; }

/* ========================
   Utilities
======================== */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none !important; transition: none !important; }
}

/* Section layout */
section { padding-block: 80px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-block: 14px 10px;
  color: var(--primary);
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 0 1 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary));
  opacity: 0.45;
}
.section-divider::after { background: linear-gradient(270deg, transparent, var(--primary)); }
.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,172,214,.4);
}
.btn--outline { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ========================
   Navbar
======================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
}
.nav--scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(6,32,51,.35);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--t);
  border-radius: 2px;
}
.nav__link:hover,
.nav__link--active { color: #fff; }
.nav__link:hover::after,
.nav__link--active::after { transform: scaleX(1); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--t);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 767px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(6,32,51,.97);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--t);
  }
  .nav__menu--open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { font-size: 1.2rem; padding: 12px 16px; }
}

/* ========================
   Hero
======================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/bg4.webp') center / cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,32,51,.78) 0%,
    rgba(5,172,214,.2) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding-block: 120px 80px;
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(5,172,214,.12);
  padding: 6px 22px;
  border-radius: 50px;
  border: 1px solid rgba(5,172,214,.3);
}
.hero__title {
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__title strong {
  font-weight: 800;
  display: block;
}
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  margin-bottom: 44px;
  max-width: 460px;
  margin-inline: auto;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  animation: bounce 2.2s ease-in-out infinite;
}
.hero__scroll:hover { color: #fff; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}

/* ========================
   Services
======================== */
.services { background: var(--bg-alt); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--r);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(5,172,214,.1);
  transition: transform var(--t), box-shadow var(--t);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  width: 62px;
  height: 62px;
  background: rgba(5,172,214,.1);
  border: 1.5px solid rgba(5,172,214,.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card__list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

/* ========================
   Gallery
======================== */
.gallery { background: var(--dark); padding-block: 80px; }
.gallery .section-title { color: #fff; }
.gallery .section-sub  { color: rgba(255,255,255,.55); }

/* Filter buttons */
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.gal-filter {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  border: 1.5px solid rgba(255,255,255,.18);
  background: transparent;
  transition: var(--t);
}
.gal-filter:hover  { color: #fff; border-color: rgba(255,255,255,.5); }
.gal-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(5,172,214,.35);
}

/* Grid */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }

/* Items */
.gal-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a1c2b;
  /* no margin — gap handles spacing */
}
.gal-item.gal-hidden { display: none; }

.gal-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  pointer-events: none;   /* click goes to the button, not the img */
}

/* Caption slides up from bottom on hover */
.gal-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(6,32,51,.88));
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform .28s ease;
  pointer-events: none;
}

/* Full-item clickable button (transparent overlay) */
.gal-open {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,32,51,0);
  transition: background .28s ease;
  color: #fff;
}
.gal-open svg {
  width: 36px; height: 36px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .28s ease, transform .28s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}

/* Hover state (desktop) + focus-visible (keyboard) */
.gal-item:hover img,
.gal-item:focus-within img { transform: scale(1.07); }

.gal-item:hover .gal-cap,
.gal-item:focus-within .gal-cap { transform: translateY(0); }

.gal-item:hover .gal-open,
.gal-item:focus-within .gal-open { background: rgba(6,32,51,.38); }

.gal-item:hover .gal-open svg,
.gal-item:focus-within .gal-open svg { opacity: 1; transform: scale(1); }

/* ========================
   Lightbox
======================== */
.lb {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: none;
  background: transparent;
  display: flex;           /* dialog[open] gets display:flex via this */
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lb:not([open]) { display: none; }
.lb::backdrop { background: rgba(4,16,28,.95); }

.lb-img {
  display: block;
  max-width: min(92vw, 1300px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  user-select: none;
}

.lb-cap {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* Close button */
.lb-close {
  position: fixed;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  z-index: 1;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-close svg { width: 20px; height: 20px; }

/* Prev / Next arrows */
.lb-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  z-index: 1;
}
.lb-arrow:hover { background: var(--primary); }
.lb-arrow svg   { width: 26px; height: 26px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* ========================
   Contact
======================== */
.contact { background: var(--bg-alt); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) { .contact__grid { grid-template-columns: 1fr; gap: 40px; } }

.contact__tel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 36px;
}
.contact__tel svg { width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }
.contact__tel:hover { color: var(--primary); }

.contact__details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.contact__dl { display: flex; flex-direction: column; gap: 10px; }
.contact__dl > div { display: flex; gap: 16px; font-size: 0.9rem; }
.contact__dl dt { color: var(--text-light); font-weight: 600; min-width: 90px; flex-shrink: 0; }
.contact__dl dd { color: var(--text); }

.contact__map iframe {
  width: 100%;
  height: 380px;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ========================
   Footer
======================== */
.footer {
  background: var(--dark);
  border-top: 3px solid var(--primary);
  padding-block: 26px;
  text-align: center;
}
.footer__copy { color: rgba(255,255,255,.45); font-size: 0.85rem; }

/* ========================
   Back to Top
======================== */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(5,172,214,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.back-top--visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-top svg { width: 22px; height: 22px; }

/* ========================
   Lightbox
======================== */
.lightbox {
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--r);
}
.lightbox::backdrop {
  background: rgba(6,32,51,.92);
  backdrop-filter: blur(8px);
}
.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0d1e2c;
  border-radius: var(--r);
  overflow: hidden;
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
  z-index: 2;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__img {
  max-width: 85vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}
.lightbox__label {
  color: rgba(255,255,255,.5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
}
