@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #B8D4C8;
  --accent: #D4B8C8;
  --bg: #FAF7F2;
  --surface: #F0EDE8;
  --text: #2D2A26;
  --muted: #8A8580;
  
  --primary-rgb: 184, 212, 200;
  --accent-rgb: 212, 184, 200;
  
  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-glow-primary: 0 0 40px rgba(var(--primary-rgb), 0.4);
  --shadow-glow-accent: 0 0 40px rgba(var(--accent-rgb), 0.3);
  --shadow-soft: 0 10px 30px rgba(45, 42, 38, 0.05);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

@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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem); }
h4 { font-size: clamp(1.25rem, 1.5vw + 0.25rem, 1.75rem); }

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

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

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

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-full);
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(250, 247, 242, 0.95);
  border-bottom-color: rgba(138, 133, 128, 0.15);
  box-shadow: 0 4px 20px rgba(45, 42, 38, 0.03);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  z-index: 10;
}

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

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

@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); }
}

.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 10;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.5);
  color: var(--bg);
}

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

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

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

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.6);
  color: var(--text);
}

.form-submit {
  background: var(--primary);
  color: var(--text);
  width: 100%;
  box-shadow: var(--shadow-glow-primary);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.5);
}

.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 {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  color: #FAF7F2;
  overflow: hidden;
}

.hero-section h1,
.hero-section p {
  color: #FAF7F2;
}

.hero-content {
  max-width: 800px;
  padding: 4rem 0;
}

.hero-content .section-label {
  background: rgba(255, 255, 255, 0.15);
  color: #FAF7F2;
}

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

.hero-section .btn-primary {
  background: #FAF7F2;
  color: var(--text);
}

.hero-section .btn-secondary {
  border-color: rgba(250, 247, 242, 0.5);
  color: #FAF7F2;
}

.hero-section .btn-secondary:hover {
  background: rgba(250, 247, 242, 0.1);
  border-color: #FAF7F2;
  color: #FAF7F2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
}

.feature-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow-accent);
  transition: transform var(--transition-slow), box-shadow var(--transition-base);
}

.feature-card:hover {
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.4);
}

.feature-card:nth-child(1) {
  grid-column: 1 / 6;
  transform: translateY(20px) rotate(-1.5deg);
}

.feature-card:nth-child(2) {
  grid-column: 6 / 13;
  transform: translateY(-15px) rotate(1deg);
  background: var(--primary);
}

.feature-card:nth-child(3) {
  grid-column: 2 / 8;
  transform: translateY(10px) rotate(-0.5deg);
}

.feature-card:nth-child(4) {
  grid-column: 7 / 12;
  transform: translateY(-25px) rotate(1.5deg);
  background: var(--accent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

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

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

.service-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(138, 133, 128, 0.1);
  transition: all var(--transition-base);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

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

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about-content {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

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

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

.testimonial-section {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  color: #FAF7F2;
}

.testimonial-section .section-header h2,
.testimonial-section .section-header p {
  color: #FAF7F2;
}

.testimonial-section .section-label {
  background: rgba(255, 255, 255, 0.15);
  color: #FAF7F2;
}

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

.testimonial-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.testimonial-card:nth-child(even) {
  transform: translateY(20px);
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
}

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

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

.testimonial-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

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

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

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

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

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

.contact-info h3 {
  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(--accent);
  margin-top: 0.2rem;
}

.contact-row p {
  margin-bottom: 0;
  color: var(--text);
}

.contact-form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

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

.form-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: 12px; background: var(--surface); color: var(--text); font: inherit; }

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

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

.policy-section {
  padding: 4rem 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

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

.policy-content ul,
.policy-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

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

.footer {
  background: var(--text);
  color: rgba(250, 247, 242, 0.7);
  padding: 5rem 0 2rem;
}

.footer h4 {
  color: #FAF7F2;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.footer-brand p {
  color: rgba(250, 247, 242, 0.6);
  max-width: 300px;
}

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

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

.footer-links a {
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
}

.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 400px;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(45, 42, 38, 0.15);
  z-index: 9999;
  transform: translateY(0);
  opacity: 1;
  transition: all var(--transition-base);
  margin-left: auto;
}

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

.cookie-popup p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

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

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

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

  .section {
    padding: 7rem 0;
  }

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

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

  .about-image-wrapper {
    transform: rotate(-2deg);
  }

  .about-content {
    transform: translateY(2rem);
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

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

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

  .cta-section {
    margin: 0 2.5rem;
    padding: 6rem 4rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 9rem 0;
  }

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

  .about-grid {
    gap: 6rem;
  }

  .about-image-wrapper {
    transform: rotate(-3deg) translateX(-20px);
  }

  .about-content {
    transform: translateY(3rem) translateX(-20px);
    padding: 3.5rem;
  }

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

  .testimonial-card:nth-child(2) {
    transform: translateY(30px);
  }

  .testimonial-card:nth-child(3) {
    transform: translateY(-10px);
  }

  .features-grid {
    gap: 2.5rem;
  }

  .feature-card:nth-child(1) {
    transform: translateY(30px) rotate(-2deg);
  }

  .feature-card:nth-child(2) {
    transform: translateY(-20px) rotate(1.5deg);
  }

  .feature-card:nth-child(3) {
    transform: translateY(15px) rotate(-1deg);
  }

  .feature-card:nth-child(4) {
    transform: translateY(-35px) rotate(2deg);
  }

  .hero-content {
    padding: 6rem 0;
  }
}

::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: var(--text);
}

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

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

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

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

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

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(138, 133, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 133, 128, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}