:root {
  --bg-primary: #fcfbfa;
  --bg-secondary: #f4f1ea;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --accent-primary: #c2410c;
  --accent-secondary: #0f172a;
  --border-color: #e2e8f0;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-secondary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 1rem;
  z-index: 9999;
  transition: top 0.2s;
}

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

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

*:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Header & Navigation */
header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  width: 32px;
  height: 32px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 999;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Main layouts */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

section {
  padding: 4rem 0;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--accent-secondary);
  color: #ffffff;
}

/* Statistics */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background-color: var(--bg-secondary);
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Services and Grid Layouts */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* Custom Features Block (Asymmetric) */
.features-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.features-image img {
  width: 100%;
  border-radius: 8px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-item i {
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

/* Pricing Card Layout */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}

.pricing-card.popular {
  border: 2px solid var(--accent-primary);
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.08);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.5rem;
  color: var(--accent-secondary);
  font-weight: 700;
  margin: 1.5rem 0;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

/* Contact and Forms */
.form-section {
  background-color: var(--bg-secondary);
  padding: 4rem 2rem;
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.form-wrapper form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-primary);
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent-primary);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.3rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  overflow: hidden;
}

.faq-header {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
}

/* Legal Pages Styling */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.legal-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-container p, .legal-container ul {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.legal-container ul {
  padding-left: 2rem;
}

/* Trust Layer */
.trust-layer {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  margin-top: 4rem;
}

.trust-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.trust-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.trust-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--accent-secondary);
  color: #ffffff;
  padding: 4rem 2rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 3rem;
}

.footer-about h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 450px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 1.5rem;
  z-index: 10000;
  border: 1px solid var(--border-color);
}

.cookie-banner h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-banner-buttons .btn-secondary {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-banner-buttons .btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive Grid Adjustments */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .pricing-card.popular {
    transform: scale(1);
  }
  .features-asymmetric {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  nav ul {
    display: none;
  }
  .burger-menu {
    display: block;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .form-wrapper form {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .stats {
    grid-template-columns: 1fr;
  }
}