@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700;800&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* =========================================
   1. CSS VARIABLES & ROOT
   ========================================= */
:root {
  --primary: #E8734A;
  --accent: #E8547A;
  --bg: #C44B36;
  --surface: #B5432F;
  --text: #f4f4f6;
  --muted: #F0C8B0;
  
  --font-heading: 'Crimson Pro', serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  --radius: 4px;
  --shadow-offset: 6px 6px 0 var(--primary);
  --shadow-offset-dark: 6px 6px 0 #2A110A;
  --shadow-offset-accent: 6px 6px 0 var(--accent);
  
  --container-max: 1200px;
  --header-height: 72px;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*,
*::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: var(--font-body);
  background-color: var(--bg);
  background-image: linear-gradient(135deg, var(--bg) 0%, var(--accent) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul,
ol {
  list-style: none;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

strong {
  color: var(--text);
  font-weight: 600;
}

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

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* =========================================
   4. LAYOUT & CONTAINERS
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

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

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

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

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--surface);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 2px solid transparent;
}

.header.scrolled {
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 0 var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  z-index: 10;
}

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

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  z-index: 10;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

@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);
    box-shadow: 0 6px 0 var(--accent);
  }
  
  .nav-menu.open .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(240, 200, 176, 0.1);
  }
}

/* =========================================
   6. BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none !important;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-offset-dark);
}

.btn-primary:hover {
  background: #d6633a;
  color: var(--text);
}

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

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

.cta-button {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--shadow-offset-dark);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.cta-button:hover {
  background: #d14468;
  color: var(--text);
}

.form-submit {
  background: var(--primary);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-offset-dark);
  width: 100%;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: #d6633a;
}

/* =========================================
   7. TEXT OVER PHOTO RULE (CRITICAL)
   ========================================= */
.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;
}

/* =========================================
   8. HERO SECTION
   ========================================= */
.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}

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

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

.hero-description {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

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

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

.feature-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--muted);
  box-shadow: var(--shadow-offset);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-offset-accent);
  display: flex;
  flex-direction: column;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--primary);
}

.service-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-text {
  font-size: 0.95rem;
  flex: 1;
}

.service-link {
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-link:hover {
  color: var(--accent);
}

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

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

.about-image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-offset-dark);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.about-list {
  margin-top: 1.5rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.about-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--muted);
  box-shadow: var(--shadow-offset);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--primary);
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================
   14. CTA SECTION
   ========================================= */
.cta-section {
  background: var(--surface);
  text-align: center;
  padding: 5rem 0;
  border-top: 4px solid var(--primary);
  border-bottom: 4px solid var(--primary);
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* =========================================
   15. CONTACT & FORMS
   ========================================= */
.contact-section {
  background: var(--bg);
}

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

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-row .icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.2rem;
}

.contact-row .details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-row .details p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

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

.form-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: 4px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 115, 74, 0.3);
}

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

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

/* =========================================
   16. POLICY PAGES
   ========================================= */
.policy-section {
  padding: 4rem 0;
  background: var(--surface);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
  padding: 3rem;
  border-radius: var(--radius);
  border: 2px solid var(--muted);
  box-shadow: var(--shadow-offset);
}

.policy-content h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.policy-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-content ul li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

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

.policy-update-date {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
}

/* =========================================
   17. FOOTER
   ========================================= */
.footer {
  background: #1A0A06;
  color: var(--muted);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--primary);
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--muted);
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 200, 176, 0.15);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
}

/* =========================================
   18. COOKIE POPUP
   ========================================= */
.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 400px;
  background: var(--surface);
  color: var(--text);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-offset-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-popup.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.cookie-popup p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--muted);
}

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

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease;
}

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

.cookie-btn-decline {
  background: transparent;
  color: var(--muted);
  border-color: var(--muted);
}

/* =========================================
   19. RESPONSIVE BREAKPOINTS
   ========================================= */

/* Tablet: 768px and up */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  
  .hero-title { font-size: 3.5rem; }
  
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .about-grid { grid-template-columns: 1fr 1fr; }
  
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  
  .form-row { grid-template-columns: 1fr 1fr; }
  
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .cookie-popup {
    left: auto;
  }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 3rem; }
  
  .section { padding: 6rem 0; }
  
  .hero-title { font-size: 4.5rem; }
  .hero-description { font-size: 1.35rem; }
  
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  
  .stat-number { font-size: 3.5rem; }
}

/* =========================================
   20. ACCESSIBILITY & UTILITIES
   ========================================= */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 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-width: 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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: var(--primary);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface);
  border: 2px solid var(--bg);
  border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}