:root {
  --blue-deep: #0a2e4a;
  --blue-lagoon: #0077b6;
  --blue-lagoon-dark: #005f93;
  --turquoise: #00b4d8;
  --turquoise-light: #48cae4;
  --cyan-light: #e7f5fb;
  --cyan-lighter: #f4fafd;
  --sand: #f4e4c1;
  --white: #ffffff;
  --text-dark: #1a2332;
  --text-muted: #5a6a7a;
  --shadow-sm: 0 4px 12px rgba(10, 46, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 46, 74, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 46, 74, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 72px;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--turquoise); }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--blue-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* ----------------- BUTTONS ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-lagoon), var(--turquoise));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 119, 182, 0.45);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 2px solid rgba(10, 46, 74, 0.15);
}
.btn-ghost:hover {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.hero .btn-ghost:hover {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* ----------------- HEADER ----------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--blue-deep);
}
.brand-name {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 18px;
}
.brand-name strong { font-weight: 800; }

.site-header.scrolled .brand-name { color: var(--blue-deep); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--turquoise-light); }
.site-header.scrolled .main-nav a { color: var(--blue-deep); }
.site-header.scrolled .main-nav a:hover { color: var(--blue-lagoon); background: var(--cyan-light); }

.main-nav .nav-cta { margin-left: 8px; color: var(--white) !important; }

.burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.scrolled .burger span { background: var(--blue-deep); }

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------- HERO ----------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(0, 180, 216, 0.25), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  color: #fff;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--turquoise-light), var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ----------------- SECTIONS ----------------- */
.section {
  padding: 100px 0;
  background: var(--white);
}
.section-alt {
  background: var(--cyan-lighter);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--blue-lagoon);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  font-weight: 700;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ----------------- SERVICES ----------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 46, 74, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--turquoise), var(--blue-lagoon));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(0, 119, 182, 0.3);
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ----------------- TIMELINE ----------------- */
.timeline {
  list-style: none;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--turquoise), var(--blue-lagoon));
  opacity: 0.3;
}
.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  margin-bottom: 36px;
  align-items: start;
}
.timeline-num {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-lagoon), var(--turquoise));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 119, 182, 0.35);
  z-index: 2;
}
.timeline-media {
  grid-column: 2;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}
.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.timeline-item:hover .timeline-media img { transform: scale(1.04); }
.timeline-body {
  grid-column: 2;
  margin-top: 16px;
}
.timeline-body h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.timeline-body p {
  color: var(--text-muted);
}

/* ----------------- GALLERY ----------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:nth-child(4n+1) { aspect-ratio: 4 / 3; }
.gallery-item:nth-child(4n+2) { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(4n+3) { aspect-ratio: 3 / 4; }
.gallery-item:nth-child(4n) { aspect-ratio: 1 / 1; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 74, 0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }

/* ----------------- REVIEWS ----------------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
  font-size: 15px;
}
.rating-badge strong { color: var(--blue-deep); font-size: 1.1rem; }
.rating-badge .muted { color: var(--text-muted); }

.stars {
  display: inline-flex;
  gap: 2px;
  color: #f4b400;
  font-size: 1.1rem;
  line-height: 1;
}
.stars .empty { color: rgba(244, 180, 0, 0.25); }
.stars .half {
  background: linear-gradient(90deg, #f4b400 50%, rgba(244, 180, 0, 0.25) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 46, 74, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-card p {
  color: var(--text-dark);
  font-size: 1rem;
  font-style: italic;
  flex: 1;
}
.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.review-card footer strong { color: var(--blue-deep); font-family: 'Poppins', sans-serif; }
.review-card footer span { color: var(--text-muted); font-size: 13px; }

.review-card-wide { grid-column: 1 / -1; max-width: 600px; margin: 0 auto; }

/* ----------------- CONTACT ----------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-lagoon));
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-md);
}
.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-row strong {
  font-family: 'Poppins', sans-serif;
  color: var(--turquoise-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.info-row span, .info-row a {
  font-size: 1.05rem;
  color: var(--white);
}
.info-row a:hover { color: var(--turquoise-light); }

.contact-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.contact-info .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.contact-info .btn-ghost:hover {
  background: var(--white);
  color: var(--blue-deep);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-md);
  background: var(--cyan-light);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
}

/* ----------------- FOOTER ----------------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img {
  width: 60px; height: 60px;
  border-radius: 12px;
  margin-bottom: 16px;
  object-fit: cover;
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 360px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.footer-col p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--turquoise-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* ----------------- LIGHTBOX ----------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active {
  display: flex;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}
.lightbox-close { top: 24px; right: 24px; font-size: 32px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ----------------- REVEAL ----------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 6px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right .3s ease;
  }
  .main-nav.open { right: 0; }
  .main-nav a {
    color: var(--blue-deep);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
  }
  .main-nav .nav-cta { margin: 12px 0 0; justify-content: center; color: var(--white) !important; }

  .burger { display: flex; }

  .hero { min-height: 88vh; }
  .hero-inner { padding-bottom: 60px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 20px; }
  .timeline-num { width: 48px; height: 48px; font-size: 1.2rem; }

  .contact-info { padding: 36px 28px; }
  .contact-ctas { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .lightbox { padding: 20px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox button { width: 44px; height: 44px; font-size: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .brand-name { font-size: 16px; }
  .section-header h2 { font-size: 1.6rem; }
  .service-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
