/* ─── Custom Properties ─── */
:root {
  --blue:        #2E6DA4;
  --blue-dark:   #1e4f7a;
  --blue-light:  #e8f1f9;
  --green:       #3D7A5A;
  --green-light: #e8f4ee;
  --red:         #C0392B;
  --white:       #F8F7F4;
  --charcoal:    #1A1A2E;
  --gray:        #6b7280;
  --gray-light:  #f3f4f6;
  --trust-bg:    #1a2744;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:   8px;
  --shadow:   0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Utilities ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue-light); }

.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 1.2; color: var(--charcoal);
}
.section-subtitle { font-size: 1.1rem; color: var(--gray); margin-top: 12px; max-width: 560px; }

/* ─── Fade-in animation (JS adds .visible) ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Navigation ─── */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.nav-header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}

.nav-logo { display: flex; align-items: baseline; gap: 8px; }
.nav-logo-name {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
  color: var(--charcoal);
}
.nav-logo-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--red); text-transform: uppercase;
  border: 1px solid var(--red); border-radius: 3px; padding: 1px 5px;
}

.nav-links {
  display: flex; gap: 28px; margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--charcoal);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-size: 0.85rem; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--blue-dark); }

.nav-hamburger {
  display: none; background: none; border: none;
  font-size: 1.4rem; color: var(--charcoal); cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-hamburger { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { padding: 10px 18px; font-size: 0.875rem; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 72px; /* nav height */
}

.hero-bg {
  position: absolute; inset: -30%;
  background: url('../assets/images/denver-skyline-with-mountain.jpg') center center / cover no-repeat;
  background-color: #2a4a7f;
  will-change: transform;
}

@media (hover: none) {
  .hero-bg { inset: 0; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 39, 68, 0.82) 0%,
    rgba(26, 39, 68, 0.55) 55%,
    rgba(26, 39, 68, 0.15) 100%
  );
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
  min-height: calc(100vh - 72px);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1; color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  line-height: 1.65; margin-bottom: 36px; max-width: 460px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Hero photo */
.hero-photo { display: flex; justify-content: center; align-items: flex-end; }
.hero-photo-img { width: 340px; height: 440px; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; }
.hero-photo-placeholder {
  width: 340px; height: 440px;
  background: rgba(255,255,255,0.12);
  border: 2px dashed rgba(255,255,255,0.35);
  border-radius: 12px 12px 0 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: rgba(255,255,255,0.6);
}
.hero-photo-placeholder i { font-size: 4rem; }
.hero-photo-placeholder span { font-size: 0.9rem; font-weight: 500; }

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-photo { display: none; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-ctas { justify-content: center; }
}

/* ─── Trust Bar ─── */
.trust-bar { background: var(--trust-bg); padding: 18px 0; }
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.9); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.03em;
  padding: 6px 32px;
}
.trust-item i { color: #f0c040; font-size: 1rem; }
.trust-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.2);
}
@media (max-width: 640px) {
  .trust-divider { display: none; }
  .trust-item { padding: 6px 16px; }
}

/* ─── The Difference ─── */
.difference { padding: 96px 0; background: var(--white); }

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

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

.difference-card {
  background: #fff; border-radius: 12px;
  padding: 40px 32px; box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}
.difference-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.diff-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}

.difference-card h3 {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
  color: var(--charcoal); margin-bottom: 12px;
}
.difference-card p { color: var(--gray); line-height: 1.7; font-size: 0.95rem; }

@media (max-width: 768px) {
  .difference-grid { grid-template-columns: 1fr; }
}

/* ─── Services ─── */
.services { padding: 96px 0; background: var(--gray-light); }
.services .section-header { margin: 0 auto 56px; max-width: 640px; }

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

.service-card {
  background: #fff; border-radius: 12px; padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 4px;
}

.service-card h3 {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--charcoal);
}
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; flex: 1; }

.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--blue);
  margin-top: 8px;
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { gap: 10px; color: var(--blue-dark); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ─── Team ─── */
.team { padding: 96px 0; background: #fff; }
.team .section-header { margin: 0 auto 56px; max-width: 640px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* Last row: center the 2 remaining cards */
.team-grid .team-card:nth-child(4) { grid-column: 1; }
.team-grid .team-card:nth-child(5) { grid-column: 2; }

.team-card {
  background: var(--white); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.team-photo-wrap { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--blue-light); }
.team-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 4rem;
}
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.team-info { padding: 24px; }
.team-info h3 {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--charcoal); margin-bottom: 4px;
}
.team-title {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.team-info p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid .team-card:nth-child(4),
  .team-grid .team-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ─── Testimonials ─── */
.testimonials { padding: 96px 0; background: var(--blue-light); }
.testimonials .section-header { margin: 0 auto 56px; max-width: 640px; }

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

.testimonial-card {
  background: #fff; border-radius: 12px; padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}

.stars { color: #f0c040; font-size: 0.9rem; letter-spacing: 2px; }

.testimonial-card blockquote {
  font-size: 0.95rem; color: var(--charcoal); line-height: 1.75;
  font-style: italic; flex: 1;
}
.testimonial-card blockquote::before { content: '\201C'; }
.testimonial-card blockquote::after  { content: '\201D'; }

.testimonial-card cite {
  font-size: 0.85rem; font-weight: 600; color: var(--blue);
  font-style: normal;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
}

/* ─── Bottom CTA Banner ─── */
.cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--trust-bg) 0%, var(--blue-dark) 100%);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff; margin-bottom: 10px;
}
.cta-text p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 460px; }

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

@media (max-width: 768px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

/* ─── Footer ─── */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 72px 0 0; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px;
}
.footer-brand .nav-logo-name { color: #fff; font-size: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li {
  font-size: 0.875rem; display: flex; align-items: center; gap: 8px;
}
.footer-col li i { color: var(--blue); width: 14px; }
.footer-col a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-closed { opacity: 0.4; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ─── Anchor offset for fixed nav ─── */
#about, #services, #team, #contact, #quote, #faq {
  scroll-margin-top: 80px;
}

/* ─── FAQ ─── */
.faq { padding: 96px 0; background: var(--white); }
.faq .section-header { margin: 0 auto 56px; max-width: 640px; }
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }

.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 22px 4px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--charcoal); transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-question i {
  flex-shrink: 0; color: var(--blue); font-size: 0.85rem;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
  max-height: 200px; padding-bottom: 20px;
}
.faq-answer p { color: var(--gray); font-size: 0.95rem; line-height: 1.75; padding: 0 4px; }

/* ─── Mobile Premium (≤767px) ─── */

/* Nav Overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: #0d1b2e;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  visibility: hidden; opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nav-overlay.open {
  visibility: visible; opacity: 1;
}
.nav-overlay-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 1.8rem; cursor: pointer;
  padding: 8px; line-height: 1;
}
.nav-overlay-links {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  margin-bottom: 40px;
}
.nav-overlay-links a {
  font-family: var(--font-heading); font-size: 1.5rem;
  font-weight: 700; color: #fff;
  padding: 14px 32px; display: block;
  transition: color 0.2s ease;
}
.nav-overlay-links a:hover { color: #f0c040; }
.nav-overlay-cta {
  width: 260px; justify-content: center;
}

/* Hero Avatar (hidden on desktop, shown on mobile) */
.hero-avatar { display: none; }

@media (max-width: 767px) {
  .hero-avatar {
    display: block;
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover; object-position: top;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    margin: 0 auto 24px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
}

@media (max-width: 767px) {
  /* Trust Bar 2×2 */
  .trust-bar { padding: 0; }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .trust-divider { display: none; }
  .trust-item {
    flex-direction: column;
    text-align: center;
    padding: 18px 8px;
    gap: 6px;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.07);
  }
  .trust-item i { font-size: 1.2rem; }
  .trust-item span { font-size: 0.78rem; }
}

@media (max-width: 767px) {
  /* Services 2-column */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 20px 14px; gap: 8px; }
  .service-icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .service-card h3 { font-size: 0.95rem; }
  .service-card p { font-size: 0.82rem; }
}

@media (max-width: 767px) {
  /* Team Carousel */
  .team { padding: 64px 0; }
  .team .container { padding-right: 0; }
  .team-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 20px 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-card {
    flex: 0 0 170px;
    scroll-snap-align: start;
    border-radius: 16px;
    text-align: center;
  }
  .team-grid .team-card:nth-child(4),
  .team-grid .team-card:nth-child(5) { grid-column: auto; }

  /* Circular photos */
  .team-photo-wrap {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 20px auto 0;
    aspect-ratio: unset;
    border: 3px solid var(--blue-light);
  }
  .team-info { padding: 12px 12px 20px; }
  .team-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
  .team-title { font-size: 0.7rem; margin-bottom: 0; }
  .team-info p { display: none; }
}

@media (max-width: 767px) {
  /* Global section padding */
  .difference, .services, .testimonials, .faq { padding: 64px 0; }
  .container { padding: 0 16px; }

  /* Difference section */
  .difference-grid { gap: 16px; }
  .difference-card { padding: 28px 20px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; max-width: 100%; }
  .testimonial-card { padding: 24px 20px; }

  /* CTA Banner */
  .cta-banner { padding: 64px 0; }
  .cta-inner { gap: 28px; }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-text h2 { font-size: 1.5rem; }

  /* Footer */
  .footer { padding: 48px 0 0; }
  .footer-grid { gap: 28px; }
  .footer-brand p { max-width: 100%; }
}
