/* K&K Builders — espresso, sand, copper. Montserrat Bold / Regular. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Montserrat-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Montserrat-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Montserrat-Bold.woff2") format("woff2");
}

:root {
  --espresso: #211A16;
  --espresso-2: #2B221D;
  --espresso-3: #362B24;
  --copper: #A94F2A;
  --copper-dark: #8C3F20;
  --sand: #E5D7BD;
  --sand-muted: #978B7A; /* sand mixed into espresso, for quiet footer text */
  --earth: #6B5A42;
  --sage: #4F5A3A;
  --cream: #F7F3EA; /* light sand surface */
  --text-dark: #211A16;
  --text-muted: #6B5A42;
  --radius: 4px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(33, 26, 22, .16);
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
.hero { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 .4em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--copper-dark);
  outline-offset: 3px;
}
.site-header :focus-visible,
.hero :focus-visible,
.trust-band :focus-visible,
.gallery-section :focus-visible,
.contact-section :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--sand);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--sand);
  color: var(--espresso);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .7em 1em;
  border-radius: var(--radius);
}
.skip-link:focus {
  transform: none;
  outline: 2px solid var(--espresso);
  outline-offset: 3px;
}

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

.section { padding: 88px 0; }

.eyebrow {
  font-family: var(--font-head);
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 700;
  margin: 0 0 .8em;
}
.eyebrow-dark { color: var(--copper-dark); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--text-dark);
  font-weight: 700;
}
.section-title-light { color: var(--sand); }
.section-sub {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-sub-light { color: var(--sand); }
.about .section-title, .about .checklist li { color: var(--espresso); }
.about-copy p { color: var(--earth); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .75em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  font-size: .8rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-copper {
  background: var(--copper);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(169, 79, 42, .35);
}
.btn-copper:hover { background: var(--copper-dark); box-shadow: 0 10px 22px rgba(169, 79, 42, .45); }
.btn-outline {
  background: transparent;
  border-color: rgba(229, 215, 189, .7);
  color: var(--sand);
}
.btn-outline:hover { background: rgba(229, 215, 189, .12); }
.btn-dark {
  background: var(--espresso);
  color: var(--sand);
}
.btn-dark:hover { background: var(--espresso-3); }
.btn-lg { padding: .95em 2em; font-size: .95rem; }
.btn-block { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--espresso);
  border-bottom: 3px solid var(--copper);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-right: auto;
  min-width: 0;
}
.brand-logo {
  width: auto;
  height: 54px;
  max-width: 240px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand-tagline {
  color: var(--sand);
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--sand);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: #fff; border-color: var(--copper); }
.main-nav .mobile-only { display: none; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.phone-link:hover { color: var(--sand); }
.icon-sm { width: 18px; height: 18px; fill: currentColor; }
.icon-md { width: 22px; height: 22px; fill: currentColor; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.hero {
  background-color: var(--espresso);
  background-image:
    radial-gradient(ellipse 38% 55% at 75% 50%, rgba(33, 26, 22, .9) 0%, rgba(33, 26, 22, .7) 60%, rgba(33, 26, 22, 0) 100%),
    linear-gradient(90deg, rgba(33, 26, 22, .88) 0%, rgba(33, 26, 22, .7) 50%, rgba(33, 26, 22, .78) 100%),
    url("../images/gallery-patio-pool.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(229, 215, 189, .12);
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-inner {
  padding-top: 60px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 6px 24px rgba(33, 26, 22, .8));
}
.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  color: #fff;
  line-height: 1.08;
  margin-bottom: .3em;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--sand);
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.5em; }

.trust-band { background: var(--sage); color: var(--cream); }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.trust-inner .dia {
  width: 8px;
  height: 8px;
  background: var(--sand);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.rule {
  display: block;
  width: 84px;
  height: 5px;
  margin: 14px 0 22px;
  border-top: 1px solid var(--copper);
  border-bottom: 1px solid var(--copper);
}

.services { background: var(--cream); }
.about { background: var(--sand); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--copper);
  transition: transform .18s ease;
}
.service-card:hover { transform: translateY(-5px); }
.service-icon { width: 48px; height: 48px; margin-bottom: 18px; }
.service-icon svg { width: 100%; height: 100%; fill: var(--copper); stroke: var(--copper); }
.service-card h3 { font-size: 1.1rem; color: var(--text-dark); }
.service-card p { color: var(--text-muted); margin-bottom: 0; font-size: .96rem; }

.gallery-section { background: var(--espresso-2); }
.gallery-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--espresso-3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-wide { grid-column: span 2; grid-row: span 2; }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(33, 26, 22, .88));
  color: var(--sand);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.checklist { margin: 1.2em 0 1.6em; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--text-dark);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--copper);
}
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

.contact-section { background: var(--espresso); color: #fff; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sand);
  margin: 10px 0 28px;
}
.service-list { display: flex; flex-wrap: wrap; gap: 10px; }
.service-list li {
  border: 1px solid rgba(229, 215, 189, .35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sand);
}

.contact-form {
  background: var(--espresso-2);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color-scheme: dark;
}
.hidden-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-row { margin-bottom: 18px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sand);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .7em .8em;
  border-radius: 4px;
  border: 1px solid rgba(229, 215, 189, .25);
  background: rgba(229, 215, 189, .05);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sand);
  outline-offset: 1px;
  border-color: var(--copper);
  background: rgba(255, 255, 255, .07);
}
.form-row select option { color: var(--espresso); background: #fff; }
.form-row textarea { resize: vertical; }
.form-row input:-webkit-autofill,
.form-row textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #2B221D inset;
}

.site-footer { background: var(--espresso); color: var(--sand); padding-top: 48px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(229, 215, 189, .18);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: .9rem; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-logo { height: 120px; width: auto; }
.footer-bottom {
  padding: 18px 24px 28px;
  font-size: .82rem;
  color: var(--sand-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(23, 18, 16, .94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox p {
  color: var(--sand);
  margin-top: 16px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .9rem;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .brand-tagline { display: none; }
  .main-nav { gap: 16px; }
  .header-cta { gap: 12px; }
}

@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(33, 26, 22, .85), rgba(33, 26, 22, .9)),
      url("../images/gallery-patio-pool.jpg");
  }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item-wide { grid-column: span 2; grid-row: span 1; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { max-width: 280px; margin: 0 0 8px; order: -1; }
}

@media (max-width: 760px) {
  .header-inner { gap: 10px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand-tagline { display: none; }
  .brand-logo { height: 46px; max-width: 190px; }
  .main-nav { display: none; }
  .header-cta { gap: 10px; }
  .header-cta .phone-link span { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--espresso);
    padding: 16px 24px 24px;
    gap: 6px;
    border-bottom: 1px solid rgba(229, 215, 189, .12);
  }
  .site-header.nav-open .main-nav a { padding: 12px 2px; }
  .site-header.nav-open .main-nav .mobile-only {
    display: block;
    color: var(--sand);
    font-weight: 700;
  }

  .section { padding: 56px 0; }
  .form-row-split { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card, .gallery-item img { transition: none; }
  .btn:hover, .service-card:hover, .gallery-item:hover img { transform: none; }
}
