/*
Theme Name: Oh! Calcutta Storefront Child
Theme URI: https://www.ohcalcutta.co.uk/
Description: Custom Storefront child theme for Oh! Calcutta restaurant.
Author: Oh! Calcutta Web Design
Template: storefront
Version: 1.0.0
Text Domain: oh-calcutta
*/

/* =========================================================
   OH! CALCUTTA GLOBAL
========================================================= */

:root {
    --oc-red: #8b0808;
    --oc-dark-red: #650505;
    --oc-gold: #b88a2d;
    --oc-light-gold: #e0b95c;
    --oc-cream: #fffaf0;
    --oc-text: #333333;
}

/* Reset the Storefront header area for our custom header */
header#masthead.oc-site-header {
    margin: 0;
    padding: 0;
    background: var(--oc-cream);
    border-bottom: 1px solid rgba(184, 138, 45, .65);
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 99999;
}

.oc-header-inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 13px 30px;
    min-height: 78px;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 30px;
}

.oc-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.oc-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.oc-brand img {
    display: block;
    width: auto;
    max-width: 205px;
    max-height: 58px;
}

.oc-brand-text {
    color: var(--oc-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-style: italic;
    line-height: 1;
    white-space: nowrap;
}

.oc-brand-subtitle {
    display: block;
    margin-top: 5px;
    color: var(--oc-gold);
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-style: normal;
}

/* Desktop navigation */
.oc-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.oc-desktop-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.oc-desktop-nav li {
    margin: 0;
    padding: 0;
}

.oc-desktop-nav a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}

.oc-desktop-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: var(--oc-gold);
    transform: translateX(-50%);
    transition: width .25s ease;
}

.oc-desktop-nav a:hover,
.oc-desktop-nav .current-menu-item > a,
.oc-desktop-nav .current_page_item > a {
    color: var(--oc-gold);
}

.oc-desktop-nav a:hover::after,
.oc-desktop-nav .current-menu-item > a::after,
.oc-desktop-nav .current_page_item > a::after {
    width: 100%;
}

/* Header actions */
.oc-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.oc-cart-link {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--oc-dark-red);
    text-decoration: none;
    border: 1px solid transparent;
    transition: .25s ease;
}

.oc-cart-link:hover {
    color: var(--oc-gold);
    border-color: rgba(184,138,45,.35);
}

.oc-cart-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.oc-cart-count {
    position: absolute;
    top: 0;
    right: -1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--oc-red);
    color: #fff;
    font: 600 9px/16px Arial, sans-serif;
    text-align: center;
}

.oc-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all .25s ease;
}

.oc-order-button {
    color: #fff !important;
    background: var(--oc-red);
    border: 1px solid var(--oc-red);
}

.oc-order-button:hover {
    color: #fff !important;
    background: var(--oc-dark-red);
    border-color: var(--oc-dark-red);
}

.oc-book-button {
    color: var(--oc-dark-red) !important;
    background: transparent;
    border: 1px solid var(--oc-gold);
}

.oc-book-button:hover {
    color: #fff !important;
    background: var(--oc-gold);
}

/* Mobile */
.oc-mobile-toggle {
    display: none;
    width: 43px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--oc-gold);
    border-radius: 2px;
    background: transparent;
    color: var(--oc-dark-red);
    cursor: pointer;
}

.oc-mobile-toggle span,
.oc-mobile-toggle span::before,
.oc-mobile-toggle span::after {
    display: block;
    width: 19px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    transition: .25s ease;
    content: "";
}

.oc-mobile-toggle span::before {
    transform: translateY(-6px);
}

.oc-mobile-toggle span::after {
    transform: translateY(4px);
}

.oc-mobile-panel {
    display: none;
    background: var(--oc-cream);
    border-top: 1px solid rgba(184,138,45,.25);
}

.oc-mobile-panel.is-open {
    display: block;
}

.oc-mobile-panel ul {
    list-style: none;
    margin: 0;
    padding: 8px 20px 15px;
}

.oc-mobile-panel li {
    margin: 0;
    border-bottom: 1px solid rgba(101,5,5,.10);
}

.oc-mobile-panel a {
    display: block;
    padding: 13px 3px;
    color: var(--oc-dark-red);
    font-family: Georgia, "Times New Roman", serif;
    text-decoration: none;
}

.oc-mobile-panel .oc-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
}

.oc-mobile-panel .oc-header-button {
    min-height: 44px;
}

/* Remove default Storefront spacing caused by the original header */
.site-content {
    margin-top: 0;
}

.col-full {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Your existing page-cleanup rules */
.site-info {
    display: none;
}

.storefront-breadcrumb {
    display: none;
}

.hentry .entry-header {
    display: none;
}

.site-footer {
    padding: 0;
    background: var(--oc-dark-red);
}

.entry-content {
    margin-top: 0 !important;
}

/* Prevent WPBakery from adding unwanted top gaps */
.wpb-content-wrapper {
    margin-top: 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .oc-header-inner {
        grid-template-columns: 190px 1fr auto;
        gap: 18px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .oc-brand img {
        max-width: 180px;
    }

    .oc-desktop-nav ul {
        gap: 18px;
    }

    .oc-desktop-nav a {
        font-size: 13px;
    }

    .oc-header-button {
        padding: 0 12px;
        font-size: 11px;
    }
}

@media (max-width: 980px) {
    header#masthead.oc-site-header {
        position: relative;
    }

    .oc-header-inner {
        grid-template-columns: 1fr auto;
        min-height: 70px;
        padding: 10px 20px;
    }

    .oc-desktop-nav,
    .oc-header-actions {
        display: none;
    }

    .oc-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .oc-brand img {
        max-width: 175px;
        max-height: 52px;
    }

    .oc-brand-text {
        font-size: 27px;
    }
}

@media (max-width: 480px) {
    .oc-header-inner {
        padding: 9px 15px;
    }

    .oc-brand img {
        max-width: 155px;
    }

    .oc-brand-text {
        font-size: 24px;
    }

    .oc-mobile-panel .oc-mobile-actions {
        grid-template-columns: 1fr;
    }
}
