/* ============================================
   Design Tokens (CSS Custom Properties)
   ============================================ */

:root {
  /* Colors */
  --color-cream: #FAF7F2;          /* Main background */
  --color-warm-beige: #F5EDE4;     /* Card backgrounds */
  --color-blush: #E8D5D5;          /* Subtle highlights */
  --color-dusty-rose: #D4A5A5;     /* Primary buttons, accents */
  --color-rose-dark: #B8847F;      /* Hover states */
  --color-lavender: #E8E4F0;       /* Alternate sections */
  --color-lavender-mid: #C9C0D9;   /* Borders, lines */
  --color-text: #4A4A4A;           /* Body text */
  --color-text-light: #7A7A7A;     /* Secondary text */
  --color-heading: #3D3D3D;        /* Headings */

  /* Typography */
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Assistant', sans-serif;

  /* Spacing (8px base) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}


/* ============================================
   Modern CSS Reset
   ============================================ */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul[class], ol[class] {
  list-style: none;
}


/* ============================================
   Base Styles
   ============================================ */

body {
  background-color: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  text-align: right;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-block-end: var(--space-md);
}

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

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Links */
a {
  color: var(--color-dusty-rose);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--color-rose-dark);
  text-decoration: underline;
}

/* Text Selection */
::selection {
  background-color: var(--color-blush);
  color: var(--color-heading);
}

::-moz-selection {
  background-color: var(--color-blush);
  color: var(--color-heading);
}


/* ============================================
   Focus Styles (Accessibility)
   ============================================ */

:focus-visible {
  outline: 3px solid var(--color-dusty-rose);
  outline-offset: 2px;
}


/* ============================================
   Utility Classes
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Screen Reader Only */
.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;
}


/* ============================================
   Button Components
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px; /* Minimum touch target */
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-dusty-rose);
  color: white;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-rose-dark);
  color: white;
  text-decoration: none;
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  background-color: #20BA5A;
  color: white;
  text-decoration: none;
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Large Button Variant */
.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}


/* ============================================
   Section Base Styles
   ============================================ */

.section {
  padding-block: var(--space-2xl);
}

/* Alternating section backgrounds */
.section:nth-of-type(even) {
  background-color: var(--color-warm-beige);
}

.section:nth-of-type(odd) {
  background-color: var(--color-cream);
}


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


/* ============================================
   Header & Navigation
   ============================================ */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 247, 242, 0.95); /* cream with opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: var(--space-sm);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

/* Site Title/Logo */
.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title:hover, .site-title:focus {
  color: var(--color-dusty-rose);
  text-decoration: none;
}

/* Desktop Navigation */
.nav-menu ul {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-menu a {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a:focus {
  color: var(--color-dusty-rose);
  background-color: var(--color-blush);
  text-decoration: none;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 44px;  /* Minimum 44px touch target */
  height: 44px; /* Minimum 44px touch target */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-heading);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle:hover span {
  background-color: var(--color-dusty-rose);
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 99;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .nav-menu a {
    font-size: 1.75rem;
    padding: var(--space-md) var(--space-lg); /* Larger touch targets */
    min-height: 44px; /* Ensure minimum touch target height */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ============================================
   Hero Section
   ============================================ */

/* Hero Layout */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-beige) 100%);
  padding-block-start: calc(var(--space-2xl) + var(--space-lg)); /* Account for fixed header */
  padding-block-end: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Decorative element */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  background-color: var(--color-lavender);
  opacity: 0.3;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background-color: var(--color-blush);
  opacity: 0.25;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding-inline: var(--space-lg);
}

/* Hero Text Hierarchy */
.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  margin-block-end: var(--space-sm);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-dusty-rose);
  margin-block-end: var(--space-md);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: var(--space-xl);
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero .btn-whatsapp {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Keyframes for Hero Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Hero */
@media (min-width: 640px) {
  .hero {
    min-height: 75vh;
  }

  .hero-content {
    padding-inline: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 85vh;
  }
}


/* ============================================
   About Section
   ============================================ */

/* About Section Background */
.about {
  background-color: var(--color-warm-beige);
}

/* About Layout - Two Column Grid */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Profile Image Container */
.about-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 280px;
  margin-inline: auto;
  position: relative;
}

/* Decorative border effect */
.about-image::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--color-dusty-rose), var(--color-lavender));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

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

/* About Text Content */
.about-text h2 {
  position: relative;
  display: inline-block;
  padding-block-end: var(--space-sm);
}

/* Decorative underline for heading */
.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 3px;
  background-color: var(--color-dusty-rose);
  border-radius: var(--radius-full);
}

.about-text p {
  margin-block-end: var(--space-sm);
  line-height: 1.7;
}

.about-text p:last-child {
  margin-block-end: 0;
}

/* Lead paragraph (first paragraph) */
.about-text .lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text);
  margin-block-end: var(--space-md);
}

/* Desktop Layout - Two Columns */
@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
  }

  /* RTL: Image on left, text on right */
  .about-image {
    max-width: 100%;
    margin-inline: 0;
  }

  .about-text .lead {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .about-content {
    gap: 4rem;
  }

  .about-image {
    max-width: 450px;
  }
}


/* ============================================
   Contact Section
   ============================================ */

/* Contact Section Background */
.contact {
  background-color: var(--color-lavender);
  text-align: center;
}

/* Contact Content Container */
.contact-content {
  max-width: 600px;
  margin-inline: auto;
}

.contact-content h2 {
  margin-block-end: var(--space-sm);
}

/* Contact Subtitle */
.contact-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-block-end: var(--space-xl);
}

/* Contact Methods Container */
.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* Phone Link */
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.contact-phone:hover, .contact-phone:focus {
  color: var(--color-dusty-rose);
  background-color: rgba(212, 165, 165, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.contact-phone svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* WhatsApp Button in Contact */
.contact-methods .btn-whatsapp {
  width: 100%;
  max-width: 100%;
}

/* Address */
.contact-address {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-block-start: var(--space-md);
  line-height: 1.6;
}

/* Responsive Contact Section */
@media (min-width: 640px) {
  .contact-subtitle {
    font-size: 1.25rem;
  }

  .contact-methods .btn-whatsapp {
    width: auto;
    max-width: none;
    min-width: 280px;
  }
}

@media (min-width: 768px) {
  .contact-content {
    max-width: 700px;
  }

  .contact-methods {
    gap: var(--space-xl);
  }
}


/* ============================================
   Scroll Animations
   ============================================ */

/* Fade In Up Animation Utility */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================
   Responsive Typography & Layout Adjustments
   ============================================ */

/* Extra small screens - Prevent overflow and adjust spacing */
@media (max-width: 374px) {
  .container {
    padding-inline: var(--space-sm);
  }

  .hero-content {
    padding-inline: var(--space-md);
  }

  .section {
    padding-block: var(--space-xl);
  }
}

/* Small screens and up */
@media (min-width: 640px) {
  body {
    font-size: 1.0625rem;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  body {
    font-size: 1.125rem;
  }

  .container {
    padding-inline: var(--space-lg);
  }
}

/* Extra large screens - Prevent content from getting too wide */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 900px;
  }

  .about-content {
    max-width: 1200px;
    margin-inline: auto;
  }
}


/* ============================================
   Footer
   ============================================ */

/* Site Footer */
.site-footer {
  background-color: var(--color-warm-beige);
  padding-block: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--color-lavender-mid);
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* Optional: Back to top link (for future use) */
.back-to-top {
  display: inline-block;
  margin-block-end: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-dusty-rose);
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-to-top:hover {
  color: var(--color-rose-dark);
  text-decoration: underline;
}
