/* =============================================
   Smart Search Consulting — Global Styles
   ============================================= */

:root {
  --navy:       #0f172a;
  --navy-mid:   #1e293b;
  --blue:       #2563b0;
  --blue-light: #60a5fa;
  --blue-pale:  #93c5fd;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --text:       #1e293b;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.14);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--blue-pale); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section--dark .section-label { color: var(--blue-light); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header p { font-size: 1.1rem; }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: #1d4ed8;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,176,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.1);
  color: var(--white);
  transform: translateY(-2px);
}

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

/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--blue-pale);
  font-size: 1.35rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  padding: 12px 0 8px;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--blue-pale);
  font-size: 0.875rem;
  border-radius: 0;
}
.dropdown a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-cta { margin-left: 16px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162040 60%, #1a2d5a 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.25);
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--blue-light); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--blue-pale);
  margin-bottom: 36px;
  max-width: 520px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}
.stat-card:last-child { margin-bottom: 0; }

.stat-number {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--blue-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--blue-pale);
  margin-top: 4px;
  margin-bottom: 0;
}

/* =============================================
   SERVICES GRID
   ============================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(37,99,176,0.1), rgba(96,165,250,0.15));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.8; }

.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 20px; }
.service-card a.learn-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card a.learn-more::after { content: '→'; transition: transform var(--transition); }
.service-card:hover a.learn-more::after { transform: translateX(4px); }

/* Last two cards in a 5-item grid — center them */
.services-grid .service-card:nth-child(4) { grid-column: 1 / 2; margin-left: auto; }
.services-grid .service-card:nth-child(5) { grid-column: 2 / 3; margin-right: auto; }

/* =============================================
   INDUSTRIES
   ============================================= */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.industry-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}
.industry-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(96,165,250,0.3);
}

.industry-icon {
  width: 52px; height: 52px;
  background: rgba(96,165,250,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.industry-icon svg { width: 26px; height: 26px; stroke: var(--blue-light); fill: none; stroke-width: 1.8; }

.industry-card h3 { color: var(--white); margin-bottom: 10px; }

/* =============================================
   WHY US / PILLARS
   ============================================= */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.pillar-num {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.pillar h4 { margin-bottom: 8px; }
.pillar p { font-size: 0.875rem; margin-bottom: 0; }

/* =============================================
   CTA BANNER
   ============================================= */

.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 88px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.cta-banner-actions { flex-shrink: 0; display: flex; gap: 16px; }

/* =============================================
   SERVICE PAGE HERO
   ============================================= */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162040 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.07) 0%, transparent 70%);
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; max-width: 680px; }
.page-hero p  { color: var(--blue-pale); font-size: 1.1rem; max-width: 620px; margin-bottom: 0; }

/* =============================================
   FEATURE LIST (service pages)
   ============================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow); border-color: var(--blue-pale); }

.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37,99,176,0.1), rgba(96,165,250,0.15));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; }

.feature-item h4 { margin-bottom: 6px; }
.feature-item p  { margin-bottom: 0; font-size: 0.9rem; }

/* =============================================
   PROCESS STEPS
   ============================================= */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-pale), var(--blue));
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px; height: 56px;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(37,99,176,0.15);
}
.section--dark .step-num { box-shadow: 0 0 0 6px rgba(96,165,250,0.15); }
.process-step h4 { margin-bottom: 8px; }
.process-step p  { font-size: 0.875rem; margin-bottom: 0; }

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 28px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37,99,176,0.1), rgba(96,165,250,0.15));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.contact-detail-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.contact-detail-text strong { display: block; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 2px; }
.contact-detail-text span  { font-size: 0.95rem; color: var(--text); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gray-50);
  transition: all var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,176,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; cursor: pointer; }

.form-submit { width: 100%; padding: 16px; font-size: 1rem; }

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--navy);
  color: var(--blue-pale);
  padding: 64px 0 32px;
}

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

.footer-logo img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; color: var(--gray-400); line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) { grid-column: auto; margin: 0; }
  .industries-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-banner-actions { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Hamburger becomes X when open */
  .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-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy-mid);
    padding: 8px 0 16px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99;
  }

  /* Top-level nav items on mobile */
  .nav-links.open > li > a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Services toggle arrow */
  .nav-links .has-dropdown > a::after { content: ' ›'; font-size: 1rem; float: right; transition: transform var(--transition); }
  .nav-links .has-dropdown.sub-open > a::after { transform: rotate(90deg); }

  /* Inline dropdown on mobile */
  .nav-links.open .dropdown {
    position: static;
    display: none;
    background: rgba(0,0,0,0.2);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0;
    min-width: unset;
    width: 100%;
  }
  .nav-links.open .has-dropdown.sub-open .dropdown { display: block; }

  .nav-links.open .dropdown a {
    padding: 13px 24px 13px 36px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--blue-pale);
  }
  .nav-links.open .dropdown a:last-child { border-bottom: none; }
  .nav-links.open .dropdown a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

  /* Hide desktop CTA in mobile menu */
  .nav-cta { display: none !important; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .pillars-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
