/*
 Theme Name:   Shetek Storage
 Theme URI:    https://www.shetekstorage.com
 Description:  GeneratePress child theme for Shetek Storage — secure self-storage near Lake Shetek, MN.
 Author:       Shetek Storage
 Author URI:   https://www.shetekstorage.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  shetek-generatepress
*/

/* ==========================================================================
   CSS VARIABLES — Brand tokens
   ========================================================================== */

:root {
    --shetek-orange: #F7941D;
    --shetek-orange-hover: #e5850f;
    --shetek-dark: #2A2A2A;
    --shetek-darker: #1a1a1a;
    --shetek-text: #333;
    --shetek-text-light: #666;
    --shetek-bg-light: #f8f9fa;
    --shetek-border: #e0e0e0;
    --shetek-max-width: 1200px;
    --shetek-header-height: 70px;
}


/* ==========================================================================
   TYPOGRAPHY — Montserrat via Google Fonts (enqueued in functions.php)
   ========================================================================== */

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--shetek-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--shetek-dark);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }


/* ==========================================================================
   HEADER — Logo left, nav right, contained width
   ========================================================================== */

.site-header {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Offset for WP admin bar when logged in */
.admin-bar .site-header {
    top: 32px;
}

.site-header .inside-header {
    max-width: var(--shetek-max-width);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Hide site title text — logo is sufficient */
/* GP uses .main-title (not .site-title) inside .site-branding */
.site-header .site-title,
.site-header .site-description,
.site-header .main-title,
.site-header .site-branding {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* Logo */
.site-header .site-logo img,
.site-header .custom-logo {
    max-height: 60px;
    width: auto;
}

/* Hide GP's mobile menu control on desktop — it eats header space */
#mobile-menu-control-wrapper {
    display: none !important;
}

/* Keep nav + icons on one line */
.site-header .inside-header #site-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
}

/* GP's inner nav container — keep menu items and icons in a single row */
#site-navigation .inside-navigation {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: flex-end;
}

/* Prevent nav links from wrapping text */
.main-navigation .main-nav > ul > li > a {
    white-space: nowrap;
}

/* Prevent the main nav UL from wrapping */
#site-navigation .main-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* Shrink branding container to only take logo width */
.site-header .site-branding-container {
    flex-shrink: 0;
}

/* Navigation */
.main-navigation .main-nav > ul > li > a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--shetek-text);
    padding: 10px 16px;
    transition: color 0.2s;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
    color: var(--shetek-orange);
}

/* Dropdown menus */
.main-navigation ul ul {
    background: #fff;
    border-top: 3px solid var(--shetek-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-navigation ul ul a {
    font-size: 14px;
    padding: 10px 20px;
    color: var(--shetek-text);
}

.main-navigation ul ul a:hover {
    color: var(--shetek-orange);
    background: var(--shetek-bg-light);
}


/* ==========================================================================
   PAGE TITLE BAR — Dark background with orange borders
   ========================================================================== */

.shetek-page-title-bar {
    background-color: var(--shetek-dark);
    padding: 20px 0;
    border-top: 4px solid var(--shetek-orange);
    border-bottom: 4px solid var(--shetek-orange);
}

.shetek-page-title-bar .inside-title-bar {
    max-width: var(--shetek-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.shetek-page-title-bar h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
    line-height: 1.3;
}

.shetek-page-title-bar .breadcrumbs,
.shetek-page-title-bar .breadcrumbs a {
    color: var(--shetek-orange);
    font-size: 0.9em;
}

.shetek-page-title-bar .breadcrumbs a:hover {
    color: #fff;
}

.shetek-page-title-bar .breadcrumbs .separator {
    color: var(--shetek-orange);
    margin: 0 6px;
}


/* ==========================================================================
   CONTENT AREA
   ========================================================================== */

.site-content {
    padding-top: 0;
}

.inside-article {
    max-width: var(--shetek-max-width);
    margin: 0 auto;
    padding: 30px 20px;
}

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

/* Remove default GP page header (we use our own title bar) */
.page .entry-header,
.single-product .entry-header {
    display: none;
}

/* ==========================================================================
   HOMEPAGE — Full-width layout overrides for [shetek_homepage]
   ========================================================================== */

/* Hide page title bar on homepage */
body.home .shetek-page-title-bar,
body.page-template-default.home .shetek-page-title-bar {
    display: none !important;
}

/* Remove all padding/margins so homepage shortcode is edge-to-edge */
body.home .inside-article,
body.home .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

body.home .site-content,
body.home .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

body.home article {
    padding: 0 !important;
    margin: 0 !important;
}

/* Fix 100vw scrollbar issue — prevent horizontal overflow on homepage */
body.home {
    overflow-x: hidden;
}

/* Hide sidebar on homepage */
body.home .sidebar,
body.home .widget-area {
    display: none !important;
}

body.home .content-area {
    width: 100% !important;
}


/* ==========================================================================
   FOOTER — Dark with orange top border
   ========================================================================== */

.site-footer {
    background: var(--shetek-darker);
    border-top: 4px solid var(--shetek-orange);
    color: rgba(255, 255, 255, 0.85);
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer label,
.site-footer .widget-title,
.shetek-footer-section p,
.shetek-footer-section li,
.shetek-footer-section span {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title,
.shetek-footer-section h2,
.shetek-footer-section h3,
.shetek-footer-section h4 {
    color: #fff;
}

.shetek-footer-section a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.shetek-footer-section a:hover {
    color: var(--shetek-orange);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--shetek-orange);
}

.inside-site-info {
    max-width: var(--shetek-max-width);
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   WOOCOMMERCE — Base styling adjustments
   ========================================================================== */

/* My Account — link colors (dark text, orange on hover) */
.woocommerce-account .woocommerce a:not(.button),
.woocommerce-account .woocommerce-MyAccount-content a:not(.button),
.woocommerce-account .woocommerce-MyAccount-navigation a {
    color: var(--shetek-dark);
}

.woocommerce-account .woocommerce a:not(.button):hover,
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    color: var(--shetek-orange);
}

/* Product pages */
.woocommerce div.product .product_title {
    font-size: 1.8rem;
    color: var(--shetek-dark);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    background: var(--shetek-orange);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: var(--shetek-orange-hover);
    color: #000;
}

/* Hide sidebar site-wide — all pages are full-width */
.sidebar,
.widget-area,
#right-sidebar,
#left-sidebar {
    display: none !important;
}

.content-area {
    width: 100% !important;
}

/* Hide WC default add-to-cart + WooPay/GPay (our rental form handles this) */
.single-product form.cart,
.single-product .woocommerce-variation-add-to-cart,
.single-product .wcpay-express-checkout-wrapper,
.single-product .woopay-express-checkout,
.single-product #wcpay-express-checkout-wrapper,
.single-product .wc-block-components-express-payment {
    display: none !important;
}

/* Hide WC breadcrumbs (our title bar has breadcrumbs) */
.single-product .woocommerce-breadcrumb {
    display: none;
}

/* Login form — constrain password-input wrapper to match username field */
.woocommerce-form-login .password-input {
    display: inline-block;
}

/* Cart & Checkout */
.woocommerce table.shop_table {
    border-color: var(--shetek-border);
}

.woocommerce-checkout #payment {
    background: var(--shetek-bg-light);
    border-radius: 8px;
}


/* ==========================================================================
   BUTTONS — Global CTA styling
   ========================================================================== */

.shetek-btn,
.shetek-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--shetek-orange);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.shetek-btn:hover,
.shetek-btn-primary:hover {
    background: var(--shetek-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.3);
    color: #000;
    text-decoration: none;
}

.shetek-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #fff;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.shetek-btn-outline:hover {
    background: #fff;
    color: var(--shetek-dark);
    text-decoration: none;
}


/* ==========================================================================
   HIDE ELEMENTS — Cost calculator, scroll-to-top
   ========================================================================== */

/* Hide Cost Calculator from all menus */
li.menu-item:has(> a[href*="cost-calculator"]) {
    display: none !important;
}


/* ==========================================================================
   AREA GUIDE — Sidebar cleanup
   ========================================================================== */

body.category-lake-shetek-area .sidebar,
body.category-lake-shetek-area aside.sidebar,
body.category-lake-shetek-area .widget-area {
    display: none !important;
}

body.category-lake-shetek-area .content-area {
    width: 100% !important;
    max-width: 100% !important;
}


/* ==========================================================================
   RESPONSIVE — Mobile breakpoints matching plugin (767px, 1023px)
   ========================================================================== */

@media (max-width: 1199px) {
    .main-navigation .main-nav > ul > li > a {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 1023px) {
    .main-navigation .main-nav > ul > li > a {
        font-size: 13px;
        padding: 10px 8px;
    }
}

@media (max-width: 767px) {
    /* Hide desktop header — plugin renders custom mobile header */
    .site-header {
        display: none !important;
    }

    /* Push page content down for fixed mobile header */
    .site {
        padding-top: 60px !important;
    }

    /* Admin bar offset */
    .admin-bar .site {
        padding-top: 106px !important;
    }

    /* Full-width content on mobile */
    .inside-article {
        padding: 15px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }

    /* Page title bar on mobile */
    .shetek-page-title-bar {
        padding: 12px 0;
    }

    .shetek-page-title-bar h1 {
        font-size: 1.5rem;
    }
}
