/* ============================================================
   AutoNex Engineering — style.css
   Edit this file to change colours, fonts, or spacing
   across ALL pages at once.
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:      #0A1F44;
  --navy-mid:  #102A5C;
  --navy-lt:   #1A3A70;
  --blue:      #007BFF;
  --blue-lt:   #3399FF;
  --green:     #00C853;
  --white:     #FFFFFF;
  --off-white: #F4F7FC;
  --grey:      #8A9BB5;
  --grey-lt:   #D4DEEC;
  --text-body: #2C3E60;
  --radius:    10px;
  --transition: 0.3s ease;
  --shadow:      0 8px 40px rgba(10,31,68,0.12);
  --shadow-hover:0 16px 60px rgba(10,31,68,0.20);
  --max-width: 1180px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }
p  { font-size: 1.03rem; font-weight: 300; }

/* ── Layout ────────────────────────────────────────────────── */
.container  { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: 92px 0; }
.section-sm { padding: 64px 0; }

/* ── Utility ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: rgba(0,123,255,0.1); color: var(--blue);
  font-family: 'Syne', sans-serif; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.tag-green { background: rgba(0,200,83,0.1); color: var(--green); }

.section-header          { text-align: center; margin-bottom: 60px; }
.section-header h2       { color: var(--navy); }
.section-header p        { max-width: 600px; margin: 14px auto 0; color: var(--grey); font-size: 1.07rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.94rem;
  padding: 14px 28px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: var(--transition);
  letter-spacing: 0.02em; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,123,255,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-lt); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }

/* ── Navigation ────────────────────────────────────────────── */
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--transition);
}
nav#navbar.scrolled {
  background: rgba(10,31,68,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
}
nav#navbar.opaque {
  background: var(--navy);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem;
  color: var(--white); letter-spacing: -0.01em;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; }
.logo .logo-accent { color: var(--blue-lt); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-family: 'Syne', sans-serif; font-size: 0.87rem; font-weight: 600;
  letter-spacing: 0.03em; transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .nav-contact {
  color: rgba(255,255,255,0.78); font-family: 'Syne', sans-serif;
  font-size: 0.87rem; font-weight: 600; transition: color var(--transition);
}
.nav-cta .nav-contact:hover { color: var(--white); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--navy);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; cursor: pointer; color: var(--white); font-size: 1.8rem; }

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: var(--navy); padding: 140px 0 80px;
  position: relative; overflow: visible;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,123,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,123,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero-glow {
  position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,123,255,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; max-width: 700px; padding-bottom: 12px; overflow: visible;}
.page-hero h1      { color: var(--white); margin-bottom: 18px; padding-bottom: 8px;}
.page-hero p       { color: rgba(255,255,255,0.65); font-size: 1.12rem; margin-bottom: 32px; max-width: 580px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.45); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.7); }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0055CC 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-banner h2       { color: var(--white); position: relative; }
.cta-banner p        { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 540px; margin: 14px auto 32px; position: relative; }
.cta-banner .cta-btns{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Footer ────────────────────────────────────────────────── */
footer { background: var(--navy); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.48); font-size: 0.9rem; margin: 14px 0 22px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.85rem; font-family: 'Syne', sans-serif; font-weight: 700;
  transition: var(--transition);
}
.social-link:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.footer-col h4 {
  font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a  { color: rgba(255,255,255,0.48); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,0.32); font-size: 0.83rem; }

/* ── Animations ────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(1.4); } }
@keyframes grow { from { width:0; } }

/* ── Cards shared ──────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: 14px; padding: 32px;
  border: 1px solid var(--grey-lt); transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }

/* ── Forms shared ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: 'Syne', sans-serif; font-size: 0.79rem;
  font-weight: 700; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--grey-lt); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text-body);
  background: var(--off-white); transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn, .nav-cta .nav-contact { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
