/* Excelsior Pro Builders — design system */

:root {
  --ink: #0f1115;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --bg-soft: #eef1f6;
  --line: rgba(15, 17, 21, 0.09);
  --line-soft: rgba(15, 17, 21, 0.06);
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #e8f0fe;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(15, 17, 21, 0.04), 0 8px 24px rgba(15, 17, 21, 0.05);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.75rem 1.25rem;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section-lead { max-width: 640px; font-size: 1.02rem; margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.95rem; border-radius: 999px;
  padding: 0.85rem 1.6rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-link { background: none; color: var(--ink); font-weight: 700; padding: 0.85rem 0.25rem; }
.btn-link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.primary-nav { display: flex; gap: 2rem; }
.primary-nav a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.primary-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; }

.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.25rem; border-top: 1px solid var(--line-soft);
}
.mobile-menu a { padding: 0.75rem 0; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 0.75rem; }
.mobile-menu.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 5rem; }
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center;
}
.hero-sub { font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0;
}
.hero-badges li {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.placeholder-media {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef1f6, #e2e8f5);
  border: 1px solid var(--line); color: #9aa4b5; overflow: hidden;
}
.placeholder-media svg { width: 30%; height: 30%; }
.media-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #8892a3; background: rgba(255, 255, 255, 0.75); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.hero-media .placeholder-media { aspect-ratio: 1 / 1; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.service-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.35rem;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { margin: 0.1rem 0 0.15rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 0.25rem; }
.card-link { font-weight: 700; font-size: 0.88rem; color: var(--accent); margin-top: auto; }
.card-link:hover { color: var(--accent-dark); }

.badge {
  display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 0.35rem 0.7rem;
  width: fit-content;
}
.badge-outline { background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line); }
.badge-soft { background: var(--accent-soft); color: var(--accent-dark); text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 3.5rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li {
  position: relative; padding-left: 1.6rem; font-size: 0.96rem; color: var(--ink-soft); font-weight: 500;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 3.5rem 0; background: var(--bg-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.trust-item svg { width: 30px; height: 30px; margin-bottom: 0.85rem; }
.trust-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.trust-item p { font-size: 0.88rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 1.1rem;
}
.gallery-item {
  position: relative; border: none; padding: 0; background: none; cursor: pointer;
  border-radius: var(--radius-md); overflow: hidden; text-align: left;
}
.gallery-item-lg { grid-row: span 2; grid-column: span 1; }
.gallery-item .placeholder-media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.gallery-item-lg .placeholder-media { aspect-ratio: 4 / 5; height: 100%; }
.gallery-caption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; right: 0.9rem;
  font-size: 0.82rem; font-weight: 600; color: #fff;
  background: rgba(15, 17, 21, 0.72); padding: 0.5rem 0.8rem; border-radius: 10px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.75rem; box-shadow: var(--shadow-card);
}
.testimonial-card blockquote { margin: 0 0 1.25rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.t-name { font-weight: 700; }
.t-role { font-size: 0.85rem; color: var(--ink-faint); }
.testimonial-card .badge-soft { margin-top: 0.4rem; }

/* ---------- FAQ ---------- */
.accordion { border-top: 1px solid var(--line); max-width: 760px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item h3 { margin: 0; font-size: 1rem; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; text-align: left; font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--ink); padding: 1.25rem 0.25rem; cursor: pointer;
}
.accordion-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.accordion-icon::before, .accordion-icon::after {
  content: ""; position: absolute; background: var(--ink-soft); border-radius: 2px;
}
.accordion-icon::before { width: 100%; height: 2px; top: 8px; left: 0; }
.accordion-icon::after { width: 2px; height: 100%; left: 8px; top: 0; transition: transform 0.2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: scaleY(0); }
.accordion-panel { padding: 0 0.25rem 1.25rem; }
.accordion-panel p { margin: 0; font-size: 0.94rem; }
.faq-cta {
  margin-top: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; background: var(--bg-soft); border-radius: var(--radius-md); padding: 1.5rem 1.75rem;
}
.faq-cta p { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.direct-contact { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.direct-link {
  display: flex; align-items: center; gap: 0.65rem; font-weight: 700; font-size: 0.94rem;
}
.direct-link:hover { color: var(--accent); }
.direct-icon {
  width: 34px; height: 34px; border-radius: 999px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.direct-icon svg { width: 16px; height: 16px; }
.placeholder-tag { font-size: 0.72rem; font-weight: 500; color: #b45309; background: #fef3c7; padding: 0.15rem 0.5rem; border-radius: 999px; }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 1.15rem; }
.form-row label {
  display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem;
}
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row select, .form-row textarea {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt);
  min-height: 44px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; background: #fff;
}
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea {
  outline: 1px solid #dc2626;
}
.field-error { color: #dc2626; font-size: 0.8rem; margin: 0.35rem 0 0; min-height: 1em; }
.checkbox-label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.checkbox-label input { margin-top: 0.2rem; width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-label a { color: var(--accent); font-weight: 700; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9rem; font-weight: 600; margin: 0.75rem 0 0; min-height: 1.2em; }
.form-status.is-success { color: #059669; }
.form-status.is-error { color: #dc2626; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(15, 17, 21, 0.85);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { max-width: 560px; width: 100%; }
.placeholder-media-lg { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1f2937, #374151); color: #9ca3af; border: none; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 1rem; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 999px;
  border: none; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-brand { font-size: 1.05rem; }
.footer-col p { font-size: 0.88rem; margin: 0; }
.footer-heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.25rem; }
.footer-col a { font-size: 0.9rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-col .placeholder-tag { width: fit-content; margin-top: 0.25rem; }
.footer-bottom {
  max-width: var(--container); margin: 0 auto; padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--ink-faint);
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.legal-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem; gap: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-lg { grid-row: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 0.92rem; }
  .header-actions .cta-quote { display: none; }
  .section { padding: 3.5rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-actions .btn-link { width: 100%; text-align: center; }
  .faq-cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
