/* ═══════════════════════════════════════════════════
   SPECTRA SOLUTIONS — app.css  (Light Theme)
   Palette sourced directly from Spectra_Logo.jpg
   --brand-navy: #0F1E2D  (logo text color)
   --brand-blue: #2D5AB4  (logo triangle color)
   ═══════════════════════════════════════════════════ */

:root {
  --brand-navy:   #0F1E2D;
  --brand-blue:   #2D5AB4;
  --blue-mid:     #4A72C8;
  --blue-dark:    #1E3F8A;
  --blue-light:   #EEF3FC;
  --blue-pale:    #F4F7FD;
  --white:        #FFFFFF;
  --text:         #0F1E2D;
  --text-body:    #3A4F6A;
  --text-muted:   #6A7E9A;
  --border:       rgba(45,90,180,0.12);
  --border-mid:   rgba(45,90,180,0.22);

  --radius: 5px;
  --transition: 0.22s ease;
  --shadow-sm:   0 2px 8px rgba(15,30,45,0.06);
  --shadow-card: 0 4px 24px rgba(15,30,45,0.08);
  --shadow-lift: 0 8px 36px rgba(15,30,45,0.13);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 5%; }

/* ─── FLASH MESSAGES ─── */
.flash {
  position: fixed;
  top: 84px; right: 24px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; max-width: 420px;
  box-shadow: var(--shadow-lift);
  animation: slide-in 0.35s ease;
}
.flash--success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.flash--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
@keyframes slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── NAVIGATION — Light ─── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img {
  height: 72px; width: auto; object-fit: contain;
  /* Logo has white bg — show it as-is on light nav */
  filter: none;
}

.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
  color: var(--text-body);
  text-decoration: none; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--brand-blue); }

.nav-cta {
  background: var(--brand-blue) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: background var(--transition), transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--brand-navy); border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ─── SECTION ATOMS ─── */
section { scroll-margin-top: 72px; }

.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand-blue); margin-bottom: 14px;
}
.section-label::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--brand-blue); flex-shrink: 0;
}
.section-label--center { justify-content: center; }
.section-label--center::before { display: none; }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700; color: var(--brand-navy); line-height: 1.2; margin-bottom: 18px;
}
.section-title--center { text-align: center; }

.section-body {
  font-size: 1rem; color: var(--text-body); line-height: 1.8; max-width: 560px;
}
.section-body--center { text-align: center; margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.88rem; text-decoration: none;
  letter-spacing: 0.03em; border: none; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s, color var(--transition);
}
.btn--primary {
  background: var(--brand-blue); color: var(--white);
  box-shadow: 0 4px 16px rgba(45,90,180,0.3);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,90,180,0.4); }

.btn--secondary {
  border: 1.5px solid rgba(45,90,180,0.35);
  color: var(--brand-blue); background: transparent;
}
.btn--secondary:hover { border-color: var(--brand-blue); background: var(--blue-light); }

/* ─── HERO — Light ─── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  padding: 120px 5% 80px;
  background: var(--white);
  display: flex; align-items: center;
}

/* Geometric light bg */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(45,90,180,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(74,114,200,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6; pointer-events: none;
}
/* Fade grid at edges */
.hero__bg-grid::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.8) 100%);
}

.hero__bg-glow {
  position: absolute; top: -5%; right: 0%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,90,180,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; max-width: 600px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand-blue); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: ''; display: block; width: 32px; height: 2px; background: var(--brand-blue);
}

.hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700; color: var(--brand-navy); line-height: 1.13; margin-bottom: 24px;
}
.hero__headline em { font-style: normal; color: var(--brand-blue); }

.hero__sub {
  font-size: 1.05rem; color: var(--text-body); line-height: 1.78;
  max-width: 500px; margin-bottom: 44px; font-weight: 400;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: 48px; margin-top: 52px; padding-top: 40px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat__value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--brand-blue); font-weight: 700; line-height: 1;
}
.stat__label {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px;
}

/* Pulse — uses brand blue now */
.hero__pulse {
  position: absolute; right: clamp(-32px, 3vw, 7%); top: 50%; transform: translateY(-50%);
  width: clamp(240px, 30vw, 400px); height: clamp(240px, 30vw, 400px);
  display: flex; align-items: center; justify-content: center;
  z-index: 6; pointer-events: none;
}
.pulse-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(45,90,180,0.18);
  animation: pulse-expand 3.5s ease-out infinite;
}
.pulse-ring--1 { width: 32.5%; height: 32.5%; animation-delay: 0s; }
.pulse-ring--2 { width: 55%; height: 55%; animation-delay: 0.7s; }
.pulse-ring--3 { width: 77.5%; height: 77.5%; animation-delay: 1.4s; }
.pulse-ring--4 { width: 100%; height: 100%; animation-delay: 2.1s; }
@keyframes pulse-expand {
  0%   { opacity: 0.9; transform: scale(0.65); }
  100% { opacity: 0;   transform: scale(1); }
}
.pulse-core {
  width: 55%; height: 55%;
  min-width: 132px; min-height: 132px;
  max-width: 220px; max-height: 220px;
  background: linear-gradient(135deg, var(--brand-blue), var(--blue-mid));
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border-mid), 0 8px 32px rgba(45,90,180,0.35);
  display: flex; align-items: center; justify-content: center; z-index: 3;
  overflow: hidden;
}
.pulse-core svg { width: 32px; height: 32px; stroke: var(--white); fill: none; stroke-width: 1.6; }

/* ─── ABOUT — Light Tint Bg ─── */
.about { padding: 110px 0; background: var(--blue-pale); }

.about__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about__visual { position: relative; }

.about__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.about__card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--blue-mid));
}
.about__card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; color: var(--brand-navy); margin-bottom: 14px;
}
.about__card-body {
  font-size: 0.93rem; color: var(--text-body); line-height: 1.75; margin-bottom: 28px;
}
.about__pillars { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.about__pillar {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--text-body);
}
.about__pillar-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-blue); flex-shrink: 0;
}
.about__card-border {
  position: absolute; bottom: -16px; right: -16px;
  width: 110px; height: 110px;
  border: 2px solid var(--border-mid); border-radius: 2px;
  z-index: 0; pointer-events: none;
}

/* ─── WHY CHOOSE US — White ─── */
.why { padding: 110px 0; background: var(--white); }
.why__header { text-align: center; margin-bottom: 64px; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.why-card {
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative; background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s;
}
.why-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}
.why-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), transparent);
  opacity: 0; transition: opacity var(--transition);
  border-radius: 0 0 var(--radius) var(--radius);
}
.why-card:hover::after { opacity: 1; }

.why-card__icon {
  width: 46px; height: 46px;
  background: var(--blue-light); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.why-card__icon svg { width: 22px; height: 22px; stroke: var(--brand-blue); fill: none; stroke-width: 1.8; }
.why-card__title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brand-navy); margin-bottom: 10px; }
.why-card__body { font-size: 0.88rem; color: var(--text-body); line-height: 1.75; }

/* ─── CONTACT — Brand Blue bg ─── */
.contact { padding: 110px 0; background: var(--brand-navy); position: relative; overflow: hidden; }

.contact__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,90,180,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,90,180,0.15) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.5; pointer-events: none;
}

/* Blue accent stripe at top */
.contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--blue-mid));
}

.contact__inner {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 80px;
  position: relative; z-index: 2; align-items: start;
}

.contact__details { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.contact__detail { display: flex; align-items: flex-start; gap: 16px; }
.cd-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(74,114,200,0.4); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(45,90,180,0.1);
}
.cd-icon svg { width: 17px; height: 17px; stroke: var(--blue-mid); fill: none; stroke-width: 1.8; }
.cd-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 3px; }
.cd-value { font-size: 0.93rem; color: rgba(255,255,255,0.75); }
.cd-value a { color: rgba(255,255,255,0.75); text-decoration: none; }
.cd-value a:hover { color: var(--white); }

/* Form */
.contact__form-wrap {
  background: var(--white); border-radius: var(--radius); padding: 44px 40px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.form__title {
  font-family: 'Playfair Display', serif; font-size: 1.35rem;
  color: var(--brand-navy); margin-bottom: 28px;
}

.form__errors {
  background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: 3px; padding: 14px 18px; margin-bottom: 22px;
}
.form__errors ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.form__errors li { font-size: 0.85rem; color: #991b1b; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form__group label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.req { color: var(--brand-blue); }

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid rgba(15,30,45,0.15); border-radius: 3px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--brand-navy); background: var(--blue-pale);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(45,90,180,0.12);
  background: var(--white);
}
.form__group input.is-invalid,
.form__group textarea.is-invalid { border-color: #e11d48; }
.form__group textarea { resize: vertical; min-height: 110px; }

.form__submit {
  width: 100%; background: var(--brand-blue); color: var(--white);
  border: none; padding: 14px 28px; border-radius: 3px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--transition), transform 0.15s;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(45,90,180,0.3);
}
.form__submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer { background: var(--brand-navy); border-top: 1px solid rgba(45,90,180,0.2); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 60px 5% 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
}
.footer-logo-img {
  height: 40px; width: auto; object-fit: contain;
  filter: none; margin-bottom: 16px;
  border-radius: 4px;
}
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 280px; }
.footer-heading { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a,
.footer-contact p,
.footer-contact a { font-size: 0.87rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }

.footer-bar {
  max-width: 1120px; margin: 0 auto; padding: 20px 5%;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.2);
}

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__pulse {
    right: -28px;
    top: 58%;
    width: 220px;
    height: 220px;
    opacity: 0.82;
  }
}

@media (max-width: 860px) {
  .hero__pulse { display: none; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body.nav-open { overflow: hidden; }
  #main-nav.nav-open { box-shadow: 0 16px 48px rgba(15,30,45,0.18); }
  #main-nav { padding: 0 18px; }
  .nav-logo-img { height: 60px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(45,90,180,0.12);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 30px rgba(15,30,45,0.08);
    position: relative;
    z-index: 103;
  }
  .nav-toggle.is-open {
    background: var(--brand-navy);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 12px 34px rgba(15,30,45,0.24);
  }
  .nav-toggle.is-open span { background: var(--white); }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(8,16,30,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 101;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    width: min(84vw, 320px);
    height: 100dvh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 90px 0 24px;
    list-style: none;
    overflow-y: auto;
    background: rgba(255,255,255,0.985);
    border-left: 1px solid rgba(45,90,180,0.1);
    box-shadow: -22px 0 46px rgba(15,30,45,0.18);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
    z-index: 102;
  }
  .nav-links::before {
    content: 'Navigation';
    display: block;
    padding: 0 22px 14px;
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(45,90,180,0.08);
  }
  .nav-links.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 18px 22px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(45,90,180,0.08);
    background: transparent;
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-navy);
    letter-spacing: 0.08em;
  }
  .nav-links a:hover {
    color: var(--brand-blue);
    background: rgba(45,90,180,0.05);
  }
  .nav-links .nav-cta {
    justify-content: center;
    margin: 18px 18px 0;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    border-bottom: 0 !important;
    background: linear-gradient(135deg, var(--brand-blue), var(--blue-mid)) !important;
    box-shadow: 0 16px 34px rgba(45,90,180,0.24);
    color: var(--white) !important;
  }
  .why__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 100px 5% 60px; }
  .contact__form-wrap { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .pulse-ring { animation: none; }
}
