/* =====================================================
   Nicole James Hair Salon — Stylesheet
   ===================================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Custom Properties */
:root {
  --bg:          #FDFBF8;
  --surface:     #F4EDE4;
  --charcoal:    #1A1A1A;
  --charcoal-2:  #2E2E2E;
  --muted:       #6B6260;
  --gold:        #BFA37A;
  --gold-dk:     #8B7255;
  --white:       #FFFFFF;
  --border:      rgba(0,0,0,0.09);

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:   1200px;
  --gutter:  clamp(1rem, 4vw, 3rem);
  --sec-v:   clamp(5rem, 9vw, 8rem);
  --nav-h:   72px;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t:       0.3s var(--ease);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* =====================================================
   Utility
   ===================================================== */

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

.section-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--charcoal);
}

.section-sub {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 2.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover { background: var(--gold-dk); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background var(--t), box-shadow var(--t);
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 24px rgba(0,0,0,0.07);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.4375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--t);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav.scrolled .nav__logo { color: var(--charcoal); }
.nav--solid .nav__logo  { color: var(--charcoal); }

.nav__row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--t);
}
.nav.scrolled .nav__link,
.nav--solid   .nav__link  { color: var(--charcoal); }
.nav__link:hover          { color: var(--gold); }

.nav__social {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.nav__soc {
  display: flex;
  color: rgba(255,255,255,0.75);
  transition: color var(--t);
}
.nav.scrolled .nav__soc,
.nav--solid   .nav__soc  { color: var(--charcoal); }
.nav__soc:hover          { color: var(--gold); }

.nav__book {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.375rem;
  border: 1px solid rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  transition: all var(--t);
}
.nav.scrolled .nav__book,
.nav--solid   .nav__book {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.nav__book:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 23px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--t);
}
.nav.scrolled .nav__toggle span,
.nav--solid   .nav__toggle span { background: var(--charcoal); }

@media (max-width: 820px) {
  .nav__toggle { display: flex; }

  .nav__row {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.25rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }
  .nav__row.open { display: flex; }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
  .nav__link { color: var(--charcoal) !important; font-size: 0.9375rem; }
  .nav__soc  { color: var(--charcoal) !important; }
  .nav__book { color: var(--charcoal) !important; border-color: var(--charcoal) !important; }
}

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

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.hero.loaded .hero__img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,8,6,0.28) 0%,
    rgba(10,8,6,0.52) 55%,
    rgba(10,8,6,0.72) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
  max-width: 760px;
}

.hero__eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.hero__title em { font-style: italic; }

.hero__sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.04em;
  margin-bottom: 2.75rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.9375rem 2.75rem;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  transition: all var(--t);
}
.hero__cta:hover { background: var(--gold); border-color: var(--gold); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.35);
  animation: pulse-line 2.4s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.45); opacity: 0.15; }
}

/* =====================================================
   Pricing Notice Banner
   ===================================================== */

.pricing-banner {
  display: none; /* shown via JS when PRICING_NOTICE.show = true */
  background: var(--gold-dk);
  color: var(--white);
  text-align: center;
  padding: calc(var(--nav-h) + 0.75rem) var(--gutter) 0.875rem;
}
.pricing-banner p {
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.pricing-banner strong { font-weight: 600; }

/* =====================================================
   About / Info
   ===================================================== */

.about {
  padding: var(--sec-v) 0;
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
}

.about__img-wrap {
  position: relative;
}
.about__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
/* Decorative border accent */
.about__img-wrap::after {
  content: '';
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  width: 55%;
  height: 55%;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: -1;
}

.about__content { }
.about__header  { margin-bottom: 1.75rem; }

.about__text {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
@media (max-width: 460px) {
  .about__cards { grid-template-columns: 1fr; }
}

.info-card {
  padding: 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.info-card__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.75rem;
}
.info-card__body {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--charcoal);
}
.info-card__body em { color: var(--muted); }

/* Hours table */
.hours {
  width: 100%;
  border-collapse: collapse;
}
.hours tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.hours tr:last-child { border-bottom: none; }
.hours td {
  padding: 0.4375rem 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--charcoal);
}
.hours td:first-child { color: var(--muted); width: 55%; }
.hours td:last-child  { white-space: nowrap; }
.hours .closed { color: var(--muted); }

.about__actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* =====================================================
   Services
   ===================================================== */

.services {
  background: var(--charcoal-2);
  padding: var(--sec-v) 0;
}

.services .section-eyebrow { color: var(--gold); }
.services .section-title   { color: var(--white); }

.services__header { text-align: center; margin-bottom: 3.5rem; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 680px) {
  .services__grid { grid-template-columns: 1fr; }
}

.svc-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}
@media (max-width: 680px) {
  .svc-card { aspect-ratio: 4/3; }
}

.svc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.svc-card:hover .svc-card__img { transform: scale(1.06); }

.svc-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
}
.svc-card__title {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.svc-card__text {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

/* =====================================================
   Testimonials
   ===================================================== */

.testimonials {
  padding: var(--sec-v) 0;
  background: var(--surface);
}
.testimonials__header { text-align: center; margin-bottom: 3.5rem; }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

.tcard {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
}
.tcard::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 0.625rem;
  left: 1.5rem;
}

.tcard__stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}
.tcard__star { color: var(--gold); font-size: 0.8125rem; }

.tcard__text {
  font-size: 1.0625rem;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal-2);
  line-height: 1.8;
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.tcard__author {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

/* =====================================================
   Gallery Strip
   ===================================================== */

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 300px;
}
@media (max-width: 600px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); height: 220px; }
}

.gallery-strip__item { overflow: hidden; }
.gallery-strip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}
.gallery-strip__item:hover .gallery-strip__img { transform: scale(1.1); }

/* =====================================================
   Contact
   ===================================================== */

.contact {
  padding: var(--sec-v) 0;
  background: var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* Form */
.form-group { margin-bottom: 1.125rem; }
.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4375rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--charcoal);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  transition: border-color var(--t);
}
.form-input:focus,
.form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 130px; }

.form-status {
  display: none;
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 300;
}
.form-status.success { color: #3a6b3a; display: block; }
.form-status.error   { color: #8b2020; display: block; }

/* Contact Info */
.contact__info { padding-top: 0.5rem; }
.cinfo-item { margin-bottom: 2rem; }
.cinfo-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.5rem;
}
.cinfo-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--charcoal);
}
.cinfo-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}
.cinfo-text a:hover { color: var(--gold-dk); }

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

.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 3.5rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color var(--t);
}
.footer__link:hover { color: var(--gold); }

.footer__soc {
  display: flex;
  gap: 1.125rem;
}
.footer__soc-link {
  display: flex;
  color: rgba(255,255,255,0.5);
  transition: color var(--t);
}
.footer__soc-link:hover { color: var(--gold); }

.footer__hr {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.38);
}
.footer__copy a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =====================================================
   Appointments / Book Page
   ===================================================== */

.page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  background: var(--surface);
  text-align: center;
}

/* Vagaro loading state */
.vagaro-section {
  padding: var(--sec-v) 0;
  background: var(--bg);
  min-height: 600px;
}

.vagaro-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 340px;
  color: var(--muted);
}

.vagaro-loader__spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.vagaro-loader__text {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.vagaro-widget,
.vagaro-widget .vagaro,
.vagaro-widget iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
