/* =========================================================
   Hair Junction — shared stylesheet
   Palette derived from the salon's own storefront signage and
   interior photos: deep maroon accent (signage red), dark wood
   brown (counters), charcoal (chairs/mirrors), warm cream
   background, white. See PLACEHOLDERS.md if you'd rather swap
   these for an official brand palette later.
   ========================================================= */

:root {
  --color-maroon: #7a1f2b;
  --color-maroon-dark: #5c1620;
  --color-wood: #6b4a35;
  --color-charcoal: #23201d;
  --color-cream: #f7f2ea;
  --color-cream-alt: #efe6d8;
  --color-white: #ffffff;
  --color-text: #2a2420;
  --color-text-muted: #6b6259;
  --color-border: #e4d9c8;
  --color-success: #3f7a4a;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(35, 32, 29, 0.08);
  --shadow-md: 0 8px 24px rgba(35, 32, 29, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--color-maroon); text-decoration: none; }
a:hover { color: var(--color-maroon-dark); }

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

.section { padding: 64px 0; }
.section--alt { background: var(--color-cream-alt); }
.section--dark {
  background: var(--color-charcoal);
  color: #ede6da;
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-heading .eyebrow {
  display: inline-block;
  color: var(--color-maroon);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--color-maroon);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-maroon-dark); color: var(--color-white); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--outline:hover { background: rgba(0,0,0,0.05); }

.btn--whatsapp {
  background: #25d366;
  color: var(--color-white);
}
.btn--whatsapp:hover { background: #1ebc59; color: var(--color-white); }

.btn--block { width: 100%; justify-content: center; }

.is-placeholder {
  outline: 2px dashed #b8860b;
  outline-offset: 3px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
}
.brand span { color: var(--color-maroon); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--color-maroon);
  border-bottom-color: var(--color-maroon);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-charcoal);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    transition: max-height 0.25s ease;
  }
  .nav-menu.is-open { max-height: 480px; }
  .nav-menu a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--color-border); }
  .header-cta .btn span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__content .eyebrow {
  color: var(--color-maroon);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__image { order: -1; }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.card--service { display: flex; flex-direction: column; gap: 10px; }
.card--service .price {
  font-weight: 700;
  color: var(--color-maroon);
  font-size: 1.15rem;
}
.card--service .duration {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-cream-alt);
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  border: 3px solid var(--color-cream-alt);
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-row:last-child { border-bottom: none; }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.gallery-filters button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
}
.gallery-filters button.is-active,
.gallery-filters button:hover {
  background: var(--color-maroon);
  border-color: var(--color-maroon);
  color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(35,32,29,0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-placeholder-note {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 28px;
  font-size: 0.9rem;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.review-card .stars { color: #d9a441; letter-spacing: 2px; margin-bottom: 10px; }
.review-card .reviewer { font-weight: 700; margin-top: 14px; }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}
.hours-table th { color: var(--color-text-muted); font-weight: 600; width: 45%; }

.placeholder-note {
  background: #fbf1d8;
  border: 1px dashed #b8860b;
  color: #6b5017;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

/* ---------- Contact block ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-tile { flex-shrink: 0; margin-bottom: 0; }

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: #cfc6b8;
  padding: 56px 0 24px;
}
.site-footer a { color: #f0e9db; }
.site-footer a:hover { color: var(--color-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { color: var(--color-white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #9c9284;
}
.social-icons { display: flex; gap: 12px; margin-top: 10px; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.social-icons a:hover { background: var(--color-maroon); }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
}
.whatsapp-float:hover { background: #1ebc59; color: #fff; }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 56px 24px 40px;
  text-align: center;
  background: var(--color-cream-alt);
  border-bottom: 1px solid var(--color-border);
}
.page-header .eyebrow {
  color: var(--color-maroon);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.badge {
  display: inline-block;
  background: var(--color-cream-alt);
  color: var(--color-maroon);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
[hidden] { display: none !important; }
