/* ════════════════════════════════════════════════════════════
   XERIC AEROSPACE — Coming Soon
   styles.css
   ════════════════════════════════════════════════════════════ */

/* ── CUSTOM FONT ─────────────────────────────────────────── */
@font-face {
  font-family: 'JUST Sans';
  src: url('assets/fonts/JUST_Sans_Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Colors — sampled directly from design */
  --hero-bg:         #cee4f2;          /* light sky blue hero background     */
  --hero-bg-alt:     #d4e8f3;
  --navy:            #0d1f3c;          /* near-black navy – main text        */
  --navy-mid:        #1a3a6e;
  --blue-heading:    #1a3a6e;          /* section headings like "More About" */
  --blue-intro:      #1e4080;          /* bold intro text                    */
  --blue-link:       #3a7ec8;          /* email link                         */
  --gray-body:       #3c3c3c;          /* regular body text                  */
  --gray-light:      #f4f4f6;          /* services card panel bg             */
  --white:           #ffffff;
  --panel-bg:        #ffffff;
  --footer-bg:       #f4f4f6;

  /* Pill */
  --pill-bg:         #2d6faf;
  --pill-text:       #ffffff;

  /* Service card accent colors */
  --card-blue:       #033e8a;
  --card-midblue:    #2483c7;
  --card-teal:       #00b4d7;
  --card-yellow:     #f5a623;
  --card-orange:     #f57320;

  /* Typography */
  --font:            'JUST Sans', 'DM Sans', 'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w:           900px;
  --max-w-wide:      1100px;
  --px:              clamp(1.25rem, 5vw, 4rem);   /* horizontal page padding */

  /* Radius */
  --r-sm:  0.5rem;
  --r-md:  1rem;
  --r-lg:  2rem;
  --r-xl:  3rem;

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(13, 31, 60, 0.09), 0 1px 6px rgba(13, 31, 60, 0.05);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--footer-bg);
  color: var(--gray-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
.container {
  max-width: var(--max-w-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}
.container--narrow {
  max-width: var(--max-w);
}

/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--hero-bg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-bottom: 90px;  /* space for the curve */
}

/* Logo centered at top */
.hero__logo {
  position: relative;
  z-index: 10;
  padding-top: 2.75rem;
  display: flex;
  justify-content: center;
}

.logo-img--hero {
  width: 260px;
  height: auto;
  /* The logo has a light-blue bg that blends with hero */
  mix-blend-mode: multiply;
}

/* Engine image fills center-bottom of hero */
.hero__engine {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 55vw, 620px);
  z-index: 1;
  pointer-events: none;
}
.hero__engine-img {
  width: 100%;
  height: auto;
  opacity: 0.92;
}

/* Headline + pill centered over engine */
.hero__copy {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
}

/* White curved bottom edge of hero */
.hero__curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--panel-bg);
  border-radius: 60% 60% 0 0 / 80px 80px 0 0;
  z-index: 6;
}

/* ════════════════════════════════════════════════════════════
   WHITE PANEL (main content)
   ════════════════════════════════════════════════════════════ */
.panel {
  background: var(--panel-bg);
  position: relative;
  z-index: 5;
}

/* ── INTRO ───────────────────────────────────────────────── */
.intro {
  padding: 4.5rem var(--px) 3rem;
  text-align: center;
}

.intro .container--narrow {
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
}

.intro__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--blue-intro);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.intro__body {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--gray-body);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}

/* ── MORE ABOUT ──────────────────────────────────────────── */
.more-about {
  padding: 2rem var(--px) 4rem;
  text-align: center;
}

.more-about .container--narrow {
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--blue-heading);
  margin-bottom: 1.5rem;
}

.more-about__body {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--gray-body);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════
   SERVICES SECTION
   ════════════════════════════════════════════════════════════ */
.services {
  padding: 2rem var(--px) 5rem;
}

.services__card {
  background: var(--gray-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 2.5rem 3.5rem;
}

.services__card .container {
  padding: 0;
  max-width: 100%;
}

.services__header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.services__subtext {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--gray-body);
  line-height: 1.65;
  margin-top: 0.5rem;
}

/* Service rows */
.services__row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.services__row:last-child { margin-bottom: 0; }

.services__row--3 { flex-wrap: wrap; }
.services__row--2 { flex-wrap: wrap; }

/* ── INDIVIDUAL SERVICE ITEM ─────────────────────────────── */
.service-item {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
}

.service-item__image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.service-item__image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 1.25rem;
  display: block;
}

.service-item__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-heading);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.service-item__desc {
  font-size: 0.85rem;
  color: var(--gray-body);
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════════════════════════ */
.contact {
  padding: 3.5rem var(--px) 5rem;
  text-align: center;
  background: var(--panel-bg);
}

.contact .container--narrow {
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
}

.contact__heading {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--blue-heading);
  margin-bottom: 1.75rem;
}

.contact__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-body);
  margin-bottom: 0.4rem;
}

.contact__address {
  font-size: 0.97rem;
  color: var(--gray-body);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.contact__email {
  font-size: 1rem;
}

.contact__link {
  color: var(--blue-link);
  text-decoration: none;
  font-weight: 500;
}
.contact__link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  padding: 3rem var(--px) 2rem;
  text-align: center;
}

.site-footer .container {
  max-width: var(--max-w-wide);
  padding: 0;
}

.footer__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.logo-img--footer {
  width: 240px;
  height: auto;
  /* Blend with light grey background */
  mix-blend-mode: multiply;
}

.footer__rule {
  border: none;
  border-top: 1px solid #d8d8d8;
  margin-bottom: 1.5rem;
}

.footer__copy {
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .hero {
    min-height: 400px;
    padding-bottom: 80px;
  }

  .hero__engine {
    width: 65vw;
  }

  .services__card {
    padding: 2.5rem 1.75rem 3rem;
  }

  .services__row--3 {
    gap: 1.5rem;
  }

  .service-item {
    width: 160px;
  }

  .service-item__image {
    width: 150px;
    height: 150px;
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 640px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  :root { --px: 1.25rem; }

  .hero {
    min-height: 360px;
    padding-bottom: 70px;
  }

  .logo-img--hero {
    width: 130px;
  }

  .hero__engine {
    width: 80vw;
    bottom: 50px;
  }

  .hero__copy {
    margin-top: 1.75rem;
  }

  .hero__curve {
    height: 70px;
    border-radius: 50% 50% 0 0 / 70px 70px 0 0;
  }

  .intro { padding: 3rem 1.25rem 2rem; }
  .more-about { padding: 1.5rem 1.25rem 3rem; }
  .services { padding: 1.5rem 1rem 3.5rem; }
  .contact { padding: 2.5rem 1.25rem 3.5rem; }

  .services__card {
    padding: 2rem 1.25rem 2.5rem;
    border-radius: var(--r-lg);
  }

  /* Stack all service items in a 2-column grid on mobile */
  .services__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    justify-items: center;
  }

  .services__row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .service-item {
    width: 100%;
  }

  .service-item__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .site-footer { padding: 2.5rem 1.25rem 1.5rem; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  ≤ 380px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .services__row,
  .services__row--2 {
    grid-template-columns: 1fr;
  }

  .service-item__image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

:focus-visible {
  outline: 3px solid var(--pill-bg);
  outline-offset: 3px;
  border-radius: 3px;
}
