/* ================= VARIABLES ================= */
:root {
  --max: 1100px;

  /* Corporate palette */
  --brand: #1f4fd8;
  --brand-soft: #e8efff;
  --accent: #0b2c6d;

  --dark: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --border: #e5e7eb;
}

/* ================= RESET & BASE ================= */
* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: #f8fafc;
}

a { text-decoration: none; color: inherit; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  background: #fff;
  color: var(--dark);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ================= HEADER / NAV ================= */
header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

nav .logo img {
  height: 42px;
  display: block;
}

nav .links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-weight: 600;
}

nav .links a {
  color: var(--dark);
  padding: 8px 10px;
  border-radius: 8px;
}

nav .links a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
}

.hero .content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  z-index: 3;
  color: #fff;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero h1 .break {
  display: block;
  font-size: .5em;
  font-weight: 600;
  opacity: .95;
  margin-top: 14px;
}

/* ================= SLIDER ================= */
.slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.25)
  );
  z-index: 2;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= DOTS ================= */
.dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid #fff;
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/* ================= WRAP ================= */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}


/* ================= SECTIONS ================= */
section:not(.hero) {
  max-width: var(--max);
  margin: 56px auto;
  padding: 0 16px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--accent);
  text-align: center;
}

/* ================= GRID & CARDS ================= */
.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 981px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.card,
.why-card,
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.card-icon {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px 0 12px;
}


/* ================= WHY ================= */
.why-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 981px) {
  .why-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .why-card { grid-column: span 2; }
  .why-card:nth-last-child(2),
  .why-card:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ================= ASSOCIATED LOGOS ================= */

.associations {
  margin: 72px auto;
  padding: 0 16px;
  text-align: center;
}

.associations h2 {
  margin-bottom: 32px;
}

/* outer container */
.logo-strip {
  overflow: hidden;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0; /* bigger vertical presence */
}

/* moving row */
.logo-track {
  display: flex;
  align-items: center;
  gap: 72px;              /* more breathing room */
  width: max-content;
  animation: scroll-logos 40s linear infinite;
}

/* logos */
.logo-track img {
  height: 88px;           /* BIGGER logos */
  width: auto;
  object-fit: contain;
  opacity: 1;
}

/* animation */
@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* mobile tuning */
@media (max-width: 600px) {
  .logo-strip {
    padding: 28px 0;
  }

  .logo-track {
    gap: 48px;
    animation-duration: 32s;
  }

  .logo-track img {
    height: 64px;
  }
}


/* ================= CONTACT ================= */
.contact {
  display: grid;
  gap: 24px;
}

@media (min-width: 981px) {
  .contact { grid-template-columns: 1fr 1fr; }
}

.contact form {
  display: grid;
  gap: 12px;
}

.contact input,
.contact textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Existing desktop behavior (unchanged) */
.form-card {
  position: relative;
}

.contact .logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.contact .logo img {
  height: 64px;
  width: auto;
  opacity: 0.9;
}

/* ================= MOBILE FIXES ONLY ================= */

/* 1️⃣ Move logo BELOW submit button on mobile */
@media (max-width: 600px) {
  .contact .logo {
    position: static;
    margin-top: 20px;
    text-align: center;
  }

  .contact .logo img {
    height: 56px;
  }
}

/* 2️⃣ Mobile navbar: show ONLY Contact */
@media (max-width: 600px) {
  nav .links a {
    display: none;
  }

  nav .links a[href="#contact"] {
    display: inline-block;
  }
}

/* ================= FOOTER ================= */
footer {
  border-top: 1px solid var(--border);
  background: #f1f5f9;
}

footer .wrap {
  padding: 16px;
  color: var(--muted);
}

/* ================= WHATSAPP ================= */
.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
}

/* ================= FORM LAYOUT IMPROVEMENT ================= */

/* Stack label text above input cleanly */
.contact form label {
  display: flex;
  flex-direction: column;
  gap: 6px;                 /* space between label text & input */
  font-weight: 600;
  color: var(--dark);
}

/* Inputs aligned, full-width, consistent height */
.contact input,
.contact textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

/* Better focus state (subtle, professional) */
.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* Space between fields */
.contact form {
  gap: 16px;
}


/* Reserve space at bottom of form card for logo (desktop only) */
@media (min-width: 601px) {
  .form-card {
    padding-bottom: 96px; /* space for logo */
  }
}
