/* ============================================
   Base styles — overridden by Tailwind CDN classes
   This file handles custom properties from design tokens,
   animation utilities, and anything Tailwind can't do inline.
   ============================================ */

/* Design tokens — Luxe Nails & Beauty Bar */
:root {
  --color-primary: #D4A0B9;
  --color-primary-dark: #A8778F;
  --color-secondary: #C9A96E;
  --color-accent: #FDF2E9;
  --color-bg: #FFFBF8;
  --color-bg-alt: #F5F0ED;
  --color-text: #2D2226;
  --color-text-muted: #6B5B62;
  --color-border: #E8E2DE;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

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

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

/* Active nav link */
nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Mobile nav */
#mobile-nav {
  transition: max-height 0.3s ease;
}

#mobile-nav.hidden {
  display: none;
}

/* Contact form styling (non-functional — forms activated during Astro conversion) */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 185, 0.2);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Button base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

/* Section vertical rhythm — guaranteed breathing room */
main > section + section,
body > section + section {
  margin-top: 0; /* sections handle their own padding */
}

/* Ensure generous section padding */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section:first-of-type {
  padding-top: 0; /* hero handles its own */
}

/* Better body text readability */
p {
  line-height: 1.75;
}

/* Card padding safety net */
.card-body {
  padding: 1.5rem;
}

/* Scroll margin for sticky nav */
section[id] {
  scroll-margin-top: 5rem;
}

/* Prevent text touching card edges */
.fade-in > div:last-child {
  padding: 1.5rem;
}
