/* =============================================
   Brooks Systems LLC — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy: #0D2545;
  --blue: #1A3F6F;
  --gold: #C8973A;
  --gold-dark: #a87b2e;
  --light-gray: #F4F6F9;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-muted: #5A6478;
  --border: #DDE3EE;
  --shadow-sm: 0 2px 8px rgba(13, 37, 69, 0.08);
  --shadow-md: 0 4px 20px rgba(13, 37, 69, 0.12);
  --shadow-lg: 0 8px 40px rgba(13, 37, 69, 0.16);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 16px rgba(200, 151, 58, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}

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

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.9375rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(13, 37, 69, 0.4);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  /* Header sits on dark navy — render logo white */
  color: var(--white);
}

.logo-svg {
  height: 67px;
  width: auto;
  display: block;
}

.logo-svg--footer {
  height: 46px;
  opacity: 0.88;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), background var(--transition);
}

.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.mobile-menu .mobile-cta {
  margin: 16px 24px 0;
  display: block;
  text-align: center;
  border-bottom: none;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 72px;
}

/* Geometric pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(45deg, rgba(200,151,58,0.6) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(200,151,58,0.6) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Gradient orbs */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 50%, rgba(26,63,111,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(200,151,58,0.12) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.12;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.4s ease both;
}

.hero h1 em {
  font-style: italic;
  color: #FFFFFF;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #FFFFFF;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeUp 0.7s 0.6s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.8s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s 1.5s infinite;
  z-index: 2;
}

.hero-scroll svg { opacity: 0.5; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ============================================
   SHARED SECTION SPACING
   ============================================ */
section { padding: 96px 0; }

/* ============================================
   SERVICES
   ============================================ */
#services {
  background: var(--white);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(200,151,58,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  transition: gap var(--transition);
}

.service-link:hover { gap: 10px; }

/* ============================================
   INDUSTRIES
   ============================================ */
#industries {
  background: var(--light-gray);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.industry-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: default;
}

.industry-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.industry-icon {
  width: 60px;
  height: 60px;
  background: rgba(13,37,69,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}

.industry-tile:hover .industry-icon {
  background: var(--gold);
  color: var(--white);
}

.industry-tile h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.industries-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   WHY BROOKS SYSTEMS
   ============================================ */
#why-us {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.why-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.why-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background var(--transition);
}

.why-item:hover .why-icon-wrap {
  background: var(--gold);
  color: var(--white);
}

.why-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.why-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   JOB SEEKERS & EMPLOYERS (Split CTA)
   ============================================ */
#audience-ctas {
  background: var(--light-gray);
  padding: 0;
}

.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.audience-panel {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.audience-panel.panel-dark {
  background: var(--navy);
  color: var(--white);
}

.audience-panel.panel-light {
  background: var(--white);
  color: var(--text-dark);
}

.audience-panel .section-label {
  margin-bottom: 16px;
}

.audience-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.panel-dark h2 { color: var(--white); }
.panel-light h2 { color: var(--navy); }

.audience-panel p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.panel-dark p { color: rgba(255,255,255,0.75); }
.panel-light p { color: var(--text-muted); }

.audience-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.audience-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}

.panel-dark .audience-feature { color: rgba(255,255,255,0.85); }
.panel-light .audience-feature { color: var(--text-dark); }

.check-icon {
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg { color: white; }

/* ============================================
   CONTACT
   ============================================ */
#contact {
  background: var(--white);
}

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

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(200,151,58,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.detail-text {
  padding-top: 4px;
}

.detail-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}

.detail-text span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Form */
.contact-form {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 44px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,151,58,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(200,151,58,0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: #08192E;
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.65);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-col .footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.footer-col .footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    gap: 48px;
  }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why us */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Audience */
  .audience-split {
    grid-template-columns: 1fr;
  }

  .audience-panel {
    padding: 56px 32px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section-header { margin-bottom: 40px; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .industry-tile { padding: 24px 16px; }

  .hero-content { padding: 60px 0; }

  .audience-panel { padding: 48px 20px; }
}
