:root {
  --color-primary: #003f73;
  --color-primary-dark: #002b52;
  --color-accent: #0d79cb;
  --color-bg: #e1edf5;
  --color-white: #ffffff;
  --color-text: #07375b;
  --color-muted: #3d5f79;
  --color-border: #c9d7e2;
  --shadow-soft: 0 12px 30px rgba(7, 35, 60, 0.1);
  --radius: 14px;
  --max-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #f2f4f6 0%, #f6f9fc 35%, #ffffff 100%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.container-hero {
  width: min(var(--max-width), 92%);
  margin: 0 12.5%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.topbar {
  background: var(--color-primary-dark);
  color: #eaf6ff;
  font-size: 0.92rem;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.topbar-inner p {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

.topbar-inner .js-whatsapp-link {
  grid-column: 3;
  justify-self: end;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 50px;
  border-radius: 6px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 600;
}

nav a[aria-current="page"] {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  padding: 10px 14px;
  font-weight: 600;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, calc(100svh - 120px), 680px);
  overflow: hidden;
  padding: 64px 0;
  background:
    linear-gradient(90deg, rgba(0, 21, 48, 0.95) 0%, rgba(0, 34, 72, 0.82) 34%, rgba(0, 45, 89, 0.25) 62%, rgba(0, 31, 66, 0.08) 100%),
    url("/assets/img/hero_banner.webp") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(33, 156, 255, 0.75) 1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.36;
  mask-image: linear-gradient(90deg, #000 0%, transparent 28%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 114, 214, 0.32) 100%);
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 4.65rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.hero h1 span {
  color: #35a6ff;
}

.eyebrow {
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
}

.hero .btn {
  min-height: 64px;
  border-radius: 10px;
  padding: 18px 28px;
  font-size: 1.02rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.hero-services-link {
  border: 2px solid #22a7ff;
  color: #ffffff;
  background: rgba(0, 37, 78, 0.68);
}

.hero-whatsapp-link {
  border: 2px solid #19d466;
  background: linear-gradient(135deg, #0a7f36, #13b95a);
  color: #ffffff;
}

.page-hero {
  padding: 34px 0 16px;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 8px 0 10px;
}

.page-hero p {
  color: var(--color-muted);
  max-width: 740px;
  margin: 0;
}

.section {
  padding: 42px 0;
}

.section-light {
  background: var(--color-bg);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin: 0 0 12px;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 12px;
}

.text-link {
  color: var(--color-primary);
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.service-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) #dbe5ed;
  padding-bottom: 6px;
  padding-right: 16px;
}

.service-carousel-track .card {
  flex: 0 0 calc((100% - 16px) / 2.5);
  scroll-snap-align: start;
}

.service-gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) #dbe5ed;
  padding-bottom: 6px;
  padding-right: 16px;
}

.gallery-slide {
  flex: 0 0 min(860px, 86%);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
}

.gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.carousel-controls {
  display: inline-flex;
  gap: 8px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid #e4eef6;
}

.card > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 16px;
}

.card p {
  color: var(--color-muted);
}

.location-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

.meta {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.review-list-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.review-list-column .review-card {
  width: 100%;
}

.reviews-pagination {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.reviews-pagination-status {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
}

.reviews-pagination-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.review-carousel {
  display: grid;
  gap: 14px;
}

.reviews-header {
  margin-bottom: 0;
}

.reviews-count {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
}

.review-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) #dbe5ed;
  padding-bottom: 6px;
  padding-right: 14px;
}

.review-carousel-track .review-slide {
  flex: 0 0 calc((100% - 14px) / 2.4);
  scroll-snap-align: start;
}

.review-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 16px;
}

.review-card p {
  color: var(--color-muted);
  margin-bottom: 14px;
}

.review-card span {
  display: block;
  color: var(--color-primary);
  margin-top: 4px;
  font-size: 0.9rem;
}

.review-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-cta-card h3 {
  margin-bottom: 10px;
}

.review-cta-card p {
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-hero {
  border: 1px solid #1a97ff;
  color: #1a97ff;
  background: rgba(0, 21, 48, 0.452);
}

.cta-section {
  padding-top: 24px;
}

.cta-box {
  background: linear-gradient(140deg, var(--color-primary-dark), var(--color-primary));
  color: #eaf7ff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.cta-box p {
  max-width: 760px;
}

.cta-box .btn-primary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.post-article {
  max-width: 800px;
}

.post-article p {
  color: var(--color-muted);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #87a0b2;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-main {
  background: var(--color-primary-dark);
  color: #d8ebfb;
  padding: 38px 0;
  margin-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.footer-main h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.footer-subtitle {
  margin-top: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  background: #001e3a;
  color: #b5d1e7;
  font-size: 0.88rem;
  padding: 10px 0;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12AC4B;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(7, 45, 25, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' rx='0' fill='%2313b14d'/%3E%3Cpath fill='%230b6e31' d='M50 18c-17.7 0-32 14-32 31.3 0 5.5 1.5 10.8 4.4 15.4L18 82l17.9-4.7c4.4 2.3 9.3 3.6 14.1 3.6 17.7 0 32-14 32-31.3S67.7 18 50 18Zm0 57.7c-4.3 0-8.5-1.2-12.1-3.4l-.9-.5-10.6 2.8 2.8-10.3-.6-1c-3-4.5-4.5-9.4-4.5-14.4 0-14.4 11.6-26.1 25.9-26.1 14.3 0 25.9 11.7 25.9 26.1S64.3 75.7 50 75.7Zm14.2-19.5c-.8-.4-4.9-2.4-5.7-2.6-.8-.3-1.3-.4-1.9.4-.6.8-2.2 2.6-2.7 3.2-.5.5-1 .6-1.8.2-.8-.4-3.4-1.2-6.4-3.8-2.4-2-3.9-4.4-4.4-5.2-.5-.8 0-1.2.4-1.5.4-.4.8-.9 1.2-1.3.4-.4.5-.8.8-1.4.3-.5.1-1-.1-1.4-.2-.4-1.9-4.4-2.6-6.1-.7-1.6-1.4-1.4-1.9-1.4h-1.6c-.5 0-1.4.2-2.1 1-.7.8-2.8 2.7-2.8 6.6s2.9 7.6 3.3 8.1c.4.5 5.8 8.8 14 12.3 8.2 3.5 8.2 2.3 9.7 2.1 1.5-.2 4.9-2 5.6-4 .7-2 .7-3.7.5-4-.2-.3-.8-.5-1.6-.9Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
  opacity: 0.42;
  z-index: -1;
}

@media (max-width: 940px) {
  .contact-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .hero h1 {
    max-width: 620px;
    font-size: 3.5rem;
  }

  #site-nav {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    width: min(320px, calc(100vw - 24px));
    z-index: 5;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  #site-nav.open {
    display: block;
  }

  #site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  #site-nav li + li {
    border-top: 1px solid var(--color-border);
  }

  #site-nav a {
    display: block;
    padding: 12px 14px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .service-carousel-track .card {
    flex-basis: calc((100% - 16px) / 1.5);
  }

  .review-carousel-track .review-slide {
    flex-basis: calc((100% - 14px) / 1.5);
  }

  .gallery-slide {
    flex-basis: 92%;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 520px;
    padding: 54px 0;
    background:
      linear-gradient(90deg, rgba(0, 21, 48, 0.96) 0%, rgba(0, 34, 72, 0.86) 48%, rgba(0, 45, 89, 0.38) 100%),
      url("/assets/img/hero_banner.webp") 62% center / cover no-repeat;
  }

  .hero h1 {
    max-width: 420px;
    font-size: 2.65rem;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 30px;
  }

  .hero .btn {
    width: 100%;
    min-height: 56px;
    padding: 15px 18px;
  }

  .section {
    padding: 30px 0;
  }

  .cta-box {
    padding: 22px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }

  .brand-logo {
    max-height: 40px;
    max-width: min(72vw, 220px);
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .service-carousel-track .card {
    flex-basis: 86%;
  }

  .review-carousel-track .review-slide {
    flex-basis: 88%;
  }

  .gallery-slide {
    flex-basis: 100%;
  }

  .location-card img {
    height: 210px;
  }

  .card > img {
    height: 200px;
  }
}
