/*
Theme Name: Best Barbers Napier
Theme URI: https://bestbarbers.co.nz/
Author: Best Barbers
Description: Brand-led multi-location WordPress theme for Best Barbers New Zealand.
Version: 3.0.0
Text Domain: best-barbers-napier
*/

:root {
    --ink: #11120f;
    --ink-soft: #1c1e1a;
    --paper: #f6f1e8;
    --cream: #ece3d6;
    --white: #fffdf8;
    --red: #be382e;
    --blue: #143d67;
    --sand: #c6a274;
    --line: rgba(17,18,15,.16);
    --line-light: rgba(255,255,255,.18);
    --shadow: 0 24px 70px rgba(17,18,15,.12);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.35rem; }
h1, h2, h3, h4 { margin: 0; color: inherit; line-height: .98; letter-spacing: -.04em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h3, h4 { font-family: var(--sans); font-weight: 750; }
h1 { font-size: clamp(3.8rem, 8.3vw, 8.5rem); }
h2 { font-size: clamp(2.8rem, 5.4vw, 5.6rem); }
h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); }
ul { margin: 0; padding: 0; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: clamp(80px, 10vw, 150px) 0; }
.section-cream { background: var(--cream); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 16px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--red);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow-light { color: #e4c8a8; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; letter-spacing: -.02em; }

.brand-bar { background: var(--ink); color: var(--white); border-bottom: 1px solid var(--line-light); }
.brand-bar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.site-header { position: relative; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-logo {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(17,18,15,.24);
    border-radius: 50%;
    object-fit: cover;
    object-position: 30% 50%;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.02em; }
.brand-copy span { margin-top: 7px; font-size: .61rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }
.site-nav li a { position: relative; font-size: .82rem; font-weight: 750; letter-spacing: .035em; }
.site-nav li a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--red); transition: right .25s ease; }
.site-nav li a:hover::after, .site-nav li a:focus-visible::after { right: 0; }
.header-cta { padding: 12px 18px; color: var(--white); background: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.menu-toggle { display: none; border: 1px solid var(--ink); background: transparent; padding: 10px 14px; font: 750 .75rem/1 var(--sans); text-transform: uppercase; }

.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .065em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); }
.button-light { color: var(--ink); background: var(--white); }
.button-ghost-light { color: var(--white); border-color: rgba(255,255,255,.45); background: transparent; }
.button-outline { border-color: var(--ink); background: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.brand-hero { overflow: hidden; background: var(--paper); }
.brand-hero-grid { min-height: 710px; display: grid; grid-template-columns: 1.05fr .95fr; }
.brand-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 8vw 80px 0; }
.brand-hero h1 { max-width: 780px; }
.brand-hero h1 em { color: var(--red); font-weight: 400; }
.brand-hero-copy > p { max-width: 620px; margin: 34px 0; color: #45463f; font-size: 1.16rem; }
.hero-services { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 54px; list-style: none; color: #56574f; font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.hero-services li:not(:last-child)::after { content: "·"; margin-left: 20px; color: var(--red); }
.brand-hero-media { position: relative; min-height: 710px; margin-right: calc((100vw - min(1180px, calc(100vw - 48px))) / -2); background: var(--ink); }
.brand-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,18,15,.08), rgba(17,18,15,.36)); }
.brand-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06); }
.hero-stamp { position: absolute; z-index: 2; right: 7vw; bottom: 54px; width: 154px; height: 154px; display: grid; place-content: center; border-radius: 50%; color: var(--white); background: var(--red); text-align: center; text-transform: uppercase; transform: rotate(-7deg); }
.hero-stamp strong { font-family: var(--serif); font-size: 1.65rem; line-height: 1; text-transform: none; }
.hero-stamp span { margin-top: 8px; font-size: .62rem; font-weight: 800; letter-spacing: .16em; }

.brand-pathways { color: var(--white); background: var(--ink); }
.pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pathway-grid a { position: relative; min-height: 164px; padding: 28px 30px; border-right: 1px solid var(--line-light); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.pathway-grid a:first-child { border-left: 1px solid var(--line-light); }
.pathway-grid a::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateY(101%); transition: transform .3s ease; }
.pathway-grid a:hover::before, .pathway-grid a:focus-visible::before { transform: translateY(0); }
.pathway-grid span, .pathway-grid strong, .pathway-grid small { position: relative; z-index: 1; }
.pathway-grid span { position: absolute; top: 22px; right: 24px; color: #c9ad8e; font: italic 1.2rem/1 var(--serif); }
.pathway-grid strong { font-family: var(--serif); font-size: 1.75rem; }
.pathway-grid small { margin-top: 8px; color: #bcbdb5; font-size: .66rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 140px); align-items: start; }
.intro-copy { max-width: 630px; padding-top: 6px; }
.intro-copy > p:not(.lead) { color: #58594f; }
.intro-copy .text-link { margin-top: 12px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.section-heading > p { max-width: 480px; margin: 0; color: #64655d; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,253,248,.22); transition: background .25s ease, color .25s ease; }
.service-card:hover, .service-card:focus-visible, .service-card-featured { color: var(--white); background: var(--ink); }
.card-number { margin-left: auto; color: var(--red); font: italic 1.2rem/1 var(--serif); }
.service-card h3 { margin-top: 36px; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.3rem); }
.service-card p { max-width: 500px; margin-top: 18px; color: #686960; }
.service-card:hover p, .service-card:focus-visible p, .service-card-featured p { color: #c8c8c1; }
.card-link { margin-top: auto; padding-top: 24px; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.shop-story .section-heading h2 { max-width: 700px; }
.shop-collage { display: grid; grid-template-columns: 1.4fr .8fr; grid-template-rows: repeat(2, 260px); gap: 18px; }
.shop-collage figure { margin: 0; overflow: hidden; background: #d6c9b8; }
.shop-collage-large { grid-row: 1 / 3; }
.shop-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shop-collage figure:hover img { transform: scale(1.025); }

.locations-section { color: var(--white); background: var(--blue); }
.locations-heading > p { color: rgba(255,255,255,.68); }
.location-list { border-top: 1px solid var(--line-light); }
.location-row { display: grid; grid-template-columns: 70px 1.1fr .8fr auto; gap: 28px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line-light); }
.location-index { align-self: start; padding-top: 5px; color: #e4c8a8; font: italic 1.1rem/1 var(--serif); }
.location-row h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.3rem); }
.location-row p { margin: 10px 0 0; color: rgba(255,255,255,.66); font-size: .9rem; line-height: 1.55; }
.location-row p strong { color: var(--white); }
.location-note { display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.location-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.location-actions a { border-bottom: 1px solid rgba(255,255,255,.45); }

.franchise-banner { padding: 110px 0; color: var(--white); background: var(--red); }
.franchise-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(60px, 10vw, 160px); align-items: end; }
.franchise-grid h2 { max-width: 750px; }
.franchise-grid p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.franchise-grid .button { margin-top: 18px; }

.page-hero { padding: 105px 0 95px; color: var(--white); background: var(--blue); }
.page-hero-inner { max-width: 960px; }
.page-hero h1 { font-size: clamp(3.6rem, 7vw, 7.5rem); }
.page-hero p { max-width: 760px; margin: 30px 0 0; color: rgba(255,255,255,.74); font-size: 1.18rem; }
.page-content { padding: 90px 0 120px; }
.page-content h2 { margin: 68px 0 26px; font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
.page-content h3 { margin: 42px 0 14px; }
.page-content p, .page-content li { color: #4e5048; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content a:not(.button) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.section-intro { color: var(--ink) !important; font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.5; }
.content-panel, .directions-panel { margin: 48px 0; padding: 32px; border: 1px solid var(--line); background: var(--cream); }
.map-frame { margin-top: 30px; border-radius: 0; }
.related-cta { margin-top: 90px; padding: 52px; color: var(--white); background: var(--ink); }
.related-cta h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 4vw, 4rem); }
.related-cta p { color: rgba(255,255,255,.72); }
.related-cta .button-row { margin-top: 28px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.shop-photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.shop-photo-grid figure { margin: 0; }
.shop-photo-grid img { aspect-ratio: 4 / 5; object-fit: cover; }
.shop-photo-grid figcaption { padding-top: 12px; font-size: .78rem; font-weight: 750; }

.franchise-hero { padding: 110px 0; color: var(--white); background: var(--ink); }
.franchise-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; }
.franchise-hero h1 { max-width: 760px; }
.franchise-hero p { max-width: 650px; margin: 34px 0; color: rgba(255,255,255,.72); font-size: 1.18rem; }
.franchise-hero-card { min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; border: 1px solid rgba(255,255,255,.22); background: var(--red); transform: rotate(2deg); box-shadow: 24px 24px 0 var(--blue); }
.franchise-hero-card span, .franchise-hero-card small { font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.franchise-hero-card strong { font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.1rem); line-height: .9; letter-spacing: -.05em; }
.franchise-pillars { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.franchise-pillars article { min-height: 300px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.franchise-pillars article > span { color: var(--red); font: italic 1.15rem/1 var(--serif); }
.franchise-pillars h3 { margin: 72px 0 18px; }
.franchise-pillars p { color: #64655d; font-size: .92rem; }
.franchise-enquiry { background: var(--paper); }
.franchise-enquiry-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.franchise-enquiry-grid > div:first-child { position: sticky; top: 40px; }
.franchise-enquiry-grid h2 { margin-bottom: 26px; }
.enquiry-card { padding: 42px; background: var(--white); box-shadow: var(--shadow); }
.franchise-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 14px; color: var(--ink); background: var(--paper); font: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.franchise-form .button { justify-self: start; }
.form-privacy { grid-column: 1 / -1; margin: 0; color: #6c6d66; font-size: .75rem; }
.form-message { margin-bottom: 26px; padding: 18px 20px; border-left: 4px solid; }
.form-message p { margin: 6px 0 0; }
.form-success { border-color: #2f7d4a; background: #edf8f1; }
.form-error { border-color: var(--red); background: #fff0ee; }

.site-footer { padding: 100px 0 28px; color: var(--white); background: var(--ink); }
.footer-lead { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid var(--line-light); }
.footer-lead h2 { font-size: clamp(3rem, 6vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .9fr 1fr; gap: 54px; padding: 64px 0; }
.brand-footer .brand-logo { border-color: rgba(255,255,255,.24); }
.footer-brand p { max-width: 320px; margin-top: 22px; color: rgba(255,255,255,.58); }
.footer-title { display: block; margin-bottom: 18px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 9px 0; }
.site-footer li a, .site-footer p { color: rgba(255,255,255,.64); font-size: .85rem; }
.site-footer a:hover, .site-footer a:focus-visible { color: #e4c8a8; }
.footer-arrow { display: inline-flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 3px; font-size: .78rem; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 26px; border-top: 1px solid var(--line-light); color: rgba(255,255,255,.42); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) {
    .site-nav { gap: 16px; }
    .site-nav ul { gap: 18px; }
    .site-nav li a { font-size: .74rem; }
    .brand-hero-grid { grid-template-columns: 1fr; }
    .brand-hero-copy { padding: 75px 0; }
    .brand-hero-media { min-height: 520px; margin: 0 calc((100vw - min(1180px, calc(100vw - 48px))) / -2); }
    .pathway-grid { grid-template-columns: repeat(2,1fr); }
    .intro-grid, .franchise-grid, .franchise-hero-grid, .franchise-enquiry-grid { grid-template-columns: 1fr; }
    .franchise-enquiry-grid > div:first-child { position: static; }
    .franchise-pillars { grid-template-columns: repeat(2,1fr); }
    .location-row { grid-template-columns: 50px 1fr auto; }
    .location-note { display: none; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .container, .narrow { width: min(100% - 30px, 1180px); }
    .brand-bar-inner { gap: 8px; font-size: .56rem; letter-spacing: .1em; }
    .header-inner { min-height: 76px; }
    .brand-logo { width: 48px; height: 48px; }
    .brand-copy strong { font-size: 1.08rem; }
    .brand-copy span { font-size: .52rem; }
    .menu-toggle { display: inline-flex; }
    .site-nav { position: fixed; inset: 110px 0 0; display: none; align-items: stretch; flex-direction: column; gap: 26px; padding: 32px 22px; color: var(--white); background: var(--ink); }
    .site-nav.is-open { display: flex; }
    .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
    .site-nav li a { display: block; padding: 17px 0; border-bottom: 1px solid var(--line-light); font: 700 1.7rem/1 var(--serif); }
    .site-nav li a::after { display: none; }
    .header-cta { margin-top: 8px; text-align: center; background: var(--red); }
    .brand-hero-grid { min-height: auto; }
    .brand-hero-copy { padding: 64px 0; }
    .brand-hero-copy > p { margin: 28px 0; }
    .brand-hero-media { min-height: 410px; }
    .hero-stamp { right: 24px; bottom: 24px; width: 124px; height: 124px; }
    .hero-stamp strong { font-size: 1.35rem; }
    .hero-services { margin-top: 40px; gap: 8px 14px; }
    .hero-services li:not(:last-child)::after { margin-left: 14px; }
    .pathway-grid { grid-template-columns: 1fr; }
    .pathway-grid a { min-height: 122px; border-left: 1px solid var(--line-light); }
    .intro-grid { gap: 34px; }
    .section-heading, .footer-lead { align-items: flex-start; flex-direction: column; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 275px; padding: 28px; }
    .shop-collage { grid-template-columns: 1fr; grid-template-rows: repeat(3, 340px); }
    .shop-collage-large { grid-row: auto; }
    .location-row { grid-template-columns: 36px 1fr; gap: 16px; }
    .location-actions { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 22px; }
    .franchise-banner { padding: 80px 0; }
    .franchise-grid, .franchise-hero-grid { gap: 46px; }
    .franchise-hero-card { min-height: 340px; }
    .franchise-pillars { grid-template-columns: 1fr; }
    .franchise-pillars article { min-height: 250px; }
    .franchise-pillars h3 { margin-top: 50px; }
    .enquiry-card { padding: 28px 20px; }
    .franchise-form { grid-template-columns: 1fr; }
    .form-field-full, .form-privacy { grid-column: auto; }
    .page-hero { padding: 80px 0 72px; }
    .page-content { padding: 64px 0 90px; }
    .related-cta { margin-top: 64px; padding: 34px 24px; }
    .shop-photo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .footer-bottom { flex-direction: column; }
}

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

