/* ===========================================
   JM Complete Carpentry & Construction
   Plain CSS — tempered warm palette
   =========================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Tempered palette — all from the same warm brown family */
  --primary: #8b5e34;          /* muted warm brown — buttons, accents */
  --primary-dark: #6d4a28;     /* darker hover state */
  --primary-content: #f5e6d0;  /* warm cream text on primary buttons */
  --accent: #c9956a;           /* soft copper — underlines, icons */
  --accent-muted: #a07850;     /* quieter version for borders */

  --bg-dark: #1c1917;          /* body foundation */
  --bg-wood: #3b2a1a;          /* header, footer, dark panels */
  --bg-wood-alt: #4a3423;      /* subtle variation */
  --bg-warm: #f5ede3;          /* light content sections */
  --bg-warm-alt: #ebe1d4;      /* alternating light sections */

  --text-dark: #2c2218;        /* main text on light bg */
  --text-muted: #6b5d50;       /* secondary text on light bg */
  --text-light: #a09080;       /* tertiary text on light bg */
  --text-on-dark: #d4c4b0;     /* body text on dark bg */
  --text-on-dark-muted: #9a8a78;
  --text-heading-dark: #d4b896; /* headings on dark bg — warm sand, not yellow */

  --border: #ddd2c4;           /* borders on light bg */
  --border-dark: rgba(255,255,255,0.08); /* borders on dark bg */

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ---- Header — dark wood ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 9px),
    linear-gradient(90deg, #3b2a1a, #4a3423 25%, #3e2d1c 50%, #4a3423 75%, #3b2a1a);
  border-bottom: 2px solid #2a1a0e;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.header-logo svg { width: 28px; height: 28px; }

/* Show full name but scale down on small screens */
.logo-suffix {
  font-weight: 400;
  opacity: 0.7;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: color 1s ease;
}

.header-nav a:hover { transition: color 0.2s ease; }

.header-nav a:hover { color: var(--text-on-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.938rem;
  font-weight: 600;
  transition: all 1s ease;
  white-space: nowrap;
}

.btn:hover { transition: all 0.2s ease; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-content);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg-warm-alt); }

/* Ghost button — for dark backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s ease, background 1s ease, border-color 1s ease, color 1s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--accent);
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.063rem;
  border-radius: var(--radius);
}

/* ---- Mobile menu ---- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(28,25,23,0.85) 0%, rgba(28,25,23,0.6) 50%, rgba(28,25,23,1) 100%),
    url('assets/558702433_122124109718978422_1840169723312663923_n.jpg') center top / cover no-repeat;
  color: #fff;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  /* Tempered gradient — warm sand to cream, not bright yellow */
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-underline {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
  text-decoration-thickness: 6px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-on-dark);
  max-width: 560px;
  margin: 24px auto 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
  background: var(--bg-warm);
}

.section-alt { background: var(--bg-warm-alt); }

/* Dark section (services) */
.section-dark {
  background: var(--bg-dark);
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
}

.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* Dark section text overrides */
.section-dark .section-label { color: var(--accent); }
.section-dark .section-header h2 { color: var(--text-heading-dark); }
.section-dark .section-header p { color: var(--text-on-dark-muted); }

/* ---- Feature / Service Grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-muted);
  background: var(--bg-warm-alt);
  transition: box-shadow 1s ease, transform 1s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Dark section card overrides */
.section-dark .feature-card {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-dark);
  border-left-color: var(--accent-muted);
}

.section-dark .feature-card h3 { color: var(--text-heading-dark); }
.section-dark .feature-card p { color: var(--text-on-dark-muted); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(201,149,106,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.063rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Extra services */
.extra-services {
  margin-top: 40px;
  text-align: center;
  padding: 20px 24px;
  border-radius: var(--radius);
}

.section-dark .extra-services {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
}

.section-dark .extra-services p {
  color: var(--text-on-dark-muted);
}

.section-dark .extra-services strong {
  color: var(--text-on-dark);
}

.extra-services p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Gallery ---- */
.gallery-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all 1s ease;
}

.filter-btn:hover { transition: all 0.2s ease; }

.filter-btn:hover {
  color: var(--text-dark);
  border-color: var(--text-light);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--primary-content);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 1s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.review-stars { margin-bottom: 12px; }
.review-stars .star { color: var(--accent); font-size: 1.125rem; }

.review-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.813rem;
  color: var(--text-light);
  font-weight: 500;
}

.reviews-cta {
  text-align: center;
  margin-top: 32px;
}

/* ---- About split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.split-content p {
  font-size: 1.063rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.938rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-warm-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b5d50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 96px 0;
  background: var(--bg-dark);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-heading-dark);
}

.cta-banner p {
  font-size: 1.125rem;
  color: var(--text-on-dark-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-banner .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-banner .btn-group .btn {
  min-width: 220px;
  text-align: center;
}

/* ---- Footer — dark wood ---- */
.footer {
  padding: 64px 0 32px;
  background:
    repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 9px),
    linear-gradient(90deg, #3b2a1a, #4a3423 25%, #3e2d1c 50%, #4a3423 75%, #3b2a1a);
  color: var(--text-on-dark);
  border-top: 2px solid #2a1a0e;
}

.footer .header-logo { color: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  padding: 4px 0;
  transition: color 1s ease;
}

.footer-col a:hover {
  color: var(--text-on-dark);
  transition: color 0.2s ease;
}

.footer-link-icon {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.footer-link-icon svg { flex-shrink: 0; opacity: 0.5; }
.footer-link-icon:hover svg { opacity: 0.8; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  font-size: 0.813rem;
  color: rgba(255,255,255,0.3);
}

/* ---- Site credit below footer ---- */
.site-credit {
  text-align: center;
  padding: 12px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  background: var(--bg-dark);
}

.site-credit a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 1s ease;
}

.site-credit a:hover {
  color: var(--accent);
  transition: color 0.2s ease;
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform 1s ease, box-shadow 1s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---- Mobile nav ---- */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg-wood);
  border-bottom: 2px solid #2a1a0e;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-on-dark);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav .btn { margin-top: 8px; text-align: center; }

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: transparent;
}

.mobile-backdrop.active { display: block; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  /* Hide desktop nav on tablets — not enough room with full logo */
  .header-nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .mobile-toggle { display: flex; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header-logo { font-size: 0.85rem; }
  .header-logo svg { width: 20px; height: 20px; }

  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.063rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }

  .section { padding: 64px 0; }
  .section-header h2 { font-size: 1.75rem; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }

  .cta-banner { padding: 64px 0; }
  .cta-banner h2 { font-size: 1.75rem; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .split-content h2 { font-size: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
