/* ==========================================================================
   PROVIDENCE & CO. - MASTER STYLESHEET
   VOLUME X: THE CORRECTION (FINAL)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* -- PALETTE: DAYTIME LUXURY -- */
    --bg-main: #F2F0E9;
    /* Warm Alabaster */
    --bg-sec: #E6E1D3;
    /* Darker Cream */

    --text-primary: #050505;
    /* Black */
    --text-secondary: #333333;
    /* Dark Grey */
    --accent: #A0522D;
    /* Sienna */
    --border: rgba(0, 0, 0, 0.1);

    /* -- FONTS -- */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-accent: 'Cinzel Decorative', serif;

    /* -- SPACING -- */
    --gutter: 40px;
    --container: 1600px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --------------------------------------------------------------------------
   02. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.1;
}

.display-text {
    font-size: clamp(3.5rem, 8vw, 7rem);
    /* Restored Size */
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2rem;
}

.body-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 45ch;
    margin-bottom: 20px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   04. UTILS
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   05. HERO: RESTORED HYBRID (Title + Content)
   -------------------------------------------------------------------------- */
.s-hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-top: 80px;
}


/* HEADER NAV */
/* HEADER NAV (Split Design) */
.nav-links {
    display: flex;
    gap: 40px;
    position: absolute;
    /* Center it */
    left: 50%;
    transform: translateX(-50%);
    /* Magic Blend Mode for Split Backgrounds */
    mix-blend-mode: difference;
    color: #FFF;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FFF;
    /* Use White for difference mode */
    position: relative;
    opacity: 0.9;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    text-decoration: underline;
    /* Accent underline doesn't work well with difference */
    color: #FFF;
}

.nav-links a::after {
    display: none;
}

/* HEADER STYLE (SPLIT) */
header {
    background: linear-gradient(to right, var(--bg-main) 50%, #050505 50%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle line */
}

/* Right Side Text override */
header>div {
    color: #FFF !important;
}

@media (max-width: 1024px) {

    /* Mobile Header Tweak */
    header {
        flex-direction: column;
        gap: 15px;
        background: var(--bg-main);
        /* Reset Gradient */
    }

    .nav-links {
        display: flex;
        position: static;
        transform: none;
        gap: 20px;
        font-size: 0.7rem;
        mix-blend-mode: normal;
        /* Reset Blend */
        color: var(--text-primary);
    }

    .nav-links a {
        color: var(--text-primary);
    }

    header>div {
        color: var(--text-primary) !important;
    }
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* Ensure no spill */
}

/* Reduced Spacing for Fitting */
.hero-text-side {
    padding: 40px var(--gutter);
    /* Reduced vertical padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

/* Tighter Content Block */
.hero-content-block {
    margin-top: 20px;
    /* Reduced margin */
    padding-top: 20px;
    /* Reduced padding */
    border-top: 1px solid var(--accent);
}

/* Reduced Font Size for Hero Context */
.s-hero .display-text {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    /* Even smaller to ensure fit */
    margin-bottom: 0.5rem;
}

.s-hero .body-text {
    font-size: 0.95rem;
    /* Compact body */
    margin-bottom: 15px;
    max-width: 45ch;
}

/* HERO IMAGE CORRECTION */
.hero-img-side {
    height: 100%;
    overflow: hidden;
    /* Removed padding/bg ("color box") */
    /* Aligned Up and Right */
    display: flex;
    align-items: flex-start;
    /* Move Up */
    justify-content: flex-end;
    /* Move Right */
    padding-top: 40px;
    /* Buffer from Header */
    background-color: #050505;
    /* PITCH BLACK BACKGROUND */
}

.hero-img {
    width: 100%;
    /* Reduced by another 10% (now 70%) */
    height: 85%;
    object-fit: contain;
    /* No cut edges */
    /* No shadow/box */
}

/* --------------------------------------------------------------------------
   06. PHILOSOPHY: FIXED VISIBILITY
   -------------------------------------------------------------------------- */
.s-philosophy {
    background: linear-gradient(to right, #050505 50%, var(--bg-main) 50%);
    /* Split BG: Left Black, Right Light */
    overflow: hidden;
    padding-top: 80px;
    /* Added space back (Balanced) */
    padding-bottom: 80px;
}

.philo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.philo-text {
    padding-top: 0;
    margin-top: 0;
    /* Reset text position */
}

.philo-img-wrap {
    width: 85%;
    /* Reduced width by 15% */
    height: 425px;
    /* Reduced height by 15% (was 500px) */
    overflow: hidden;
    margin: 0 auto;
    /* Center it */
    position: relative;
    /* For shadow overlay */
}

/* Vignette / Smoke Effect on Edges */
.philo-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 80px 50px #050505;
    /* Thick fade to black */
    pointer-events: none;
}

.philo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Focus slightly higher up, cutting bottom */
}

/* --------------------------------------------------------------------------
   07. THE ARMOURY (Product Showcase)
   -------------------------------------------------------------------------- */
#armoury {
    background: #050505;
    text-align: center;
    color: #FFF;
    padding: 120px 0;
}

#armoury h3 {
    font-size: 3rem;
    font-family: var(--font-display);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    color: #F5F5F0;
    /* Cream White */
}

#armoury p {
    color: #888;
    max-width: 50ch;
    margin: 0 auto;
    font-size: 1.1rem;
}

.apothecary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.product-card {
    background: #111;
    padding: 40px;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 30px;
    filter: grayscale(1) contrast(1.2);
    transition: 0.4s;
}

.product-card:hover .product-img {
    filter: none;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #FFF;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-price {
    font-family: var(--font-body);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}

/* --------------------------------------------------------------------------
   08. SERVICES: COMPACT LIST (Restored)
   -------------------------------------------------------------------------- */
.s-services {
    background: linear-gradient(to right, var(--bg-main) 50%, #050505 50%);
    /* Split BG: Left Light, Right Black */
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.menu-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 60px;
}

.menu-list-wrap {
    padding: var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 100px;
    /* Shift content Up by adding bottom padding */
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;
}

.menu-item:hover,
.menu-item.active {
    opacity: 1;
    padding-left: 10px;
    border-color: var(--accent);
}

.menu-item h3 {
    font-size: 1.8rem;
    margin: 0;
}

.menu-img-wrap {
    position: relative;
    width: 85%;
    /* Reduced Width */
    height: 550px;
    /* Reduced Height */
    margin: auto;
    /* Center in Right Column */
    overflow: hidden;
    /* Removed Border Left */
}

/* Smoke/Vignette Effect */
.menu-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 80px 50px #050505;
    /* Blend to Black */
    pointer-events: none;
}

.menu-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: 0.5s;
}

.menu-img.active {
    opacity: 1;
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   09. THE ARCHIVE (Masonry)
   -------------------------------------------------------------------------- */
.s-archive {
    background: var(--bg-sec);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 400px;
}

.archive-item {
    background: #000;
    overflow: hidden;
}

.archive-item img {
    height: 100%;
    width: 100%;
    opacity: 0.9;
    transition: transform 0.6s;
}

.archive-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.archive-item:nth-child(2) {
    grid-row: span 2;
}

/* --------------------------------------------------------------------------
   10. THE ARTISANS (Accordion)
   -------------------------------------------------------------------------- */
.s-team {
    background: var(--bg-main);
    padding: 100px 0;
}

.accordion-container {
    display: flex;
    height: 600px;
    gap: 2px;
}

.team-slice {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s;
    background: #000;
}

.team-slice:hover {
    flex: 3;
}

.team-slice img {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
    transition: 0.4s;
}

.team-slice:hover img {
    filter: none;
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #FFF;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.team-slice:hover .team-info {
    opacity: 1;
    transform: 0;
}

/* --------------------------------------------------------------------------
   11. THE LEGACY & SPOTLIGHT (New Archive Sections)
   -------------------------------------------------------------------------- */
.s-legacy {
    border-bottom: 1px solid #111;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.legacy-img img {
    filter: grayscale(1) contrast(1.1);
    transition: 0.5s;
}

.legacy-img:hover img {
    filter: none;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {

    .legacy-grid,
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Force Light Text on Dark New Sections (Legacy, Ritual Prep, Parlour About) */
.s-legacy h2,
.s-legacy p,
.s-legacy span,
.s-ritual-prep h2,
.s-ritual-prep p,
.s-ritual-prep span,
.s-parlour-about h2,
.s-parlour-about p,
.s-parlour-about span {
    color: #F5F5F0 !important;
}

/* Force Light Text on Hero & Filters */
.page-hero h1 {
    color: #F5F5F0;
}

.filter-btn {
    color: var(--accent) !important;
    /* Force Orange Persistence */
}

/* Spotlight Section Adjustments */
.spotlight-img {
    display: block;
    /* Remove center align */
}

.spotlight-img img {
    width: 75%;
    /* Increased size */
    margin-left: 10%;
    /* Shifted Left */
}

/* --------------------------------------------------------------------------
   12. THE VERDICT (Text Section - Restored)
   -------------------------------------------------------------------------- */
.s-verdict {
    background: #050505;
    color: #FFF;
    text-align: center;
    padding: 100px 0;
}

.verdict-slider {
    max-width: 800px;
    margin: 0 auto;
}

.verdict-quote {
    font-size: 2.5rem;
    font-family: var(--font-display);
    line-height: 1.3;
    margin-bottom: 30px;
}

.verdict-source {
    color: var(--accent);
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. FOOTER (Restored Big Links + Address)
   -------------------------------------------------------------------------- */
.s-footer {
    background: var(--text-primary);
    color: #FFF;
    padding: 120px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Left: Big Links */
.footer-links a {
    font-family: var(--font-display);
    font-size: 3.5rem;
    display: block;
    color: #FFF;
    opacity: 0.3;
    transition: 0.3s;
    line-height: 1.2;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Right: Address Info */
.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: right;
}

.info-block {
    margin-bottom: 40px;
}

.info-block h4 {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}

.info-block p {
    opacity: 0.7;
    font-size: 1rem;
    margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   13. INNER PAGES (NEW)
   -------------------------------------------------------------------------- */
.page-hero {
    height: 100vh;
    /* Set to Full Viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
}

/* ARCHIVES */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.filter-btn {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;
}

.filter-btn:hover,
.filter-btn.active {
    opacity: 1;
    color: var(--accent);
}

/* RITUALS (FULL MENU) */
.full-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.menu-group h3 {
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: 1rem;
    margin-bottom: 30px;
}

.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* PARLOUR (MAP) */
.map-container {
    width: 100%;
    height: 500px;
    background: #E0E0E0;
    margin-top: 60px;
    filter: grayscale(1);
    transition: 0.5s;
}

.map-container:hover {
    filter: none;
}

.history-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.history-block p {
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

    .hero-split,
    .philo-grid,
    .menu-layout,
    .footer-grid,
    .archive-grid,
    .apothecary-grid,
    .full-menu-grid {
        grid-template-columns: 1fr;
    }

    .hero-img-side {
        height: 50vh;
        order: -1;
    }

    .menu-img-wrap {
        display: none;
    }

    .accordion-container {
        flex-direction: column;
        height: auto;
    }

    .team-slice {
        height: 400px;
        flex: none;
    }

    .product-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .filter-nav {
        gap: 20px;
        flex-wrap: wrap;
    }
}