:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --fg: #1C1917;
  --muted: #78716C;
  --primary: #B45309;
  --primary-hover: #92400E;
  --accent: #15803D;
  --border: #E7E5E4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none; }
.muted { color: var(--muted); }

/* ---- Nav ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.15s;
}
.nav-phone:hover { color: var(--primary-hover); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-full { width: 100%; }
button.btn { font-family: inherit; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Sections ---- */
.section { padding: 4rem 1rem; }
.bg-surface { background: var(--surface); }
.section-title { font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: 3rem; }
.section-subtitle { text-align: center; color: var(--muted); margin-top: -2rem; margin-bottom: 3rem; }

/* ---- Hero ---- */
.hero {
  padding: 5rem 1rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.card-icon { width: 32px; height: 32px; color: var(--primary); margin-bottom: 1rem; }
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.875rem; color: var(--muted); }

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.gallery-card-img { aspect-ratio: 4/3; overflow: hidden; }
.gallery-card-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-title { padding: 1rem; font-weight: 600; }
.empty-msg { text-align: center; color: var(--muted); padding: 3rem 0; }

/* before/after slider */
.ba-slider {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}
.ba-slider img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { position: absolute; inset: 0; overflow: hidden; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: white;
  cursor: col-resize;
  z-index: 10;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.ba-handle::before {
  content: '\2039\00a0\203A';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  font-size: 18px; font-weight: bold;
  color: var(--muted);
  letter-spacing: 8px;
}
.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  pointer-events: none;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

/* ---- Reviews ---- */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.review-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.review-name { font-weight: 600; }
.stars { color: var(--primary); letter-spacing: 2px; }
.review-text { color: var(--muted); }

/* ---- Forms ---- */
.form-wrap { max-width: 480px; margin: 0 auto; }
.form { margin-top: 1.5rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(180,83,9,0.15);
}
.field textarea { resize: none; }
.form-msg { font-size: 0.875rem; text-align: center; margin-top: 1rem; }
.form-msg.error { color: #dc2626; }
.form-msg.success { color: var(--accent); }

/* star rating input */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input { display: none; }
.star-rating label {
  cursor: pointer;
  font-size: 28px;
  color: var(--border);
  transition: color 0.1s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--primary);
}

/* ---- Footer ---- */
footer {
  background: var(--fg);
  color: #a8a29e;
  padding: 3rem 1rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
footer h3, footer h4 { color: white; margin-bottom: 0.75rem; }
footer h3 { font-size: 1.125rem; }
footer h4 { font-size: 1rem; }
footer p { font-size: 0.875rem; }
footer a { transition: color 0.15s; }
footer a:hover { color: white; }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #44403c;
  text-align: center;
  font-size: 0.875rem;
  color: #78716c;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 3rem; }
  .hero { padding: 7rem 1rem; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
