:root {
  --primary: #2c3e50;
  --secondary: #8b4513;
  --accent: #c0392b;
  --text: #333;
  --text-light: #666;
  --bg: #fdfbf7;
  --bg-alt: #f5f0e8;
  --white: #fff;
  --border: #e0d5c7;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

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

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

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

/* 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: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text);
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-menu a:hover::after { width: 100%; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

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

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

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

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

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

.mobile-nav a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a252f 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='10' y='20' width='20' height='60' fill='%23ffffff10'/%3E%3Crect x='35' y='15' width='20' height='70' fill='%23ffffff08'/%3E%3Crect x='60' y='25' width='20' height='55' fill='%23ffffff05'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: #6d3610;
  color: var(--white);
}

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

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

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

.btn-light:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 4rem 0;
}

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

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

.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.0625rem;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  flex: 1 1 100%;
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

/* Service Cards */
.service-card {
  flex: 1 1 100%;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card-header {
  background: var(--secondary);
  color: var(--white);
  padding: 1.5rem;
}

.service-card-header h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.service-card-body {
  padding: 1.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.service-features li:last-child { border-bottom: none; }

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.feature-content h3 { margin-bottom: 0.5rem; }

/* Alternating Blocks */
.alt-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.alt-block-visual {
  width: 100%;
  max-width: 400px;
}

.alt-block-content { flex: 1; }

/* Statistics */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
  flex: 1 1 calc(50% - 1rem);
  min-width: 140px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

.section-dark .stat-number { color: var(--white); }

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.section-dark .stat-label { color: rgba(255,255,255,0.8); }

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

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

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

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

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

/* Quote Section */
.quote-section {
  text-align: center;
  padding: 4rem 2rem;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary);
  max-width: 800px;
  margin: 0 auto 1rem;
}

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

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

.faq-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-question:focus {
  outline: 2px solid var(--secondary);
  outline-offset: -2px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
}

.faq-item.active .faq-answer { display: block; }

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h4 { margin-bottom: 0.25rem; }

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

/* Two Column Layout */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.two-col > * { flex: 1; }

/* List Styles */
.check-list {
  list-style: none;
}

.check-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(-45deg);
}

/* Industries */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.industry-tag {
  background: var(--bg-alt);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  color: var(--text);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.timeline-year {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  flex: 1 1 100%;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 0.375rem 0;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a { color: rgba(255,255,255,0.7); }
.footer-legal a:hover { color: var(--white); }

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

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

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

.cookie-text {
  font-size: 0.9375rem;
}

.cookie-text a { color: var(--white); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

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

.cookie-btn-accept:hover { background: #6d3610; }

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

.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;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

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

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header h3 { margin-bottom: 0; }

.cookie-modal-close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-body { padding: 1.5rem; }

.cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option h4 { margin-bottom: 0; }

.cookie-option p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 13px;
  transition: var(--transition);
}

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

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

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

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

.cookie-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Page Header */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
}

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

.legal-content h2:first-child { margin-top: 0; }

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li { margin-bottom: 0.5rem; }

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 5rem 0;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

/* Comparison Table */
.comparison {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

.comparison-table tr:hover { background: var(--bg-alt); }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10001;
}

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

/* Panel */
.panel {
  background: var(--secondary);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
}

.panel h3 { color: var(--white); }

/* Media Queries */
@media (min-width: 576px) {
  .card { flex: 1 1 calc(50% - 0.75rem); }
  .service-card { flex: 1 1 calc(50% - 0.75rem); }
  .stat-item { flex: 1 1 auto; }
}

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero { padding: 5rem 0; }
  .hero h1 { font-size: 2.75rem; }

  .section { padding: 5rem 0; }

  .nav-menu { display: flex; }
  .menu-toggle { display: none; }

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

  .testimonial { flex: 1 1 calc(50% - 1rem); }

  .feature-item {
    flex-direction: row;
    align-items: flex-start;
  }

  .alt-block { flex-direction: row; }
  .alt-block.reverse { flex-direction: row-reverse; }

  .two-col { flex-direction: row; }

  .footer-col { flex: 1 1 calc(25% - 1.5rem); }

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

@media (min-width: 992px) {
  .card { flex: 1 1 calc(33.333% - 1rem); }
  .service-card { flex: 1 1 calc(33.333% - 1rem); }

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

  .process-steps {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .process-step { flex: 1 1 calc(50% - 0.75rem); }
}

@media (min-width: 1200px) {
  .container { padding: 0 2rem; }
}
