@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --primary: #B85C38;
  --accent: #6B705C;
  --bg: #F5EFE6;
  --surface: #EAE0D1;
  --text: #2C1E16;
  --muted: #7A6855;
  --shadow-offset: 6px;
  --shadow-color: var(--primary);
  --card-shadow: 6px 6px 0 var(--primary);
  --card-shadow-hover: 8px 8px 0 var(--primary);
  --btn-shadow: 4px 4px 0 var(--text);
  --btn-shadow-hover: 6px 6px 0 var(--text);
  --transition-speed: 0.2s;
  --header-height: 72px;
  --container-max: 1200px;
  --container-padding: 1.25rem;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

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

.text-muted {
  color: var(--muted);
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: 0;
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  transition: transform var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--card-shadow-hover);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 2px solid var(--text);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-speed) ease,
              background var(--transition-speed) ease;
}

.header.scrolled {
  box-shadow: 0 4px 12px rgba(44, 30, 22, 0.15);
  background: var(--surface);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.25rem 0;
  position: relative;
}

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

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

.nav-menu a:hover {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--primary);
  font-size: 1.25rem;
  color: var(--text);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85));
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  color: var(--bg);
  margin-bottom: 1.25rem;
}

.hero-content p {
  color: var(--surface);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   PHOTO BACKGROUND OVERLAY
   ============================================ */
.has-photo-bg {
  position: relative;
  isolation: isolate;
}

.has-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85));
  z-index: 0;
}

.has-photo-bg > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  background: var(--bg);
}

.feature-card {
  text-align: left;
}

.feature-card .card-icon {
  border-radius: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--surface);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .service-price {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.service-card .service-features {
  margin: 1rem 0;
}

.service-card .service-features li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--muted);
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--bg);
}

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

.about-image {
  border: 2px solid var(--text);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--text);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonial-section {
  position: relative;
  isolation: isolate;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
}

.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85));
  z-index: 0;
}

.testimonial-section > * {
  position: relative;
  z-index: 1;
}

.testimonial-section .section-header h2 {
  color: var(--bg);
}

.testimonial-section .section-header p {
  color: var(--surface);
}

.testimonial-card {
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: 0;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.testimonial-card .quote-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card .quote-text::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--primary);
  font-style: normal;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--primary);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--bg);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--surface);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--text);
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--btn-shadow-hover);
  color: var(--bg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--btn-shadow);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--btn-shadow-hover);
  color: var(--text);
}

.cta-button {
  background: var(--bg);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--text);
}

.cta-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--text);
  color: var(--text);
}

.form-submit {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--btn-shadow);
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.form-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--btn-shadow-hover);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

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

.contact-form-wrapper {
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

/* ============================================
   CONTACT ROWS
   ============================================ */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-row .contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--primary);
  line-height: 1.4;
}

.contact-row .contact-info strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-row .contact-info span,
.contact-row .contact-info a {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: var(--surface);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--accent);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9rem;
  transition: background var(--transition-speed) ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--bg);
}

/* ============================================
   COOKIE POPUP
   ============================================ */
.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  max-width: 360px;
  width: calc(100% - 3rem);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-popup.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-popup h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cookie-popup p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookie-popup-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-popup-actions .btn-primary,
.cookie-popup-actions .btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============================================
   POLICY PAGES
   ============================================ */
.policy-section {
  padding: 4rem 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}

.policy-content h1 {
  margin-bottom: 0.5rem;
}

.policy-content .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.policy-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content p {
  color: var(--muted);
  line-height: 1.7;
}

.policy-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.policy-content ul li {
  list-style: disc;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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

/* ============================================
   RESPONSIVE: TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .section {
    padding: 5rem 0;
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-section {
    min-height: 75vh;
  }
}

/* ============================================
   RESPONSIVE: DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
  }

  .section {
    padding: 6rem 0;
  }

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

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .hero-section {
    min-height: 80vh;
  }

  .about-grid {
    gap: 4rem;
  }
}

/* ============================================
   MOBILE NAVIGATION (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem;
    border-top: 1px solid var(--muted);
  }

  .nav-menu.open a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--surface);
  }

  .nav-menu.open a:last-child {
    border-bottom: none;
  }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@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;
  }

  html {
    scroll-behavior: auto;
  }

  .card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .cta-button:hover,
  .form-submit:hover {
    transform: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .footer,
  .cookie-popup,
  .mobile-menu-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}