/* Civic Enterprises - complete homepage stylesheet */
:root {
  --navy: #09233f;
  --navy-deep: #061d35;
  --gold: #d7a936;
  --gold-dark: #bd8b1e;
  --cream: #f8f5ee;
  --white: #ffffff;
  --ink: #102b4b;
  --muted: #536273;
  --line: #e8e3d8;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 9.5%)); margin-inline: auto; }

/* Top strip */
.topbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  background: #f5ecd9;
  color: #172b40;
  font-size: 11px;
  letter-spacing: .11em;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-tagline { font-weight: 700; }
.topbar-tagline span { color: var(--gold-dark); padding: 0 5px; }
.topbar-contact { display: flex; align-items: center; gap: 30px; letter-spacing: 0; font-weight: 600; }
.topbar-contact a:hover { color: var(--gold-dark); }

/* Header */
.site-header { background: #fff; position: relative; z-index: 20; }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; flex-direction: column; width: 165px; color: var(--navy); line-height: 1; position: relative; padding-left: 14px; }
.brand::before { content: ""; position: absolute; left: 0; top: 0; height: 47px; width: 2px; background: var(--gold); }
.brand-main { font-size: 38px; font-weight: 800; letter-spacing: .035em; }
.brand-rule { height: 2px; background: var(--gold); width: 100%; margin: 2px 0 3px; }
.brand-sub { font-size: 12px; letter-spacing: .34em; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 42px; }
.main-nav a { font-size: 15px; font-weight: 600; padding: 12px 0 10px; position: relative; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); }
.main-nav a.active::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--gold); }
.menu-toggle { display: none; }

/* Hero */
.hero { min-height: 420px; position: relative; overflow: hidden; display: flex; align-items: center; background: var(--navy); }
.hero-photo {
  position: absolute; inset: 0 0 0 35%;
  background-image: url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1800&q=85");
  background-position: center 54%; background-size: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,28,52,1) 0%, rgba(5,28,52,.98) 30%, rgba(5,28,52,.84) 43%, rgba(5,28,52,.14) 68%, rgba(5,28,52,.03) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 10px; padding-bottom: 30px; color: #fff; }
.eyebrow { margin: 0 0 12px; display: flex; align-items: center; gap: 11px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
.eyebrow span { display: inline-block; width: 54px; height: 2px; background: var(--gold); }
.eyebrow-light { color: #fff; font-size: 13px; margin-bottom: 15px; }
.hero h1 { max-width: 590px; margin: 0; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.hero h1 strong { color: #f0bd4d; font-weight: 800; }
.hero-copy { margin: 16px 0 20px; color: rgba(255,255,255,.94); font-size: 16px; line-height: 1.5; }
.btn { min-height: 46px; padding: 0 22px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; border-radius: 3px; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn b { font-size: 23px; line-height: 0; font-weight: 500; }
.btn-gold { color: #10243a; background: linear-gradient(110deg, #e6b84e, #d5a12c); box-shadow: 0 5px 14px rgba(0,0,0,.12); }
.btn-gold:hover { background: #efc45e; }
.hero-gold-swoop { position: absolute; z-index: 1; left: -2%; bottom: -31px; width: 54%; height: 62px; background: var(--gold); clip-path: ellipse(70% 35% at 35% 0%); }

/* Welcome */
.welcome-section { background: #fbfaf7; padding: 32px 0; }
.welcome-grid { display: grid; grid-template-columns: .82fr 1.5fr; align-items: center; gap: 42px; }
.welcome-heading { border-right: 1px solid var(--gold); min-height: 66px; display: flex; flex-direction: column; justify-content: center; }
.welcome-heading .eyebrow { margin-bottom: 6px; }
.welcome-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.15; }
.welcome-copy { display: flex; align-items: center; gap: 28px; }
.welcome-copy p { margin: 0; max-width: 680px; font-size: 13px; line-height: 1.65; color: #26394d; }
.text-btn { flex: 0 0 auto; padding: 10px 15px; border: 1px solid var(--gold-dark); color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; border-radius: 2px; }
.text-btn b { color: var(--gold-dark); font-size: 20px; margin-left: 6px; vertical-align: -1px; }

/* Services */
.services-section { padding: 42px 0 34px; background: #fff; }
.section-heading { text-align: center; margin: 0 auto 27px; }
.section-heading .eyebrow { justify-content: center; margin-bottom: 5px; }
.section-heading h2 { margin: 0 0 7px; color: var(--navy); font-size: clamp(29px, 3.2vw, 38px); letter-spacing: -.035em; line-height: 1.15; }
.section-heading > p:last-child { margin: 0; color: #26394d; font-size: 13px; line-height: 1.5; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { overflow: hidden; border: 1px solid #e9e9e9; border-top: 4px solid var(--gold); border-radius: 9px; background: #fff; box-shadow: 0 8px 20px rgba(10,32,54,.08); }
.service-card-title { min-height: 49px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; background: var(--navy); color: #fff; text-align: center; }
.service-card-title h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.service-card-body { padding: 14px 24px 19px; }
.service-card-body p { min-height: 126px; margin: 0 0 10px; color: #172b40; font-size: 13px; line-height: 1.5; }
.service-card-body a { color: #b47c0c; font-size: 13px; font-weight: 800; }
.service-card-body a b { font-size: 20px; vertical-align: -1px; margin-left: 4px; }

/* Approach */
.approach-section { min-height: 255px; display: grid; grid-template-columns: 47% 53%; background: #fbfaf7; }
.approach-image { min-height: 255px; background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=85"); background-position: center; background-size: cover; clip-path: polygon(0 0, 87% 0, 100% 100%, 0 100%); }
.approach-content { align-self: center; max-width: 650px; padding: 35px 8% 35px 4%; }
.approach-content .eyebrow { margin-bottom: 8px; }
.approach-content h2 { margin: 0 0 10px; color: var(--navy); font-size: clamp(27px, 3vw, 36px); line-height: 1.13; letter-spacing: -.03em; }
.approach-content > p:last-child { margin: 0; max-width: 590px; font-size: 13px; line-height: 1.6; color: #26394d; }

/* Capability strip */
.capability-strip { background: var(--navy); color: #fff; padding: 22px 0; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.capability-item { text-align: center; padding: 0 18px; }
.capability-item + .capability-item { border-left: 1px solid var(--gold); }
.capability-item h3 { margin: 0 0 5px; font-size: 16px; font-weight: 800; }
.capability-item p { margin: 0; color: rgba(255,255,255,.9); font-size: 12px; }

/* CTA */
.cta-section { padding: 27px 0; background: linear-gradient(110deg, #f8efd9, #fffaf0); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-inner h2 { margin: 0 0 5px; color: var(--navy); font-size: clamp(23px, 2.7vw, 30px); letter-spacing: -.03em; }
.cta-inner p { margin: 0; color: #26394d; font-size: 13px; line-height: 1.5; }
.cta-inner .btn { min-width: 150px; }

/* Footer */
.site-footer { color: #fff; background: var(--navy-deep); }
.footer-main { display: grid; grid-template-columns: 1.2fr .75fr 1.25fr; gap: 48px; padding-top: 32px; padding-bottom: 27px; }
.footer-about, .footer-links { border-right: 1px solid var(--gold); }
.footer-brand { display: inline-block; margin-bottom: 13px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.footer-main p { margin: 0; color: rgba(255,255,255,.9); font-size: 12px; line-height: 1.7; }
.footer-main h3 { margin: 0 0 10px; color: #fff; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links h3 { margin-bottom: 3px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.92); font-size: 12px; }
.footer-links a:hover, .footer-contact a:hover { color: #f0bd4d; }
.footer-phone { margin-top: 12px !important; }
.footer-phone a { color: #f0bd4d; font-weight: 700; text-decoration: underline; }
.footer-bottom { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(215,169,54,.65); }
.footer-bottom p, .footer-bottom a, .footer-bottom span { margin: 0; color: rgba(255,255,255,.88); font-size: 11px; }
.footer-bottom div { display: flex; align-items: center; gap: 12px; }
.footer-bottom a:hover { color: #f0bd4d; }

/* Tablet */
@media (max-width: 900px) {
  .container { width: min(100% - 7%, 720px); }
  .main-nav { gap: 25px; }
  .hero { min-height: 390px; }
  .hero-photo { left: 30%; }
  .hero h1 { font-size: clamp(37px, 6vw, 50px); }
  .welcome-grid { grid-template-columns: 1fr; gap: 18px; }
  .welcome-heading { border-right: 0; border-bottom: 1px solid var(--gold); padding-bottom: 15px; }
  .welcome-copy { justify-content: space-between; }
  .service-grid { gap: 15px; }
  .service-card-body { padding: 13px 16px 17px; }
  .service-card-title h3 { font-size: 16px; }
  .service-card-body p { min-height: 155px; font-size: 12px; }
  .footer-main { gap: 25px; grid-template-columns: 1fr .7fr 1.2fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .topbar { padding: 8px 0; font-size: 9px; }
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: 5px; }
  .topbar-contact { flex-wrap: wrap; gap: 5px 16px; font-size: 10px; }
  .nav-wrap { min-height: 72px; }
  .brand { width: 142px; padding-left: 11px; }
  .brand::before { height: 41px; }
  .brand-main { font-size: 32px; }
  .brand-sub { font-size: 10px; }
  .menu-toggle { width: 42px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #e5dfd2; border-radius: 3px; background: #fff; cursor: pointer; }
  .menu-toggle span { display: block; width: 19px; height: 2px; background: var(--navy); }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 18px 17px; background: #fff; border-top: 1px solid #eee7db; box-shadow: 0 10px 18px rgba(0,0,0,.1); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid #f0eee8; }
  .main-nav a.active::after { width: 28px; bottom: 4px; }
  .hero { min-height: 490px; align-items: flex-end; }
  .hero-photo { inset: 0; background-position: center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,28,52,.98) 0%, rgba(5,28,52,.9) 42%, rgba(5,28,52,.2) 100%); }
  .hero-content { padding-top: 190px; padding-bottom: 52px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.08; }
  .hero-copy { font-size: 14px; }
  .desktop-break { display: none; }
  .hero-gold-swoop { width: 70%; bottom: -42px; }
  .welcome-section { padding: 28px 0; }
  .welcome-heading h2 { font-size: 28px; }
  .welcome-copy { align-items: flex-start; flex-direction: column; gap: 15px; }
  .welcome-copy p { font-size: 13px; }
  .services-section { padding: 34px 0 30px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > p:last-child { font-size: 12px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card-title { min-height: 48px; }
  .service-card-title h3 { font-size: 18px; }
  .service-card-body { padding: 15px 18px 18px; }
  .service-card-body p { min-height: 0; font-size: 13px; margin-bottom: 12px; }
  .approach-section { grid-template-columns: 1fr; }
  .approach-image { min-height: 210px; clip-path: none; }
  .approach-content { padding: 27px 18px 30px; width: calc(100% - 36px); margin: 0 auto; }
  .approach-content h2 { font-size: 29px; }
  .capability-grid { grid-template-columns: 1fr; gap: 17px; }
  .capability-item { padding: 0 8px 15px; }
  .capability-item + .capability-item { border-left: 0; border-top: 1px solid rgba(215,169,54,.65); padding-top: 15px; }
  .cta-section { padding: 27px 0; }
  .cta-inner { align-items: flex-start; flex-direction: column; gap: 17px; }
  .cta-inner h2 { font-size: 25px; }
  .cta-inner p { font-size: 13px; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; padding-bottom: 22px; }
  .footer-about, .footer-links { border-right: 0; border-bottom: 1px solid rgba(215,169,54,.65); padding-bottom: 18px; }
  .footer-links { gap: 8px; }
  .footer-main p { font-size: 12px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 13px; padding-bottom: 13px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
