/* Shared visual theme for the homepage and generated service pages. */
:root {
  --brand-navy: #12263a;
  --brand-dark: #172b3d;
  --brand-blue: #245edb;
  --brand-blue-soft: #edf3ff;
  --brand-muted: #586777;
  --brand-light: #f6f7f9;
  --brand-card: #fff;
  --brand-shadow: 0 16px 40px rgb(18 38 58 / 8%);
  --section-space: clamp(3rem, 5vw, 4.5rem);
  --content-space: clamp(1.75rem, 3vw, 2.5rem);
  --theme-border: #dfe5ec;
  --accent-sage: #28705a;
  --accent-sage-soft: #eaf5ef;
  --accent-gold: #8b621e;
  --accent-gold-soft: #fff4df;
}

body { background: #f8f9fb; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #dce8ff; color: #12263a; }
h1, h2, h3, h4 { text-wrap: balance; }
a { text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #245edb;
  outline-offset: 4px;
}

.navbar {
  --bs-navbar-color: #586777;
  --bs-navbar-hover-color: #172b3d;
  --bs-navbar-active-color: #172b3d;
  --bs-navbar-toggler-border-color: #dfe5ec;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2317263a' stroke-linecap='round' stroke-width='2' d='M5 8h20M5 15h20M5 22h20'/%3E%3C/svg%3E");
  padding-block: 0.85rem;
  background: rgb(255 255 255 / 96%) !important;
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 4px 24px rgb(18 38 58 / 3%);
}
.navbar .brand-name { color: var(--brand-navy); }
.navbar .brand-descriptor { color: #28705a; }
.navbar .brand-name-accent { color: inherit; }
.navbar .nav-link { font-size: 0.875rem; font-weight: 700; padding-inline: 0.8rem; }
.navbar-toggler { padding: 0.5rem; border-radius: 12px; }
.brand-symbol { width: 50px; height: 50px; }
.brand-mark { gap: 0.8rem; }
.brand-wordmark { gap: 0.45rem; }
.brand-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.055em; }
.brand-name-accent { color: inherit; }
.brand-descriptor { color: #a6d5bd; font-size: 0.625rem; letter-spacing: 0.2em; font-weight: 700; }
footer .brand-symbol { outline: 1px solid #385066; outline-offset: -1px; border-radius: 14px; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn-lg { min-height: 52px; font-size: 0.95rem; }
.btn-primary {
  background: var(--brand-blue) !important;
  border: 1px solid var(--brand-blue) !important;
  box-shadow: 0 4px 10px rgb(36 94 219 / 13%);
}
.btn-primary:hover, .btn-primary:active { background: #194dbd !important; box-shadow: 0 6px 16px rgb(36 94 219 / 20%); }
.btn-light { background: #fff; color: var(--brand-navy); border-color: #fff; }
.btn-light:hover { background: #eaf0f8; border-color: #eaf0f8; }

.hero {
  background:
    radial-gradient(ellipse at 95% 10%, #dfebe6 0%, transparent 48%),
    radial-gradient(ellipse at 5% 95%, #fff0d7 0%, transparent 45%),
    linear-gradient(120deg, #faf9f6, #edf3ff);
  color: var(--brand-dark);
  padding-top: 9rem;
  border-bottom: 1px solid var(--theme-border);
}
.hero::before { display: none; }
.hero h1, .landing-hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.65rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 1.4rem 0 1.5rem;
}
.hero h1 .gradient-text {
  background: none;
  color: var(--brand-blue);
  -webkit-text-fill-color: currentColor;
}
.hero p { color: var(--brand-muted); font-size: 1.05rem; line-height: 1.8; max-width: 36rem; }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.11em; font-weight: 800; padding: 0.45rem 0.8rem; }
.hero .eyebrow, .section .eyebrow.text-primary {
  color: #2454a5 !important;
  background: #e9f0fc !important;
  border-color: transparent;
}
.hero .btn-outline-light { border: 1px solid #c7d2df; color: var(--brand-dark); background: #fff; }
.hero .btn-outline-light:hover { background: #e9eff8; border-color: #a8bad0; }
.hero .text-white-50, .hero .mini-card small, .landing-proof { color: var(--brand-muted) !important; }
.hero .text-warning, .landing-proof i { color: var(--brand-blue) !important; }
.hero-visual { min-height: 510px; }
.visual-card { border: 1px solid var(--theme-border); backdrop-filter: none; box-shadow: var(--brand-shadow); }
.big-card { border-radius: 28px; }
.image-panel {
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgb(18 38 58 / 12%)), url('../images/photo-1512917774080-9991f1c4c750.jpg') center/cover no-repeat;
}
.mini-card { width: 190px; background: #fff; border-radius: 18px; padding: 1.1rem; }
.mini-card .number { color: var(--brand-navy); font-size: 2.15rem; letter-spacing: -0.055em; }
.overlay-badge { color: #fff; background: rgb(18 38 58 / 94%); border-radius: 16px; border: 1px solid rgb(255 255 255 / 15%); }
.hero .overlay-badge .text-white-50 { color: #c9d7e6 !important; }
.overlay-badge .fs-4 { font-size: 1.25rem !important; line-height: 1.4; }
.landing-photo { box-shadow: var(--brand-shadow); border: 1px solid var(--theme-border); }
.landing-photo figcaption { color: #fff; }

.section-title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.2; letter-spacing: -0.045em; }
.section-subtitle { line-height: 1.8; font-size: 1rem; }
.section > .container > .text-center { max-width: 800px; margin-inline: auto; }
.trust-strip { background: #f8f9fb; }
.trust-strip .text-uppercase { font-size: 0.65rem !important; letter-spacing: 0.11em; }
.logo-row { gap: 0.65rem; }
.logo-chip { min-height: 54px; background: #fff; border: 1px solid var(--theme-border); box-shadow: none; border-radius: 10px; font-size: 0.72rem; letter-spacing: 0.065em; }
.info-card, .service-card, .testimonial-card, .process-step {
  border-radius: 20px;
  border: 1px solid var(--theme-border);
  background: #fff;
  box-shadow: 0 5px 18px rgb(18 38 58 / 3%);
}
.service-card { display: flex; flex-direction: column; }
.service-card .thumb { height: 230px; flex-shrink: 0; }
.service-card .content { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card h4 { font-size: 1.2rem; letter-spacing: -0.025em; }
.service-card p { font-size: 0.94rem; line-height: 1.75; }
.service-card a { margin-top: auto; padding-top: 0.35rem; font-size: 0.875rem; }
.service-card a i { display: inline-block; margin-left: 0.35rem; }
.service-card:hover { transform: none; border-color: #a7bcdd; box-shadow: 0 10px 28px rgb(18 38 58 / 7%); }
.icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-blue-soft); font-size: 1.4rem; }
.benefit-card { background: #f8f9fb; box-shadow: none; border-color: #e6ebf1; border-radius: 16px; }
.benefit-card h3 { font-size: 1.05rem; }
.stats-panel { background: var(--brand-navy); border: 1px solid #263d53; border-radius: 24px; box-shadow: none; }
.stats-panel .text-white-50 { color: #c0cedb !important; }
.stat-item .num { color: #fff; font-size: clamp(2.2rem, 3.4vw, 3.25rem); }
.stats-panel .icon-wrap { flex-shrink: 0; }
.process-step { padding: 1.75rem; }
.process-step h4 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.025em; }
.step-number { width: auto; height: auto; display: block; background: none; color: var(--brand-blue); font-size: 2rem; line-height: 1; letter-spacing: -0.05em; margin-bottom: 1.75rem; }
.testimonial-card { display: flex; flex-direction: column; padding: 1.75rem; }
.testimonial-card > p { font-size: 0.95rem; line-height: 1.8; }
.testimonial-card .person { margin-top: auto; padding-top: 1.5rem; }
.stars { color: #9b650c; font-size: 0.875rem; }
.avatar { background: #eef3fb; color: #2454a5; border: 1px solid #dce6f4; }
.cta-panel { background: var(--brand-navy); border-radius: 24px; box-shadow: none; padding: clamp(1.25rem, 4vw, 3rem); }
.cta-panel .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.cta-panel .eyebrow { color: #cfdef0; background: #203b53 !important; border-color: #38516a; }
.cta-panel h3 { line-height: 1.2; }
.faq-list details { border-color: var(--theme-border); border-radius: 14px; box-shadow: none; }
.faq-list details[open] { border-color: #b5c8e5; background: #fdfefe; }
.faq-list summary::marker { color: var(--brand-blue); }
.estimate-form { border: 1px solid var(--theme-border); border-radius: 18px; box-shadow: none; }
.estimate-form h3 { color: var(--brand-navy); font-size: 1.5rem; }
.estimate-form .form-control, .estimate-form .form-select { background-color: #f8fafc; border-color: #cbd5e1; }
.estimate-form .form-control:focus, .estimate-form .form-select:focus { background-color: #fff; }
.estimate-form [aria-invalid="true"] { border-color: #b42318; background-color: #fffafa; }
.estimate-form .form-check-input:checked { background-color: var(--brand-blue); border-color: var(--brand-blue); }
.estimate-panel .estimate-form .form-note { color: var(--brand-muted); }
footer { background: #0e2031; padding-top: var(--section-space); }
footer .text-white-50 { color: #b6c5d4 !important; }
footer .footer-link { color: #c4d0dd; }
footer .footer-link:hover { color: #fff; }

/* Small recurring accents keep the added color consistent across pages. */
.logo-chip:nth-child(3n + 1) { background: #edf3ff; color: #2454a5; border-color: #d4e1f7; }
.logo-chip:nth-child(3n + 2) { background: var(--accent-sage-soft); color: var(--accent-sage); border-color: #d2e7db; }
.logo-chip:nth-child(3n) { background: var(--accent-gold-soft); color: var(--accent-gold); border-color: #efdfbf; }
.section-content > div { --card-accent: #2454a5; --card-tint: #edf3ff; }
.section-content > div:nth-child(3n + 2) { --card-accent: var(--accent-sage); --card-tint: var(--accent-sage-soft); }
.section-content > div:nth-child(3n) { --card-accent: var(--accent-gold); --card-tint: var(--accent-gold-soft); }
.service-card .content { border-top: 3px solid var(--card-accent); }
.service-card a { color: var(--card-accent); }
.landing-option .icon-wrap, .testimonial-card .avatar { color: var(--card-accent); background: var(--card-tint); }
.process-step { border-top: 3px solid var(--card-accent); }
.process-step .step-number { color: var(--card-accent); }
.benefit-card:first-child { background: #f2f6ff; border-color: #dce6f7; }
.benefit-card:nth-child(2) { background: #f0f7f3; border-color: #dbe9e1; }
.benefit-card:nth-child(3) { background: #fffaef; border-color: #eee3cd; }
#process { background-color: #f0f6f3 !important; }
#process .eyebrow.text-primary { background: #dfede4 !important; color: #28634d !important; }
#reviews { background-color: #fdf8ef !important; }
#reviews .eyebrow.text-primary { background: #f7ebd1 !important; color: #7c581b !important; }
#contact { background-color: #eef3fb !important; }
.stats-panel, .cta-panel { background: linear-gradient(120deg, #12263a 30%, #1d464a); }
.stats-panel .row > div:nth-child(2) .num { color: #b7e4ce; }
.stats-panel .row > div:nth-child(3) .num { color: #f6dba5; }
.mini-card { border-top: 3px solid #e3b65f; }
.hero .mini-card .text-warning { color: #966619 !important; }
.estimate-form { border-top: 4px solid #e3b65f; }
.faq-list details[open] { border-color: #b6d5c5; background: #f5faf7; }

@media (min-width: 992px) {
  #why-us .stat-item { padding: 1.15rem 0.75rem; }
  #why-us .stats-panel > .row > .col-lg-3 { width: 50%; }
  #why-us .stats-panel { position: sticky; top: 7rem; }
  #why-us .col-lg-7 { align-self: stretch; }
  #why-us .stats-panel.h-100 { height: auto !important; }
}
@media (max-width: 991.98px) {
  .navbar-collapse { padding-block: 1rem 0.5rem; }
  .navbar .nav-link { padding: 0.6rem 0; }
  .navbar .navbar-nav > .nav-item:last-child { margin-top: 0.5rem; }
  .hero { padding-top: 7.5rem; }
  .hero-visual { min-height: 460px; }
}
@media (max-width: 575.98px) {
  .brand-symbol { width: 44px; height: 44px; }
  .brand-name { font-size: 1.55rem; }
  .brand-descriptor { font-size: 0.58rem; }
  .hero h1, .landing-hero h1 { font-size: clamp(2.25rem, 9.5vw, 3.3rem); line-height: 1.1; }
  .hero .eyebrow { font-size: 0.64rem; letter-spacing: 0.055em; }
  .hero .btn { width: 100%; }
  .hero-visual { min-height: 410px; }
  .mini-card { width: 178px; }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-chip:last-child { grid-column: 1 / -1; }
  .service-card .thumb { height: 210px; }
  .stats-panel { padding: 1.5rem 1rem; }
  .estimate-form { padding: 1.25rem; }
  .estimate-panel .eyebrow { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
