/* =========================================================
   PRECIOUS HAIR PARLOR
   PRIVACY POLICY PAGE - STANDALONE STYLESHEET
   Contains everything this page needs (base, navbar,
   policy content, footer). No other stylesheet required
   except cookie-banner.css.
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --dark-brown: #3a2922;
    --brown: #5a4034;
    --light-brown: #795b4b;

    --nude: #d8c0aa;
    --light-nude: #eee1d1;

    --cream: #f7f1e6;
    --white: #ffffff;

    --gold: #c7a45c;

    --transition: 0.4s ease;

}


/* =========================================================
   RESET AND BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--cream);
    color: var(--dark-brown);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}



/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    margin-top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(247, 241, 230, 0.96);
    border-bottom: 1px solid rgba(90, 64, 52, 0.12);
    backdrop-filter: blur(10px);
}

.nav-container {
    width: 90%;
    max-width: 1250px;
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO */

.logo {
    display: block;
    flex-shrink: 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34.4px;
    font-weight: 600;
    line-height: 0.85;

    color: var(--dark-brown);
    text-decoration: none;
}

.logo span {
    display: block;
    margin-top: 7px;

    font-family: "Poppins", sans-serif;
    font-size: 8.8px;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1.2;
    text-transform: uppercase;

    color: var(--light-brown);
}

/* DESKTOP NAVIGATION */

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;

    flex: 0 1 auto;
    min-width: 0;
}

.nav-menu a {
    position: relative;
    display: inline-block;
    flex-shrink: 0;

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;

    color: var(--brown);
    transition: var(--transition);
}

/* Gold underline */
.nav-menu a:not(.nav-book)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;
    background: var(--gold);

    transition: var(--transition);
}

.nav-menu a:not(.nav-book):hover::after,
.nav-menu a:not(.nav-book).active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

/* BOOK APPOINTMENT BUTTON */

.nav-menu a.nav-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 26px;
    border-radius: 99px;

    background: var(--dark-brown);
    color: var(--white);

    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;

    transition: var(--transition);
}

.nav-menu a.nav-book:hover {
    background: var(--brown);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-menu a.nav-book::after {
    display: none;
}

/* =========================================
   PROFILE AND CART
   ========================================= */

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 42px;
    flex-shrink: 0;

    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: var(--gold);
}

/* Profile and bag icons */
.nav-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ensure the profile icon is not filled black */
.profile-link .nav-icon {
    fill: none;
    stroke: currentColor;
}

/* Cart/bag quantity badge */
.cart-link .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;

    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--gold);
    color: var(--dark-brown);

    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

/* =========================================
   BURGER BUTTON
   ========================================= */
 
/* Hidden on desktop; shown at 1350px and below (see media query) */
.burger {
    display: none;
    flex-shrink: 0;
 
    width: 42px;
    height: 38px;
    padding: 9px;
 
    align-items: center;
    justify-content: center;
 
    border: 1px solid rgb(228, 221, 208);
    border-radius: 10px;
 
    background: transparent;
    color: var(--dark-brown);
 
    font-family: Arial, sans-serif;
    font-size: 19.2px;
    line-height: 1;
 
    cursor: pointer;
}
 
/* Keyboard focus */
.burger:focus-visible,
.nav-menu a:focus-visible,
.icon-link:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}
 
/* BURGER BUTTON (hidden on desktop) */

.burger {
    display: none;
    flex-shrink: 0;

    width: 42px;
    height: 38px;
    padding: 9px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgb(228, 221, 208);
    border-radius: 10px;

    background: transparent;
    color: var(--dark-brown);

    font-family: Arial, sans-serif;
    font-size: 19.2px;
    line-height: 1;

    cursor: pointer;
}

/* Keyboard focus */
.burger:focus-visible,
.nav-menu a:focus-visible,
.icon-link:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}


/* =========================================================
   RESPONSIVE NAVBAR AND BURGER MENU (1350px and below)
========================================================= */

@media (max-width: 1350px) {

    .nav-container {
        position: relative;
        gap: 12px;
    }

    .nav-actions {
        gap: 10px;
    }

    /* Show the burger as soon as the desktop menu is hidden */
    .burger {
        display: inline-flex;
    }

    /* Animated dropdown menu (hidden until JavaScript adds .open) */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: -5.56%;
        width: 111.12%;
        z-index: 1001;

        max-height: calc(100vh - 82px);
        overflow-y: auto;
        overflow-x: hidden;

        padding: 25px 20px;

        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;

        background: var(--cream, #f7f1e6);
        border-top: 1px solid rgba(90, 64, 52, 0.12);
        border-bottom: 1px solid rgba(90, 64, 52, 0.12);
        box-shadow: 0 15px 30px rgba(58, 41, 34, 0.08);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Centered links in the dropdown */
    .nav-menu a:not(.nav-book) {
        position: relative;
        display: inline-block;

        width: auto;
        padding: 0 0 7px;

        font-size: 12px;
        text-align: center;
        white-space: normal;

        transition: color 0.4s ease;
    }

    /* Gold underline: hidden, grows from the centre on hover */
    .nav-menu a:not(.nav-book)::after {
        content: "";
        display: block;

        position: absolute;
        left: 50%;
        bottom: 5px;

        width: 40px;
        height: 2px;

        background: var(--gold);
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;

        transition: transform 0.4s ease;
    }

    .nav-menu a:not(.nav-book):hover::after,
    .nav-menu a:not(.nav-book).active::after {
        width: 40px;
        transform: translateX(-50%) scaleX(1);
    }

    /* Center the Book Appointment button */
    .nav-menu a.nav-book {
        align-self: center;

        max-width: 100%;
        margin: 16px auto 0;

        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 900px) {

    .nav-container {
        min-height: 76px;
    }
}

@media (max-width: 480px) {

    .nav-container {
        width: 92%;
        gap: 8px;
    }

    .logo {
        font-size: 30px;
    }

    .logo span {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .nav-actions {
        gap: 5px;
    }

    .icon-link {
        width: 32px;
        height: 38px;
    }

    .nav-icon {
        width: 21px;
        height: 21px;
    }

    .burger {
        width: 40px;
        height: 40px;
        font-size: 23px;
    }

    .nav-menu {
        left: -4.35%;
        width: 108.7%;

        max-height: calc(100vh - 76px);
        padding: 22px 16px;
        gap: 22px;
    }
}

@media (max-width: 420px) {

    .logo {
        font-size: 26px;
    }
}


/* =========================================================
   PAGE HEADING
========================================================= */

.policy-hero {
    width: 90%;
    max-width: 1250px;
    min-height: 300px;
    margin: 30px auto 0;
    padding: 40px 0 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.policy-label {
    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 5px;

    color: var(--gold);
}

.policy-hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(60px, 8vw, 95px);
    font-weight: 500;
    line-height: 0.85;

    color: var(--dark-brown);
}

.policy-hero h1 span {
    display: block;
}

.policy-line {
    width: 65px;
    height: 1px;
    margin: 30px auto 20px;

    background: var(--gold);
}

.policy-updated {
    font-size: 13px;

    color: var(--light-brown);
}


/* =========================================================
   POLICY LAYOUT
========================================================= */

.policy-section {
    padding: 38px 0 110px;

    background: var(--cream);
}

.policy-container {
    width: 88%;
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}


/* TABLE OF CONTENTS */

.policy-toc {
    position: sticky;
    top: 110px;

    max-height: calc(100vh - 140px);
    overflow-y: auto;

    padding-left: 22px;
    border-left: 1px solid rgba(199, 164, 92, 0.55);
}

.policy-toc-title {
    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;

    color: var(--gold);
}

.policy-toc ol {
    list-style: none;
}

.policy-toc a {
    display: block;
    padding: 6px 0;

    font-size: 12px;
    line-height: 1.5;

    color: var(--light-brown);
    transition: color 0.4s ease;
}

.policy-toc a:hover,
.policy-toc a.active {
    color: var(--gold);
}

.policy-toc a.active {
    font-weight: 500;
}


/* =========================================================
   POLICY TEXT
========================================================= */

.policy-content {
    min-width: 0;
    max-width: 720px;

    overflow-wrap: break-word;
}

.policy-block {
    margin-bottom: 56px;
    scroll-margin-top: 110px;
}

.policy-block:last-child {
    margin-bottom: 0;
}

.policy-block h2 {
    margin-bottom: 20px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 500;
    line-height: 1;

    color: var(--dark-brown);
}

.policy-num {
    display: block;
    margin-bottom: 8px;

    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;

    color: var(--gold);
}

.policy-block p {
    margin-bottom: 15px;

    font-size: 14px;
    line-height: 1.9;

    color: var(--light-brown);
}

.policy-block strong {
    font-weight: 600;

    color: var(--dark-brown);
}

.policy-block a {
    color: var(--dark-brown);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;

    transition: color 0.4s ease;
}

.policy-block a:hover {
    color: var(--gold);
}

/* LISTS */

.policy-block ul {
    margin: 0 0 18px;

    list-style: none;
}

.policy-block li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 24px;

    font-size: 14px;
    line-height: 1.8;

    color: var(--light-brown);
}

.policy-block li::before {
    content: "";

    position: absolute;
    top: 0.75em;
    left: 2px;

    width: 6px;
    height: 6px;

    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

/* TABLE */

.policy-table-wrap {
    margin: 22px 0 25px;

    overflow-x: auto;

    border: 1px solid rgba(90, 64, 52, 0.15);
}

.policy-table {
    width: 100%;
    min-width: 560px;

    border-collapse: collapse;

    font-size: 13px;
}

.policy-table th {
    padding: 14px 18px;

    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    background: var(--light-nude);
    color: var(--dark-brown);
}

.policy-table td {
    padding: 14px 18px;

    vertical-align: top;
    line-height: 1.7;

    border-top: 1px solid rgba(90, 64, 52, 0.12);
    color: var(--light-brown);
}

.policy-table td:first-child {
    font-weight: 500;

    color: var(--dark-brown);
}

/* NOTE AND CONTACT BOXES */

.policy-note {
    margin: 22px 0 0;
    padding: 20px 26px;

    background: var(--light-nude);
    border-left: 2px solid var(--gold);
}

.policy-block .policy-note p {
    margin: 0;

    font-size: 13px;
}

.policy-contact {
    margin-top: 24px;
    padding: 32px 34px;

    background: var(--light-nude);
}

.policy-contact h3 {
    margin-bottom: 12px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;

    color: var(--dark-brown);
}

.policy-block .policy-contact p {
    margin-bottom: 6px;

    font-size: 13px;
    line-height: 1.8;
}

.policy-block .policy-contact p:last-child {
    margin-bottom: 0;
}

/* PLACEHOLDERS: yellow highlight = something for you to replace.
   Delete the policy-fill class once you have filled it in. */

.policy-fill {
    padding: 1px 6px;

    border-radius: 3px;
    font-weight: 500;

    background: rgba(199, 164, 92, 0.28);
    color: var(--dark-brown);
}


/* =========================================================
   PHONE: TABLE BECOMES STACKED CARDS
========================================================= */

@media (max-width: 700px) {

    .policy-table-wrap {
        overflow: visible;

        border: none;
    }

    .policy-table {
        min-width: 0;
    }

    .policy-table,
    .policy-table tbody,
    .policy-table tr,
    .policy-table td {
        display: block;
        width: 100%;
    }

    /* Header row is hidden visually but still available to screen readers */
    .policy-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .policy-table tr {
        margin-bottom: 14px;

        border: 1px solid rgba(90, 64, 52, 0.15);
    }

    .policy-table td {
        padding: 12px 16px;

        border-top: 1px solid rgba(90, 64, 52, 0.12);
    }

    .policy-table td:first-child {
        border-top: none;

        background: var(--light-nude);
    }

    .policy-table td::before {
        content: attr(data-label);

        display: block;
        margin-bottom: 3px;

        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;

        color: var(--gold);
    }
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #2d201b;
    color: var(--light-nude);
}

.footer-container {
    width: 88%;
    max-width: 1100px;
    margin: auto;
    padding: 70px 0;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 41.6px;
    font-weight: 500;
    line-height: 0.9;

    color: var(--white);
}

.footer-brand h3 span {
    display: block;
    margin-top: 10px;

    font-family: "Poppins", sans-serif;
    font-size: 9.6px;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: var(--gold);
}

.footer-brand p {
    margin-top: 20px;

    font-size: 12px;

    color: var(--nude);
}

.footer h4 {
    margin-bottom: 20px;

    font-size: 11px;
    letter-spacing: 3px;

    color: var(--gold);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 12px;

    color: var(--nude);
    transition: var(--transition);
}

.footer-links a:hover {
    padding-left: 5px;

    color: var(--white);
}

.footer-contact p {
    margin-bottom: 15px;

    font-size: 12.8px;
    line-height: 1.8;

    color: var(--nude);
}

.footer-contact a {
    font-size: 12px;

    color: var(--white);
}

.footer-bottom {
    padding: 20px;

    border-top: 1px solid rgba(216, 192, 170, 0.12);

    text-align: center;
}

.footer-bottom p {
    font-size: 10px;

    color: var(--nude);
}


/* =========================================================
   TABLET AND PHONE
========================================================= */

@media (max-width: 900px) {

    .policy-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .policy-toc {
        position: static;
        max-height: none;

        padding: 24px;

        background: var(--light-nude);
        border-left: 2px solid var(--gold);
    }

    .policy-content {
        max-width: none;
    }

    .footer-container {
        width: 84%;

        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 480px) {

    .policy-hero {
        width: 94%;
        min-height: 260px;
        margin-top: 18px;
    }

    .policy-hero h1 {
        font-size: 55px;
    }

    .policy-section {
        padding: 30px 0 80px;
    }

    .policy-container {
        width: 84%;
    }

    .policy-block {
        margin-bottom: 46px;
    }

    .policy-contact {
        padding: 26px 22px;
    }
}

/* =========================================================
   COOKIE BANNER - PRECIOUS HAIR PARLOR
   Uses your brand variables, with fallbacks so it also
   works if a page does not define them.
========================================================= */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 2000;

    width: 92%;
    max-width: 900px;
    padding: 26px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    background: var(--cream, #f7f1e6);
    color: var(--dark-brown, #3a2922);
    border: 1px solid rgba(90, 64, 52, 0.15);
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(58, 41, 34, 0.18);

    /* Hidden until JavaScript adds .show */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 30px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}


/* TEXT */

.cookie-label {
    margin-bottom: 6px;

    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;

    color: var(--gold, #c7a45c);
}

.cookie-title {
    margin-bottom: 8px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;

    color: var(--dark-brown, #3a2922);
}

.cookie-text {
    font-family: "Poppins", sans-serif;
    font-size: 12.5px;
    line-height: 1.8;

    color: var(--light-brown, #795b4b);
}

.cookie-text a {
    color: var(--dark-brown, #3a2922);
    text-decoration: underline;
    text-decoration-color: var(--gold, #c7a45c);
    text-underline-offset: 3px;

    transition: color 0.4s ease;
}

.cookie-text a:hover {
    color: var(--gold, #c7a45c);
}


/* BUTTONS */

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 13px 26px;

    border-radius: 999px;

    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;

    cursor: pointer;
    transition: 0.4s ease;
}

.cookie-accept {
    background: var(--dark-brown, #3a2922);
    border: 1px solid var(--dark-brown, #3a2922);
    color: var(--white, #ffffff);
}

.cookie-accept:hover {
    background: var(--light-brown, #795b4b);
    border-color: var(--light-brown, #795b4b);
    transform: translateY(-2px);
}

.cookie-decline {
    background: transparent;
    border: 1px solid var(--nude, #d8c0aa);
    color: var(--dark-brown, #3a2922);
}

.cookie-decline:hover {
    background: var(--dark-brown, #3a2922);
    border-color: var(--dark-brown, #3a2922);
    color: var(--white, #ffffff);
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--gold, #c7a45c);
    outline-offset: 3px;
}


/* TABLETS AND PHONES */

@media (max-width: 700px) {

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;

        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        padding: 24px 20px;

        text-align: center;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

@media (max-width: 420px) {

    .cookie-title {
        font-size: 25px;
    }

    .cookie-btn {
        padding: 13px 10px;
        letter-spacing: 1.5px;
    }
}


/* Respect "reduce motion" settings */

@media (prefers-reduced-motion: reduce) {

    .cookie-banner {
        transition: none;
    }
}

/* The badge is shown with display:flex, which would otherwise ignore the hidden attribute */
.cart-link .cart-count[hidden] {
    display: none;
}
