/* ============================================================
   KW Pro Painters — styles.css
   ============================================================ */

:root {
  --navy: #082b4a;
  --navy-dark: #041e34;
  --blue: #0b4e86;
  --gold: #c9972f;
  --gold-light: #e0b34c;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --text-dark: #0a1f33;
  --text-muted: #5f6b76;
  --border: #e3e8ef;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(8, 43, 74, 0.06);
  --shadow-md: 0 14px 40px rgba(8, 43, 74, 0.12);
  --header-h: 84px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  line-height: 1.05;
  letter-spacing: 0.5px;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

.text-gold {
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 8px 20px rgba(201, 151, 47, 0.28);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-lg {
  padding: 17px 36px;
  font-size: 1.05rem;
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 54px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--navy);
}

.section-title.light {
  color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-kw {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--navy);
  letter-spacing: 1px;
}

.logo-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.logo-loc {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-dark);
  padding: 6px 0;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.22s ease;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  box-shadow: none;
}

.nav-cta:hover {
  background: var(--blue);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: var(--navy);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0 12px;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--navy-dark) 0%,
    rgba(8, 43, 74, 0.92) 38%,
    rgba(8, 43, 74, 0.55) 65%,
    rgba(8, 43, 74, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: 70px;
  padding-bottom: 70px;
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-text {
  margin-top: 20px;
  max-width: 480px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-location {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-location svg {
  color: var(--gold);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--off-white);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-media {
  position: relative;
}

.service-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-icon {
  position: absolute;
  left: 24px;
  bottom: -22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.service-body {
  padding: 34px 24px 28px;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ============================================================
   ABOUT / WHY CHOOSE US
   ============================================================ */
.about {
  background: var(--navy);
  color: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
}

.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  font-weight: 500;
}

.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
}

.about-cta {
  margin-top: 34px;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-gallery img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--white);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: -24px 0 40px;
}

.filter-btn {
  padding: 9px 22px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.is-hidden {
  display: none;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 54px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-text {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cta-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 151, 47, 0.14);
  color: var(--gold);
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
}

.cta-text p {
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.18s ease;
}

a.footer-item:hover {
  color: var(--gold-light);
}

.footer-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }

  .hero {
    min-height: 0;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 43, 74, 0.78) 0%,
      rgba(8, 43, 74, 0.88) 100%
    );
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    order: -1;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-text {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item img {
    height: 160px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-gallery img {
    height: 150px;
  }

  .logo-kw {
    font-size: 1.45rem;
  }
}
