/* ============================================================
   J Construction — Tulsa
   Dark editorial theme with cream contrast sections
   ============================================================ */

:root {
  --bg-dark: #0f0b08;
  --bg-dark-2: #181210;
  --bg-cream: #f5ede0;
  --bg-cream-2: #ece2d1;
  --text-light: #f5ede0;
  --text-muted-light: #b8aea0;
  --text-dark: #1a1410;
  --text-muted-dark: #6b5d50;
  --accent: #d9582b;
  --accent-hover: #b8431d;
  --border-dark: #2a221c;
  --border-cream: #d9cfbe;
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.5);
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=DM+Sans:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.7; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wide { max-width: 1480px; margin: 0 auto; padding: 0 32px; }

section { padding: 96px 0; position: relative; }

/* Sections */
.dark { background: var(--bg-dark); color: var(--text-light); }
.cream { background: var(--bg-cream); color: var(--text-dark); }

.dark .muted { color: var(--text-muted-light); }
.cream .muted { color: var(--text-muted-dark); }

/* Subtle grid texture on dark sections */
.dark.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Typography */
.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display .italic { font-style: italic; font-weight: 400; color: var(--accent); }

h1.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
h1.hero-title .italic { font-style: italic; font-weight: 400; color: var(--accent); }

h2.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h2.section-title .italic { font-style: italic; font-weight: 400; color: var(--accent); }

h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}
.cream .label { color: var(--text-muted-dark); }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 620px;
  color: var(--text-muted-light);
}
.cream .lead { color: var(--text-muted-dark); }

p + p { margin-top: 1em; }

/* Buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); opacity: 1; }
.btn-outline { background: transparent; color: var(--text-light); border-color: var(--text-light); }
.btn-outline:hover { background: var(--text-light); color: var(--text-dark); opacity: 1; }
.cream .btn-outline { color: var(--text-dark); border-color: var(--text-dark); }
.cream .btn-outline:hover { background: var(--text-dark); color: var(--bg-cream); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 11, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.wordmark .name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.wordmark .name .dot { color: var(--accent); }
.wordmark .sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}
nav.primary { display: flex; gap: 36px; align-items: center; }
nav.primary a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
nav.primary a.cta {
  background: var(--accent);
  padding: 12px 22px;
  font-weight: 600;
}
nav.primary a.cta:hover { background: var(--accent-hover); opacity: 1; }
nav.primary .phone { color: var(--text-muted-light); }

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero.with-image {
  min-height: 92vh;
  padding: 120px 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15,11,8,0.4) 0%,
    rgba(15,11,8,0.7) 60%,
    rgba(15,11,8,0.95) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 980px; }
.hero .lead { color: rgba(245, 237, 224, 0.85); font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 680px; }

/* Page hero (smaller) */
.page-hero { padding: 140px 0 80px; position: relative; }
.page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.page-hero h1 .italic { font-style: italic; font-weight: 400; color: var(--accent); }

/* Feature row (image + text) */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row.reversed { grid-template-columns: 1fr 1.1fr; }
.feature-row.reversed .feature-text { order: 1; }
.feature-row.reversed .feature-image { order: 2; }
.feature-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.feature-image:hover img { transform: scale(1.03); }
.feature-text .eyebrow .num { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }

/* Principles grid */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 80px;
}
.principle {
  border-top: 1px solid var(--border-dark);
  padding-top: 32px;
}
.cream .principle { border-top-color: var(--border-cream); }
.principle .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.principle h3 { margin-bottom: 16px; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(15,11,8,0.85) 0%, rgba(15,11,8,0) 100%);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }
.gallery-item .caption .tag {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Gallery grid spans — varied sizes for editorial feel */
.gallery-item.span-7 { grid-column: span 7; aspect-ratio: 4 / 3; }
.gallery-item.span-5 { grid-column: span 5; aspect-ratio: 4 / 5; }
.gallery-item.span-6 { grid-column: span 6; aspect-ratio: 4 / 3; }
.gallery-item.span-4 { grid-column: span 4; aspect-ratio: 4 / 5; }
.gallery-item.span-8 { grid-column: span 8; aspect-ratio: 16 / 9; }
.gallery-item.span-3 { grid-column: span 3; aspect-ratio: 3 / 4; }

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
  border-top: 1px solid var(--border-dark);
  padding-top: 48px;
}
.cream .stats { border-top-color: var(--border-cream); }
.stat .label { display: block; margin-bottom: 10px; }
.stat .value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* CTA */
.cta-section { padding: 120px 0; text-align: center; }
.cta-section h2 { margin-bottom: 32px; }
.cta-section .phone {
  display: block;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 16px;
}
.cta-section .phone a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-light);
  text-transform: none;
  display: inline-block;
  margin-left: 16px;
}

/* Form */
.form-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-details .info-block { margin-bottom: 36px; }
.contact-details .info-block .label { display: block; margin-bottom: 8px; }
.contact-details .info-block .value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

form .field { margin-bottom: 24px; }
form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 8px;
}
form label .req { color: var(--accent); }
form input, form select, form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--border-cream);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.7);
}
form textarea { min-height: 140px; resize: vertical; font-family: inherit; }
form .honeypot { position: absolute; left: -9999px; }
form button[type="submit"] { margin-top: 12px; }
form .form-footnote { font-size: 13px; color: var(--text-muted-dark); margin-top: 16px; }
form .success {
  background: var(--accent);
  color: #fff;
  padding: 24px;
  margin-bottom: 24px;
  display: none;
}
.success-active form .success { display: block; }

/* Footer */
footer.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted-light); font-size: 15px; }
.footer-about .wordmark .name { font-size: 24px; }
.footer-about p { color: var(--text-muted-light); font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted-light);
}

/* Service area grid */
.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}
.service-area-list span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}
.service-area-list span:not(:last-child)::after {
  content: '·';
  color: var(--accent);
  margin-left: 16px;
}

/* About specific */
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-dark-2);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .photo-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(15,11,8,0.7);
  padding: 12px 18px;
  backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .container, .wide { padding: 0 24px; }
  nav.primary { display: none; }
  nav.primary.mobile-open { display: flex; }
  nav.primary .phone { display: none; }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 8px 12px;
  }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reversed .feature-text { order: 2; }
  .feature-row.reversed .feature-image { order: 1; }
  .principles { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .gallery-item.span-7, .gallery-item.span-5,
  .gallery-item.span-6, .gallery-item.span-4,
  .gallery-item.span-8, .gallery-item.span-3 {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }
  .gallery-item .caption { opacity: 1; transform: translateY(0); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .form-section { grid-template-columns: 1fr; gap: 48px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .cta-section .phone a { display: block; margin-left: 0; margin-top: 8px; }
}
.menu-toggle { display: none; }
