/* ============================================
   Anouba Consulting – Styles
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #2D2D2D;
  background-color: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Language Toggle via CSS --- */
.lang-active-es .lang-en,
.lang-active-en .lang-es {
  display: none;
}

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: "DM Sans", "Inter", sans-serif;
  color: #1B3A5C;
  line-height: 1.25;
}

a {
  color: #4A7FB5;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1B3A5C;
}

/* --- Button --- */
.btn {
  display: inline-block;
  background-color: #1B3A5C;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn:hover {
  background-color: #4A7FB5;
  color: #FFFFFF;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid #D0D8E0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1B3A5C;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.navbar__logo span {
  font-weight: 600;
  opacity: 0.75;
}

.navbar__logo:hover {
  color: #1B3A5C;
}

.navbar__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2D2D2D;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar__links a:hover {
  color: #4A7FB5;
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #D0D8E0;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2D2D2D;
}

.lang-toggle__separator {
  color: #D0D8E0;
}

.lang-toggle__option {
  color: #9AA5B1;
  transition: color 0.2s ease;
}

.lang-toggle__option--active {
  color: #1B3A5C;
}

.lang-toggle:hover {
  border-color: #4A7FB5;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1B3A5C;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background-color: #E8EFF5;
  padding: 140px 0 80px;
}

.hero__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.hero__pillar-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero__pillar-desc {
  font-size: 1rem;
  color: #4A5568;
  line-height: 1.7;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section--alt {
  background-color: #E8EFF5;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section__subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #4A5568;
  margin-bottom: 40px;
}

/* ============================================
   ABOUT
   ============================================ */
.about__content {
  max-width: 780px;
  margin: 40px auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  background-color: #FFFFFF;
  padding: 36px 28px;
  border-radius: 6px;
  border: 1px solid #D0D8E0;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.35;
}

.service-card__list {
  list-style: none;
  padding: 0;
}

.service-card__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4A7FB5;
}

/* ============================================
   ADT DIVISION
   ============================================ */
.adt__content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.adt__content .btn {
  margin-top: 28px;
}

/* ============================================
   TARGET CLIENTS
   ============================================ */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.client-card {
  background-color: #FFFFFF;
  padding: 36px 28px;
  border-radius: 6px;
  border: 1px solid #D0D8E0;
  text-align: center;
}

.client-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.client-card p {
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__wrapper {
  max-width: 600px;
  margin: 40px auto 0;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B3A5C;
}

.form-group input,
.form-group textarea {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #D0D8E0;
  border-radius: 4px;
  background-color: #FFFFFF;
  color: #2D2D2D;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4A7FB5;
  box-shadow: 0 0 0 3px rgba(74, 127, 181, 0.15);
}

.form-group textarea {
  resize: vertical;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact__info {
  margin-top: 32px;
  text-align: center;
}

.contact__info p {
  margin-bottom: 8px;
  color: #4A5568;
}

.contact__info a {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact__success {
  margin-top: 32px;
  text-align: center;
  padding: 20px;
  background-color: #E8EFF5;
  border-radius: 6px;
  border: 1px solid #4A7FB5;
}

.contact__success p {
  color: #1B3A5C;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #1B3A5C;
  color: #FFFFFF;
  padding: 32px 0 24px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__left p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer__social {
  color: #FFFFFF;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer__social:hover {
  opacity: 1;
  color: #FFFFFF;
}

.footer__bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer__bottom a {
  font-size: 0.85rem;
  color: #FFFFFF;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer__bottom a:hover {
  opacity: 1;
}

.footer__bottom-separator {
  color: #FFFFFF;
  opacity: 0.4;
  margin: 0 12px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  padding-top: 120px;
}

.legal-content {
  max-width: 780px;
  margin: 40px auto 0;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero__pillars {
    gap: 32px;
  }

  .hero__pillar-title {
    font-size: 1.6rem;
  }

  .services__grid,
  .clients__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: 1.1rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__pillars {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__pillar-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — Small mobile (max-width: 380px)
   ============================================ */
@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .hero__pillar-title {
    font-size: 1.5rem;
  }

  .service-card,
  .client-card {
    padding: 28px 20px;
  }
}
