/* ==========================================================================
   J&K Cleaning Co. — site stylesheet
   Brand colors pulled from the logo:
     navy  #212e41
     sage  #6e8267
   ========================================================================== */

:root {
  --navy: #212e41;
  --navy-light: #2f4059;
  --sage: #6e8267;
  --sage-light: #8ca07e;
  --cream: #f7f5f0;
  --white: #ffffff;
  --ink: #2c2c2c;
  --border: #e3e0d8;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(33, 46, 65, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: none; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--sage-light); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
}
.brand img { height: 56px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--sage);
}
.nav-links .btn { margin-left: 6px; }
.nav-links .nav-cta {
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
}
.nav-links .nav-cta:hover { background: var(--sage-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.nav-social a { display: flex; color: var(--navy); }
.nav-social a:hover { color: var(--sage); }
.nav-social svg { width: 19px; height: 19px; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin: 14px 24px; }
  .nav-social {
    margin: 4px 0 0;
    padding: 14px 24px;
    border-left: none;
    border-bottom: none;
  }
  .nav-social a { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, var(--sage) 160%);
  padding: 100px 24px 90px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  z-index: 1;
}
.hero.small { padding: 64px 24px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--sage-light);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 620px;
  color: #e9ece7;
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 24px; }
section.alt { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
}

/* ---------- Cards / grid ---------- */
.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); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card .price-note {
  margin-top: 14px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--sage);
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--cream);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.quote-card p.quote { font-size: 1.05rem; color: var(--navy); font-style: italic; }
.quote-card .who { font-weight: 600; color: var(--sage); font-size: 0.9rem; }

/* ---------- Before / After ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-pair {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--white);
}
.ba-images { display: grid; grid-template-columns: 1fr 1fr; }
.ba-images figure { margin: 0; position: relative; }
.ba-images img { width: 100%; height: 240px; object-fit: cover; cursor: zoom-in; transition: opacity 0.15s ease; }
.ba-images img:hover { opacity: 0.9; }
.ba-images figcaption {
  position: absolute; top: 10px; left: 10px;
  background: rgba(33,46,65,0.85);
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.ba-caption { padding: 14px 18px; font-size: 0.9rem; color: var(--navy); font-weight: 600; }

/* ---------- Lightbox (click to enlarge gallery photos) ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 24, 32, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
}
.lightbox-close:hover { color: var(--sage-light); }
@media (max-width: 600px) {
  .lightbox-close { top: 10px; right: 16px; font-size: 2rem; }
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: #6b6b6b;
}
.empty-state h3 { color: var(--navy); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .req { color: var(--sage); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-msg {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-msg.success { background: #e8f0e4; color: #3f5c33; border: 1px solid #c3d6ba; }
.form-msg.error { background: #f7e7e3; color: #8a3b2a; border: 1px solid #eec3b7; }

/* ---------- Contact info blocks ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.info-list .label { color: var(--sage); font-weight: 700; min-width: 90px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #d7dade;
  padding: 48px 24px 26px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; }
.site-footer a { color: #d7dade; }
.site-footer a:hover { color: var(--sage-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 44px; }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a { display: flex; color: #d7dade; }
.footer-social a:hover { color: var(--sage-light); }
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #8891a0;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #384258;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.services-cta { text-align: center; margin-top: 44px; }
