/* =========================================================
   Koza Exterior Services — Site Stylesheet
   ========================================================= */

:root {
  --green: #1f7a3f;
  --green-dark: #155c2f;
  --green-light: #e8f5ea;
  --ink: #16201a;
  --gray-700: #3f4a44;
  --gray-500: #6b756f;
  --gray-200: #e6e9e7;
  --gray-100: #f5f7f5;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(16, 36, 22, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(16, 36, 22, 0.18);
  --container: 1180px;
  --font-head: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-700); }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: var(--white);
}
.section-dark h2, .section-dark p { color: var(--white); }

.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--green-dark); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-ghost {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--gray-200);
}
.btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--green-light); color: var(--green-dark); }
.main-nav a.active { color: var(--green-dark); background: var(--green-light); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.phone-link:hover { color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 30, 16, 0.86) 10%, rgba(10, 40, 20, 0.55) 60%, rgba(10, 30, 16, 0.35));
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-content .eyebrow { background: rgba(255,255,255,0.14); color: #d9f2df; }
.hero-content h1 { color: var(--white); max-width: 760px; }
.hero-content p.lead { color: #e7f3ea; font-size: 1.15rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
}
.hero-stats div span { font-size: 0.85rem; color: #d9ecdd; }

.page-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 30, 16, 0.88), rgba(10, 40, 20, 0.62));
  z-index: 1;
}
.page-hero-content { position: relative; z-index: 2; padding: 110px 0 64px; }
.page-hero-content h1 { color: var(--white); margin-bottom: 10px; }
.page-hero-content p { color: #e7f3ea; max-width: 620px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: #cfe8d4; margin-bottom: 14px; }
.breadcrumb a { color: #cfe8d4; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.trust-item .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .thumb { height: 200px; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card .body p { flex: 1; }
.service-card .more { font-weight: 700; font-size: 0.9rem; }

.value-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.value-card .num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
  color: var(--ink);
}
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 14px;
  background: linear-gradient(to top, rgba(10,25,14,0.85), transparent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 24px;
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #dff3e3; margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin-bottom: 14px;
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 20px; color: var(--gray-700); }
.faq-item .faq-body ul { margin: 10px 0 0; padding-left: 20px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: #cfd9d2; }
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-info-list li:first-child { border-top: none; }
.contact-info-list .icon-badge { background: rgba(255,255,255,0.12); color: var(--white); margin-bottom: 0; }
.contact-info-list a { color: var(--white); font-weight: 600; }
.contact-info-list a:hover { color: #9fe3ab; }
.contact-info-list span.label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fb3a6; margin-bottom: 3px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--gray-100);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 12px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status[data-state="error"] { color: #a51d20; }
.form-status[data-state="success"] { color: #226432; }
.btn:disabled { opacity: 0.65; cursor: wait; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 28px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #0e170f; color: #cfd9d2; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #cfd9d2; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8ea293;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav, .header-actions .btn, .header-actions .phone-link { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
  }
  .site-header.nav-open .header-actions { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .gallery { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
