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

:root {
  --primary: #C9460C;
  --primary-dark: #9E3609;
  --secondary: #2B2B2B;
  --accent: #FFD700;
  --text: #333333;
  --text-light: #666666;
  --bg: #FAFAFA;
  --bg-alt: #F0EDEA;
  --white: #FFFFFF;
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-desktop a {
  color: var(--secondary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  padding: 20px;
}

.nav-mobile li {
  border-bottom: 1px solid var(--bg-alt);
}

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

.nav-mobile a {
  display: block;
  padding: 15px 0;
  color: var(--secondary);
  font-weight: 500;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

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

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

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

.btn-secondary:hover {
  background: var(--white);
  color: var(--secondary);
}

/* Sections */
.section {
  padding: 60px 20px;
}

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

.section-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-light);
}

/* Services */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.service-item {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.service-item h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.service-item p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.service-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.service-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* About */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  flex: 1 1 120px;
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--secondary);
}

.contact-item p {
  color: var(--text-light);
}

/* Thank You Page */
.thank-you {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 30px;
}

.thank-you h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.thank-you p {
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 500px;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--secondary);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: var(--secondary);
}

.legal-content p {
  margin-bottom: 15px;
}

.legal-content ul {
  margin: 15px 0 15px 25px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 50px 20px 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
  color: var(--white);
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-content p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: all var(--transition);
}

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

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

.cookie-btn-settings {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.cookie-btn-settings:hover {
  border-color: var(--white);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.8);
}

.cookie-btn-reject:hover {
  color: var(--white);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal-header {
  padding: 25px 25px 0;
}

.cookie-modal-header h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.cookie-modal-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.cookie-modal-body {
  padding: 25px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--secondary);
}

.cookie-option-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: var(--transition);
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 0 25px 25px;
  display: flex;
  gap: 10px;
}

.cookie-modal-footer .btn {
  flex: 1;
  text-align: center;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .hero {
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
  }

  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-item {
    flex: 1 1 calc(50% - 15px);
  }

  .testimonials {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonial-card {
    flex: 1 1 calc(50% - 15px);
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-text {
    flex: 2;
  }

  .about-stats {
    flex: 1;
    flex-direction: column;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-item {
    flex: 1 1 calc(50% - 10px);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-section {
    flex: 1;
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-content p {
    flex: 1;
    margin-right: 30px;
  }

  .cookie-buttons {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .feature-card {
    flex: 1 1 calc(33.333% - 20px);
  }

  .service-item {
    flex: 1 1 calc(33.333% - 20px);
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(201, 70, 12, 0.3);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  z-index: 10001;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}