/* =========================================================
   Magic Nails — Stylesheet
   Brand: soft luxury beauty & wellness
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand colors */
  --color-primary: #7A2E3A;        /* deep rose / muted burgundy */
  --color-primary-dark: #5E2129;
  --color-secondary: #F3D9DE;      /* soft blush pink */
  --color-accent: #C9A24B;         /* warm champagne gold */
  --color-accent-light: #E4CD91;

  /* Backgrounds */
  --color-bg: #FFFFFF;
  --color-bg-cream: #FBF6EF;
  --color-bg-pink: #FDF3F4;

  /* Text */
  --color-text: #2B2320;           /* charcoal / dark brown */
  --color-text-muted: #6B5C57;
  --color-text-light: #FCEFEF;

  /* Borders / shadows */
  --color-border: #EFE0D8;
  --shadow-sm: 0 2px 10px rgba(90, 40, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(90, 40, 50, 0.10);
  --shadow-lg: 0 20px 50px rgba(90, 40, 50, 0.16);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Layout */
  --container-width: 1180px;
  --header-height: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-sm); color: var(--color-text); }
button { font-family: inherit; cursor: pointer; }

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

.section { padding: var(--space-xl) 0; }
.section:nth-of-type(even) { background: var(--color-bg-cream); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-lg); }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary { background: var(--color-accent); color: var(--color-primary-dark); }
.btn-secondary:hover { background: var(--color-accent-light); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-primary-light { background: #fff; color: var(--color-primary); }
.btn-primary-light:hover { background: var(--color-bg-cream); }
.btn-large { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn .icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-primary); font-weight: 700; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 1.75rem; }
.nav-link {
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); border-color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-call svg { color: var(--color-primary); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: var(--color-bg);
  z-index: 1100;
  padding: var(--space-lg) var(--space-md);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--color-bg-cream);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
}
.mobile-nav-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.3rem; }
.mobile-nav-list .nav-link { font-size: 1.2rem; display: block; }
.mobile-menu-actions { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.mobile-menu-actions .btn { width: 100%; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43,35,32,0.45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(50,20,26,0.65) 0%, rgba(90,33,41,0.72) 55%, rgba(50,20,26,0.85) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.hero-title { color: #fff; }
.hero-subtitle { font-size: 1.15rem; color: var(--color-text-light); max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin: var(--space-md) 0; }
.hero-trust { font-size: 0.9rem; color: rgba(255,255,255,0.85); display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-md); }
.hero-rating { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.stars, .stars-large { color: var(--color-accent); letter-spacing: 2px; }
.stars-large { font-size: 1.8rem; }

/* ---------- Info strip ---------- */
.info-strip { padding: var(--space-lg) 0; background: var(--color-bg-cream); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.info-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.info-card p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }
.info-card a { color: var(--color-primary); font-weight: 600; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.service-card h3 { color: var(--color-primary); font-size: 1.15rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.94rem; margin: 0; }
.services-note {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- Featured split ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.featured-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.quality-list { margin-top: var(--space-md); display: flex; flex-direction: column; gap: 1.2rem; }
.quality-list h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.quality-list p { color: var(--color-text-muted); margin: 0; }
.quality-list li { border-left: 3px solid var(--color-accent); padding-left: 1rem; }

/* ---------- About ---------- */
.about-inner { max-width: 780px; text-align: center; margin: 0 auto; }
.about-cta {
  margin-top: var(--space-lg);
  background: var(--color-bg-pink);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.about-cta h3 { margin-bottom: 0.4rem; }
.about-cta p { color: var(--color-text-muted); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.why-icon svg { width: 26px; height: 26px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-cream);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-note { margin-top: var(--space-md); text-align: center; font-size: 0.9rem; color: var(--color-text-muted); font-style: italic; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,10,12,0.92);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(85vw, 900px); max-height: 75vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #fff; margin-top: 1rem; font-family: var(--font-heading); font-size: 1.1rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Reviews ---------- */
.rating-banner { text-align: center; margin-bottom: var(--space-lg); }
.rating-banner p { font-size: 1.1rem; color: var(--color-text-muted); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.review-card h3 { font-size: 1.1rem; }
.review-card p { color: var(--color-text-muted); margin: 0; }
.reviews-cta { text-align: center; margin-top: var(--space-lg); }

/* ---------- Appointment CTA (full width rose) ---------- */
.appointment-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
}
.appointment-cta h2 { color: #fff; }
.appointment-cta p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto var(--space-md); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Appointment form ---------- */
.appointment-form {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--color-bg-cream);
  color: var(--color-text);
}
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  background: #fff;
  border-color: var(--color-accent);
}
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: #B3372F; }
.form-error { color: #B3372F; font-size: 0.82rem; min-height: 1.1em; margin-top: 0.3rem; }
.form-checkbox { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.form-checkbox input { width: 18px; height: 18px; margin-top: 0.2rem; flex-shrink: 0; }
.form-checkbox label { font-weight: 400; font-size: 0.88rem; color: var(--color-text-muted); }
.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: #EAF6EC;
  border: 1px solid #BFE3C6;
  border-radius: var(--radius-sm);
  color: #2C5E36;
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.contact-block { margin-bottom: 1.4rem; }
.contact-block h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.contact-block p { color: var(--color-text-muted); margin: 0; }
.contact-block a { color: var(--color-primary); font-weight: 600; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.85); padding-top: var(--space-lg); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand h2 { color: #fff; margin-bottom: 0.3rem; }
.footer-tagline { font-family: var(--font-heading); font-style: italic; color: var(--color-accent-light); }
.footer-brand p { color: rgba(255,255,255,0.75); margin: 0.15rem 0; }
.footer-brand a { color: rgba(255,255,255,0.9); }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a:hover { color: var(--color-accent-light); }
.footer-bottom { padding: 1.5rem 0 2rem; text-align: center; }
.footer-disclaimer { font-size: 0.82rem; color: rgba(255,255,255,0.6); max-width: 700px; margin: 0 auto 0.6rem; }
.footer-copyright { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top[hidden] { display: none; }

/* ---------- Mobile fixed action bar ---------- */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}
.mobile-action-btn:first-child { background: var(--color-primary); color: #fff; }
.mobile-action-btn svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .info-card:hover, .service-card:hover, .why-card:hover, .gallery-item:hover img {
    transform: none;
  }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { gap: var(--space-md); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-call span:not(.icon) { display: none; }
  .header-book { display: none; }
  .hamburger { display: flex; }
  .header-call { padding: 0.6rem; border-radius: 50%; }
  .header-call .icon { width: 18px; height: 18px; }
}

/* Mobile */
@media (max-width: 700px) {
  :root { --space-xl: 3.25rem; --space-lg: 2.25rem; }

  .services-grid,
  .why-grid,
  .reviews-grid { grid-template-columns: 1fr; }

  .info-grid { grid-template-columns: 1fr 1fr; }

  .featured-grid,
  .contact-grid,
  .form-row { grid-template-columns: 1fr; }

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

  .hero { min-height: 92vh; }
  .hero-content { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }

  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; }

  .appointment-form { padding: var(--space-md); }

  .mobile-action-bar { display: flex; }
  body { padding-bottom: 62px; }

  .back-to-top { bottom: 5.5rem; right: 1rem; }

  .footer-inner { flex-direction: column; gap: var(--space-md); }
}

@media (max-width: 420px) {
  .info-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.15rem; }
}
