/* ==========================================================================
   Aerotics Engineering Solutions — Site Stylesheet
   Brand colors sampled directly from the company logo.
   ========================================================================== */

:root {
  --red: #8f1414;
  --red-dark: #6e0f0f;
  --red-light: #b31c1c;
  --navy: #0d1d2b;
  --navy-2: #16293b;
  --light: #f6f7f8;
  --white: #ffffff;
  --text: #2a2f36;
  --text-muted: #5f6a76;
  --border: #e6e8eb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 29, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 29, 43, 0.16);
  --container: 1180px;
  --font: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------------- Top bar ---------------- */
.topbar { background: var(--navy); color: #cfd8e0; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 8px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a { color: #cfd8e0; display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a:hover { color: #fff; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: #cfd8e0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); }
.topbar-social a:hover { background: var(--red); color: #fff; }

/* ---------------- Header / Nav ---------------- */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; }
.brand img { display: block; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px; font-weight: 600; font-size: 14.5px;
  color: var(--navy); border-radius: 6px; transition: all .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); background: rgba(143,20,20,.06); }
.header-cta { margin-left: auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------------- Kickers / section titles ---------------- */
.kicker { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--red); font-size: 13px; margin-bottom: 10px; }
.kicker.light { color: #ff9d9d; }
.kicker.center { text-align: center; }
.section-title { font-size: clamp(26px, 3vw, 34px); }
.section-title.center { text-align: center; }
.center { text-align: center; }
.intro-text { color: var(--text-muted); font-size: 17px; max-width: 780px; }
.intro-text.center { margin: 0 auto 40px; }
.closing-text { margin-top: 24px; font-style: italic; }

.section { padding: 72px 0; }

/* ---------------- Hero ---------------- */
.hero { position: relative; color: #fff; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,29,43,.92) 30%, rgba(13,29,43,.55) 75%); }
.hero-content { position: relative; max-width: 640px; padding: 100px 24px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 20px; }
.hero-text { font-size: 17px; color: #dbe2e8; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

/* ---------------- Banner strip ---------------- */
.banner-strip { background: var(--navy); color: #fff; }
.banner-strip-inner { padding: 44px 24px; max-width: 720px; }
.banner-strip h2 { color: #fff; }
.banner-strip p { color: #cfd8e0; }
.link-arrow { color: var(--red-light); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.banner-strip .link-arrow { color: #ff8a8a; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------------- Services grid ---------------- */
.services-grid-section { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: all .25s; display: flex; flex-direction: column; gap: 10px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.service-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(143,20,20,.08); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 6px; }
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 4px; }

/* ---------------- Stats ---------------- */
.stats-section { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 38px; font-weight: 800; color: var(--red-light); }
.stat-label { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: #b6c1cb; margin-top: 6px; }

/* ---------------- Industries ---------------- */
.industries-grid-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.industries-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.industries-grid-large { grid-template-columns: repeat(4, 1fr); margin: 30px 0; }
.industry-chip {
  display: flex; align-items: center; gap: 12px; background: var(--light); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 18px; font-weight: 600; font-size: 14.5px; transition: all .2s;
}
.industry-chip:hover { background: var(--red); color: #fff; }
.industry-chip i { color: var(--red); font-size: 18px; width: 22px; }
.industry-chip:hover i { color: #fff; }
.industries-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------------- Process (home + service pages) ---------------- */
.process-section { background: var(--light); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 20px; }
.process-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; position: relative; box-shadow: var(--shadow); }
.process-step-number { position: absolute; top: 14px; right: 18px; font-weight: 800; font-size: 22px; color: var(--border); }
.process-step-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: rgba(143,20,20,.08); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.process-step h3 { font-size: 16.5px; }
.process-step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------------- Why-outsource teaser (home) ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.why-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.why-cta { margin-top: 30px; }

/* ---------------- Capabilities / software (about) ---------------- */
.capabilities-section { background: var(--light); }
.capabilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.capability-card { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.capability-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.software-title { text-align: center; margin-bottom: 20px; }
.software-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.software-badge { background: var(--light); border: 1px solid var(--border); border-radius: 30px; padding: 10px 22px; font-weight: 600; font-size: 14px; color: var(--navy); }

/* ---------------- Industry cards (industries page) ---------------- */
.industry-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.industry-card { display: flex; gap: 16px; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.industry-card .mvv-icon { flex: none; width: 48px; height: 48px; font-size: 20px; margin: 0; }
.industry-card h3 { font-size: 16px; margin-bottom: 6px; }
.industry-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------------- Service process (service detail page) ---------------- */
.service-process { background: var(--light); border-radius: var(--radius); padding: 28px; margin-top: 20px; border: 1px solid var(--border); }
.service-process h3 { font-size: 18px; }
.service-process-grid { display: flex; flex-direction: column; gap: 18px; }
.service-process-step { display: flex; gap: 16px; align-items: flex-start; }
.service-process-number {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.service-process-step h4 { font-size: 15.5px; margin-bottom: 4px; }
.service-process-step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------------- Case study highlight badge ---------------- */
.case-study-highlight { display: inline-flex; align-items: center; gap: 6px; color: #1f7a44; font-weight: 700; font-size: 13px; }
.case-study-highlight i { color: #2e9e5b; }

/* ---------------- CTA ---------------- */
.cta-section { background: linear-gradient(120deg, var(--red-dark), var(--red)); color: #fff; }
.cta-inner { text-align: center; max-width: 640px; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #ffd9d9; margin-bottom: 26px; }
.cta-section .btn-primary { background: #fff; color: var(--red); }
.cta-section .btn-primary:hover { background: var(--navy); color: #fff; }

/* ---------------- Page header (inner pages) ---------------- */
.page-header { background: var(--navy); color: #fff; padding: 60px 0 34px; text-align: center; }
.page-header h1 { color: #fff; font-size: clamp(28px, 4vw, 38px); }
.breadcrumb { color: #b6c1cb; font-size: 14px; margin-top: 10px; }
.breadcrumb a { color: #b6c1cb; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 10px; margin: 0 6px; }

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mvv-section { background: var(--light); }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card { background: #fff; border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.mvv-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: rgba(143,20,20,.08); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mvv-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------------- Service detail ---------------- */
.service-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.service-list-box { background: var(--light); border-radius: var(--radius); padding: 28px; margin-top: 20px; border: 1px solid var(--border); }
.service-list-box h3 { font-size: 18px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-weight: 600; font-size: 15px; }
.check-list i { color: var(--red); margin-top: 4px; }
.service-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.service-image { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.service-image-fallback {
  border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #ff8a8a; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.quote-box { background: var(--navy); border-radius: var(--radius); padding: 26px; text-align: center; color: #fff; }
.quote-box p { color: #dbe2e8; font-weight: 600; }
.quote-box .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.quote-box .btn-outline:hover { background: #fff; color: var(--navy); }

.case-study-section { background: var(--light); }
.case-study-card { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-left: 5px solid var(--red); }
.case-study-card p { font-size: 15.5px; }
.case-study-card strong { color: var(--navy); }

/* ---------------- Industries page ---------------- */
.industries-page-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 50px; align-items: start; }
.industries-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: sticky; top: 100px; }

/* ---------------- Benefits ---------------- */
.benefits-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 50px; align-items: start; }
.benefits-media img { border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 100px; }
.why-title { margin-top: 10px; }
.benefit-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.benefit-list li:last-child { border-bottom: 0; }
.benefit-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: rgba(143,20,20,.08); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.benefit-list strong { color: var(--navy); }

/* ---------------- Case studies grid ---------------- */
.case-studies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-study-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: all .25s; display: flex; flex-direction: column; gap: 10px; }
.case-study-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.case-study-tag { color: var(--red); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.case-study-tile p { color: var(--text-muted); font-size: 14.5px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 50px; align-items: start; }
.contact-form { margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 15px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--red); }
.contact-info-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.contact-info-card h3 { font-size: 16px; }
.map-embed iframe { border-radius: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.footer-contact i { color: var(--red); margin-top: 3px; width: 16px; }
.contact-info-col .footer-contact a:hover { color: var(--red); }

/* ---------------- Thank you ---------------- */
.thank-you-content { text-align: center; max-width: 600px; margin: 0 auto; }
.thank-you-icon { font-size: 72px; color: #2e9e5b; margin-bottom: 20px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #b6c1cb; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-about p { font-size: 14.5px; color: #9fadb8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { padding: 6px 0; }
.footer-col ul a { color: #9fadb8; font-size: 14.5px; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 13.5px; color: #7d8b96; }

/* ---------------- Mobile call FAB ---------------- */
.mobile-call-fab {
  display: none; position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow-lg); z-index: 200;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid-wrap, .about-grid, .service-grid, .industries-page-grid, .benefits-grid, .contact-grid { grid-template-columns: 1fr; }
  .industries-grid-large { grid-template-columns: repeat(2, 1fr); }
  .case-studies-grid { grid-template-columns: repeat(2, 1fr); }
  .service-aside { position: static; }
  .industries-media img, .benefits-media img { position: static; }
  .mvv-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh; background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,.15); transition: right .3s ease; padding: 90px 24px 24px; z-index: 150; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .topbar-contact a span { display: none; }
  .services-grid, .case-studies-grid { grid-template-columns: 1fr; }
  .industries-grid, .industries-grid-large { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .why-grid, .capabilities-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-call-fab { display: flex; }
  .section { padding: 50px 0; }
  .hero-content { padding: 70px 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .industries-grid, .industries-grid-large { grid-template-columns: 1fr; }
}
