/* ---- Design tokens ---- */
:root {
  --color-primary: #0E3B43;
  --color-primary-dark: #082A30;
  --color-secondary: #1B7A8C;
  --color-accent: #C9A24B;
  --color-bg: #F7FAFA;
  --color-bg-alt: #EDF3F3;
  --color-text: #12262B;
  --color-text-muted: #4B5D61;
  --color-white: #FFFFFF;

  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(14, 59, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 59, 67, 0.12);

  --container-width: 1180px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 80px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--color-primary); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.nav-brand img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links a {
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--color-secondary); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    background: var(--color-white);
    padding: var(--space-5);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav-links.open,
  .nav-links:focus-within {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(201, 162, 75, 0.45); }
.btn-secondary {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); }

/* ---- Sections ---- */
.section { padding-block: var(--space-8); }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 640px; margin-bottom: var(--space-7); }
.section-header.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: var(--space-3); }
.section-subtitle { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---- Grid & Cards ---- */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* Keep two-column feature photos to a sane, consistent crop regardless of
   the source photo's native aspect ratio (some stock shots are portrait). */
.grid-2 > img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 860px) {
  .grid-2 > img { aspect-ratio: 16 / 10; }
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(27, 122, 140, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-secondary);
  font-size: 1.3rem;
}
/* Alternating tinted icon chips, echoing a colorful category grid */
.grid-3 .card:nth-child(3n+2) .card-icon,
.why-item:nth-child(3n+2) .card-icon {
  background: rgba(201, 162, 75, 0.16);
  color: var(--color-accent);
}
.grid-3 .card:nth-child(3n+3) .card-icon,
.why-item:nth-child(3n+3) .card-icon {
  background: rgba(14, 59, 67, 0.1);
  color: var(--color-primary);
}
.card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.card p { color: var(--color-text-muted); margin-bottom: var(--space-4); font-size: 0.95rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  color: var(--color-white);
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, rgba(8, 42, 48, 0.55), rgba(8, 42, 48, 0.88)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: calc(var(--space-8) + 40px) var(--space-8);
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-video { overflow: hidden; min-height: 80vh; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 42, 48, 0.55), rgba(8, 42, 48, 0.88));
  z-index: 1;
}
.hero-video .hero-content { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero-content .badge { margin-bottom: var(--space-4); background: rgba(247, 250, 250, 0.14); border-color: rgba(247, 250, 250, 0.3); color: var(--color-white); }
.hero-content h1 { color: var(--color-white); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: var(--space-4); }
.hero-content p { font-size: 1.15rem; margin-bottom: var(--space-6); color: rgba(247,250,250,0.92); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.badge {
  display: inline-block;
  background: rgba(201,162,75,0.16);
  color: var(--color-accent);
  border: 1px solid rgba(201,162,75,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Why-us ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.why-item .card-icon { flex-shrink: 0; margin-bottom: 0; }
.why-item h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.why-item p { color: var(--color-text-muted); font-size: 0.92rem; }

/* ---- Forms ---- */
.form { background: var(--color-white); padding: var(--space-6); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-weight: 600; margin-bottom: var(--space-2); font-size: 0.92rem; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #D8E2E2;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}
.form-control:focus { outline: none; border-color: var(--color-secondary); }
.form-control.has-error { border-color: #C0392B; }
.form-error { color: #C0392B; font-size: 0.82rem; margin-top: var(--space-1); display: none; }
.form-control.has-error + .form-error { display: block; }
.form-success {
  background: rgba(27, 122, 140, 0.12);
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

/* ---- Footer ---- */
.site-footer { background: var(--color-primary); color: var(--color-white); padding-block: var(--space-7); }
.footer-logo-badge {
  display: inline-block;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  line-height: 0;
}
.footer-logo-badge img { height: 48px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: var(--space-3); }
.site-footer a { color: rgba(247,250,250,0.75); }
.site-footer a:hover { color: var(--color-white); }
.site-footer p { color: rgba(247,250,250,0.75); font-size: 0.92rem; }
.footer-links li { margin-bottom: var(--space-2); }
.social-icons { display: flex; gap: var(--space-3); }
.social-icons a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,250,250,0.1);
  border-radius: 50%;
}
.social-icons a:hover { background: var(--color-secondary); }
.footer-bottom { border-top: 1px solid rgba(247,250,250,0.15); padding-top: var(--space-5); font-size: 0.85rem; color: rgba(247,250,250,0.6); }

/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
