/* =============================================
   ATRO REMOLQUES - Design System & Styles
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties */
:root {
  --color-primary: #001b44;
  --color-primary-light: #002a66;
  --color-accent: #0056b3;
  --color-accent-light: #0070e0;
  --color-white: #ffffff;
  --color-light: #f5f7fa;
  --color-gray: #e0e4e8;
  --color-dark-gray: #6b7280;
  --color-text: #1a1a2e;
  --color-text-light: #4a4a5a;
  --color-success: #10b981;
  --color-whatsapp: #25D366;

  --font-main: 'Montserrat', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 27, 68, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 27, 68, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 27, 68, 0.16);
  --shadow-xl: 0 16px 60px rgba(0, 27, 68, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --max-width: 1200px;
  --header-height: 230px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--color-primary);
  padding: 10px 0;
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.top-bar__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
}

.top-bar__phone-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-accent-light);
  letter-spacing: 0.5px;
}

.top-bar__phone-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.top-bar__phone-icon {
  width: 18px;
  height: 18px;
  fill: var(--color-accent-light);
}

.top-bar__cta {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 8px 24px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.5px;
}

.top-bar__cta:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-gray);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1002;
}

.header__logo img {
  height: 220px;
  filter: none;
}


/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-accent);
  background: rgba(0, 86, 179, 0.06);
}

.nav__link.active {
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav__arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav__item:hover .nav__arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu (Mega Menu) */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 850px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  z-index: 1000;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-col {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.nav__dropdown-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 86, 179, 0.1);
}

.nav__dropdown-item {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.nav__dropdown-item:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--color-primary));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 27, 68, 0.3) 0%,
    rgba(0, 27, 68, 0.7) 50%,
    rgba(0, 27, 68, 0.95) 70%
  );
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero__content {
  flex: 1;
  max-width: 550px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  letter-spacing: 0.5px;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 86, 179, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* Hero Quote Form */
.hero__form-wrapper {
  flex: 0 0 380px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
}

.hero__form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.hero__form-desc {
  font-size: 0.85rem;
  color: var(--color-dark-gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form__group {
  margin-bottom: 16px;
}

.form__input,
.form__select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.form__input::placeholder {
  color: var(--color-dark-gray);
}

.form__submit {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.5px;
}

.form__submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 86, 179, 0.1);
  color: var(--color-accent);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-dark-gray);
  line-height: 1.7;
}

/* =============================================
   PRODUCTS SECTION
   ============================================= */
.products {
  padding: 100px 0;
  background: var(--color-light);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative; /* Ensure this is relative for stretched link */
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 27, 68, 0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__body {
  padding: 20px;
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--color-dark-gray);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.product-card__link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.product-card__link:hover {
  gap: 10px;
}

.product-card__link-arrow {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-card__link-arrow {
  transform: translateX(4px);
}

/* =============================================
   CLIENT SERVICE SECTION
   ============================================= */
.client-service {
  padding: 100px 0;
  background: var(--color-white);
}

.client-service .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.client-service__content {
  flex: 1;
}

.client-service__title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.client-service__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.client-service__stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.client-service__image {
  flex: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.client-service__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* =============================================
   CTA / APPOINTMENT SECTION
   ============================================= */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section__title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 800;
  padding: 16px 40px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* =============================================
   CERTIFICATIONS SECTION
   ============================================= */
.certifications {
  padding: 80px 0;
  background: var(--color-light);
  text-align: center;
}

.certifications__title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.certifications__subtitle {
  font-size: 1rem;
  color: var(--color-dark-gray);
  margin-bottom: 40px;
}

.certifications__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert-badge__icon {
  width: 60px;
  height: 60px;
  color: var(--color-accent);
}

.cert-badge__text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* =============================================
   SPONSORS SECTION
   ============================================= */
.sponsors {
  padding: 80px 0;
  background: var(--color-white);
  text-align: center;
}

.sponsors__title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.sponsors__subtitle {
  font-size: 1rem;
  color: var(--color-dark-gray);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.sponsors__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.sponsor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 40px;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.sponsor-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.sponsor-logo__icon {
  font-size: 3rem;
}

.sponsor-logo__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* =============================================
   LEADERSHIP / PILLARS SECTION
   ============================================= */
.leadership {
  padding: 100px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.leadership .section-title {
  color: var(--color-white);
}

.leadership .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.leadership__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.pillar-card {
  text-align: center;
  padding: 36px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pillar-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.4);
}

.pillar-card__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.pillar-card__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* =============================================
   QUALITY BANNER
   ============================================= */
.quality-banner {
  padding: 60px 0;
  background: var(--color-light);
  text-align: center;
}

.quality-banner__text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto;
}

.quality-banner__text span {
  color: var(--color-accent);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer__brand img {
  max-height: 180px;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
}

.footer__social-links {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-white);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer__heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--color-white);
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__links a::before {
  content: '▪';
  color: var(--color-accent);
  font-size: 0.6rem;
}

.footer__links a:hover {
  color: var(--color-white);
  padding-left: 6px;
}

.footer__contact-item {
  margin-bottom: 20px;
}

.footer__contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__contact-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   WHATSAPP BUTTON
   ============================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-base);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid cards */
.product-card:nth-child(1) { transition-delay: 0.05s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.15s; }
.product-card:nth-child(4) { transition-delay: 0.2s; }
.product-card:nth-child(5) { transition-delay: 0.25s; }
.product-card:nth-child(6) { transition-delay: 0.3s; }
.product-card:nth-child(7) { transition-delay: 0.35s; }
.product-card:nth-child(8) { transition-delay: 0.4s; }

.pillar-card:nth-child(1) { transition-delay: 0.05s; }
.pillar-card:nth-child(2) { transition-delay: 0.1s; }
.pillar-card:nth-child(3) { transition-delay: 0.15s; }
.pillar-card:nth-child(4) { transition-delay: 0.2s; }
.pillar-card:nth-child(5) { transition-delay: 0.25s; }

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .hero__title { font-size: 2.4rem; }
  .hero__form-wrapper { flex: 0 0 340px; }
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .leadership__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .top-bar__phone-label { display: none; }

  .nav__toggle { display: flex; }

  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 30px 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    gap: 0;
    overflow-y: auto;
  }

  .nav__list.active {
    right: 0;
  }

  .nav__link {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-gray);
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav__item.dropdown-open .nav__dropdown {
    display: block;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__title { font-size: 2rem; }
  .hero__form-wrapper { flex: none; width: 100%; max-width: 420px; }

  .hero__buttons {
    justify-content: center;
  }

  .client-service .container {
    flex-direction: column;
  }

  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .leadership__grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2rem; }

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

  .footer__social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.7rem; }
  .products__grid { grid-template-columns: 1fr; }
  .leadership__grid { grid-template-columns: 1fr; }
  .client-service__stats { flex-direction: column; gap: 20px; }
  .certifications__logos { gap: 20px; }
  .sponsors__logos { gap: 20px; }
}
/* =============================================
   CHATBOT STYLES
   ============================================= */
.chatbot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  font-family: var(--font-main);
}

.chatbot__toggle {
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 28px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: none;
}

.chatbot__toggle:hover {
  transform: scale(1.1) rotate(5deg);
  background: #20bd5a;
}

.chatbot__window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 500px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.chatbot.active .chatbot__window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chatbot__header {
  background: var(--color-primary);
  padding: 20px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot__header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot__header-title i {
  font-size: 24px;
}

.chatbot__header-text h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.chatbot__header-text span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chatbot__close {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.chatbot__close:hover {
  opacity: 1;
}

.chatbot__body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot__message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

.chatbot__message--bot {
  background: var(--color-white);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chatbot__message--user {
  background: var(--color-accent);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot__options {
  padding: 15px 20px;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot__option-btn {
  background: var(--color-light);
  border: 1px solid var(--color-gray);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.chatbot__option-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 480px) {
  .chatbot {
    bottom: 20px;
    right: 20px;
  }
  .chatbot__window {
    width: 100vw;
    height: 100vh;
    bottom: -20px;
    right: -20px;
    border-radius: 0;
  }
}
