:root {
  --primary-gold: #B89966;
  --dark-text: #333333;
  --light-bg: #F8F8F8;
  --green-accent: #4A6D3A;
  --white: #FFFFFF;
  --font-primary: 'Inter', sans-serif;
  --font-fallback: sans-serif;
}

@font-face {
  font-family: 'Inter';
  src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
  font-display: swap;
}

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

html {
  font-family: var(--font-primary), var(--font-fallback);
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; position: relative; padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* Micro-interactions: Accent Line Under Headings */
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-gold);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}
@media (min-width: 1024px) {
  h2::after {
    transform: scaleX(0);
  }
  h2:hover::after,
  section:hover h2::after {
    transform: scaleX(1);
  }
}

/* Custom Cursor */
@media (min-width: 1024px) {
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(184, 153, 102, 0.4);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }
  body:hover .custom-cursor {
    opacity: 1;
  }
  a:hover ~ .custom-cursor,
  button:hover ~ .custom-cursor,
  input:hover ~ .custom-cursor,
  textarea:hover ~ .custom-cursor {
    width: 0; height: 0; opacity: 0;
  }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-text); color: var(--white); }
.text-gold { color: var(--primary-gold); }

/* Buttons */
button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  font-size: 1rem;
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: #a38555;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  outline: none;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--primary-gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  outline: none;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: padding 0.2s ease, height 0.2s ease;
  height: 80px;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: 60px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 60px;
  width: auto;
  transition: height 0.2s ease;
}

.site-header.scrolled .logo img {
  height: 45px;
}

.main-nav { display: none; }
.header-actions { display: none; }

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle svg { width: 30px; height: 30px; fill: var(--dark-text); }

/* Desktop Nav */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: flex;
    gap: 2rem;
  }
  .main-nav a {
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
  }
  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: all 0.2s ease;
    transform: translateX(-50%);
  }
  .main-nav a:hover::after,
  .main-nav a:focus::after {
    width: 100%;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .tel-link {
    font-weight: 600;
    color: var(--primary-gold);
  }
}

/* Mobile Nav Overlay */
@media (min-width: 1024px) {
  .mobile-nav-overlay { display: none !important; }
}
.mobile-nav-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  overflow-y: auto;
}

.site-header.scrolled + .mobile-nav-overlay {
  top: 60px;
  height: calc(100vh - 60px);
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-overlay a {
  font-size: 1.25rem;
  font-weight: 500;
}
.mobile-nav-overlay .tel-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
  .hero-content h1 { font-size: 4rem; }
  .hero-content p { font-size: 1.5rem; }
}

/* Generic Inner Hero Banner */
.hero-banner {
  background-color: var(--dark-text);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.hero-banner h1 {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Service Cards */
.service-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
  display: block;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.service-icon {
  width: 48px;
  height: 48px;
  fill: var(--primary-gold);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease-in-out;
}
@media (min-width: 1024px) {
  .service-card:hover .service-icon {
    transform: rotate(5deg);
  }
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}
.trust-badge {
  text-align: center;
  transition: transform 0.1s ease;
}
.trust-badge:hover {
  transform: scale(1.02);
}
.trust-badge img {
  height: 80px;
  width: auto;
  margin: 0 auto 1rem;
}
@media (min-width: 768px) {
  .trust-badges { flex-direction: row; justify-content: center; gap: 4rem; }
}

/* Testimonials Carousel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
}
.testimonial-slide {
  display: none;
  animation: slideInOut 0.5s ease-in-out;
}
.testimonial-slide.active {
  display: block;
}
.testimonial-slide blockquote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}
.testimonial-slide .client-name {
  font-weight: 600;
  color: var(--primary-gold);
}
.carousel-nav-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
}
.nav-dot.active {
  background-color: var(--primary-gold);
}
@keyframes slideInOut {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Final CTA Section */
.cta-final {
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  position: relative;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  transition: background 0.2s ease;
}
.cta-final:hover::before {
  background: rgba(0,0,0,0.8);
}
.cta-final .container {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  background-color: var(--dark-text);
  color: var(--light-bg);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.footer-col h4 {
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
}
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a:hover { color: var(--primary-gold); }
.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.social-icons svg {
  width: 24px; height: 24px; fill: var(--white);
  transition: fill 0.2s;
}
.social-icons a:hover svg { fill: var(--primary-gold); }
.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
}

/* Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease-out;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(125, 175, 108, 0.5);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .form-row { flex-direction: row; }
  .form-row .form-group { flex: 1; margin-bottom: 0; }
}

/* Accordion */
.accordion-container details {
  background: var(--light-bg);
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}
.accordion-container summary {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.accordion-container summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-gold);
}
.accordion-container details[open] summary::after {
  content: '-';
}
.accordion-container summary:hover {
  color: var(--primary-gold);
}
.accordion-content {
  padding: 0 1.5rem 1.5rem;
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Team Card */
.team-member-card {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}
.team-member-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary-gold);
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}
.pricing-table th, .pricing-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.pricing-table th {
  background-color: var(--light-bg);
  font-weight: 600;
}

/* Process List */
.process-list {
  counter-reset: process-counter;
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}
.process-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}
.process-list li::before {
  counter-increment: process-counter;
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.checklist li svg {
  width: 24px;
  height: 24px;
  fill: var(--green-accent);
  flex-shrink: 0;
}

/* Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }

/* Custom Parallax */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 1023px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}
