/* ==========================================================================
   Blue Sky Estimating — Design System & Styles
   ========================================================================== */

:root {
  --navy-950: #031926;
  --navy-900: #052a3f;
  --navy-800: #093b57;
  --navy-700: #114e70;
  --amber-500: #f5931e;
  --amber-600: #de7f0f;
  --amber-100: #fef3e2;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(5, 42, 63, 0.06), 0 1px 2px rgba(5, 42, 63, 0.04);
  --shadow-md: 0 8px 24px rgba(5, 42, 63, 0.08), 0 2px 6px rgba(5, 42, 63, 0.04);
  --shadow-lg: 0 20px 45px rgba(5, 42, 63, 0.14);

  --transition: 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: var(--navy-900);
  background-color: var(--slate-50);
}

.nav-link.is-active {
  color: var(--navy-900);
  background-color: var(--slate-100);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--amber-500);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 8px;
  background-color: var(--navy-900);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background-color: var(--navy-800);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-cta.is-active {
  background-color: var(--amber-500);
  color: var(--navy-950);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  align-items: center;
  gap: 8px;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
  padding: 16px 24px 24px;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile .nav-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 4px;
}

.nav-mobile .nav-link.is-active::after {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--amber-500);
  color: var(--navy-950);
}

.btn-primary:hover {
  background-color: var(--amber-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 147, 30, 0.28);
}

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

.btn-navy:hover {
  background-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

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

/* ==========================================================================
   Hero Section (Home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-color: var(--navy-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(3, 25, 38, 0.92) 0%,
    rgba(5, 42, 63, 0.82) 52%,
    rgba(5, 42, 63, 0.45) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 88px 0;
}

.hero-est {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 28px;
}

.hero-title span {
  display: block;
}

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

/* ==========================================================================
   Mission Statement Band
   ========================================================================== */
.mission-band {
  background-color: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 56px 0;
}

.mission-box {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 4px solid var(--amber-500);
}

.mission-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy-900);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section--alt {
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-600);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--slate-600);
}

/* 4-Card Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-num {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--amber-600);
  background: var(--amber-100);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.service-card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.service-card a.inline-link {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 2-Column Editorial Split */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media {
  position: relative;
}

.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.collage-grid .image-frame {
  aspect-ratio: 4 / 5;
}

.split-body p {
  font-size: 1.0625rem;
  margin-bottom: 24px;
  color: var(--slate-600);
}

.split-body p:last-of-type {
  margin-bottom: 28px;
}

.inline-link {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--amber-600);
}

/* ==========================================================================
   Page Header (Subpages)
   ========================================================================== */
.page-hero {
  position: relative;
  background-color: var(--navy-900);
  padding: 68px 0;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--white);
}

.page-hero-accent {
  width: 56px;
  height: 4px;
  background: var(--amber-500);
  border-radius: 2px;
  margin-top: 16px;
}

/* ==========================================================================
   Client / Partner Cards (Who Can We Help)
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.client-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--navy-900);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-left-color var(--transition), box-shadow var(--transition);
}

.client-card:hover {
  border-left-color: var(--amber-500);
  box-shadow: var(--shadow-md);
}

.client-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.client-card h3::before {
  content: '▸';
  color: var(--amber-500);
  font-size: 1.1rem;
  line-height: 1.25;
}

.client-card p {
  font-size: 0.9625rem;
  color: var(--slate-600);
}

/* ==========================================================================
   2-Column Feature Cards (About Us / Contact Us)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--slate-100);
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--slate-600);
}

/* Who We Can Help Compact List (Why Choose Blue Sky) */
.compact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compact-list-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compact-list-item::before {
  content: '▸';
  color: var(--amber-500);
  font-weight: 800;
}

/* ==========================================================================
   Contact Cards
   ========================================================================== */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.contact-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: var(--amber-500);
  box-shadow: var(--shadow-sm);
}

.contact-card-label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 6px;
}

.contact-card-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  word-break: break-word;
}

/* ==========================================================================
   Sponsorship Section
   ========================================================================== */
.sponsor-band {
  padding: 56px 0;
  background-color: var(--white);
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 5px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.sponsor-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.sponsor-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .sponsor-card {
    flex-direction: column;
    padding: 28px 20px;
  }
}

/* ==========================================================================
   Hiring CTA Banner (Shared Across Pages)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: 72px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta-text h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 12px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.0625rem;
  max-width: 660px;
}

/* ==========================================================================
   Legal / Prose Pages (Privacy Policy, Cookie Policy)
   ========================================================================== */
.prose-section {
  padding: 64px 0 84px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul {
  margin: 12px 0 20px 20px;
  list-style: disc;
}

.prose li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-950);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 36px;
  border-top: 3px solid var(--amber-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-badge {
  display: inline-block;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.footer-brand-badge img {
  height: 64px;
  width: auto;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-contact-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-contact-list span {
  color: rgba(255, 255, 255, 0.6);
  margin-right: 6px;
}

.footer-contact-list a {
  color: var(--white);
  font-weight: 600;
}

.footer-contact-list a:hover {
  color: var(--amber-500);
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav-list a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--amber-500);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-grid {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .clients-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .compact-list,
  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 24px;
  }

  .hero {
    min-height: 480px;
  }

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

  .section {
    padding: 60px 0;
  }
}
