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

:root {
  --primary: #B8C5B1;
  --accent: #E2C2C2;
  --bg: #FDFBF7;
  --surface: #F4EFEA;
  --text: #2D2A32;
  --muted: #7A7482;
  --radius-pill: 999px;
  --radius-card: 22px;
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.06);
  --font-family: 'Outfit', sans-serif;
  --max-width: 1200px;
  --grid-gap: 1.5rem;
  --section-padding: 4rem 1.5rem;
  --header-height: 72px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 500;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================
   HEADER
   ======================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: var(--shadow-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

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

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

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

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

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

@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: var(--shadow-subtle);
  }

  .nav-menu.open a {
    padding: 0.75rem 0;
    display: block;
  }
}

/* ========================
   BUTTONS
   ======================== */

.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 197, 177, 0.4);
  color: var(--text);
}

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

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

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

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(226, 194, 194, 0.4);
  color: var(--text);
}

.form-submit {
  background: var(--text);
  color: var(--bg);
  width: 100%;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 42, 50, 0.3);
}

/* ========================
   HERO SECTION (with photo overlay)
   ======================== */

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  overflow: hidden;
}

.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-section h1 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-section .btn-primary,
.hero-section .cta-button {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

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

/* ========================
   HAS PHOTO BG (generic 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;
}

/* ========================
   SECTIONS (general)
   ======================== */

section {
  padding: var(--section-padding);
}

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

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

.section-header p {
  font-size: 1.05rem;
}

/* ========================
   FEATURES SECTION
   ======================== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

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

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ========================
   SERVICES SECTION
   ======================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.service-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(122, 116, 130, 0.15);
}

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

/* ========================
   ABOUT SECTION
   ======================== */

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.about-content p {
  font-size: 1.05rem;
}

.about-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

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

/* ========================
   STATS SECTION
   ======================== */

.stats-section {
  background: var(--surface);
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-item .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item .label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ========================
   TESTIMONIALS SECTION (with photo overlay)
   ======================== */

.testimonial-section {
  position: relative;
  isolation: isolate;
  padding: var(--section-padding);
}

.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: #FFFFFF;
}

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

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

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

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
}

.testimonial-card .author-info .name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

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

/* ========================
   CTA SECTION
   ======================== */

.cta-section {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-card);
  margin: 2rem 1.5rem;
  padding: 4rem 2rem;
}

@media (min-width: 768px) {
  .cta-section {
    margin: 2rem auto;
    max-width: var(--max-width);
    padding: 5rem 3rem;
  }
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ========================
   CONTACT SECTION
   ======================== */

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  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;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.contact-row .details {
  display: flex;
  flex-direction: column;
}

.contact-row .details .label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-row .details .value {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ========================
   FORMS
   ======================== */

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
}

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

.form-group label {
  font-size: 0.9rem;
  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-pill);
  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(184, 197, 177, 0.25);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  border-radius: var(--radius-card);
}

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

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================
   POLICY PAGES
   ======================== */

.policy-page {
  padding: var(--section-padding);
}

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

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

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

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

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

.policy-page p,
.policy-page li {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

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

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

/* ========================
   FOOTER
   ======================== */

.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-column h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

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

.footer-column ul li a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

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

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

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

/* ========================
   COOKIE POPUP
   ======================== */

.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
  .cookie-popup {
    left: auto;
  }
}

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

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

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

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

.cookie-popup .cookie-actions .btn-primary {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.cookie-popup .cookie-actions .btn-secondary {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

/* ========================
   UTILITY CLASSES
   ======================== */

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.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 ADJUSTMENTS
   ======================== */

@media (min-width: 768px) {
  :root {
    --section-padding: 5rem 2rem;
    --grid-gap: 2rem;
  }

  .hero-section {
    min-height: 90vh;
    padding: 6rem 3rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding: 6rem 2rem;
    --grid-gap: 2.5rem;
  }

  .hero-section {
    padding: 8rem 4rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* ========================
   GRID LAYOUT HELPERS
   ======================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================
   CARD BASE
   ======================== */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ========================
   BADGE / TAG
   ======================== */

.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--text);
}

.badge--accent {
  background: var(--accent);
}

/* ========================
   DIVIDER
   ======================== */

.divider {
  border: none;
  border-top: 1px solid rgba(122, 116, 130, 0.15);
  margin: 3rem 0;
}

/* ========================
   PAGE HERO (inner pages)
   ======================== */

.page-hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 6rem 2rem 4rem;
  }
}

/* ========================
   ANIMATION (subtle entrance)
   ======================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========================
   SKIP LINK (accessibility)
   ======================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}