/* ================================
   Impecc'service - Styles
   Mobile-first, optimized for phone
   Color palette from brand identity:
   - Pink background: #FBDCE2
   - Brown text: #8B6F5E
   - White: #FFFFFF
   ================================ */

:root {
  --pink-light: #FBDCE2;
  --pink-medium: #F5C6D0;
  --pink-dark: #E8AEBB;
  --brown: #8B6F5E;
  --brown-light: #A68B7B;
  --brown-dark: #6B5248;
  --white: #FFFFFF;
  --off-white: #FFF9FA;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--brown);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--safe-bottom);
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   Navigation - compact on mobile
   ================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 220, 226, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
  padding-top: var(--safe-top);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(139, 111, 94, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  /* Min touch target */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brown);
  transition: width 0.3s ease;
}

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

.nav-cta {
  background: var(--brown);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--brown-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.hero {
  background: var(--pink-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: calc(56px + var(--safe-top));
  min-height: 70svh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 48px 20px 80px;
}

.hero-text {
  max-width: 620px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--brown-light);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
}

/* ================================
   Buttons - large touch targets
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  min-height: 52px;
  width: 100%;
  max-width: 320px;
}

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

.btn-primary:active {
  background: var(--brown-dark);
  transform: scale(0.97);
}

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

.btn-secondary:active {
  background: var(--brown);
  color: var(--white);
  transform: scale(0.97);
}

/* ================================
   Section Titles
   ================================ */

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--brown);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--brown-light);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 36px;
}

/* ================================
   Services Section - horizontal scroll on mobile
   ================================ */

.services {
  padding: 64px 0;
  background: var(--white);
}

.services-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.services-scroll::-webkit-scrollbar {
  display: none;
}

.services-grid {
  display: flex;
  gap: 16px;
  min-width: min-content;
}

.service-card {
  background: var(--off-white);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid transparent;
  scroll-snap-align: start;
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
}

.service-card:active {
  transform: scale(0.98);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--brown-light);
  line-height: 1.65;
}

/* Scroll indicator dots */
.services-scroll-hint {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.services-scroll-hint span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-medium);
  transition: background 0.3s ease;
}

.services-scroll-hint span.active {
  background: var(--brown);
  width: 20px;
  border-radius: 4px;
}

/* ================================
   Why Us Section
   ================================ */

.why-us {
  padding: 64px 0;
  background: var(--pink-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.why-item {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
}

.why-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 8px;
  line-height: 1;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--brown-light);
  line-height: 1.6;
}

/* ================================
   CTA Section
   ================================ */

.cta-section {
  padding: 64px 0;
  background: var(--white);
}

.cta-card {
  background: var(--pink-light);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--brown-light);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

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

.contact {
  padding: 64px 0 calc(64px + 80px);
  background: var(--off-white);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  text-align: left;
  min-height: 72px;
}

.contact-item:active {
  transform: scale(0.98);
  background: var(--pink-light);
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 2px;
}

.contact-item a,
.contact-item p {
  font-size: 0.9rem;
  color: var(--brown-light);
}

/* ================================
   Floating CTA (mobile)
   ================================ */

.floating-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 20px;
  right: 20px;
  background: var(--brown);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(107, 82, 72, 0.35);
  transition: all 0.2s ease;
  min-height: 56px;
}

.floating-cta:active {
  transform: scale(0.97);
  background: var(--brown-dark);
  color: var(--white);
}

.floating-cta svg {
  flex-shrink: 0;
}

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

.footer {
  background: var(--brown);
  color: var(--pink-light);
  padding: 40px 0 24px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(251, 220, 226, 0.2);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--pink-light);
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--pink-light);
  font-size: 0.9rem;
  opacity: 0.8;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:active {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  padding-bottom: calc(60px + var(--safe-bottom));
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.5;
}

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

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

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

/* ================================
   Mobile nav overlay
   ================================ */

.nav-toggle {
  display: flex;
}

.nav-menu {
  position: fixed;
  top: calc(56px + var(--safe-top));
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 220, 226, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 40px 24px;
  gap: 8px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.nav-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-menu .nav-link {
  font-size: 1.1rem;
  padding: 12px 0;
  min-height: 52px;
  border-bottom: 1px solid rgba(139, 111, 94, 0.1);
}

.nav-menu .nav-link::after {
  display: none;
}

.nav-menu .nav-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
  padding: 16px 32px;
  border-bottom: none;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   Desktop overrides (tablet+)
   ================================ */

@media (min-width: 769px) {
  .container {
    padding: 0 24px;
  }

  .nav-container {
    height: 70px;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    gap: 32px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    padding: 0;
    min-height: auto;
    border-bottom: none;
  }

  .nav-menu .nav-link::after {
    display: block;
  }

  .nav-menu .nav-cta {
    margin-top: 0;
    padding: 10px 24px;
  }

  .hero {
    padding-top: 70px;
    min-height: 65vh;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding: 80px 24px 100px;
  }

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

  .hero-text h1 {
    font-size: 4rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }

  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 16px;
    justify-content: center;
  }

  .hero-wave svg {
    height: 80px;
  }

  .btn {
    width: auto;
    min-height: 48px;
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  .btn-primary:hover {
    background: var(--brown-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 111, 94, 0.25);
  }

  .btn-secondary:hover {
    background: var(--brown);
    color: var(--white);
    transform: translateY(-2px);
  }

  /* Section titles */
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 1.05rem;
    margin-bottom: 56px;
  }

  /* Services - grid on desktop */
  .services {
    padding: 100px 0;
  }

  .services-scroll {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    min-width: auto;
  }

  .service-card {
    min-width: auto;
    max-width: none;
    padding: 40px 32px;
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 111, 94, 0.1);
    border-color: var(--pink-medium);
  }

  .service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  .services-scroll-hint {
    display: none;
  }

  /* Why us */
  .why-us {
    padding: 100px 0;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .why-item {
    background: none;
    padding: 24px 16px;
  }

  .why-number {
    font-size: 2.5rem;
  }

  .why-item h3 {
    font-size: 1.15rem;
  }

  .why-item p {
    font-size: 0.9rem;
  }

  /* CTA */
  .cta-section {
    padding: 100px 0;
  }

  .cta-card {
    padding: 64px 48px;
  }

  .cta-card h2 {
    font-size: 2rem;
  }

  .cta-card p {
    font-size: 1.05rem;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  /* Contact */
  .contact {
    padding: 100px 0;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 111, 94, 0.08);
  }

  .contact-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .contact-item h3 {
    font-size: 1.1rem;
  }

  /* Floating CTA - hide on desktop */
  .floating-cta {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-bottom {
    padding-bottom: 0;
  }
}

/* ================================
   Small phone adjustments
   ================================ */

@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .service-card {
    min-width: 250px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
