/*
Theme Name: Qhair @ Quakersmill
Theme URI: https://quakersmill.net
Author: Qhair @ Quakersmill
Description: Editorial, mobile-first WordPress theme for Qhair @ Quakersmill, a hair salon in Bexhill. Includes a homepage, team page, an interactive price list (hair + nails, editable in the Customizer), and a stylised blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: qhair
*/

/* ---------- Resets & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f6f1ea;
  font-family: 'Jost', sans-serif;
  color: #24241f;
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #163f39; text-decoration: none; }
a:hover { opacity: 0.78; }
p { margin: 0; }
button { font: inherit; }

.qh-serif { font-family: 'Cormorant Garamond', serif; }
.qh-eyebrow { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #b98d78; }

/* ---------- Buttons ---------- */
.qh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #163f39; color: #f6f1ea;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 38px; border-radius: 100px; border: 0; cursor: pointer;
}
.qh-btn:hover { opacity: 0.85; }
.qh-btn-sm { padding: 13px 26px; font-size: 13px; }
.qh-btn-gold { background: #c2937d; color: #163f39; }
.qh-btn-ghost { background: transparent; border: 1px solid #163f39; color: #163f39; }
.qh-link-underline { color: #163f39; border-bottom: 1px solid #c2937d; padding-bottom: 3px; }

/* ---------- Nav ---------- */
.qh-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,234,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px clamp(20px,5vw,64px);
  border-bottom: 1px solid rgba(22,63,57,0.12);
}
.qh-brand { display: flex; align-items: baseline; gap: 12px; }
.qh-brand .name { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; letter-spacing: 0.02em; color: #163f39; }
.qh-brand .sub { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #b98d78; }
.qh-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px,2.4vw,38px); font-size: 14px; letter-spacing: 0.06em; list-style: none; margin: 0; padding: 0; }
.qh-nav-links li { list-style: none; }
.qh-nav-links a { color: #3a3a34; }
.qh-nav-links li.current-menu-item > a, .qh-nav-links li.current_page_item > a, .qh-nav-links li.current-menu-parent > a { color: #163f39; border-bottom: 1px solid #c2937d; padding-bottom: 3px; }
.qh-nav-right { display: flex; align-items: center; gap: 16px; }
.qh-nav-phone { font-size: 14px; letter-spacing: 0.04em; color: #163f39; }
.qh-hamburger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.qh-hamburger span { display: block; width: 22px; height: 2px; background: #163f39; }
.qh-mobile-menu { display: none; }
.qh-mobile-menu ul { list-style: none; margin: 0; padding: 8px clamp(20px,5vw,64px) 20px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid rgba(22,63,57,0.12); background: #f6f1ea; }
.qh-mobile-menu a { display: block; padding: 12px 0; font-size: 16px; letter-spacing: 0.04em; color: #24241f; border-bottom: 1px solid rgba(22,63,57,0.08); }

/* ---------- Mobile sticky booking bar ---------- */
.qh-mobile-bar { display: none; }

@media (max-width: 760px) {
  .qh-nav-links { display: none; }
  .qh-nav-phone { display: none; }
  .qh-hamburger { display: flex; }
  .qh-mobile-menu.is-open { display: block; }
  .qh-mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246,241,234,0.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(22,63,57,0.14);
  }
  .qh-mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; padding: 15px 22px; border-radius: 100px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
  .qh-mobile-bar a.call { flex: 0 0 auto; border: 1px solid #163f39; color: #163f39; }
  .qh-mobile-bar a.book { background: #163f39; color: #f6f1ea; }
  body { padding-bottom: 72px; }
}

/* ---------- Prices: toggles & highlight ---------- */
.qh-chip, .qh-tab {
  padding: 10px 20px; border-radius: 100px; border: 1px solid rgba(22,63,57,0.3);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: #163f39; line-height: 1;
}
.qh-tab { padding: 12px 30px; letter-spacing: 0.14em; }
.qh-chip.is-active, .qh-tab.is-active { background: #163f39; color: #f6f1ea; border-color: #163f39; }
.qh-price-scroll { overflow-x: auto; border: 1px solid rgba(22,63,57,0.14); background: #fff; }
.qh-price-band { width: 100%; min-width: 620px; }
.qh-price-band.nails { min-width: 420px; }
.qh-price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.qh-price-table th, .qh-price-table td { padding: 15px 22px; }
.qh-price-table thead tr { background: #163f39; color: #f6f1ea; }
.qh-price-table thead th { padding: 18px 22px; vertical-align: bottom; text-align: right; }
.qh-price-table thead th.svc { text-align: left; position: sticky; left: 0; z-index: 2; background: #163f39; font-weight: 400; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #c2937d; }
.qh-price-table thead th .nm { font-family: 'Cormorant Garamond', serif; font-size: 24px; line-height: 1; }
.qh-price-table thead th .rl { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #b7c3bd; margin-top: 5px; }
.qh-price-table td.svc { position: sticky; left: 0; background: #fff; }
.qh-price-table td.price { text-align: right; }
.qh-price-table td.na { color: #b3b0a6; }
.qh-price-table tbody tr td { border-bottom: 1px solid rgba(22,63,57,0.08); }
.qh-price-table tbody tr:last-child td { border-bottom: 0; }
.qh-price-section td { background: #efe8dd !important; padding: 13px 22px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #8a6f5e; font-weight: 500; }

/* ---------- Blog ---------- */
.qh-blog-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(20px,5vw,64px); }
.qh-post-card { background: #fff; border: 1px solid rgba(22,63,57,0.1); margin-bottom: 28px; display: grid; grid-template-columns: 300px minmax(0,1fr); }
.qh-post-card .thumb { background: #d7d8d1; overflow: hidden; }
.qh-post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qh-post-card .body { padding: 30px 34px; }
.qh-post-card h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(26px,3vw,34px); margin: 8px 0 0; color: #163f39; }
.qh-post-meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #b98d78; }
.qh-post-card p { font-size: 15px; line-height: 1.7; color: #4a4a42; margin: 12px 0 0; }
@media (max-width: 680px) { .qh-post-card { grid-template-columns: 1fr; } .qh-post-card .thumb { aspect-ratio: 16/9; } }

.qh-single-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(32px,5vw,64px); max-width: 1180px; margin: 0 auto; padding: clamp(36px,5vw,72px) clamp(20px,5vw,64px); }
@media (max-width: 900px) { .qh-single-grid { grid-template-columns: 1fr; } }
.qh-article { max-width: 720px; }
.qh-article .hero-meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #b98d78; }
.qh-article h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(38px,5vw,60px); line-height: 1.05; letter-spacing: -0.01em; color: #163f39; margin: 14px 0 0; }
.qh-article .featured { margin: 28px 0 0; background: #d7d8d1; overflow: hidden; }
.qh-article .featured img { width: 100%; height: auto; }
.qh-content { font-size: 18px; line-height: 1.85; color: #33332c; margin-top: 30px; }
.qh-content > * { margin: 0 0 1.1em; }
.qh-content p { margin: 0 0 1.1em; }
.qh-content h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(28px,3.4vw,38px); color: #163f39; margin: 1.6em 0 0.5em; line-height: 1.15; }
.qh-content h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; color: #163f39; margin: 1.4em 0 0.4em; }
.qh-content a { color: #163f39; border-bottom: 1px solid #c2937d; }
.qh-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 28px; border-left: 3px solid #c2937d; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(24px,3vw,30px); line-height: 1.4; color: #163f39; }
.qh-content img { margin: 1.4em 0; }
.qh-content ul, .qh-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.qh-content li { margin: 0.4em 0; }

/* Sidebar widgets */
.qh-sidebar { display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: 96px; }
@media (max-width: 900px) { .qh-sidebar { position: static; } }
.qh-widget { background: #fff; border: 1px solid rgba(22,63,57,0.1); padding: 26px 26px 28px; }
.qh-widget.dark { background: #163f39; color: #eae4d8; border: 0; }
.qh-widget .qh-widget-title, .qh-widget .widget-title, .qh-widget h2, .qh-widget h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; margin: 0 0 14px; color: #163f39; letter-spacing: 0;
}
.qh-widget.dark .qh-widget-title, .qh-widget.dark h2, .qh-widget.dark h3 { color: #f6f1ea; }
.qh-widget ul { list-style: none; margin: 0; padding: 0; }
.qh-widget li { padding: 9px 0; border-bottom: 1px solid rgba(22,63,57,0.08); font-size: 15px; }
.qh-widget li:last-child { border-bottom: 0; }
.qh-widget a { color: #33332c; }
.qh-widget.dark a { color: #f6f1ea; }
.qh-widget p { font-size: 15px; line-height: 1.7; color: #4a4a42; }
.qh-widget.dark p { color: #b7c3bd; }
.qh-widget img { border-radius: 2px; }

/* Generic section helper for pages */
.qh-note { font-size: 13px; line-height: 1.6; color: #6a6a60; }
