/* ============================================
   Lee & Stone — Professional Engineering Theme
   Clean, technical, trustworthy aesthetic
   ============================================ */

:root {
  --color-navy: #0f172a;
  --color-slate: #1e293b;
  --color-blue: #1e40af;
  --color-blue-light: #2563eb;
  --color-accent: #0ea5e9;
  --color-gray-100: #f8fafc;
  --color-gray-200: #e2e8f0;
  --color-gray-500: #64748b;
  --color-gray-700: #334155;
  --color-white: #ffffff;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--color-gray-100);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--color-gray-700);
  line-height: 1.6;
}

h1, h2, h3, .navbar-brand, .hero h1, .page-hero h1 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Package names and card titles use the heading font too */
h4, h5 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

/* h2/h3 styled as .h4 (package names, About subhead) keep the old h4 look */
h2.h4,
h3.h4 {
  letter-spacing: normal;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
}

/* ============================================
   NAVBAR - Clean professional
   ============================================ */
.navbar {
  background: var(--color-navy) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
  padding: 0.65rem 0;
}

.navbar-brand img {
  width: 40px;
  height: 40px;
}

.nav-link {
  font-weight: 500;
  color: rgba(255,255,255,0.9) !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent) !important;
}

/* Current page: white text with a thin accent underline */
.navbar .nav-link.active {
  color: var(--color-white) !important;
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.2);
}

/* ============================================
   HERO - Engineering aesthetic with rocket image
   ============================================ */
.hero {
  background: linear-gradient(
      rgba(15, 23, 42, 0.78),
      rgba(15, 23, 42, 0.82)
    ), url('../img/hero.jpg') center/cover no-repeat;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  flex-shrink: 0;
}

/* Ensure all text in hero has strong readability against the varied background image */
.hero h1,
.hero .lead,
.hero p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero .lead {
  color: var(--color-white);
  font-weight: 500;
  font-size: 1.18rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  opacity: 0.97;
}

/* Secondary text in hero (the paragraph after the lead) */
.hero p:not(.lead) {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  opacity: 0.92;
  font-size: 1.05rem;
}

/* Small reassurance line under the hero buttons */
.hero p.hero-note {
  font-size: 0.9rem;
  margin: 1.5rem auto 0;
}

.hero .btn-primary {
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
  font-weight: 600;
}

/* Compact navy banner for inner pages (no photo, no tall min-height) */
.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 6.5rem 0 3rem; /* top clears the fixed navbar */
  flex-shrink: 0;
}

.page-hero .py-5 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-hero h1,
.page-hero .lead,
.page-hero p {
  color: var(--color-white);
}

.page-hero .lead {
  opacity: 0.95;
}

.page-hero .btn-primary,
.page-hero .btn-outline-light {
  font-weight: 600;
}

/* ============================================
   BUTTONS - Professional & trustworthy
   ============================================ */
.btn-primary {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  transition: all 0.2s ease;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: var(--color-blue-light);
  border-color: var(--color-blue-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.btn-outline-light {
  border-radius: 6px;
  font-weight: 500;
}

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

/* ============================================
   CARDS - Clean technical style
   ============================================ */
.card {
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--color-white);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.08), 0 8px 10px -6px rgb(15 23 42 / 0.08);
}

.card-body {
  padding: 1.65rem 1.5rem;
}

/* ============================================
   PACKAGE / SERVICE CARDS (for services page)
   ============================================ */
.package-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  background: var(--color-white);
  transition: all 0.25s ease;
  height: 100%;
}

.package-card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 25px 35px -10px rgb(15 23 42 / 0.12);
  transform: translateY(-4px);
}

.package-card .price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
}

.package-card .price-range {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
}

.package-card ul {
  font-size: 0.95rem;
  padding-left: 1.1rem;
}

.package-card ul li {
  margin-bottom: 0.45rem;
  color: var(--color-gray-700);
}

/* ============================================
   SECTIONS & DIVIDERS
   ============================================ */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ============================================
   HERO + GENERAL TYPOGRAPHY
   ============================================ */
.lead {
  font-size: 1.1rem;
  color: var(--color-gray-500);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  flex-shrink: 0;
  background: var(--color-navy);
  color: rgba(255,255,255,0.9);
  width: 100%;
  margin-top: auto;
}

footer a {
  color: rgba(255,255,255,0.9);
}

footer a:hover {
  color: var(--color-accent);
}

/* ============================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 68vh;
    padding: 2rem 0;
  }

  .page-hero {
    padding: 5.5rem 0 1.75rem;
  }

  .hero .display-4 {
    font-size: 1.95rem;
  }

  .package-card .price,
  .package-card .price-range {
    font-size: 1.45rem;
  }

  .card:hover {
    transform: none;
  }
}

/* Let long section badges wrap on very narrow phones */
@media (max-width: 360px) {
  .badge {
    white-space: normal;
    max-width: 100%;
  }
}

/* ============================================
   UTILITIES & ACCESSIBILITY
   ============================================ */

/* Make anchor targets scroll to just below the fixed navbar */
#process,
#approach,
#residential,
#business,
#supported,
#faq,
#contact-form {
  scroll-margin-top: 96px;
}

/* Better focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Subtle list styling used in services/about */
.list-group-item {
  background: transparent;
  border-color: var(--color-gray-200);
  padding: 0.85rem 1.1rem;
  font-size: 0.98rem;
}

/* Gallery hover polish */
.hover-shadow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1) !important;
}

/* Small text tweaks */
.text-muted {
  color: var(--color-gray-500) !important;
}

/* ============================================
   HOMEPAGE AUDIENCE CARDS & TRUST ELEMENTS
   ============================================ */

/* Audience Cards - More premium feel */
.audience-card {
  transition: all 0.25s ease;
}

.audience-card:hover {
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.08), 0 8px 10px -6px rgb(15 23 42 / 0.08);
  transform: translateY(-4px);
}

.audience-card .card-body {
  padding: 2rem 1.75rem;
}

.audience-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.audience-card ul li {
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Trust Cards - Lighter, more refined treatment */
.trust-section {
  padding-top: 0.5rem;
}

.trust-card {
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.06), 0 4px 6px -4px rgb(15 23 42 / 0.06);
}

.trust-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--color-gray-700);
}

.trust-card .card-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Home intro strip under the hero; headshot shows only when HEADSHOT is set */
.intro-strip {
  flex-shrink: 0;
}

.intro-headshot {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Phones: shift the hero crop left so the Saturn V stays in view */
@media (max-width: 767.98px) {
  .hero {
    background-position: 30% center;
  }
}

/* About photos: headshot sized to the text beside it; family photo not the focal point */
.about-headshot {
  display: block;
  width: 70%;
  max-width: 280px;
  margin: 0 auto;
}

.about-family {
  display: block;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .about-headshot {
    width: 100%;
    max-width: 320px;
  }

  .about-family {
    max-width: 720px;
  }
}
