/* ───────────────────────────────────────────────────────────────────
   Jodi's Barbershop and Hairstyling — Custom Styles
   Palette: Plum (#6B3A6B) + Amber (#F5B041)
   Fonts: DM Serif Display + Nunito
─────────────────────────────────────────────────────────────────── */

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

:root {
  --plum:        #6B3A6B;
  --plum-dark:   #4E2A4E;
  --plum-light:  #8B5A8B;
  --plum-pale:   #F3E8F3;
  --amber:       #F5B041;
  --amber-dark:  #D4943A;
  --amber-pale:  #FFF3E0;
  --cream:       #FFFAF5;
  --warm-white:  #FFFDF9;
  --text:        #2D1F2D;
  --text-light:  #6B5568;
  --text-muted:  #9B8598;
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --shadow-sm:   0 2px 8px rgba(107,58,107,.08);
  --shadow-md:   0 8px 30px rgba(107,58,107,.12);
  --shadow-lg:   0 16px 60px rgba(107,58,107,.15);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
  color: var(--plum-dark);
}

em { font-style: italic; color: var(--amber-dark); }

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--plum);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}
.btn--primary:hover {
  background: var(--plum-dark);
  border-color: var(--plum-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: #fff;
  color: var(--plum);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn--outline:hover {
  background: var(--plum);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── SECTION TAGS ────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  background: var(--amber-pale);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ── HEADER / NAV ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,250,245,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107,58,107,.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--plum-dark);
  font-weight: 700;
}
.logo-text { font-size: 1.25rem; }

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-menu a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--plum); background: var(--plum-pale); }
.btn--nav {
  background: var(--amber);
  color: var(--plum-dark) !important;
  border-radius: var(--radius-lg);
  margin-left: 8px;
}
.btn--nav:hover {
  background: var(--amber-dark);
  color: var(--plum-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: var(--transition);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hamburger { top: 50%; transform: translate(-50%, -50%); }
.hamburger::before { content: ''; top: -7px; left: 0; transform: none; }
.hamburger::after { content: ''; bottom: -7px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 50%, var(--plum-light) 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero-blob--1 {
  width: 600px; height: 600px;
  background: var(--amber);
  top: -200px; right: -100px;
}
.hero-blob--2 {
  width: 400px; height: 400px;
  background: var(--plum-light);
  bottom: -100px; left: -50px;
}
.hero-blob--3 {
  width: 250px; height: 250px;
  background: #fff;
  top: 40%; left: 30%;
  opacity: .08;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,176,65,.2);
  border: 1px solid rgba(245,176,65,.4);
  color: var(--amber);
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  letter-spacing: .05em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.15;
}
.hero-title em { color: var(--amber); font-style: italic; }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 600;
}
.trust-item svg { flex-shrink: 0; }

/* Hero visual cards */
.hero-visual {
  position: relative;
  height: 600px;
}
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card--main {
  width: 340px;
  height: 440px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.hero-card--small {
  width: 170px;
  height: 170px;
  z-index: 3;
  border: 4px solid rgba(255,255,255,.3);
}
.hero-card--top {
  left: 0;
  top: 20px;
}
.hero-card--bottom {
  left: 40px;
  bottom: 20px;
}

/* ── SERVICES ────────────────────────────────────────────────────── */
.services {
  padding: 100px 0;
  background: var(--warm-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid rgba(107,58,107,.07);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--plum), var(--amber));
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--plum-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--plum);
  color: #fff;
  transform: scale(1.05);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--plum-dark);
}
.service-card p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── ABOUT ───────────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-images {
  position: relative;
  height: 600px;
}
.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: absolute;
  width: 360px;
  height: 460px;
  right: 0;
  top: 0;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: absolute;
  width: 220px;
  height: 220px;
  left: 0;
  bottom: 0;
  border: 5px solid var(--cream);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }

.about-stat {
  position: absolute;
  bottom: 60px;
  right: 40px;
  background: var(--plum);
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
}
.stat-number {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .9;
}

.about-content .section-title { margin-bottom: 24px; }
.about-content > p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.about-list {
  list-style: none;
  margin: 28px 0;
  display: grid;
  gap: 14px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}
.about-list li svg { flex-shrink: 0; margin-top: 2px; }
.about-content .btn { margin-top: 8px; }

/* ── GALLERY ─────────────────────────────────────────────────────── */
.gallery {
  padding: 100px 0;
  background: var(--warm-white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: auto;
}
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107,58,107,.4) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 100%);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--amber);
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  top: -150px;
  right: -100px;
  pointer-events: none;
}
.testimonials .section-tag { background: rgba(245,176,65,.2); color: var(--amber); }
.testimonials .section-title { color: #fff; }
.testimonials .section-title em { color: var(--amber); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}
.testimonial-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.quote-mark {
  margin-bottom: 16px;
  opacity: .8;
}
.testimonial-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-name {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
}
.author-location {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
}
.contact-details {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--plum-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: 'Nunito', sans-serif;
}
.contact-item span,
.contact-item a {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}
.contact-item a:hover { color: var(--plum); text-decoration: underline; }
.contact-item address { font-style: normal; line-height: 1.6; }

/* Contact form */
.contact-form-wrapper {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(107,58,107,.06);
}
.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--plum-dark);
}
.form-note {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid rgba(107,58,107,.12);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(107,58,107,.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: #E8F5E9;
  border-radius: var(--radius-md);
  font-size: .95rem;
  animation: fadeIn .4s ease;
}
.form-success strong { color: #2D7D4F; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--plum-dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; line-height: 1.8; max-width: 280px; }
.footer-brand .logo-icon circle { fill: var(--amber); }
.footer-brand .logo-icon path:last-child { fill: var(--plum-dark); }

.footer-links h4,
.footer-contact h4 {
  color: var(--amber);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}
.footer-links ul { list-style: none; display: grid; gap: 12px; }
.footer-links a {
  font-size: .92rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--amber); padding-left: 6px; }
.footer-contact address { font-style: normal; font-size: .92rem; line-height: 1.7; margin-bottom: 12px; }
.footer-contact a { color: rgba(255,255,255,.75); transition: var(--transition); }
.footer-contact a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ── MOBILE NAV ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 1001; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--warm-white);
    box-shadow: var(--shadow-lg);
    padding: 90px 32px 40px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .nav-menu a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.05rem;
  }
  .btn--nav { margin-left: 0; margin-top: 12px; text-align: center; }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45,31,45,.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .mobile-overlay.active { opacity: 1; pointer-events: all; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 140px 0 100px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 420px; margin-bottom: 20px; }
  .about-img-main { width: 260px; height: 340px; right: 20px; }
  .about-img-accent { width: 160px; height: 160px; left: 20px; bottom: 20px; }
  .about-stat { right: 20px; bottom: 40px; padding: 18px 22px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 32px 24px; }

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

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-row: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
