/* =====================================================
   AAA Computers — Marketing Site Styles
   Mobile-first, no framework, no build step.
   ===================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #0D2647;   /* primary */
  --blue:        #1E6FE0;   /* bright accent */
  --blue-dark:   #1759b8;
  --slate:       #1A2333;   /* dark text */
  --slate-soft:  #4a5468;   /* muted text */
  --gray-band:   #F4F6F9;   /* light section band */
  --border:      #e2e7ef;
  --white:       #ffffff;

  --gradient-hero: linear-gradient(135deg, #0D2647 0%, #143a6b 55%, #1E6FE0 130%);

  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 3px rgba(13, 38, 71, 0.08);
  --shadow-md:   0 8px 24px rgba(13, 38, 71, 0.10);
  --shadow-lg:   0 20px 50px rgba(13, 38, 71, 0.18);

  --container:   1140px;
  --ease:        0.2s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-band { background: var(--gray-band); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
}
.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--slate-soft);
  font-size: 1.05rem;
}

/* ---------- Accessibility: skip link & focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* =====================================================
   1. HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}
.logo img { height: 40px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--blue); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.email-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-soft);
}
.email-link:hover { color: var(--blue); }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* =====================================================
   2. HERO
   ===================================================== */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 20px;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  max-width: 520px;
  margin: 1.25rem 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
}

/* =====================================================
   3. VALUE PROPS
   ===================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; color: var(--slate-soft); font-size: 0.95rem; }

/* =====================================================
   4. BRANDS
   ===================================================== */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.brand-strip li { display: flex; }
.brand-strip img {
  height: 44px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--ease), opacity var(--ease), transform var(--ease);
}
.brand-strip img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* =====================================================
   5. CONTACT
   ===================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy .section-title,
.contact-copy .section-lead { text-align: left; margin-left: 0; }

.contact-details {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-soft);
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gray-band);
  color: var(--blue);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gray-band);
  color: var(--navy);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.social-links a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--slate);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 224, 0.15);
}
.form-row textarea { resize: vertical; }

/* Invalid field state (set by JS) */
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #d23b3b;
}
.field-error {
  display: block;
  color: #d23b3b;
  font-size: 0.82rem;
  margin-top: 5px;
  min-height: 1em;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}
.form-status.success { background: #e7f6ec; color: #1b7e3c; border: 1px solid #b7e3c4; }
.form-status.error   { background: #fde8e8; color: #b42318; border: 1px solid #f5c2c0; }
.form-status.info    { background: #eaf1fc; color: #1e4fa0; border: 1px solid #c3d7f6; }

/* =====================================================
   6. FOOTER
   ===================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  background: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  /* Logo has a white background, so we give it a small white chip to sit cleanly on navy.
     If you swap in a transparent/light logo, remove the background/padding/border-radius. */
}
.footer-brand p { max-width: 360px; font-size: 0.95rem; }

.footer-links h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 64px 20px; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-media { order: -1; max-width: 480px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Mobile: collapse the header nav */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 20px;
    /* Hidden by default; toggled via .is-open */
    display: none;
  }
  .primary-nav.is-open { display: flex; }

  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 14px 0; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
  }
  .header-actions .btn { width: 100%; }
  .email-link { text-align: center; }

  /* Animate hamburger into an X when open */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Small phones */
@media (max-width: 420px) {
  .section { padding: 48px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .brand-strip { gap: 28px; }
}

/* Honeypot anti-spam field — visually hidden, off-screen, not focusable. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
