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

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #B8A9D4;
  --accent: #E8B4B8;
  --bg: #FAF6F0;
  --surface: #F2ECE2;
  --text: #2C2A32;
  --muted: #8A8691;
  --white: #FFFFFF;
  --dark: #2C2A32;
  --border: #D8D2C8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-input: 12px;
  --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;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

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

:focus:not(:focus-visible) {
  outline: none;
}

.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;
}

/* ============================================
   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;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

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

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

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

.header.scrolled {
  background: var(--surface);
  border-bottom-color: var(--muted);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

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

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

.nav-menu a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}

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

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

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

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

.cta-button {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.cta-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.form-submit {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  width: 100%;
  padding: 0.9rem 2rem;
}

.form-submit:hover {
  background: var(--text);
  border-color: var(--text);
}

/* ============================================
   TEXT-OVER-PHOTO OVERLAY (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;
}

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

.hero-section .container {
  width: 100%;
}

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

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

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

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

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--white);
}

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

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

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

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

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card .btn-secondary {
  font-size: 0.85rem;
  padding: 0.55rem 1.25rem;
}

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

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

.about-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

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

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

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

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

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

.testimonial-section .section-header h2,
.testimonial-section .section-header p,
.testimonial-section .section-label {
  color: var(--white);
}

.testimonial-section .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

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

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

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

.testimonial-card blockquote::before {
  content: "\201C";
  font-size: 2rem;
  color: var(--primary);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.15em;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.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);
  text-align: center;
  padding: 4rem 0;
}

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

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.cta-section .cta-button {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

.cta-section .cta-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

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

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

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

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

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

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

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

.contact-row .details a:hover {
  color: var(--primary);
}

/* ============================================
   FORMS
   ============================================ */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
}

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

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

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  outline: none;
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
}

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

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

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

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

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

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

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

/* ============================================
   COOKIE POPUP
   ============================================ */
.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  z-index: 9999;
  margin-left: auto;
}

.cookie-popup.hidden {
  display: none;
}

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

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

.cookie-popup-actions .btn-primary {
  font-size: 0.825rem;
  padding: 0.55rem 1.25rem;
}

.cookie-popup-actions .btn-secondary {
  font-size: 0.825rem;
  padding: 0.55rem 1.25rem;
}

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

.policy-page .container {
  max-width: 780px;
}

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

.policy-page .policy-updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.policy-page h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

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

.policy-page p,
.policy-page li {
  color: var(--muted);
  line-height: 1.75;
}

.policy-page ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.policy-page ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
}

.policy-page ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.policy-page ol li {
  list-style: decimal;
  margin-bottom: 0.4rem;
}

/* ============================================
   PAGE HEADER (INNER PAGES)
   ============================================ */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   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);
  }

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

  .about-grid {
    grid-template-columns: 1fr 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;
  }
}

/* ============================================
   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);
  }

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

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

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

/* ============================================
   RESPONSIVE — MOBILE (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.65rem 0;
    border-bottom: 1px solid var(--border);
  }

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   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;
  }
}

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

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

  .section {
    padding: 1.5rem 0;
  }
}