/* ==========================================================================
   SECTION 1 - CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  --bg-primary: #1a1a18;
  --bg-secondary: #222220;
  --bg-card: #2a2a27;
  --accent-gold: #c9a96e;
  --accent-gold-light: #e8c98a;
  --text-primary: #f5f0e8;
  --text-muted: #a09a8e;
  --border: rgba(201, 169, 110, 0.2);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --max-width: 1200px;
  --radius: 4px;
  --transition: 0.3s ease;
}

/* ==========================================================================
   SECTION 2 - CSS RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; }
button { cursor: pointer; }

/* ==========================================================================
   SECTION 3 - BASE TYPOGRAPHY
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

a { color: var(--accent-gold); }

strong {
  color: var(--text-primary);
  font-weight: 600;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ==========================================================================
   SECTION 4 - BUTTONS
   ========================================================================== */

.btn-primary {
  display: inline-block;
  background: var(--accent-gold);
  color: #1a1a18;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}
.btn-primary:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  color: #1a1a18;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent-gold);
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}
.btn-outline:hover {
  background: var(--accent-gold);
  color: #1a1a18;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 5 - CARDS
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,169,110,0.1);
}

/* ==========================================================================
   SECTION 6 - BADGES
   ========================================================================== */

.badge {
  display: inline-block;
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  transition: var(--transition);
  margin: 0.25rem;
}
.badge:hover {
  background: var(--accent-gold);
  color: #1a1a18;
}

/* ==========================================================================
   SECTION 7 - LAYOUT
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

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

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
}

/* ==========================================================================
   SECTION 8 - UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.mb-0 { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* animate-in: visible by default so content never disappears if JS is slow/absent */
.animate-in {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* .js class added synchronously in <head> by inline script — only THEN do we hide elements for animation */
.js .animate-in {
  opacity: 0;
  transform: translateY(28px);
}
.js .animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.js .animate-in:nth-child(2) { transition-delay: 0.1s; }
.js .animate-in:nth-child(3) { transition-delay: 0.2s; }
.js .animate-in:nth-child(4) { transition-delay: 0.3s; }
.js .animate-in:nth-child(5) { transition-delay: 0.4s; }
.js .animate-in:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   SECTION 9 - NAVIGATION
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled {
  background: rgba(26,26,24,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--accent-gold); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }
.nav-phone {
  color: var(--accent-gold);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
}
.mobile-menu a:hover { color: var(--accent-gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   SECTION 10 - FOOTER
   ========================================================================== */

.site-footer {
  background: #111110;
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); margin-bottom: 1rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-phone { color: var(--accent-gold); font-size: 1.05rem; font-weight: 500; }
.footer-email { color: var(--text-muted); font-size: 0.875rem; }
.footer-heading { font-family: var(--font-display); font-size: 1rem; color: var(--text-primary); margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.825rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION 11 - FORMS
   ========================================================================== */

.lead-form { max-width: 680px; margin: 0 auto; }
.lead-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--accent-gold);
}
.lead-form textarea { min-height: 130px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.75rem;
}

/* ==========================================================================
   SECTION 12 - GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,24,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 0 1rem;
}
.gallery-item figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
}
.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .service-gallery { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION 13 - TRUST BAR
   ========================================================================== */

.trust-bar {
  background: var(--bg-secondary);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.trust-items {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { color: var(--accent-gold); flex-shrink: 0; }
