/* ==========================================================================
   Grant Langston Customs — site stylesheet
   "Coastal Blue" theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --color-light-blue: #C1D4EB;
  --color-light-blue-soft: #E4ECF6;
  --color-medium-blue: #3E8CBD;
  --color-medium-blue-dark: #2F6E96;
  --color-dark-teal: #1E3F3F;
  --color-text: #1C1C1C;
  --color-white: #FFFFFF;
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(30, 63, 63, 0.12);
  --shadow-hover: 0 8px 28px rgba(30, 63, 63, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark-teal);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-medium-blue);
  color: var(--color-white);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--color-medium-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark-teal);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(30, 63, 63, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark-teal);
  white-space: nowrap;
  flex: none;
}

.brand img {
  height: 42px;
  width: auto;
  flex: none;
}

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

.main-nav a {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--color-text);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-light-blue-soft);
  color: var(--color-medium-blue-dark);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-cta .btn-primary {
  white-space: nowrap;
  padding: 12px 22px;
  font-size: 0.92rem;
}

.header-phone {
  font-weight: 800;
  color: var(--color-dark-teal);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-dark-teal);
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-dark-teal);
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 76px 0 88px;
  text-align: center;
  color: var(--color-white);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  animation: heroSlide 25s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }

@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.02); }
  3%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1.1); }
  23%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(20, 40, 40, 0.82) 0%, rgba(20, 40, 40, 0.68) 55%, rgba(20, 40, 40, 0.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; transform: none; }
  .hero-slide:first-child { opacity: 1; }
}

.hero .eyebrow {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-medium-blue-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero-brand {
  max-width: 820px;
  margin: 0 auto 8px;
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: 0.01em;
}

.hero-tagline {
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--color-white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.35;
}

.hero .lede {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: #e7f0f0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-secondary {
  background: var(--color-white);
  color: var(--color-dark-teal);
  border-color: var(--color-white);
  box-shadow: var(--shadow);
}
.btn-hero-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.hero-stats .dot { opacity: 0.5; }

@media (max-width: 560px) {
  .hero { min-height: 560px; }
  .hero-stats { font-size: 0.78rem; gap: 8px; }
}

@media (max-width: 560px) {
  .services-subnav a { font-size: 0.8rem; padding: 8px 14px; }
  .brand-pills li { font-size: 0.8rem; }
}

/* Page header (non-home pages) */
.page-hero {
  background: linear-gradient(160deg, var(--color-light-blue) 0%, var(--color-light-blue-soft) 100%);
  padding: 56px 0 64px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lede { max-width: 620px; margin: 0 auto; color: #33504f; font-size: 1.08rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--color-light-blue-soft); }
.section-dark {
  background: var(--color-dark-teal);
  color: var(--color-white);
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head p { color: #4a5d5d; font-size: 1.05rem; }
.section-dark .section-head p { color: #cfe0e0; }

/* ---------- Intro / About block ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.about-block img { border-radius: var(--radius); box-shadow: var(--shadow); }
.kicker {
  color: var(--color-medium-blue-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Cards grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.card h3 { margin-bottom: 10px; }
.card p { color: #445555; margin-bottom: 0; }

.section-dark .card {
  background: rgba(255,255,255,0.06);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.14);
}
.section-dark .card p { color: #cfe0e0; }
.section-dark .card h3 { color: var(--color-white); }

/* Why-choose checklist */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.check-list .mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-medium-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.check-list strong { color: var(--color-dark-teal); }

/* Why-choose graphic (replaces checklist with a single designed image) */
.why-choose-graphic {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Service areas */
.service-area-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service-area-map {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.area-list li {
  background: var(--color-white);
  border: 1px solid var(--color-light-blue);
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--color-dark-teal);
  text-align: center;
}
.area-note {
  text-align: center;
  margin-top: 18px;
  color: #4a5d5d;
  font-style: italic;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-medium-blue);
  color: var(--color-white);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--color-white); }
.cta-band .lede { color: #eaf3fa; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--color-white); color: var(--color-medium-blue-dark); }
.cta-band .btn-primary:hover { background: var(--color-dark-teal); color: var(--color-white); }

.contact-line {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-weight: 700;
}
.contact-line a:hover { text-decoration: underline; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 4 / 3;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.carousel-slide {
  flex: none;
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(30,63,63,0.85);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark-teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.carousel-nav:hover { background: var(--color-white); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--color-white); width: 20px; border-radius: 5px; }

.project-block { margin-bottom: 56px; }
.project-block:last-child { margin-bottom: 0; }
.project-block h3 { text-align: center; margin-bottom: 6px; }
.project-block .project-loc {
  text-align: center;
  color: var(--color-medium-blue-dark);
  font-weight: 700;
  margin-bottom: 22px;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 26px 26px;
  box-shadow: var(--shadow);
}
.review-stars { color: #E0A73E; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-quote { font-style: italic; color: #364646; margin-bottom: 14px; }
.review-author { font-weight: 800; color: var(--color-dark-teal); }
.review-meta { font-size: 0.85rem; color: #6a7d7d; }

/* Live Google reviews */
.google-reviews-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  margin: 0 auto 40px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 34px;
  max-width: 440px;
}
.google-rating-big {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--color-dark-teal);
  line-height: 1;
}
.google-rating-count { color: #6a7d7d; font-size: 0.88rem; margin-top: 4px; }
.google-reviews-state {
  text-align: center;
  color: #6a7d7d;
  padding: 36px 0;
}
.google-reviews-state code {
  background: var(--color-light-blue-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.google-reviews-state a { color: var(--color-medium-blue-dark); font-weight: 700; }
.google-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.google-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }

.btn-outline-brand {
  background: transparent;
  color: var(--color-medium-blue-dark);
  border-color: var(--color-medium-blue);
}
.btn-outline-brand:hover {
  background: var(--color-medium-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .google-reviews-summary { flex-direction: column; text-align: center; gap: 8px; }
}

/* ---------- Services page: sub-nav + service blocks ---------- */
.services-subnav {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 90;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-blue-soft);
}
.services-subnav .container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 14px;
  padding-bottom: 14px;
}
.services-subnav a {
  flex: none;
  background: var(--color-white);
  border: 2px solid var(--color-light-blue);
  color: var(--color-dark-teal);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.services-subnav a:hover { border-color: var(--color-medium-blue); transform: translateY(-1px); }
.services-subnav a.active {
  background: var(--color-medium-blue);
  border-color: var(--color-medium-blue);
  color: var(--color-white);
}

.service-block { scroll-margin-top: var(--stack-h, 128px); }

.service-block-inner {
  display: flex;
  align-items: center;
  gap: 52px;
}
.service-block--reverse .service-block-inner { flex-direction: row-reverse; }

.service-media {
  flex: 1 1 46%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-media:hover img { transform: scale(1.05); }

.service-content { flex: 1 1 46%; min-width: 0; }
.service-content h2 { margin-top: 6px; }

.cabinet-brands {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--color-light-blue);
}
.cabinet-brands-label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-medium-blue-dark);
  margin-bottom: 12px;
}
.brand-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-pills li {
  background: var(--color-light-blue-soft);
  color: var(--color-dark-teal);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
}

.vanity-note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #445555;
}

/* Design partner callout */
.partner-card {
  max-width: 840px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.partner-card-mark {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-dark-teal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card h3 { margin-bottom: 4px; }
.partner-location {
  color: var(--color-medium-blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.partner-card p:last-child { margin-bottom: 0; color: #445555; }

.review-form {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.review-form label {
  display: block;
  font-weight: 800;
  color: var(--color-dark-teal);
  margin: 18px 0 6px;
}
.review-form label:first-child { margin-top: 0; }
.review-form input[type="text"],
.review-form input[type="email"],
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-light-blue);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fbfdff;
}
.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--color-medium-blue);
}
.review-form textarea { resize: vertical; min-height: 110px; }
.star-picker { display: flex; gap: 8px; font-size: 1.8rem; }
.star-picker button {
  background: none;
  border: none;
  cursor: pointer;
  color: #cfd8d8;
  padding: 0;
  line-height: 1;
}
.star-picker button.active,
.star-picker button:hover { color: #E0A73E; }
.review-form .btn-primary { width: 100%; margin-top: 24px; }
.review-disclosure {
  font-size: 0.85rem;
  color: #6a7d7d;
  text-align: center;
  margin-top: 16px;
}
.form-note {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
  color: #4a5d5d;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success.show { display: block; }
.form-success .big-check {
  font-size: 3rem;
  color: var(--color-medium-blue);
  margin-bottom: 12px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail .icon { font-size: 1.4rem; flex: none; }
.contact-detail strong { display: block; color: var(--color-dark-teal); }
.form-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
}
.form-embed iframe { width: 100%; border: none; min-height: 900px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark-teal);
  color: #d7e6e6;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white);
}
.footer-brand img { height: 42px; }
.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.site-footer a { color: #d7e6e6; }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #9db3b3;
}

/* ---------- Responsive ---------- */
/* Header gets its own, wider breakpoint: with the real logo + full company
   name in play, the nav needs to switch to the hamburger before it runs out
   of room, rather than squeezing/wrapping awkwardly at 900px. */
@media (max-width: 1350px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .site-header .container { flex-wrap: nowrap; }
  .header-cta { gap: 10px; }
  .header-cta .btn-primary { padding: 10px 16px; font-size: 0.85rem; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 900px) {
  .about-block { grid-template-columns: 1fr; }
  .service-area-layout { grid-template-columns: 1fr; gap: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .service-block-inner,
  .service-block--reverse .service-block-inner { flex-direction: column; gap: 28px; }
  .service-media { width: 100%; }
  .partner-card { flex-direction: column; text-align: center; padding: 32px 26px; }
  .partner-card-mark { margin: 0 auto; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 64px; }
  section { padding: 52px 0; }
  .review-form { padding: 28px 22px; }
  .brand { font-size: 1rem; }
  .brand img { height: 38px; }
}

@media (max-width: 420px) {
  .brand-text { display: none; }
  .header-cta .btn-primary { padding: 9px 14px; font-size: 0.8rem; }
}

/* ---------- Remodels & Projects: category filters + portfolio grid ---------- */
.project-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--color-white);
  border: 2px solid var(--color-light-blue);
  color: var(--color-dark-teal);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.filter-btn:hover { border-color: var(--color-medium-blue); transform: translateY(-1px); }
.filter-btn.active {
  background: var(--color-medium-blue);
  border-color: var(--color-medium-blue);
  color: var(--color-white);
}

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

.project-card {
  background: var(--color-white);
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.project-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-light-blue-soft);
  overflow: hidden;
}
.project-card-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(30, 63, 63, 0.85);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.project-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card-body p {
  color: #4a5d5d;
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-body .view-link { font-weight: 800; color: var(--color-medium-blue-dark); }

.project-empty { text-align: center; color: #6a7d7d; padding: 40px 0; }

/* ---------- Project detail modal ---------- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.project-modal.open { display: flex; }
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 35, 0.72);
}
.project-modal-panel {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
}
.project-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-dark-teal);
  cursor: pointer;
  z-index: 2;
}
.project-modal-body { padding: 40px 36px 36px; }
.project-modal-category {
  display: inline-block;
  background: var(--color-light-blue-soft);
  color: var(--color-medium-blue-dark);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.project-modal-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.modal-tab-btn {
  background: var(--color-light-blue-soft);
  border: none;
  color: var(--color-dark-teal);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.modal-tab-btn.active { background: var(--color-medium-blue); color: var(--color-white); }
.modal-main-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-light-blue-soft);
  margin-bottom: 12px;
}
.modal-main-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
}
.modal-thumbs img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
  flex: none;
  border: 2px solid transparent;
}
.modal-thumbs img.active { opacity: 1; border-color: var(--color-medium-blue); }
.project-modal-desc { color: #364646; margin-bottom: 0; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-modal-body { padding: 34px 24px 28px; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-modal { padding: 12px; }
}
