/* ===================================================================
   Boss Bath & Kitchen Remodeling — Bethesda, MD
   Palette pulled from actual project photography:
   walnut cabinetry, brass hardware, warm marble, hunter green millwork
   =================================================================== */
:root{
  --ink: #211B15;         /* near-black warm charcoal — text, dark bands */
  --paper: #FAF6EE;       /* warm cream — main background, matches marble */
  --walnut: #3B2A1E;      /* deep walnut cabinetry brown */
  --walnut-light: #6B4E36;
  --brass: #B08D57;       /* brushed brass hardware */
  --brass-light: #D7B87E;
  --green: #2B3628;       /* hunter green millwork accent */
  --stone: #8A8171;       /* warm grey — secondary text */
  --line: rgba(33,27,21,0.12);
  --line-light: rgba(250,246,238,0.16);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --container: 1200px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.12;
  font-weight: 600;
}
p{ margin: 0 0 1em; }
.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px){ .wrap{ padding: 0 20px; } }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
}

/* ---------- Material rule — signature divider ----------
   Five bands in the actual colors pulled from the project photos:
   walnut, brass, hunter green, stone, cream. A running motif that
   reads like an actual finish/sample strip. */
.material-rule{
  display:flex;
  height: 8px;
  width: 100%;
}
.material-rule span{ flex:1; }
.material-rule .m1{ background: var(--walnut); }
.material-rule .m2{ background: var(--brass); }
.material-rule .m3{ background: var(--green); }
.material-rule .m4{ background: var(--stone); }
.material-rule .m5{ background: var(--brass-light); }

.eyebrow{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  display:inline-block;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: all .18s ease;
}
.btn-primary{ background: var(--brass); color: var(--ink); }
.btn-primary:hover{ background: var(--brass-light); }
.btn-outline{ border-color: var(--line-light); color: var(--paper); }
.btn-outline:hover{ border-color: var(--paper); background: rgba(250,246,238,.08); }
.btn-dark{ background: var(--ink); color: var(--paper); }
.btn-dark:hover{ background: var(--walnut); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-light);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 84px;
}
.logo{
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .01em;
}
.logo span{ color: var(--brass-light); }
.logo small{
  display:block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}
nav.main-nav{ display:flex; align-items:center; gap: 36px; }
nav.main-nav a.nav-link{
  color: var(--paper);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
nav.main-nav a.nav-link::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:2px; background: var(--brass-light);
  transition: right .18s ease;
}
nav.main-nav a.nav-link:hover::after,
nav.main-nav a.nav-link.active::after{ right:0; }
.header-cta{ display:flex; align-items:center; gap:20px; }
.phone-link{ color: var(--paper); font-weight:600; font-size:15px; }
.phone-link strong{ color: var(--brass-light); }
.nav-toggle{ display:none; }

@media (max-width: 900px){
  nav.main-nav{
    position: fixed; inset: 84px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    justify-content:flex-start;
    align-items:flex-start;
    padding: 32px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  nav.main-nav.open{ transform: translateX(0); }
  .header-cta .btn{ display:none; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px;
    background:none; border:none; cursor:pointer; padding:8px;
  }
  .nav-toggle span{ width:24px; height:2px; background: var(--paper); }
}

/* ---------- Photo utility ---------- */
.photo{
  background-color: var(--walnut);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow:hidden;
  border-radius: 2px;
}
.photo::before{
  content: attr(data-caption);
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--stone);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px),
    var(--walnut);
}
.photo.has-img::before{ content:none; }
.photo-caption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(33,27,21,.85), transparent);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .03em;
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
}
.photo:hover .photo-caption{ opacity:1; transform:translateY(0); }
.photo-caption b{ color: var(--brass-light); font-weight:600; }

/* ---------- Hero: full-bleed photography ---------- */
.hero{
  position: relative;
  min-height: 86vh;
  display:flex;
  align-items:flex-end;
  color: var(--paper);
  overflow:hidden;
}
.hero-media{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center 35%;
  background-color: var(--green);
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,17,13,.55) 0%, rgba(20,17,13,.35) 40%, rgba(20,17,13,.92) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 80px 0 64px;
  width:100%;
}
.hero-content .wrap{ max-width: 760px; margin: 0; padding-left:32px; }
.hero h1{ font-size: clamp(34px, 5vw, 58px); color: var(--paper); }
.hero h1 em{ font-style: italic; color: var(--brass-light); }
.hero p.lead{ color: rgba(250,246,238,.82); font-size: 18px; max-width: 480px; }
.hero-actions{ display:flex; gap:16px; margin-top: 28px; flex-wrap:wrap; }
.trust-line{
  margin-top: 36px;
  display:flex; gap:28px; flex-wrap:wrap;
  color: rgba(250,246,238,.72); font-size: 13.5px; letter-spacing:.03em;
}
.trust-line b{ color: var(--brass-light); }

@media (max-width: 640px){
  .hero{ min-height: 76vh; }
  .hero-content .wrap{ padding-left:20px; padding-right:20px; }
}

/* ---------- Section basics ---------- */
section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px, 3.2vw, 40px); }
.section-head p{ color: var(--stone); font-size: 17px; }

/* ---------- Services ---------- */
.services-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
.service-card .photo{ aspect-ratio: 4/3; margin-bottom: 20px; }
.service-card h3{ font-size: 22px; }
.service-card p{ color: var(--stone); font-size: 15.5px; }
.service-card .eyebrow{ font-size:12px; }

@media (max-width: 760px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* ---------- Featured project spotlight ---------- */
.spotlight{ background: var(--walnut); color: var(--paper); }
.spotlight .wrap{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items:center;
}
.spotlight .photo{ aspect-ratio: 4/3; }
.spotlight .eyebrow{ color: var(--brass-light); }
.spotlight h2{ color: var(--paper); }
.spotlight p{ color: rgba(250,246,238,.72); font-size:16.5px; }
.spotlight ul{ list-style:none; padding:0; margin: 20px 0 28px; display:grid; gap:10px; }
.spotlight ul li{
  font-size: 14.5px; color: rgba(250,246,238,.85);
  padding-left: 20px; position:relative;
}
.spotlight ul li::before{
  content:""; position:absolute; left:0; top:9px;
  width:8px; height:2px; background: var(--brass-light);
}
@media (max-width: 900px){
  .spotlight .wrap{ grid-template-columns: 1fr; }
  .spotlight .photo{ order:-1; }
}

/* ---------- Why us ---------- */
.why{ background: var(--green); color: var(--paper); }
.why .section-head p{ color: rgba(250,246,238,.68); }
.why-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.why-item .dot{
  width:10px; height:10px; background: var(--brass-light);
  margin-bottom: 18px;
}
.why-item h4{ color: var(--paper); font-size: 19px; }
.why-item p{ color: rgba(250,246,238,.62); font-size: 15px; }

@media (max-width: 760px){ .why-grid{ grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-grid .photo{ aspect-ratio: auto; height:100%; }
.gallery-grid .g-large{ grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid .g-large{ grid-column: span 2; grid-row: span 1; height: 260px; }
}

/* ---------- Testimonials ---------- */
.testimonials{ background: var(--ink); color: var(--paper); }
.testi-grid{
  display:grid; grid-template-columns: repeat(2,1fr); gap: 40px;
}
.testi blockquote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height:1.5;
  margin: 0 0 18px;
  color: var(--paper);
}
.testi cite{
  font-style:normal; font-size: 13.5px; color: var(--brass-light);
  letter-spacing:.04em;
}
@media (max-width: 760px){ .testi-grid{ grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--brass);
  color: var(--ink);
  padding: 56px 0;
}
.cta-banner .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-banner h2{ font-size: 28px; margin:0; }
.cta-banner p{ margin:6px 0 0; color: rgba(33,27,21,.75); }

/* ---------- Footer ---------- */
footer{ background: var(--ink); color: var(--stone); }
.footer-grid{
  padding: 64px 0 32px;
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-grid h5{
  color: var(--paper); font-size: 13px; letter-spacing:.1em; text-transform:uppercase;
  margin-bottom: 16px; font-family: var(--font-body); font-weight:600;
}
.footer-grid a, .footer-grid p{ color: var(--stone); font-size: 14.5px; }
.footer-grid a:hover{ color: var(--brass-light); }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-bottom{
  border-top: 1px solid var(--line-light);
  padding: 22px 0;
  font-size: 13px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }

/* ===================================================================
   Contact page specific
   =================================================================== */
.page-hero{
  position: relative;
  color: var(--paper);
  min-height: 46vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.page-hero .hero-media::after{
  background: linear-gradient(180deg, rgba(20,17,13,.5) 0%, rgba(20,17,13,.9) 100%);
}
.page-hero .hero-content{ padding: 64px 0 48px; }
.page-hero .hero-content .wrap{ padding-left:32px; }
.page-hero h1{ color: var(--paper); font-size: clamp(30px, 4vw, 44px); }
.page-hero p{ color: rgba(250,246,238,.78); max-width: 560px; font-size: 17px; }
@media (max-width: 640px){ .page-hero .hero-content .wrap{ padding-left:20px; padding-right:20px; } }

.contact-wrap{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
}
@media (max-width: 900px){ .contact-wrap{ grid-template-columns: 1fr; } }

.form-card{
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border-radius: 2px;
}
.form-card h3{ color: var(--paper); }
.field{ margin-bottom: 20px; }
.field label{
  display:block; font-size: 13px; letter-spacing:.05em; text-transform:uppercase;
  color: var(--stone); margin-bottom: 8px;
}
.field input, .field select, .field textarea{
  width:100%;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--paper);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid var(--brass-light);
  outline-offset: 1px;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px){ .field-row{ grid-template-columns: 1fr; } }

.jotform-wrap{
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
  min-height: 400px;
}
.jotform-wrap iframe{ width:100% !important; border:0; }

.info-card{ display:flex; flex-direction:column; gap: 28px; }
.info-item h4{ font-size: 15px; letter-spacing:.04em; text-transform:uppercase; color: var(--brass); margin-bottom: 8px; }
.info-item p, .info-item a{ color: var(--ink); font-size: 16px; }
.info-item a:hover{ color: var(--brass); }
.hours-list{ list-style:none; padding:0; margin:0; }
.hours-list li{
  display:flex; justify-content:space-between;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink);
}
.map-embed{
  aspect-ratio: 16/10;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 2px;
}
.map-embed iframe{ width:100%; height:100%; display:block; }
