:root {
  --navy: #002d62;
  --green: #00695c;
  --slate: #3a4b5b;
  --light: #f5f5fc;
  --gold: #d4af37;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Beagris", "Poppins", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--light);
  background: radial-gradient(circle at top, #003b80 0, #000814 55%, #000000 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 13, 40, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: padding 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 230px;
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
}

/* Shrink state on scroll */
header.header-scrolled {
  background: rgba(0, 13, 40, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

header.header-scrolled .nav-inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

header.header-scrolled .brand img {
  width: 200px;
}

/* Nav menu + mobile toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 245, 252, 0.4);
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle-label span {
  font-size: 1.15rem;
  line-height: 1;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-menu a {
  position: relative;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--light);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

/* Sections */
main section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 20px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

p {
  color: var(--light);
  opacity: 0.9;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(245, 245, 252, 0.7);
  margin-bottom: 8px;
}

/* HERO (full-width with background slider) */
section.hero {
  max-width: none;
  padding: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease;
}

.hero-bg-slide.active {
  opacity: 1;
  animation: heroZoomPan 14s linear infinite;
}

@keyframes heroZoomPan {
  0% {
    transform: scale(1.05) translateX(0);
  }
  50% {
    transform: scale(1.12) translateX(-10px);
  }
  100% {
    transform: scale(1.05) translateX(0);
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75)),
    linear-gradient(to bottom, rgba(0, 7, 30, 0.5), rgba(0, 0, 0, 0.95));
  z-index: 1;
  pointer-events: none;
}

.hero-slider-prev,
.hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: var(--light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.hero-slider-prev {
  left: 14px;
}

.hero-slider-next {
  right: 14px;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.hero-slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 252, 0.8);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 0;
}

.hero-slider-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1rem;
  max-width: 520px;
}

.hero-highlight {
  color: var(--gold);
  font-weight: 600;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f7e28a);
  color: #1a1300;
  font-weight: 600;
  border-color: rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(245, 245, 252, 0.4);
  color: var(--light);
}

.hero-contacts {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(245, 245, 252, 0.8);
}

.hero-card {
  background: radial-gradient(circle at top, #00458a, #001326);
  border-radius: 24px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(245, 245, 252, 0.8);
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.15);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.hero-logo-mark {
  width: 150px;
  height: 55px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at top, #004488, #001020);
}

.hero-logo-mark img {
  width: 100%;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 10px;
  font-size: 0.86rem;
}

.hero-list li {
  padding: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-list li::before {
  content: "•";
  color: var(--gold);
  font-size: 1.1rem;
}

.cert-row {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(245, 245, 252, 0.78);
}

.cert-row strong {
  color: var(--gold);
  font-weight: 600;
}

/* Generic grids and cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  border-radius: 18px;
  padding: 18px 18px 20px;
  background: radial-gradient(circle at top left, rgba(0, 104, 92, 0.2), rgba(0, 0, 0, 0.75));
  border: 1px solid rgba(52, 75, 91, 0.9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 245, 252, 0.7);
  margin-bottom: 4px;
}

/* List styles */
.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: rgba(245, 245, 252, 0.9);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--green));
}

/* Approvals section */
.approvals-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 245, 252, 0.9);
  background: rgba(0, 0, 0, 0.15);
}

.badge.accent {
  background: linear-gradient(135deg, var(--gold), #f7e28a);
  color: #1a1300;
  border-color: rgba(0, 0, 0, 0.35);
}

/* Testimonials */
.testimonial {
  font-size: 0.9rem;
  font-style: italic;
  position: relative;
}

.testimonial::before {
  content: "“";
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.7);
  position: absolute;
  left: -4px;
  top: -10px;
}

.testimonial-name {
  margin-top: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 245, 252, 0.75);
}

/* FAQ */
details {
  background: radial-gradient(circle at top left, rgba(0, 104, 92, 0.22), rgba(0, 0, 0, 0.8));
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(52, 75, 91, 0.9);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

details summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  color: var(--gold);
}

details[open] summary {
  margin-bottom: 6px;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 28px;
  align-items: flex-start;
}

form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(52, 75, 91, 0.9);
  background: rgba(0, 0, 0, 0.6);
  color: var(--light);
  font-family: inherit;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(245, 245, 252, 0.6);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-info p {
  font-size: 0.9rem;
  margin: 4px 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(52, 75, 91, 0.9);
  padding: 18px 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 245, 252, 0.7);
}

footer a {
  color: var(--gold);
  font-weight: 500;
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, var(--gold), #f7e28a);
  color: #1a1300;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 95;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  filter: brightness(1.05);
}

/* Floating WhatsApp button */
.whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 70px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 95;
}

.whatsapp-btn:hover {
  filter: brightness(1.05);
}

/* Popup (form submitted) */
.form-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 120;
}

.form-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.form-popup-inner {
  background: radial-gradient(circle at top, #00458a, #000b18);
  border-radius: 18px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  max-width: 320px;
  width: 90%;
  position: relative;
  text-align: left;
}

.form-popup-inner h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-popup-message {
  font-size: 0.9rem;
  color: rgba(245, 245, 252, 0.9);
  margin: 0;
}

.form-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: rgba(245, 245, 252, 0.8);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- GLOBAL MOTION SAFETY ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FLOATING BUTTON ANIMATION ---------- */
@keyframes floatPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.9);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  }
}

/* WhatsApp button gently floating */
.whatsapp-btn {
  animation: floatPulse 3s ease-in-out infinite;
}

/* Scroll-top button floats only when visible */
.scroll-top.visible {
  animation: floatPulse 3s ease-in-out infinite;
}

/* ---------- CARD HOVER EFFECTS ---------- */
.card {
  transform: translateY(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.8);
  border-color: rgba(212, 175, 55, 0.8);
  background: radial-gradient(
    circle at top left,
    rgba(0, 104, 92, 0.35),
    rgba(0, 0, 0, 0.9)
  );
}

/* Hero certification card hover */
.hero-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.9);
  border-color: rgba(244, 208, 111, 0.9);
}

/* ---------- BUTTON HOVER / PRESS FEEL ---------- */
.btn-primary,
.btn-ghost {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
}

.btn-primary:active,
.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

/* Slight glow on call button in hero */
.btn-ghost {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent);
}

/* ---------- SMALL HERO TEXT SHIMMER ---------- */
.hero-title {
  position: relative;
  overflow: hidden;
}

.hero-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 40%,
    transparent 80%
  );
  animation: heroShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroShine {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(220%);
  }
  100% {
    transform: translateX(220%);
  }
}

/* ---------- RESPONSIVE ---------- */

/* Tablet and below */
@media (max-width: 860px) {
  .hero-inner,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 60px;
  }

  .nav-inner {
    padding-inline: 14px;
  }

  .nav-menu {
    justify-content: flex-end;
    font-size: 0.78rem;
    gap: 10px;
  }
}

/* Mobile nav + tighter layout */
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
  }

  .brand img {
    width: 190px;
  }

  header.header-scrolled .brand img {
    width: 170px;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  nav {
    width: 100%;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(52, 75, 91, 0.7);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 6px 0;
  }

  .nav-toggle:checked ~ nav .nav-menu {
    max-height: 260px;
    opacity: 1;
  }

  main section {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-slider-prev,
  .hero-slider-next {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .nav-inner {
    align-items: center;
  }

  .brand img {
    width: 160px;
  }

  header.header-scrolled .brand img {
    width: 145px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  main section {
    padding: 52px 14px;
  }

  .hero-slider-prev,
  .hero-slider-next {
    top: auto;
    bottom: 60px;
    transform: none;
  }

  .hero-slider-prev {
    left: 10px;
  }

  .hero-slider-next {
    right: 10px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
  }

  .whatsapp-btn {
    right: 14px;
    bottom: 66px;
    width: 42px;
    height: 42px;
  }
}

/* EXTRA: ultra-small phones */
@media (max-width: 400px) {
  .nav-inner {
    gap: 4px;
  }

  .brand img {
    width: 55vw;
    max-width: 55vw;
  }

  header.header-scrolled .brand img {
    width: 50vw;
    max-width: 50vw;
  }

  .nav-toggle-label {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
}

/* LARGE DESKTOP / HIGHER RESOLUTION */
@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }

  .nav-inner,
  .hero-inner,
  main section {
    max-width: 1280px;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 100px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 2.4vw + 1rem, 3.4rem);
  }

  .hero-sub {
    font-size: 1.05rem;
    max-width: 620px;
  }

  .grid {
    gap: 26px;
  }
}

@media (min-width: 1600px) {
  html {
    font-size: 18px;
  }

  .nav-inner,
  .hero-inner,
  main section {
    max-width: 1400px;
  }

  .hero-inner {
    gap: 60px;
  }

  .hero-card {
    padding: 26px 26px 24px;
  }

  .card {
    padding: 22px 22px 24px;
  }

  .contact-layout {
    gap: 40px;
  }
}

/* --------- LIGHT ANTI-COPY LAYER --------- */
.protect-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.protect-copy input,
.protect-copy textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
