/* ============================================
   Kim's Hair and Spa — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-charcoal: #2D2D2D;
  --color-charcoal-light: #3D3D3D;
  --color-charcoal-dark: #1E1E1E;
  --color-coral: #F97066;
  --color-coral-light: #FDB4AB;
  --color-coral-dark: #E85A50;
  --color-cream: #FFF8F6;
  --color-cream-dark: #FEF0EC;
  --color-white: #FFFFFF;
  --color-off-white: #FAFAFA;
  --color-text: #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-text-muted: #999999;
  --color-border: #F0E0DC;
  --color-border-light: #F7EDE9;

  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 45, 45, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 45, 45, 0.12);
  --shadow-coral: 0 8px 30px rgba(249, 112, 102, 0.3);

  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
  --transition-slow: 0.5s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-coral { color: var(--color-coral); }
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--color-charcoal); color: var(--color-white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700;
  border-radius: var(--radius-full); transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-coral); color: var(--color-white);
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover {
  background: var(--color-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(249, 112, 102, 0.4);
}
.btn-outline-light {
  background: transparent; color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: var(--color-white); color: var(--color-charcoal);
  border-color: var(--color-white);
}
.btn-white {
  background: var(--color-white); color: var(--color-charcoal);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; padding: 16px 24px; font-size: 16px; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-fast);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex; align-items: center;
  padding-top: 16px; padding-bottom: 16px;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px;
  font-weight: 700; color: var(--color-charcoal);
  flex-shrink: 0;
}
.logo-accent { color: var(--color-coral); }
.logo-icon { flex-shrink: 0; }

.nav-menu {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.nav-list {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 15px; color: var(--color-text-light);
  transition: all var(--transition-fast);
}
.nav-link:hover { color: var(--color-coral); background: var(--color-cream); }
.nav-link.active { color: var(--color-coral); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; margin-left: auto;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 24px; height: 2px;
  background: var(--color-charcoal); border-radius: 2px;
  transition: all var(--transition-fast);
}
.hamburger::before, .hamburger::after { content: ''; }
.hamburger { margin-top: 1px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--color-charcoal-dark) 0%, var(--color-charcoal) 50%, var(--color-charcoal-light) 100%);
  padding-top: 80px;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.06; }
.shape-1 { width: 600px; height: 600px; background: var(--color-coral); top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: var(--color-coral-light); bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; background: var(--color-white); top: 40%; left: 30%; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249, 112, 102, 0.15); color: var(--color-coral-light);
  padding: 8px 18px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 14px; margin-bottom: 24px;
  border: 1px solid rgba(249, 112, 102, 0.25);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.15;
  color: var(--color-white); margin-bottom: 24px;
}
.hero-description {
  font-size: 18px; line-height: 1.8; color: rgba(255,255,255,0.75);
  margin-bottom: 36px; max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; align-items: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--color-coral); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 600; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.hero-image-wrapper { position: relative; }
.hero-image-main {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  aspect-ratio: 560/680;
}
.hero-image-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-accent {
  position: absolute; bottom: -30px; left: -40px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 4px solid var(--color-white);
  aspect-ratio: 280/200;
}
.hero-image-accent img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute; top: 40px; right: -20px;
  background: var(--color-white); color: var(--color-charcoal);
  padding: 14px 20px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Section Shared --- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--color-coral); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; line-height: 1.2;
  color: var(--color-charcoal); margin-bottom: 16px;
}
.section-subtitle { font-size: 17px; color: var(--color-text-light); line-height: 1.7; }

/* --- Services --- */
.services { padding: 100px 0; background: var(--color-cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-med);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-coral-light);
}
.service-icon {
  width: 64px; height: 64px;
  background: var(--color-cream); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: all var(--transition-fast);
}
.service-card:hover .service-icon { background: var(--color-coral); }
.service-card:hover .service-icon svg { stroke: var(--color-white); }
.service-title {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; color: var(--color-charcoal); margin-bottom: 10px;
}
.service-desc { font-size: 15px; color: var(--color-text-light); line-height: 1.7; }
.services-cta {
  text-align: center; padding: 32px;
  background: var(--color-white); border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}
.services-cta p { font-size: 16px; color: var(--color-text-light); }
.services-cta a { color: var(--color-coral); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.services-cta a:hover { color: var(--color-coral-dark); }

/* --- About --- */
.about { padding: 100px 0; background: var(--color-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-images { position: relative; }
.about-img-main {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 480/560;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-secondary {
  position: absolute; bottom: -30px; right: -20px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 4px solid var(--color-white);
  aspect-ratio: 320/240; width: 55%;
}
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-experience-badge {
  position: absolute; top: -20px; right: 40px;
  background: var(--color-coral); color: var(--color-white);
  padding: 20px 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-coral); text-align: center;
}
.badge-number { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.badge-label { font-size: 13px; font-weight: 700; line-height: 1.3; opacity: 0.9; }
.about-content { max-width: 520px; }
.about-text { font-size: 16px; color: var(--color-text-light); line-height: 1.8; margin-bottom: 16px; }
.about-features { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 36px; }
.about-feature { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.about-feature .check-icon { flex-shrink: 0; }

/* --- Gallery --- */
.gallery { padding: 100px 0; background: var(--color-cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  cursor: pointer;
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(45,45,45,0.4) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition-fast);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }

/* --- Testimonials --- */
.testimonials { padding: 100px 0; background: var(--color-white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--color-cream); border-radius: var(--radius-lg);
  padding: 36px 28px; position: relative;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-med);
}
.testimonial-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--color-coral-light);
}
.testimonial-quote {
  font-family: var(--font-display); font-size: 72px;
  color: var(--color-coral); line-height: 1;
  position: absolute; top: 16px; left: 24px; opacity: 0.3;
}
.testimonial-text {
  font-size: 16px; line-height: 1.8; color: var(--color-text);
  margin-bottom: 24px; margin-top: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-coral); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.author-name { display: block; font-weight: 700; font-size: 15px; color: var(--color-charcoal); }
.author-location { display: block; font-size: 13px; color: var(--color-text-muted); }

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--color-charcoal-dark) 0%, var(--color-charcoal) 100%);
}
.cta-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cta-shape { position: absolute; border-radius: 50%; opacity: 0.08; }
.cta-shape-1 { width: 500px; height: 500px; background: var(--color-coral); top: -200px; right: -100px; }
.cta-shape-2 { width: 300px; height: 300px; background: var(--color-coral-light); bottom: -100px; left: -50px; }
.cta-grid {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; z-index: 1; flex-wrap: wrap;
}
.cta-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; color: var(--color-white); margin-bottom: 12px;
}
.cta-text { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 480px; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Contact --- */
.contact { padding: 100px 0; background: var(--color-cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-desc { font-size: 16px; color: var(--color-text-light); line-height: 1.7; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { flex-shrink: 0; width: 52px; height: 52px; background: var(--color-cream-dark); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.contact-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin-bottom: 4px; }
.contact-value { font-size: 16px; font-weight: 700; color: var(--color-charcoal); transition: color var(--transition-fast); }
.contact-value:hover { color: var(--color-coral); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

.contact-form-wrapper {
  background: var(--color-white); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}
.form-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--color-charcoal); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; color: var(--color-charcoal); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
  border: 2px solid var(--color-border); background: var(--color-off-white);
  font-family: var(--font-body); font-size: 15px; color: var(--color-text);
  transition: all var(--transition-fast); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-coral); background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(249, 112, 102, 0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.form-success {
  text-align: center; padding: 40px 20px;
}
.form-success h4 { font-family: var(--font-display); font-size: 24px; color: var(--color-charcoal); margin: 16px 0 8px; }
.form-success p { color: var(--color-text-light); font-size: 15px; }

/* --- Footer --- */
.footer { background: var(--color-charcoal-dark); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand .logo { color: var(--color-white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--color-white); margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-coral); }
.footer-contact p { font-size: 14px; margin-bottom: 10px; line-height: 1.6; }
.footer-contact a { transition: color var(--transition-fast); }
.footer-contact a:hover { color: var(--color-coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* --- Mobile Menu --- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--color-white); flex-direction: column;
    padding: 80px 32px 32px; gap: 8px;
    box-shadow: var(--shadow-lg); transition: right var(--transition-med);
    align-items: stretch;
  }
  .nav-menu.open { right: 0; }
  .nav-list { flex-direction: column; gap: 4px; margin-bottom: 24px; }
  .nav-link { padding: 12px 16px; font-size: 16px; }
  .nav-menu > .btn { justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-description { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-wrapper { max-width: 480px; margin: 0 auto; }
  .hero-float-card { right: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-content { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-grid { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 600px) {
  .hero { padding-top: 72px; }
  .hero-image-accent { display: none; }
  .hero-float-card { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-wrapper { padding: 24px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-float-card { animation: none; }
}
