/* ============================================
   American Exports Group — Landing Styles
   Vanilla CSS · Mobile-first · Brand v1
   ============================================ */

:root {
  /* Brand colors (manual de marca) */
  --navy: #0D183D;
  --navy-darker: #08112B;
  --orange: #FF6A00;
  --orange-light: #FF8533;

  /* Surface colors */
  --gray-light: #E4E8EE;       /* secondary brand gray — section backgrounds */
  --gray-border: #D1D6DE;      /* card borders, derived from gray-light */
  --white: #FFFFFF;
  --ink: #0D183D;              /* body text on light surfaces */
  --muted: #6D7481;            /* secondary brand gray — muted text */
  --muted-light: #B8C0D0;      /* muted text on navy backgrounds */

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, Arial, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, Arial, sans-serif;

  /* Spacing */
  --section-pad-y: 56px;
  --section-pad-x: 20px;
  --container-max: 1200px;

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-med: 0.3s ease;
}

/* ============================================
   Reset / Base
   ============================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--gray-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--orange);
  color: var(--white);
  padding: 8px 16px;
  font-weight: 600;
  z-index: 200;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section-title {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 12px auto 30px;
}

/* ============================================
   Navbar
   ============================================ */

.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-logo-tagline {
  display: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.2;
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 12px;
  max-width: 180px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.nav.is-open .nav-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--navy);
  padding: 10px var(--section-pad-x) 20px;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-menu a {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 4px;
  transition: color var(--t-fast);
}
.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--orange); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.85;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13,24,61,0.96) 0%,
    rgba(13,24,61,0.85) 35%,
    rgba(13,24,61,0.40) 70%,
    rgba(13,24,61,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px var(--section-pad-x);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-inner { max-width: 600px; }

.hero h1 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 700;
}
.hero h1 span { color: var(--orange); }

.hero-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.hero-line {
  width: 70px;
  height: 3px;
  background: var(--orange);
  margin: 16px 0 22px;
}

.hero p {
  font-size: 15px;
  color: var(--muted-light);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 30px;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255,106,0,0.28);
}

/* ============================================
   Categories
   ============================================ */

.categories {
  background: var(--gray-light);
  padding: var(--section-pad-y) 0;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-bottom: 3px solid var(--orange);
  padding: 26px 12px;
  text-align: center;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13,24,61,0.10);
}
.category-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  color: var(--navy);
}
.category-card:hover .category-icon { color: var(--orange); }
.category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ============================================
   About / Vision
   ============================================ */

.about {
  background: var(--white);
  color: var(--ink);
  padding: var(--section-pad-y) 0;
}
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.about h2 { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.about h2 span { color: var(--orange); }
.about-line {
  width: 60px; height: 3px; background: var(--orange); margin: 14px 0 22px;
}
.about p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-vision {
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  margin-top: 24px;
  background: var(--gray-light);
  padding: 18px 18px 18px 16px;
}
.about-vision h3 {
  font-size: 14px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  font-weight: 600;
}
.about-vision p { margin-bottom: 0; font-size: 14.5px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-box {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--orange);
  padding: 24px 14px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   Brand Pillars (5 attributes from manual)
   ============================================ */

.pillars {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-pad-y) 0;
  text-align: center;
}
.pillars .section-title { color: var(--white); }
.pillars .section-subtitle { color: var(--muted-light); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.pillar {
  text-align: center;
  padding: 18px 10px;
}
.pillar-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--orange);
}
.pillar-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--white);
  margin-bottom: 8px;
}
.pillar-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-light);
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================
   Services
   ============================================ */

.services {
  background: var(--gray-light);
  padding: var(--section-pad-y) 0;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 4px solid var(--navy);
  padding: 28px 22px;
  text-align: left;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13,24,61,0.10);
  border-top-color: var(--orange);
}
.service-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.service-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--orange);
}

/* ============================================
   Contact
   ============================================ */

.contact {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-pad-y) 0;
}
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-info h2 { font-size: 26px; color: var(--white); }
.contact-info h2 span { color: var(--orange); }
.contact-line {
  width: 50px; height: 3px; background: var(--orange); margin: 14px 0 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--orange);
  margin-top: 2px;
}
.contact-text {
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.6;
}
.contact-text a { transition: color var(--t-fast); }
.contact-text a:hover,
.contact-text a:focus-visible { color: var(--orange); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.10);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange) 50%),
    linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.form-group select option { background: var(--navy); color: var(--white); }

.form-error {
  font-size: 12px;
  color: #FFB1B1;
  margin-top: 4px;
  min-height: 0;
}

.form-status {
  font-size: 13px;
  padding: 12px 14px;
  margin-top: 8px;
}
.form-status.is-success {
  background: rgba(255,106,0,0.12);
  border: 1px solid var(--orange);
  color: var(--orange-light);
}
.form-status.is-error {
  background: rgba(255,138,138,0.12);
  border: 1px solid #FF8A8A;
  color: #FFB1B1;
}

.submit-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--t-fast), transform var(--t-fast);
}
.submit-btn:hover,
.submit-btn:focus-visible {
  background: var(--orange-light);
  transform: translateY(-1px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--navy-darker);
  border-top: 2px solid var(--orange);
  padding: 28px var(--section-pad-x) 22px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 2px;
}
.footer-text {
  font-size: 12px;
  color: var(--muted-light);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted-light);
  transition: color var(--t-fast);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--orange); }

/* ============================================
   Tablet · 768px+
   ============================================ */

@media (min-width: 768px) {
  :root {
    --section-pad-y: 76px;
    --section-pad-x: 36px;
  }

  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    gap: 28px;
    position: static;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }

  .nav-logo-tagline { display: block; }

  .hero { min-height: 580px; }
  .hero h1 { font-size: 44px; }

  .section-title { font-size: 30px; }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .about-grid {
    flex-direction: row;
    gap: 56px;
    align-items: center;
  }
  .about-text { flex: 1.3; }
  .about-stats {
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .stat-number { font-size: 38px; }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .contact-grid {
    flex-direction: row;
    gap: 56px;
    align-items: flex-start;
  }
  .contact-info, .contact-form { flex: 1; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
  .footer-brand { display: flex; align-items: center; gap: 18px; }
}

/* ============================================
   Desktop · 1024px+
   ============================================ */

@media (min-width: 1024px) {
  .hero { min-height: 640px; }
  .hero h1 { font-size: 52px; }
  .hero p { font-size: 16px; }
  .hero-inner { max-width: 640px; }
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
