/* ==========================================================================
   Luna Nail Therapy, LLC — Shared Stylesheet
   Wireframe stage: colors/fonts below are PLACEHOLDERS.
   Swap the values in :root once real brand assets (logo, palette, fonts)
   are ready — nothing else in this file should need to change.
   ========================================================================== */

:root {
  /* --- Brand tokens: lavender + pink palette --- */
  --color-bg: #FBF7FC;
  --color-surface: #FFFFFF;
  --color-text: #3B2E45;
  --color-text-muted: #7C6B84;
  --color-primary: #9C5CAE;
  --color-primary-dark: #7E3F91;
  --color-border: #EFDFF0;
  --color-focus: #3468C0;

  --font-heading: 'Archivo Black', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --gutter: 1.25rem;
  --radius: 6px;
  --header-height: 72px;
}

/* --- Reset / base --- */
*, *::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.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 65ch; }

a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--color-primary); }

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

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  transition: top 0.15s ease;
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.15s ease;
}

.brand:hover .brand-logo { opacity: 0.85; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
}

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

.nav-menu a[aria-current="page"] {
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .brand-logo { height: 44px; }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-menu.is-open { max-height: 400px; }

  .nav-menu li { border-top: 1px solid var(--color-border); }

  .nav-menu a {
    display: block;
    padding: 0.9em var(--gutter);
  }
}

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

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-media {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

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

/* ==========================================================================
   Sections / general content blocks
   ========================================================================== */

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 60ch;
  margin-bottom: 2rem;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Card grid — used for gallery teaser, team, values, social grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.placeholder-media {
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

/* CTA band */
.cta-band {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(2rem, 5vw, 3rem) 0;
  text-align: center;
}

.cta-band .btn { margin: 0.4rem; }

/* ==========================================================================
   Contact page specifics
   ========================================================================== */

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.6em 0;
  border-bottom: 1px solid var(--color-border);
}

.info-list li:last-child { border-bottom: none; }

.map-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-align: center;
  padding: 1rem;
}

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

.site-footer {
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-grid h3 {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 0.5em;
}

.footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-social-list a,
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.social-link svg,
.footer-social-list svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}