/* ==========================================================================
   Double J Custom Builders LLC — Shared Stylesheet
   Brand: dark red / near-black / ivory / warm taupe / slate gray
   Type:  Times-Bold (serif) headings, Helvetica body
   ========================================================================== */

:root {
  --black: #1a1a1a;
  --cream: #f5f3f1;
  --red: #6b1420;
  --red-bright: #e2505a;
  --gray: #a8a29c;
  --taupe: #c9c2be;
  --slate: #4a4a4a;

  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  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-heading);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.7rem;
  display: inline-block;
}

.rule {
  width: 54px;
  height: 2px;
  background: var(--red);
  border: none;
  margin: 0.9rem 0 1.4rem;
}

.rule--center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-bright); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--taupe);
}
.btn-outline:hover { background: rgba(245, 243, 241, 0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--slate);
}
.btn-outline-dark:hover { background: rgba(26, 26, 26, 0.06); }

.btn-block { display: block; width: 100%; }

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

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-heading);
}

.brand-logo {
  width: 46px;
  height: 46px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-logo.spin { transform: rotate(360deg); }

.brand-text {
  color: var(--cream);
  font-size: 1.02rem;
  line-height: 1.1;
  text-align: left;
}

.brand-text strong { display: block; font-size: 1.05rem; }
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--red-bright);
  color: var(--red-bright);
}

.nav-cta {
  white-space: nowrap;
  padding: 0.6rem 1.2rem !important;
  background: var(--red);
  color: var(--cream) !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--red-bright); color: var(--cream) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--cream);
  display: block;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid #2c2c2c;
  }

  .nav-links.open { max-height: 420px; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #2c2c2c;
  }

  .nav-cta { margin: 0.9rem 1.5rem; width: calc(100% - 3rem); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  position: relative;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 { color: var(--cream); }

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.1rem;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--taupe);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-service-area {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: var(--gray);
}

.hero-service-area strong { color: var(--cream); }

.hero-media {
  border: 1px solid #333;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--black);
  color: var(--cream);
  padding: 3rem 0 2.6rem;
  text-align: center;
}

.page-header h1 { color: var(--cream); }
.page-header .rule { margin-left: auto; margin-right: auto; }
.page-header p { color: var(--taupe); max-width: 40em; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--alt { background: #efeae5; }
.section--dark { background: var(--black); color: var(--cream); }
.section--dark h2 { color: var(--cream); }
.section--dark p { color: var(--taupe); }

.section-head { max-width: 42em; margin-bottom: 2.4rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #e4ded8;
  border-radius: var(--radius);
  padding: 1.8rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.card--dark {
  background: #232323;
  border: 1px solid #333;
}
.card--dark h3 { color: var(--cream); }
.card--dark p { color: var(--taupe); }

.icon-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  border: 1px solid #e4ded8;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem 0.8rem;
  background: linear-gradient(0deg, rgba(26,26,26,0.85), rgba(26,26,26,0));
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--slate);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-btn:hover { background: rgba(74,74,74,0.08); }

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border: 1px solid #444;
  border-radius: var(--radius);
}
.lightbox-caption {
  position: absolute;
  bottom: 1.6rem;
  left: 0; right: 0;
  text-align: center;
  color: var(--cream);
  font-size: 0.9rem;
}
.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: none;
  border: 1px solid var(--taupe);
  color: var(--cream);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Video block (progressive enhancement) ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #333;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Values / stats ---------- */
.stat {
  text-align: center;
  padding: 1.4rem 1rem;
}
.stat .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--red);
  font-weight: 700;
}
.stat .label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.3rem;
}

/* ---------- Timeline (About) ---------- */
.timeline { border-left: 2px solid var(--red); padding-left: 1.6rem; }
.timeline-item { margin-bottom: 1.8rem; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.72rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}
.timeline-item h4 { margin-bottom: 0.3rem; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-grid .full { grid-column: 1 / -1; }

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

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--slate);
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfc7c0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--black);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.9rem;
}

.form-success {
  display: none;
  background: #eaf3ea;
  border: 1px solid #bcd9bc;
  color: #274d27;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.form-success.show { display: block; }

/* ---------- Contact strip ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media (max-width: 780px) {
  .contact-strip { grid-template-columns: 1fr; }
}

.contact-strip .item {
  border-left: 2px solid var(--red);
  padding-left: 1rem;
}
.contact-strip .item h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--taupe);
  padding: 3rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { color: var(--cream); font-family: var(--font-heading); font-size: 1.05rem; }

.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.site-footer a:hover { color: var(--red-bright); }

.footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
