/* ==========================================================
   SOL SALON — COMPONENTS.CSS
   Navigation | Footer | Buttons | Cards | Page Heroes
   ========================================================== */

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid var(--charcoal);
}

.btn--primary:hover {
  background: var(--matte-black);
  border-color: var(--matte-black);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.2);
}

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

.btn--outline:hover {
  background: var(--charcoal);
  color: var(--cream);
  transform: translateY(-1px);
}

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

.btn--outline-cream:hover {
  background: var(--cream);
  color: var(--charcoal);
}

.btn--oak {
  background: var(--oak);
  color: var(--warm-white);
  border: 1px solid var(--oak);
}

.btn--oak:hover {
  background: var(--oak-dark);
  border-color: var(--oak-dark);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--sand);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* On hero (transparent nav), keep the logo visible — transparent PNG renders naturally */
.nav--hero .nav__logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  transition: var(--transition-fast);
}

.nav--hero .nav__links a {
  color: rgba(250, 248, 244, 0.9);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oak);
  transition: width 0.3s ease;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover {
  color: var(--charcoal);
  opacity: 0.8;
}

.nav__book {
  font-size: var(--fs-xs) !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 12px 28px !important;
  background: var(--charcoal) !important;
  color: var(--cream) !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition) !important;
}

.nav--hero .nav__book {
  background: rgba(250,248,244,0.15) !important;
  border: 1px solid rgba(250,248,244,0.3) !important;
  color: var(--cream) !important;
  backdrop-filter: blur(8px);
}

.nav.scrolled .nav__book {
  background: var(--charcoal) !important;
  color: var(--cream) !important;
  border: 1px solid var(--charcoal) !important;
}

.nav__book:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1100;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
  transform-origin: center;
}

.nav--hero .nav__hamburger span {
  background: var(--cream);
}

.nav.scrolled .nav__hamburger span {
  background: var(--charcoal);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--charcoal) !important;
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--charcoal) !important;
}

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a:not(.btn) {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  transition: color 0.2s;
}

.nav__mobile a:not(.btn):hover {
  color: var(--oak);
}

.nav__mobile .btn {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }
  .nav__book { display: none !important; }
  .nav__logo-img { height: 26px; }
}

/* ----------------------------------------------------------
   PAGE HERO (Interior Pages)
   ---------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: var(--sand-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 130, 0.12) 0%, transparent 70%);
}

.page-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  position: relative;
}

.page-hero__sub {
  font-size: var(--fs-sm);
  color: var(--body-text);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(232, 221, 208, 0.15);
}

.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  /* Logo is brown on transparent — invert to white for dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 4px;
}

.footer__tagline {
  color: var(--taupe);
  margin-top: 20px;
  line-height: 1.7;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232,221,208,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--taupe);
}

.footer__social a:hover {
  border-color: var(--oak);
  color: var(--oak);
  transform: translateY(-2px);
}

.footer__col h5 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 24px;
}

.footer__col h5:not(:first-child) {
  margin-top: 32px;
}

.footer__col ul li {
  margin-bottom: 12px;
}

.footer__col ul li a {
  font-size: 0.96rem;
  color: var(--taupe);
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: var(--cream);
}

.footer__address {
  font-size: 0.96rem;
  color: var(--taupe);
  line-height: 1.6;
  font-style: normal;
}

.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--taupe);
  border-bottom: 1px solid rgba(232, 221, 208, 0.1);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

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

.footer__hours span:first-child {
  font-weight: 500;
  color: var(--sand);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.85rem;
  color: var(--taupe-mid);
}

.footer__bottom a {
  color: var(--taupe-mid);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--cream);
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ----------------------------------------------------------
   SERVICE CARDS
   ---------------------------------------------------------- */
.service-card {
  background: var(--warm-white);
  border: var(--border-thin);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--oak);
  transform: scaleY(0);
  transition: transform 0.35s ease;
  transform-origin: bottom;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-card__price {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--oak-dark);
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   TESTIMONIAL CARDS
   ---------------------------------------------------------- */
.testimonial-card {
  background: var(--warm-white);
  padding: 48px 40px;
  border: var(--border-thin);
  position: relative;
}

.testimonial-card__text::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--sand);
  position: absolute;
  top: -24px;
  left: -12px;
  opacity: 0.5;
  z-index: -1;
}

.testimonial-card__text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 28px;
  position: relative;
}

.testimonial-card__stars {
  color: var(--oak);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.testimonial-card__author {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-mid);
}

.testimonial-card__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.testimonial-card__chip {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--sand-light);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--sand);
}

/* ----------------------------------------------------------
   PILLAR CARDS (Brand Pillars)
   ---------------------------------------------------------- */
.pillar-card {
  padding: 48px 36px;
  border: var(--border-thin);
  background: var(--warm-white);
  transition: var(--transition);
}

.pillar-card:hover {
  box-shadow: var(--shadow-hover);
}

.pillar-card__icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.pillar-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.pillar-card__text {
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.75;
}

/* ----------------------------------------------------------
   CTA SECTION (Booking Banner)
   ---------------------------------------------------------- */
.cta-section {
  background: var(--charcoal);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 168, 130, 0.15) 0%, transparent 60%);
}

.cta-section__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 20px;
  display: block;
  position: relative;
}

.cta-section__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 20px;
  position: relative;
}

.cta-section__sub {
  font-size: var(--fs-sm);
  color: var(--taupe);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ----------------------------------------------------------
   INSTAGRAM GRID
   ---------------------------------------------------------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.ig-grid__item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.ig-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ig-grid__item:hover img {
  transform: scale(1.06);
}

.ig-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0);
  transition: background 0.3s;
}

.ig-grid__item:hover::after {
  background: rgba(26,26,26,0.15);
}

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

@media (max-width: 480px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------------------------------------
   BREADCRUMB / CATEGORY NAV
   ---------------------------------------------------------- */
.category-nav {
  position: sticky;
  top: var(--nav-height);
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: var(--border-thin);
  padding: 0;
}

.category-nav__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__inner::-webkit-scrollbar { display: none; }

.category-nav__item {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-text);
  padding: 20px 28px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.category-nav__item:hover,
.category-nav__item.active {
  color: var(--charcoal);
  border-bottom-color: var(--oak);
}

/* ----------------------------------------------------------
   POLICY ACCORDION
   ---------------------------------------------------------- */
.policy-section {
  border-bottom: var(--border-thin);
  padding: 40px 0;
}

.policy-section:first-child {
  border-top: var(--border-thin);
}

.policy-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.policy-section__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
}

.policy-section__icon {
  font-size: 1.5rem;
  color: var(--oak);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.policy-section.open .policy-section__icon {
  transform: rotate(45deg);
}

.policy-section__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.policy-section.open .policy-section__body {
  max-height: 800px;
}

.policy-section__content {
  padding-top: 24px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--body-text);
}

.policy-section__content p + p {
  margin-top: 16px;
}

@media (max-width: 600px) {
  .pillar-card,
  .service-card,
  .testimonial-card {
    padding: 32px 24px;
  }
}
