/* ============================================================
   Insight Solutions â Shared Stylesheet
   Colors: Navy (#1B3A6B), Red (#C41E3A), White/Off-white
   ============================================================ */

:root {
  --navy:       #1B3A6B;
  --navy-dark:  #112444;
  --navy-light: #2A5298;
  --red:        #C41E3A;
  --red-dark:   #9E1830;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --light-grey: #E8ECF1;
  --mid-grey:   #8A95A3;
  --text:       #1C2535;
  --text-light: #4A5568;
  --border:     #D1D9E0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --max-width: 1100px;
  --section-pad: 80px 24px;
  --section-pad-sm: 48px 24px;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(27,58,107,0.10);
  --shadow-hover: 0 6px 24px rgba(27,58,107,0.16);

  --transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

 ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--text-light);
  line-height: 1.75;
}

.text-red  { color: var(--red); }
.text-navy { color: var(--navy); }
.text-mid  { color: var(--mid-grey); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section         { padding: var(--section-pad); }
.section-sm      { padding: var(--section-pad-sm); }
.section-white   { background: var(--white); }
.section-off     { background: var(--off-white); }
.section-navy    { background: var(--navy); color: var(--white); }
.section-navy h1,
.section-navy h2,
.section-navy h3 { color: var(--white); }
.section-navy p  { color: rgba(255,255,255,0.82); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.text-center { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-56 { margin-bottom: 56px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(27,58,107,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 68px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active { color: var(--white); }

.nav-cta {
  margin-left: 16px;
}
/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--light-grey);
  font-size: 1rem;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }
.mobile-menu.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 100px 24px 96px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,30,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.2;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 72px 24px;
  color: var(--white);
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,0.82); }

/* ============================================================
   DIVIDER / ACCENT
   ============================================================ */
.red-bar {
  width: 48px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 24px;
}
.red-bar.center { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

.service-card h3 { margin-bottom: 12px; }
.service-card p  { font-size: 0.95rem; }

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 20px;
}
.service-card .card-link:hover { gap: 10px; }

/* ============================================================
   SECTION LABELS
   ============================================================ */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}

/* ============================================================
   INTRO / ABOUT STRIP
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.intro-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ============================================================
   FRICTIONLESS ENGINEERING PAGE
   ============================================================ */
.fe-section p { max-width: 660px; }
.fe-section h2 { margin-bottom: 16px; }
.fe-section .red-bar { margin-bottom: 16px; }

.fe-block {
  border-left: 4px solid var(--red);
  padding-left: 24px;
  margin: 32px 0;
}
.fe-block p { color: var(--text); font-size: 1.05rem; line-height: 1.8; margin: 0; }

/* Email gate */
.email-gate {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.email-gate h3 { margin-bottom: 8px; }
.email-gate p  { margin-bottom: 24px; }
.gate-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.gate-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.gate-form input[type="email"]:focus { border-color: var(--navy); }
.gate-form input[type="email"]::placeholder { color: var(--mid-grey); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-detail:last-child { border-bottom: none; }

.service-detail-label {
  position: sticky;
  top: 88px;
}
.service-detail-label .eyebrow { margin-bottom: 8px; }
.service-detail-label h3 { font-size: 1.4rem; margin-bottom: 16px; }

.service-bullets { margin-top: 20px; }
.service-bullets li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--light-grey);
}
.service-bullets li:last-child { border-bottom: none; }
.service-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 88px;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}
.about-photo .photo-caption {
  margin-top: 16px;
  text-align: center;
}
.about-photo .photo-caption strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}
.about-photo .photo-caption span {
  font-size: 0.875rem;
  color: var(--mid-grey);
}

.principles { margin-top: 40px; }
.principle-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--light-grey);
}
.principle-item:last-child { border-bottom: none; }
.principle-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}
.principle-item p { margin: 0; font-size: 0.95rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--navy); }
.contact-info-item strong { display: block; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-info-item a, .contact-info-item p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,107,0.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mid-grey); }

/* Honeypot - hidden from humans, visible to bots */
.hp-field { display: none; }

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 72px 24px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.footer-brand img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.6); max-width: 240px; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3      { grid-template-columns: 1fr 1fr; }
  .intro-grid  { grid-template-columns: 1fr; gap: 40px; }
  .intro-img   { order: -1; }
  .intro-img img { height: 320px; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 28px; }
  .service-detail-label { position: static; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px 20px; --section-pad-sm: 36px 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 64px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; align-items: center; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .email-gate { padding: 32px 24px; }
  .contact-form-wrap { padding: 28px 20px; }
  .gate-form { flex-direction: column; }
  .gate-form input { min-width: unset; width: 100%; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .cta-banner, .nav-toggle { display: none; }
}