/* ===================================================
   AIM Group — Shared Stylesheet
   =================================================== */

:root {
  /* AIM Group brand palette, matched from the live site */
  --navy: #1d4039;       /* deep green — headings, nav text, footer */
  --navy-dark: #16332d;  /* darker green — footer bg, gradients */
  --gold: #efce83;       /* warm gold — CTA band, accents */
  --gold-light: #f6e2b3;
  --gold-dark: #a9832f;  /* darker gold — legible on cream bg */
  --red: #c0272e;        /* logo mark red */
  --ink: #26372f;
  --slate: #5a6b62;
  --mist: #f9f9f2;       /* cream page background */
  --mist-alt: #f0ede0;   /* slightly deeper cream for alternating sections */
  --white: #ffffff;
  --border: #e7e3d6;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(29, 64, 57, 0.08);
  --maxw: 1160px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); }
p { margin: 0 0 1em; color: var(--slate); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.75em;
  display: inline-block;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.14); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mist);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--red);
  letter-spacing: 0.01em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.logo-img {
  width: 34px; height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}
.footer-logo-img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; vertical-align: middle; margin-right: 8px; }
.logo span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 18px); list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links > li { position: relative; }
.nav-links a { font-size: 0.87rem; font-weight: 500; color: var(--navy); padding: 8px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--gold-dark); }
.has-dropdown > a { display: inline-flex; align-items: center; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--slate);
  flex-shrink: 0;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--mist-alt); }
.nav-right { display: flex; align-items: center; gap: clamp(8px, 1vw, 16px); }
.nav-cta-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--gold);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(29,64,57,0.25);
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav-cta-btn:hover {
  background: var(--navy-dark);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 26px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Full-bleed style hero, matching the live site's nature-photo header.
   Swap the background-image below for the real photo once it's available
   (drop it in assets/img/hero.jpg and update the url() path). */
.hero {
  background:
    linear-gradient(180deg, rgba(15,30,24,0.5) 0%, rgba(15,30,24,0.68) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-grid { position: relative; max-width: 720px; margin: 0 auto; display: block; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 4.5vw, 3.6rem); margin-bottom: 0.4em; }
.hero p.lead { color: #eef1ec; font-size: 1.15rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.hero-art { display: none; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--mist-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(169,131,47,0.14);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- About / stats ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.stat-row { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); }
.stat span { font-size: 0.85rem; color: var(--slate); }
.photo-block {
  aspect-ratio: 5/4;
  background: linear-gradient(160deg, var(--mist), #e7ebee);
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.testimonial p { font-style: italic; color: var(--ink); font-size: 1.02rem; }
.testimonial .who { font-style: normal; color: var(--slate); font-size: 0.85rem; margin-top: 16px; }
.testimonial .who b { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold);
  color: var(--navy);
  border-radius: 4px;
  padding: 54px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy); margin-bottom: 0.2em; }
.cta-band p { color: var(--navy); opacity: 0.8; margin: 0; }
.cta-band .btn-primary { background: var(--navy); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--navy-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b7c2cc; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: var(--white); font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-logo { font-family: var(--serif); color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  padding: 70px 0 56px;
}
.page-header h1 { color: var(--white); margin-bottom: 0.3em; }
.breadcrumb { font-size: 0.85rem; color: #a9b7c2; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 0.98rem; }
.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(169,131,47,0.16);
  color: var(--gold-dark);
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  font-weight: 700;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.avatar-photo {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--gold-light);
}
.team-card h3 { margin-bottom: 0.15em; font-size: 1.05rem; }
.team-card .role { color: var(--gold-dark); font-size: 0.85rem; font-weight: 600; }

/* ---------- Interviews ---------- */
.interview-card { overflow: hidden; padding: 0; }
.interview-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  display: block;
}
.interview-thumb iframe { display: block; width: 100%; height: 100%; }
.interview-body { padding: 22px 22px 26px; }
.interview-body h3 { font-size: 1.02rem; margin-bottom: 0.2em; }
.interview-body .role { font-size: 0.85rem; color: var(--slate); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.contact-info-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); margin-bottom: 10px; }
.contact-info-card p { margin-bottom: 4px; color: var(--ink); }
form.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: 0.9rem; padding: 10px 14px; border-radius: 8px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e5f5ec; color: #1c7a44; }
.form-status.error { background: #fdeceb; color: #b3261e; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .nav-cta-btn { padding: 10px 16px; font-size: 0.85rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--mist);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .has-dropdown > a { display: flex; justify-content: space-between; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .dropdown a { padding: 8px 0; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  section { padding: 60px 0; }
}

/* ===================================================
   Language switch — floating EN/ES toggle
   =================================================== */
.lang-switch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  background: var(--navy);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
  gap: 2px;
}
.lang-switch a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--sans, inherit);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #cfd9d4;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover { color: #ffffff; }
.lang-switch a.active {
  background: var(--gold);
  color: var(--navy-dark);
}
@media (max-width: 640px) {
  .lang-switch { right: 16px; bottom: 16px; }
  .lang-switch a { padding: 7px 13px; font-size: 0.78rem; }
}
