:root {
  --ink: #0b1220;
  --navy: #0a2d5e;
  --blue: #0c7fc6;
  --gold: #f0b33b;
  --green: #1f7a5c;
  --paper: #fbfcfe;
  --muted: #5b6678;
  --line: #dde5ef;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(7, 18, 38, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 22px 0;
}
.logo-link {
  display: block;
  width: 112px;
  margin-left: clamp(20px, 5vw, 70px);
  padding: 0;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .36));
}
.logo-link img {
  width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background: url("assets/hero-texas-house-painting.png") center/cover no-repeat;
  transform: scale(1.01);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 13, 30, .88) 0%, rgba(3, 13, 30, .66) 42%, rgba(3, 13, 30, .18) 74%, rgba(3, 13, 30, .06) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .44) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: 150px;
  max-width: 1160px;
}
.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1,
h2,
h3,
p { margin-top: 0; }
h1 {
  max-width: 790px;
  font-size: clamp(2.55rem, 6vw, 5.65rem);
  line-height: .98;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 690px;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  margin-bottom: 30px;
}
.hero-actions,
.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 6px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: #161000;
  box-shadow: 0 14px 32px rgba(240, 179, 59, .28);
}
.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}
.trust-row { margin-top: 28px; color: rgba(255,255,255,.86); }
.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .92rem;
}

.section { padding: 88px 0; }
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.24rem;
  margin-bottom: 10px;
}
.prose p,
.section-head p,
.areas p,
.quote-copy p,
.footer p,
.contact-card p {
  color: var(--muted);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2,
.section-head p { max-width: 720px; }
.section-head.compact { display: block; max-width: 790px; }
.text-link {
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}

.services { background: #eef5fb; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-height: 202px;
  box-shadow: 0 8px 22px rgba(11,18,32,.05);
}
.service-grid p { color: var(--muted); margin-bottom: 0; }

.why { background: var(--ink); color: var(--white); }
.why .section-kicker { color: var(--gold); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.benefit-grid div {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255,255,255,.05);
}
.benefit-grid strong,
.benefit-grid span { display: block; }
.benefit-grid span { color: rgba(255,255,255,.72); margin-top: 10px; }
.cta-band {
  margin-top: 32px;
  padding: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12,127,198,.42), rgba(31,122,92,.32));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta-band h2 { margin-bottom: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }

.gallery { background: var(--paper); }
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.gallery-tabs button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.gallery-tabs button:hover,
.gallery-tabs button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.gallery-empty {
  padding: 18px 20px;
  border: 1px dashed #b9c8d8;
  border-radius: 8px;
  color: var(--muted);
  background: #f5f8fb;
}
.gallery-group {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.gallery-group[hidden] { display: none; }
.gallery-group h3 {
  font-size: 1.65rem;
  color: var(--navy);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11,18,32,.13);
  background: #dce4ef;
}

.reviews { background: #f2f7f4; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
figure {
  margin: 0;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid #dce9e1;
}
blockquote {
  margin: 0 0 18px;
  color: #273142;
  font-size: 1.05rem;
}
figcaption {
  font-weight: 800;
  color: var(--green);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.area-list span {
  padding: 10px 13px;
  border-radius: 999px;
  background: #e8f0f8;
  color: var(--navy);
  font-weight: 700;
}

.quote {
  background:
    linear-gradient(135deg, rgba(10,45,94,.96), rgba(11,18,32,.98)),
    #0b1220;
  color: var(--white);
}
.quote-wrap {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 32px;
  align-items: start;
}
.quote-copy {
  position: sticky;
  top: 24px;
}
.phone-card {
  display: inline-block;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.28rem;
  font-weight: 900;
  background: rgba(255,255,255,.08);
}
.quote-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.message-card {
  border-color: rgba(240, 179, 59, .46);
  background: rgba(240, 179, 59, .14);
}
.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
label {
  display: grid;
  gap: 7px;
  font-size: .86rem;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  padding: 13px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.contact-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(11,18,32,.08);
}
.contact-card a,
.footer a { display: block; margin-bottom: 8px; font-weight: 800; color: var(--navy); }
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}
.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  box-shadow: none;
  filter: none;
  overflow: visible;
  transition: transform .2s ease;
}
.social-link:hover {
  transform: translateY(-2px);
}
.social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer {
  background: #071226;
  color: var(--white);
  padding: 42px 0 92px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 150px 1fr .8fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .32));
}
.footer p { color: rgba(255,255,255,.68); margin-bottom: 0; }
.footer a { color: rgba(255,255,255,.9); }
.footer .social-link {
  margin-bottom: 0;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.floating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
.floating-call {
  color: #111;
  background: var(--gold);
}
.floating-text {
  color: var(--white);
  background: var(--green);
}

@media (max-width: 980px) {
  .hero { min-height: 720px; }
  .split,
  .quote-wrap,
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid,
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .section-head,
  .cta-band { align-items: start; flex-direction: column; }
  .quote-copy { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { padding: 14px 0; }
  .logo-link { width: 92px; margin-left: 14px; }
  .logo-link img { max-height: 72px; }
  .hero {
    min-height: 730px;
    align-items: end;
  }
  .hero-bg { background-position: 60% center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3,13,30,.38) 0%, rgba(3,13,30,.78) 44%, rgba(3,13,30,.94) 100%);
  }
  .hero-content { padding: 132px 0 64px; }
  h1 { font-size: clamp(2.18rem, 12vw, 3.35rem); }
  .hero-actions .btn,
  .estimate-form .btn { width: 100%; }
  .service-grid,
  .benefit-grid,
  .photo-grid,
  .estimate-form,
  .footer-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: 235px; }
  .section { padding: 66px 0; }
  .footer { padding-bottom: 100px; }
  .floating-actions {
    left: 14px;
    right: 14px;
    bottom: 12px;
    flex-direction: row;
    align-items: stretch;
  }
  .floating-button {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 12px 10px;
    font-size: .92rem;
  }
}
