/* ============================================================
   A/C Squad LLC — Demo Site Styles
   Palette: Brand Blue #2563A9 | Brand Red #D72B2B | White
   Hot (red) / Cold (blue) dual branding
   ============================================================ */

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

:root {
  --navy:    #0F2647;
  --deep:    #0B1C38;
  --blue:    #2563A9;
  --blue-dk: #1C4D82;
  --blue-lt: #4A8BC9;
  --red:     #D72B2B;
  --red-dk:  #B91C1C;
  --red-lt:  #EF4444;
  --white:   #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-400:#94a3b8;
  --gray-500:#64748b;
  --gray-600:#475569;
  --gray-800:#1e293b;
  --gold:    #f59e0b;
  --radius:  12px;
  --radius-sm: 8px;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.1), 0 16px 40px rgba(0,0,0,.08);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .938rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--sm  { padding: 8px 20px; font-size: .875rem; }
.btn--lg  { padding: 14px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; padding: 14px 24px; }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dk);
  border-color: var(--red-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(215,43,43,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ---------- Section Labels ---------- */
.section__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  text-align: center;
}
.section__title--left { text-align: left; }
.section__sub {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 38, 71, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.nav--scrolled { background: rgba(15, 38, 71, .97); }
.nav__logo-img { height: 56px; width: auto; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
}
.nav__logo-icon { color: var(--blue); display: flex; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__cta-wrap .btn {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.nav__cta-wrap .btn:hover {
  background: var(--red-dk);
  border-color: var(--red-dk);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    -45deg,
    var(--deep),
    var(--blue-dk),
    var(--blue),
    #2D1F3D,
    var(--red-dk),
    #3B1828,
    var(--blue-dk),
    var(--deep)
  );
  background-size: 400% 400%;
  animation: heroGradient 20s ease infinite;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(37,99,169,.15) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(215,43,43,.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(15,38,71,.1) 0%, rgba(15,38,71,.4) 100%);
}

/* Logo glow + sizing */
.hero__logo-wrap {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 32px;
  text-align: center;
}
.hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 55%, transparent 72%);
  border-radius: 50%;
  filter: blur(16px);
}
.hero__logo {
  position: relative;
  /* logo.png carries ~6px of transparent margin so its outline never touches the
     canvas edge; heights are scaled to keep the mark's rendered diameter the same */
  height: 229px;
  width: auto;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,.3))
    drop-shadow(0 0 8px rgba(255,255,255,.15))
    drop-shadow(0 0 24px rgba(255,255,255,.1))
    drop-shadow(0 6px 32px rgba(0,0,0,.35));
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 160px 24px 80px;
  margin: 0 auto;
  text-align: center;
}

/* Animated red/blue spinning border badge */
@keyframes badgeSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 100px;
  margin-bottom: 28px;
  overflow: hidden;
  z-index: 0;
}

/* Spinning conic gradient — becomes the animated border */
.hero__badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  margin-top: -150%;
  margin-left: -150%;
  background: conic-gradient(
    var(--red),
    var(--blue),
    var(--blue-lt),
    var(--red),
    var(--blue),
    var(--red)
  );
  animation: badgeSpin 8s linear infinite;
  z-index: -2;
}

/* Inner fill — masks center, leaves 2px animated border visible */
.hero__badge::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(15,38,71,.8);
  border-radius: 100px;
  z-index: -1;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  gap: 14px 22px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Four badges don't fit inside .hero__content's 720px, and the fourth orphans onto
   its own line. Widen just this row with negative margins once there's room for it.
   Deliberately NOT 100vw — that overflows by the scrollbar width and produces a
   horizontal scrollbar on desktop. */
@media (min-width: 1024px) {
  .hero__trust {
    margin-left: -110px;
    margin-right: -110px;
  }
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  font-weight: 500;
}
.hero__trust-item svg { color: var(--blue); flex-shrink: 0; }

/* ========== SERVICES ========== */
.services {
  padding: 96px 0;
  background: var(--gray-50);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  background: var(--blue);
  border-color: rgba(37,99,169,.3);
  color: rgba(255,255,255,.85);
}
.service-card--featured .service-card__title { color: var(--white); }
.service-card--featured .service-card__icon { color: var(--blue-lt); }
.service-card--featured .service-card__list li::before { color: var(--blue-lt); }

.service-card__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}

.service-card__icon {
  color: var(--blue);
  margin-bottom: 20px;
}
.service-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card__text {
  font-size: .925rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
}
.service-card__list li::before {
  content: "\2713";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== ABOUT ========== */
.about {
  padding: 96px 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.about__image {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about__stat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  margin-top: -24px;
  position: relative;
  z-index: 1;
  margin-left: 24px;
  margin-right: 24px;
}
.about__stat { text-align: center; }
.about__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-lt);
}
.about__stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  line-height: 1.3;
}
.about__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
}

.about__lead {
  font-size: 1.15rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
}
.about__body {
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Public-record trust line. Every element of it is checkable against the AZ ROC. */
.about__record {
  /* grid rather than flex so the text track carries an explicit minmax(0,…) and can
     shrink below its content width — same reason the card grids use it */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--gray-600);
}
.about__record svg { color: var(--blue); margin-top: 2px; }
.about__record strong { color: var(--navy); font-weight: 700; }

.about__brands {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.about__brands-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.about__brands-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.brand-badge {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 96px 0;
  background: var(--gray-50);
}
.testimonials__grid {
  display: grid;
  /* minmax(0,…) not 1fr: a long unbroken token in a pasted-in review would
     otherwise force its track wider and squeeze the other two cards */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
/* <use href="#icon-star"> inherits nothing by default — take the fill from the
   parent's colour so one symbol serves every rating row. */
.star { fill: currentColor; display: block; }
.testimonial-card__text {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--gray-600);
  overflow-wrap: anywhere;
  flex: 1;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: .875rem;
  color: var(--navy);
}
.testimonial-card__location {
  font-size: .78rem;
  color: var(--gray-400);
}

/* ========== CTA BAND ========== */
.cta-band {
  padding: 72px 0;
  background: var(--red);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-band__sub {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
}

/* ========== CONTACT ========== */
.contact {
  padding: 96px 0;
  background: var(--white);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact__body {
  color: var(--gray-500);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.contact__item:hover {
  background: var(--gray-50);
}
.contact__item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37,99,169,.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__item-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.contact__item-value {
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}

/* Contact Form */
.contact__form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
}
.contact__form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.form__group { margin-bottom: 18px; }
.form__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: .925rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
}
.form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,169,.12);
}
.form__input::placeholder { color: var(--gray-400); }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form__textarea { resize: vertical; min-height: 80px; }

.contact__form-note {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* These two replace inline style="" attributes. The deployed CSP has no
   'unsafe-inline' in style-src, and style-src-attr falls back to it — so inline
   style attributes are blocked in production even though they work over file://.
   Never reintroduce a style="" attribute in this page. */
.icon-sprite { position: absolute; }
.footer__brand img { height: 39px; width: auto; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  /* extra bottom padding clears the fixed .demo-bar overlay */
  padding: 40px 0 76px;
}

/* ========== DEMO PREVIEW BAR ==========
   Remove this block (and the .demo-bar div in index.html) when the site goes
   live. Fixed to the bottom so it never interacts with the fixed nav or hero. */
.demo-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #0b1c33;
  border-top: 2px solid var(--red);
  color: rgba(255,255,255,.82);
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
}
/* Preview-form acknowledgement. Slate, not green — nothing succeeded.
   Two-class selector so it beats .btn--primary regardless of source order.
   Remove alongside the demo bar when the form is wired up for real. */
.btn.btn--preview-ack {
  background: var(--gray-500);
  border-color: var(--gray-500);
  color: var(--white);
}

.demo-bar strong {
  color: var(--white);
  font-weight: 700;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 8px;
}
.footer__brand .nav__logo-icon { color: var(--blue); }
.footer__copy {
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}
.footer__sub {
  color: rgba(255,255,255,.25);
  font-size: .75rem;
}

/* ========== ANIMATIONS (scroll-reveal) ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services__grid,
  .testimonials__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  /* Let the featured card span on tablet */
  .service-card--featured { order: -1; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(15,38,71,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav__links--open { transform: translateY(0); }

  .hero__content { padding: 130px 24px 60px; }
  .hero__logo { height: 188px; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }

  .services__grid,
  .testimonials__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .about__image { aspect-ratio: 16 / 9; object-fit: cover; }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .section__title--left { text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__trust { flex-direction: column; align-items: center; gap: 8px; }
  .about__stat-bar { gap: 16px; padding: 16px; margin-left: 12px; margin-right: 12px; }
  .contact__form { padding: 24px 20px; }
}
