/* ==========================================================
   AIM Inc. — styles.css
   Design: Modern American Business
   Palette: Navy #002868 | Red #BF0A30 | White #FFFFFF | Light #F4F6FB
   Font: Montserrat (Google Fonts CDN)
   ========================================================== */

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

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

body {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-white  { background: #ffffff; }
.section-light  { background: #f4f6fb; }
.section-navy   { background: #002868; }

section { padding: 72px 0; }

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #002868;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subheading {
  font-size: 1rem;
  font-weight: 600;
  color: #002868;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: #BF0A30;
  margin: 12px 0 32px;
  border: none;
}

.body-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  max-width: 720px;
}

/* ---- HEADER ---- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #002868;
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.header-company-name {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 160px;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease-out, color 200ms ease-out;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
  border-bottom-color: #BF0A30;
  color: #ffffff;
  outline: none;
}

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

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 250ms ease-out, opacity 200ms ease-out;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #002868;
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  border-top: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}

.mobile-nav a:last-child { border-bottom: none; }

/* ---- HERO ---- */
#hero {
  background: #002868;
  padding: 0;
}

.hero-inner {
  display: flex;
  align-items: stretch;
  min-height: 560px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Left column */
.hero-left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 48px 72px 0;
  text-align: left;
}

.hero-h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.88);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 100%;
}

.hero-cta {
  align-self: flex-start;
}

/* Right column */
.hero-right {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  padding: 40px 0 40px 40px;
  gap: 0;
  position: relative;
}

/* Founder photo — floats right-aligned, above stats box */
.founder-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* right-align to match stats box right edge */
  background: transparent;
  border: none;
  overflow: visible;
  margin-bottom: 8px;
}

.founder-photo {
  width: auto;
  max-width: 55%;
  height: 170px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  display: block;
  background: transparent;
}

.founder-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 0 0;
  background: transparent;
  text-align: right;
}

.founder-name {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.founder-title {
  color: rgba(255,255,255,0.75);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

/* Stats panel */
.stats-panel {
  flex: 1 1 auto;
  background: rgba(0,0,0,0.3);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.stats-headline {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 3px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-body {
  font-size: 12px;
  color: #D0D8E8;
  line-height: 1.5;
}

.stat-source {
  font-size: 10px;
  color: #8899BB;
  line-height: 1.4;
  margin-top: 2px;
}

.stats-footer {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.stats-dot {
  color: #BF0A30;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 3px;
}

.btn-primary {
  display: inline-block;
  background: #BF0A30;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
  box-shadow: 0 4px 16px rgba(191,10,48,0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #9e0826;
  box-shadow: 0 6px 20px rgba(191,10,48,0.45);
  outline: none;
}

.btn-primary:active {
  transform: scale(0.97);
}

/* ---- SERVICES ---- */
#services {
  background: #ffffff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #ffffff;
  border-top: 4px solid #BF0A30;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,40,104,0.07);
  border-radius: 2px;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,40,104,0.13);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #002868;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card p {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.7;
}

/* ---- ABOUT ---- */
#about {
  background: #f4f6fb;
}

/* ---- SMS NOTICE BANNER ---- */
#sms-notice {
  background: #002868;
  padding: 36px 0;
}

.sms-notice-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 860px;
}

.sms-notice-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* ---- CONTACT ---- */
#contact {
  background: #ffffff;
}

#contact .container {
  max-width: 680px;
}

.contact-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #002868;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  background: #f4f6fb;
  border: 1.5px solid #c8d0e8;
  border-radius: 4px;
  text-decoration: none;
  transition: background 150ms ease-out, border-color 150ms ease-out;
}

.contact-pill:hover,
.contact-pill:focus {
  background: #e8ecf5;
  border-color: #002868;
  outline: none;
}

.contact-pill .icon {
  color: #BF0A30;
  font-size: 1.1rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #002868;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #ffffff;
  border: 1.5px solid #c8d0e8;
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #002868;
  box-shadow: 0 0 0 3px rgba(0,40,104,0.1);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-policy-note {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
  margin-top: 4px;
}

.form-policy-note a {
  color: #002868;
  font-weight: 600;
  text-decoration: underline;
}

.form-policy-note a:hover { color: #BF0A30; }

.form-thank-you {
  display: none;
  background: #f4f6fb;
  border: 2px solid #002868;
  border-radius: 3px;
  padding: 32px;
  text-align: center;
}

.form-thank-you.visible { display: block; }

.form-thank-you p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #002868;
}

/* ---- CHAT WIDGET PLACEHOLDER ---- */
#chat-widget {
  background: #f4f6fb;
}

.chat-widget-box {
  border: 2px dashed #c8d0e8;
  border-radius: 4px;
  padding: 48px 32px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- FOOTER ---- */
#site-footer {
  background: #002868;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  transition: color 150ms ease-out;
}

.footer-links a:hover { color: #ffffff; }

/* ---- LEGAL PAGES ---- */
.legal-hero {
  background: #002868;
  padding: 56px 0 40px;
}

.legal-hero h1 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-top: 8px;
}

.legal-content {
  padding: 64px 0 80px;
  background: #ffffff;
}

.legal-content .container {
  max-width: 800px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #002868;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-section p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section a {
  color: #002868;
  font-weight: 600;
  text-decoration: underline;
}

.legal-section a:hover { color: #BF0A30; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .header-company-name { display: none; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info-row {
    flex-direction: column;
  }

  /* Hero mobile stacking */
  .hero-inner {
    flex-direction: column;
    min-height: auto;
    padding: 0 1rem;
  }

  .hero-left {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 48px 0 24px;
    text-align: left;
    order: 1;
  }

  /* On mobile: H1 first, then sub, then CTA moves to end */
  .hero-cta {
    order: 7;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 8px;
  }

  .hero-right {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0 0 48px;
    order: 2;
  }

  .founder-photo {
    height: 160px;
    max-width: 60%;
    object-fit: cover;
    object-position: top center;
    background: transparent;
    border-radius: 4px;
  }

  .founder-photo-wrap {
    align-items: center;
  }

  .founder-caption {
    align-items: center;
    text-align: center;
  }

  /* Mobile: stat cards stack vertically */
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.95rem; }
  .btn-primary { padding: 14px 28px; font-size: 0.9rem; }
}
