/*
Theme Name: Precision Hair Clinic Premium
Theme URI: https://phclinic.co.uk/
Author: Precision Hair Clinic
Description: Premium custom theme for Precision Hair Clinic with a centred overlay logo, left-hand menu drawer and right-hand consultation call-to-action.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 7.1.2
Requires PHP: 7.4
License: GNU General Public License v2.0 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: precision-hair-clinic
*/

:root {
  --phc-navy: #1b3c53;
  --phc-navy-deep: #102d40;
  --phc-blush: #d2c1b6;
  --phc-cream: #f9f3ef;
  --phc-white: #ffffff;
  --phc-line: rgba(27, 60, 83, 0.16);
  --phc-shadow: 0 24px 70px rgba(16, 45, 64, 0.16);
  --phc-header-height: 96px;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, Arial, sans-serif; color: var(--phc-navy-deep); background: var(--phc-cream); }
body.phc-menu-open { overflow: hidden; }

.phc-skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: var(--phc-white);
  background: var(--phc-navy-deep);
  font: 700 0.78rem/1.2 Manrope, sans-serif;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.phc-skip-link:focus { transform: translateY(0); }

.phc-site-header {
  position: absolute;
  z-index: 9000;
  top: 0;
  right: 0;
  left: 0;
  color: var(--phc-navy);
  background: linear-gradient(180deg, rgba(249, 243, 239, 0.96), rgba(249, 243, 239, 0.72) 70%, rgba(249, 243, 239, 0));
  transition: background 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}
.admin-bar .phc-site-header { top: 32px; }
.phc-site-header.is-scrolled {
  position: fixed;
  background: rgba(249, 243, 239, 0.94);
  box-shadow: 0 12px 42px rgba(16, 45, 64, 0.09);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.phc-header-inner {
  position: relative;
  width: min(1420px, calc(100% - 56px));
  height: var(--phc-header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.phc-menu-button,
.phc-drawer-close {
  appearance: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: Manrope, sans-serif;
}
.phc-menu-button {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--phc-navy);
  background: transparent;
}
.phc-menu-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--phc-line);
  background: rgba(255, 255, 255, 0.32);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.phc-menu-icon i { width: 19px; height: 1px; display: block; background: currentColor; }
.phc-menu-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.phc-menu-button:hover .phc-menu-icon,
.phc-menu-button:focus-visible .phc-menu-icon { color: var(--phc-blush); background: var(--phc-navy); border-color: var(--phc-navy); }

.phc-brand {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--phc-navy);
  text-decoration: none;
  transform: translate(-50%, -50%);
}
.phc-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  color: var(--phc-blush);
  background: var(--phc-navy);
  box-shadow: 8px 8px 0 rgba(210, 193, 182, 0.58);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.phc-brand:hover .phc-brand-mark { transform: translate(-2px, -2px); box-shadow: 11px 11px 0 rgba(210, 193, 182, 0.58); }
.phc-brand-mark svg { width: 30px; height: 30px; overflow: visible; }
.phc-brand-copy { display: grid; gap: 5px; white-space: nowrap; line-height: 1; }
.phc-brand-copy strong {
  color: var(--phc-navy);
  font-family: Sora, sans-serif;
  font-size: 0.93rem;
  font-weight: 650;
  letter-spacing: 0.22em;
}
.phc-brand-copy span { color: var(--phc-navy); font: 750 0.54rem/1 Manrope, sans-serif; letter-spacing: 0.36em; }

.phc-header-cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--phc-white);
  background: var(--phc-navy);
  border: 1px solid var(--phc-navy);
  text-decoration: none;
  font: 800 0.67rem/1 Manrope, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.phc-header-cta:hover,
.phc-header-cta:focus-visible { color: var(--phc-navy); background: var(--phc-blush); transform: translateY(-2px); }

.phc-drawer-backdrop {
  position: fixed;
  z-index: 9100;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  background: rgba(9, 28, 41, 0.64);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.phc-drawer {
  position: fixed;
  z-index: 9200;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(620px, 92vw);
  overflow: auto;
  color: var(--phc-white);
  background: var(--phc-navy-deep);
  box-shadow: var(--phc-shadow);
  transform: translateX(-104%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-bar .phc-drawer { top: 32px; }
.phc-menu-open .phc-drawer-backdrop { opacity: 1; visibility: visible; }
.phc-menu-open .phc-drawer { transform: translateX(0); }
.phc-drawer-inner { min-height: 100%; display: flex; flex-direction: column; padding: 38px clamp(28px, 6vw, 68px) 42px; }
.phc-drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.phc-drawer-kicker { color: var(--phc-blush); font: 800 0.64rem/1.2 Manrope, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.phc-drawer-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--phc-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 1.45rem;
}
.phc-drawer-close:hover,
.phc-drawer-close:focus-visible { color: var(--phc-navy-deep); background: var(--phc-blush); }
.phc-drawer-nav { padding: 34px 0; }
.phc-drawer-group + .phc-drawer-group { margin-top: 28px; }
.phc-drawer-group-title { margin: 0 0 11px; color: rgba(255, 255, 255, 0.52); font: 800 0.59rem/1.2 Manrope, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.phc-drawer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 28px; }
.phc-drawer-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 0;
  color: var(--phc-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font: 500 clamp(0.9rem, 1.6vw, 1.04rem)/1.25 Sora, sans-serif;
}
.phc-drawer-links a::after { content: "↗"; margin-left: auto; color: var(--phc-blush); opacity: 0; transform: translate(-6px, 5px); transition: opacity 0.2s ease, transform 0.2s ease; }
.phc-drawer-links a:hover,
.phc-drawer-links a:focus-visible,
.phc-drawer-links a[aria-current="page"] { color: var(--phc-blush); }
.phc-drawer-links a:hover::after,
.phc-drawer-links a:focus-visible::after,
.phc-drawer-links a[aria-current="page"]::after { opacity: 1; transform: translate(0, 0); }
.phc-drawer-contact { margin-top: auto; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.phc-drawer-contact p { margin: 0 0 13px; color: rgba(255, 255, 255, 0.62); font: 500 0.75rem/1.65 Manrope, sans-serif; }
.phc-drawer-contact-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.phc-drawer-contact a { color: var(--phc-white); text-decoration: none; font: 750 0.75rem/1.4 Manrope, sans-serif; }

.phc-page-shell { min-height: 60vh; }
.phc-imported-page { overflow: clip; }

.phc-site-footer { position: relative; z-index: 5; color: rgba(255, 255, 255, 0.72); background: var(--phc-navy-deep); font-family: Manrope, sans-serif; }
.phc-footer-inner { width: min(1280px, calc(100% - 56px)); margin: 0 auto; }
.phc-footer-main { display: grid; grid-template-columns: 1.3fr 0.8fr 0.95fr 1fr; gap: clamp(34px, 5vw, 76px); padding: 76px 0 58px; }
.phc-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--phc-white); text-decoration: none; }
.phc-footer-brand .phc-brand-mark { width: 42px; height: 42px; flex-basis: 42px; box-shadow: none; }
.phc-footer-brand-copy { display: grid; gap: 4px; }
.phc-footer-brand-copy strong { color: var(--phc-white); font: 650 0.86rem/1 Sora, sans-serif; letter-spacing: 0.2em; }
.phc-footer-brand-copy span { color: var(--phc-blush); font: 700 0.52rem/1 Manrope, sans-serif; letter-spacing: 0.32em; }
.phc-footer-about { max-width: 350px; margin: 22px 0 0; font-size: 0.78rem; line-height: 1.75; }
.phc-site-footer h2 { margin: 4px 0 20px; color: var(--phc-blush); font: 800 0.61rem/1.2 Manrope, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.phc-footer-links { display: grid; gap: 10px; }
.phc-footer-links a,
.phc-footer-contact a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.75rem; line-height: 1.55; }
.phc-footer-links a:hover,
.phc-footer-contact a:hover { color: var(--phc-blush); }
.phc-footer-contact { display: grid; gap: 10px; }
.phc-footer-contact address { font-style: normal; font-size: 0.75rem; line-height: 1.7; }
.phc-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.67rem; }
.phc-footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.phc-footer-legal a { color: inherit; text-decoration: none; }

.phc-standard-page { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 156px 0 100px; color: var(--phc-navy-deep); font-family: Manrope, sans-serif; }
.phc-standard-page h1 { margin: 0 0 28px; color: var(--phc-navy); font: 500 clamp(2.6rem, 6vw, 5.5rem)/0.98 Sora, sans-serif; letter-spacing: -0.06em; }
.phc-standard-page a { color: var(--phc-navy); }
.phc-standard-page img { max-width: 100%; height: auto; }
.phc-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--phc-line); }
.phc-comments-title { font: 600 1.4rem/1.25 Sora, sans-serif; }
.phc-comment-list { display: grid; gap: 24px; padding-left: 0; list-style: none; }
.phc-comment-list .comment-body { padding: 24px; background: var(--phc-white); border: 1px solid var(--phc-line); }

@media (max-width: 900px) {
  .phc-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .phc-site-header,
  .admin-bar .phc-drawer { top: 46px; }
}

@media (max-width: 680px) {
  :root { --phc-header-height: 80px; }
  .phc-header-inner,
  .phc-footer-inner { width: min(100% - 28px, 1280px); }
  .phc-menu-label,
  .phc-brand-copy { display: none; }
  .phc-brand-mark { width: 42px; height: 42px; flex-basis: 42px; box-shadow: 6px 6px 0 rgba(210, 193, 182, 0.58); }
  .phc-menu-icon { width: 42px; height: 42px; }
  .phc-header-cta { min-height: 42px; padding: 0 15px; font-size: 0.6rem; letter-spacing: 0.1em; }
  .phc-header-cta .phc-cta-long { display: none; }
  .phc-drawer-links { grid-template-columns: 1fr; }
  .phc-footer-main { grid-template-columns: 1fr; padding-top: 60px; }
  .phc-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* The shared header is loaded after each page's design stylesheet. */
.phc-brand:focus-visible, .phc-header-cta:focus-visible, .phc-menu-button:focus-visible { outline: 3px solid var(--phc-blush); outline-offset: 5px; }
.phc-brand-copy strong, .phc-brand-copy span { display: block; }
.phc-drawer[aria-hidden="true"] { visibility: hidden; }
.phc-drawer[aria-hidden="false"] { visibility: visible; }
.phc-drawer-nav h2 { line-height: 1.35; }
.phc-drawer-links a { margin: 0; letter-spacing: normal; }
.phc-page-shell .hero { padding-top: var(--phc-header-height); }
.phc-imported-page { overflow-x: clip; overflow-y: visible; }
.phc-imported-page [class*="-grid"] > *, .phc-imported-page [class*="-split"] > * { min-width: 0; }
.phc-imported-page .clinic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .phc-imported-page .clinic-grid { grid-template-columns: minmax(0, 1fr); } }
.reveal { opacity: 1; transform: none; }
.phc-js .reveal:not(.visible) { opacity: 0; transform: translateY(24px); }
.phc-imported-page .section-nav { top: calc(var(--phc-header-height) + var(--phc-admin-height, 0px)); }
.admin-bar { --phc-admin-height: 32px; }
.phc-imported-page .faq-tools { top: calc(var(--phc-header-height) + var(--phc-admin-height, 0px)); }
html { scroll-padding-top: calc(var(--phc-header-height) + 80px); }
.phc-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.phc-form-feedback { padding: 16px 18px; border: 1px solid currentColor; font-size: .82rem; line-height: 1.6; }
.phc-form-feedback.is-success { color: #2e6443; background: #f1f8f3; }
.phc-form-feedback.is-error { color: #8c3030; background: #fff5f3; }
.subscribe-form .phc-form-feedback { color: #fff; background: rgba(255,255,255,.1); }
@media (min-width: 681px) and (max-width: 900px) {
  .phc-brand-copy strong { font-size: .78rem; letter-spacing: .14em; }
  .phc-brand-copy span { font-size: .48rem; letter-spacing: .25em; }
  .phc-header-cta { padding-inline: 16px; font-size: .6rem; }
}
@media (max-width: 782px) { .admin-bar { --phc-admin-height: 46px; } }
@media (max-width: 680px) {
  .phc-page-shell .hero { padding-top: var(--phc-header-height); }
  .phc-header-cta { min-height: 44px; }
  .phc-menu-icon, .phc-menu-button { min-height: 44px; }
}
@media print { .phc-site-header, .phc-drawer, .phc-drawer-backdrop, .phc-site-footer { display: none; } .phc-page-shell .hero { padding-top: 0; } }
