/*
Theme Name: Shape Stationery
Theme URI: https://shapestationery.com
Author: Shape Stationery
Author URI: https://shapestationery.com
Description: Premium glassmorphic Sarvam-style theme for Shape Stationery. Fully Elementor compatible. WooCommerce ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shape-starter
Tags: custom-logo, custom-menu, woocommerce, elementor, glassmorphism, one-column, two-columns
*/
/* ===== SHAPE SIDEBAR ===== */

.shape-category-sidebar {
    font-family: 'Inter', sans-serif;
    padding: 10px 0;
    min-width: 220px;
}

.shape-category-sidebar .sidebar-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

/* Reset lists */
.shape-category-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top level categories */
.shape-top-cats > .shape-top-cat > a {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.shape-top-cats > .shape-top-cat > a:hover {
    color: #e6a817;
}

/* Active top-level */
.shape-top-cats > .shape-top-cat.active > a {
    color: #2c2c2c;
}

/* Sub categories (level 1) */
.shape-sub-cats {
    padding-left: 0;
    margin-top: 2px;
}

.shape-sub-cats > .shape-sub-cat {
    border-left: 3px solid transparent;
}

.shape-sub-cats > .shape-sub-cat > a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #3a3a3a;
    display: block;
    padding: 6px 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.shape-sub-cats > .shape-sub-cat > a:hover {
    color: #e6a817;
}

/* Active sub-category — yellow left border + light bg */
.shape-sub-cats > .shape-sub-cat.active {
    border-left: 3px solid #e6a817;
    background-color: #fffbee;
}

.shape-sub-cats > .shape-sub-cat.active > a {
    color: #e6a817;
    font-weight: 600;
}

/* Grandchild categories (level 2) */
.shape-grand-cats {
    padding-left: 12px;
    margin-top: 4px;
}

.shape-grand-cats li a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #888;
    display: block;
    padding: 4px 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.shape-grand-cats li a:hover,
.shape-grand-cats li.active a {
    color: #e6a817;
}

/* ===== LAYOUT: Sidebar + Content ===== */
.Products-with-sidebar {
    display: flex;
    gap: 40px;
    max-width: 1340px;
    margin: 0 auto;
    padding: 30px 20px;
}

.Products-sidebar-col {
    width: 240px;
    flex-shrink: 0;
}

.Products-content-col {
    flex: 1;
}
/* Search box replaced with overlay trigger button */
/* ══════════════════════════════════════
   SHAPE HEADER — COMPLETE FIX
   Delete all previous CSS and use this
══════════════════════════════════════ */

/* ── Main header row ── */
.site-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 24px !important;
    height: 72px !important;
    box-sizing: border-box !important;
    max-width: 1340px !important;
}

/* ── Logo ── */
.site-header .site-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}
.site-header .site-logo img,
.site-header .site-logo .custom-logo {
    height: 52px !important;
    width: auto !important;
    display: block !important;
}

/* ── Nav: centered, takes all spare space ── */
.site-header .main-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}
.site-header .main-nav .nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 26px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-header .main-nav .nav-links > li > a,
.site-header .main-nav .nav-links > li > .mobile-nav-row > a {
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    letter-spacing: 0.3px !important;
}

/* ── Search box: slim pill, fixed width ── */
.shape-search-box {
    flex: 0 0 auto !important;
}
.shape-advanced-search {
    display: flex !important;
    align-items: center !important;
    height: 36px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 20px !important;
    background: #fff !important;
    overflow: hidden !important;
    transition: border-color 0.2s !important;
}
.shape-advanced-search:focus-within {
    border-color: #999 !important;
}
.shape-advanced-search .search-field {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    width: 115px !important;
    transition: width 0.3s ease !important;
}
.shape-advanced-search .search-field:focus {
    width: 170px !important;
}
.shape-advanced-search .search-field::-webkit-search-decoration,
.shape-advanced-search .search-field::-webkit-search-cancel-button,
.shape-advanced-search .search-field::-webkit-search-results-button,
.shape-advanced-search .search-field::-webkit-search-results-decoration {
    display: none !important;
}
.shape-advanced-search .search-submit {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 10px 0 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

/* ── Header actions: social icons + shop button ── */
.header-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.header-actions .header-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
}
.header-actions .header-icon svg {
    width: 18px !important;
    height: 18px !important;
}
.header-actions .btn-primary {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* ── Hide hamburger on desktop ── */
.mobile-menu-btn {
    display: none !important;
}

/* ══════════════════════════════════════
   TABLET  (≤1100px)
══════════════════════════════════════ */
@media (max-width: 1100px) {
    .site-header {
        gap: 8px !important;
        padding: 0 16px !important;
    }
    .site-header .main-nav .nav-links {
        gap: 16px !important;
    }
    .site-header .main-nav .nav-links > li > a,
    .site-header .main-nav .nav-links > li > .mobile-nav-row > a {
        font-size: 12px !important;
    }
}

/* ══════════════════════════════════════
   MOBILE  (≤768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
    .site-header {
        flex-wrap: nowrap !important;
        height: 60px !important;
        padding: 0 14px !important;
        gap: 8px !important;
    }
    /* Hide nav and search from header row on mobile */
    .site-header .main-nav {
        display: none !important;
    }
    .shape-search-box {
        display: none !important;
    }
    /* Hide social icons on mobile */
    .header-actions .header-icon {
        display: none !important;
    }
    /* header-actions pushes right */
    .header-actions {
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }
    .header-actions .btn-primary {
        font-size: 12px !important;
        padding: 7px 14px !important;
    }
    /* Show hamburger on mobile */
    .mobile-menu-btn {
        display: flex !important;
        flex-shrink: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        border: none !important;
        font-size: 22px !important;
        cursor: pointer !important;
        padding: 4px !important;
    }
}
/* ── Sidebar Typography & Spacing ── */
.woo-sidebar {
    font-family: 'Manrope', sans-serif;
    padding-right: 2rem;
}

.woo-sidebar .sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.5rem;
}

/* ── Reset Lists (Kill the bullets) ── */
.cat-tree, 
.cat-tree ul.sub-cat {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Category Links ── */
.cat-tree a {
    text-decoration: none;
    color: #222;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
    padding: 0.6rem 0;
}

.cat-tree a:hover, 
.cat-tree a.active {
    color: var(--sv-primary, #d99a29); /* Uses your brand color */
}

/* ── Parent Categories (Flexbox for the + icon) ── */
.cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── The Accordion Toggle (+) ── */
.cat-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #555;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

/* Draw the Plus */
.cat-toggle::after {
    content: '+';
    font-weight: 400;
}

.cat-toggle:hover {
    color: var(--sv-primary, #d99a29);
}

/* ── Sub-Categories (Hidden by default) ── */
.sub-cat {
    display: none; 
    padding-left: 1.2rem !important; /* Indent child categories */
    border-left: 2px solid #f0f0f0;
    margin-left: 0.5rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}

.sub-cat a {
    font-size: 0.95rem;
    color: #666;
    padding: 0.4rem 0;
}

/* ── Expanded State (When clicked) ── */
li.expanded > .sub-cat {
    display: block; /* Show the sub-menu */
    animation: fadeIn 0.3s ease;
}

/* Change Plus to Minus when open */
li.expanded > .cat-row .cat-toggle::after {
    content: '−'; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Catalog Download Page Styles --- */

/* 1. Push content below the header and give it breathing room */
.catalog-landing-wrapper {
    padding-top: 150px; /* Adjust this number if it still overlaps your header */
    padding-bottom: 100px;
    background-color: transparent; 
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Create a neat, centered box for the form */
.catalog-container {
    max-width: 600px; /* Stops inputs from stretching across the whole screen */
    width: 90%; /* Keeps it responsive on mobile phones */
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Adds a soft, premium shadow */
}

/* 3. Typography spacing */
.catalog-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
    color: #333;
}

.catalog-container p {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

/* --- Catalog Download Page Styles (COMPLETE & CENTERED) --- */

/* 1. Page Wrapper: Centers the entire card on the screen with breathing room */
.catalog-landing-wrapper {
    padding-top: 150px; /* Push content below the header */
    padding-bottom: 100px;
    background-color: transparent; 
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Container Card: Defines the white box style, size, and centering */
.catalog-container {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* A soft, premium shadow */
}

/* 3. Typography spacing */
.catalog-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
    color: #333;
}

.catalog-container p {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

/* --- THE SPECIFIC FIX: Centering content within the Success Screen --- */
.download-success-screen {
    text-align: center; /* This centers the heading, paragraph, and button inside the card */
}
/* --- End of Specific Fix --- */

/* 4. Form Layout (Capture State) */
/* We keep the form labels left-aligned for readability */
.lead-capture-form .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #fbb03b; /* Matches your yellow button color */
    outline: none;
    background-color: #fff;
}

/* 5. Buttons Styling */
/* Target form-submit-btn for the capture form (makes it full width) */
.catalog-container .form-submit-btn {
    width: 100%; 
    margin-top: 10px;
    padding: 16px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    display: block; /* Ensure full width */
    transition: background-color 0.3s;
    box-sizing: border-box;
}

/* Target btn-primary for the download button (pill-style for success screen) */
.catalog-container .btn-primary {
    display: inline-block; /* Essential for text-align centering to work */
    margin-top: 10px;
    padding: 16px 30px; /* Adjust padding for better look when centered */
    font-size: 18px;
    border: none;
    border-radius: 30px;
    text-decoration: none; /* Remove link underline */
    background-color: #fbb03b; /* Or whatever your yellow color is */
    color: #333; /* Dark text color */
    transition: background-color 0.3s;
    box-sizing: border-box;
}

/* --- Mobile responsiveness for product layouts --- */
@media screen and (max-width: 991px) {
    .Products-with-sidebar {
        flex-direction: column;
        gap: 20px;
    }
    .Products-sidebar-col {
        width: 100%;
        margin-bottom: 20px;
    }
    .Products-content-col {
        width: 100%;
    }
    .site-header .site-logo img {
        height: 40px !important;
    }
}
/* ═══════════════════════════════════════════════════════════════
   FIX WOOCOMMERCE RESULT COUNT & ORDERING ALIGNMENT
   ═══════════════════════════════════════════════════════════════ */

/* 1. Force the result count to center and clear floats */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    float: none !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--sv-text-label, #888) !important;
    margin: 0 auto 30px auto !important;
    clear: both !important;
}

/* 2. Fix the Sorting Dropdown (if active) so it doesn't break the grid */
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto 30px auto !important;
    clear: both !important;
}

/* 3. Ensure the product grid always drops below the text */
.woocommerce ul.products,
.woocommerce-page ul.products {
    clear: both !important;
}
/* ═══════════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE: AMAZON ACCORDION STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Hide Accordion Headers on Desktop */
.shape-mobile-accordion-header {
    display: none;
}

@media screen and (max-width: 768px) {
    
    /* Hide the native horizontal tab links entirely on mobile */
    .woocommerce-tabs ul.wc-tabs,
    .woocommerce-tabs ul.tabs,
    .elementor-widget-woocommerce-product-data-tabs .e-n-tabs-heading,
    .woocommerce-tabs .tabs {
        display: none !important;
    }

    /* Style the new Accordion Headers to look like Amazon */
    .shape-mobile-accordion-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 18px 0 !important;
        background: transparent !important;
        border-bottom: 1px solid #eaeaea !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--sv-text-dark, #111) !important;
        cursor: pointer !important;
        transition: background 0.2s !important;
    }

    /* Draw the Chevron Arrow pointing down */
    .shape-mobile-accordion-header::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid #111;
        border-bottom: 2px solid #111;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-right: 5px;
    }

    /* Rotate Arrow pointing up when clicked */
    .shape-mobile-accordion-header.active::after {
        transform: rotate(-135deg);
    }

    /* Clean up the panel spacing */
    .woocommerce-Tabs-panel, 
    .panel, 
    .e-n-tab-content {
        padding: 20px 0 !important;
        border-bottom: 1px solid #eaeaea !important;
    }

    /* Hide redundant headings inside the panel since we have the accordion header now */
    .woocommerce-Tabs-panel h2:first-child,
    .panel h2:first-child {
        display: none !important;
    }
}
/* Expand Brand Logos and Optimize Visual Hierarchy */
.brands-grid .brand-icon {
    width: 170px !important; /* Increases the container size - adjust up or down as needed */
    height: 170px !important; 
    margin: 0 auto 1.5rem auto !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important; /* Removes the distracting yellow box */
    border-radius: 0 !important; 
}

.brands-grid .brand-icon img {
    width: 120% !important;
    height: 120% !important;
    object-fit: contain !important; /* Ensures the logo fits perfectly without stretching */
    max-height: 120px !important; /* Prevents rectangular logos from getting too tall */
}
/* --- Universal Dual-Color Running Light & Background Glow --- */

.brands-grid .brand-card {
    /* 1. Define Your Two Theme Colors Here */
    --glow-color-1: #FF7B00; /* Shape Orange */
    --glow-color-2: #FFD700; /* Premium Gold */
    
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    z-index: 1;
}

/* 2. Create the Thick Running Border Track */
.brands-grid .brand-card::before {
    content: "";
    position: absolute;
    inset: -4px; /* Distance outside the card */
    border-radius: inherit;
    padding: 4px; /* Thickness of the glowing line */
    
    /* The Light Beam moving diagonally with 2 colors and a transparent tail */
    background: linear-gradient(110deg, transparent 10%, var(--glow-color-1) 40%, var(--glow-color-2) 60%, transparent 90%);
    background-size: 300% 300%;
    
    /* The Mask: Cuts out the center so it only shows on the border */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* 3. Trigger the Hover Actions (Lift + Background Glow) */
.brands-grid .brand-card:hover {
    transform: translateY(-5px);
    
    /* This creates the heavy glow BEHIND and INSIDE the card background */
    box-shadow: 
        0 15px 40px rgba(255, 123, 0, 0.2), /* The outer spill */
        inset 0 0 30px rgba(255, 215, 0, 0.08) !important; /* The internal background glow */
}

/* 4. Trigger the Running Border Light */
.brands-grid .brand-card:hover::before {
    opacity: 1;
    animation: border-sprint 1.2s linear infinite !important;
}

/* 5. The Universal Running Engine (Works on all browsers) */
@keyframes border-sprint {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
/* 1. Container Optimization */
.sticky-images-col {
    position: sticky;
    top: 10vh; /* Keeps the image centered in the viewport while scrolling */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh; /* Provides a breathing room boundary */
    width: 100%;
}

/* 2. Fluid Image Architecture */
.sticky-images-col .sticky-img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-height: 100%;
    
    /* CRITICAL: 'contain' ensures the image respects its native width/height 
       and never gets cropped or squished by the container */
    object-fit: contain; 
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
}

/* 3. Active State Handling */
.sticky-images-col .sticky-img.active {
    opacity: 1;
    visibility: visible;
}
/* Header "Shop Online" Button Animation System */
.btn-primary {
  /* 👇 CHANGE THIS SINGLE HEX CODE TO YOUR BRAND COLOR 👇 */
  --btn-brand-color: #000000; 
  
  background: transparent;
  position: relative;
  padding: 12px 24px; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--btn-brand-color); 
  border-radius: 25px;
  overflow: hidden;
  color: var(--btn-brand-color); 
  transition: color 0.3s 0.1s ease-out;
  z-index: 1; 
}

.btn-primary::before {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  margin: auto;
  content: '';
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  transform: translateX(-50%); 
  transition: box-shadow 0.5s ease-out;
  z-index: -1; 
}

.btn-primary:hover {
  color: #ffffff; /* Keeps the text crisp white when hovered */
  text-decoration: none;
}

.btn-primary:hover::before {
  box-shadow: inset 0 0 0 10em var(--btn-brand-color); 
}
/* -----------------------------------------
   Front Page: Premium Borderless Images (Apple Style)
----------------------------------------- */

/* Part 1: Destroy the Theme's Card Styling */
.sticky-features-section .sticky-images-col,
.sticky-features-section .sticky-img {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Part 2: The Blend Mode Hack (Crucial) */
/* If WordPress or an optimizer converted your transparent PNG into a JPG with a solid white background, this forces all white pixels in the image to become invisible, blending perfectly with your page's gradient. */
.sticky-features-section .sticky-img {
    mix-blend-mode: multiply !important;
    object-fit: contain;
}
/* =====================================================================
   SHAPE SCROLL ANIMATION ENGINE 
   ===================================================================== */

/* 1. Initial Hidden States */
.shape-animate {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shape-animate.fade-up {
    transform: translateY(40px);
}

.shape-animate.slide-left {
    transform: translateX(-60px);
}

.shape-animate.slide-right {
    transform: translateX(60px);
}

/* 2. Delay Utilities for staggered grids */
.shape-animate.delay-1 { transition-delay: 0.15s; }
.shape-animate.delay-2 { transition-delay: 0.3s; }

/* 3. The Active State (Triggered when scrolled into view) */
.shape-animate.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 4. Premium Gallery Image Hover Effect */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}
/* =====================================================================
   SHAPE STATIONERY: BRANDS PAGE INSTAGRAM CTA 
   ===================================================================== */

/* 1. Main Container Centering */
.insta-cta {
    text-align: center;
    padding: 6rem 1rem; /* More padding on top and bottom for premium feel */
}

.insta-cta-inner {
    max-width: 600px; /* Optional, but keeps text lines elegant */
    margin: 0 auto;
}

/* 2. Premium Heading Style (Matches serif fonts in reference images) */
.insta-cta h2 {
    font-family: 'Playfair Display', serif; /* Or your theme's serif font */
    color: #181818;
    font-size: 2.75rem; /* Matches large text scale from reference images */
    font-weight: 700;
    margin-bottom: 1.5rem; /* Space below heading */
    letter-spacing: -0.02em; /* Elegantly tighter spacing for serif headings */
}

/* 3. Description Styling (Matches sans-serif in reference images) */
.insta-cta p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Or your theme's sans-serif font */
    color: #666666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0; /* Clear bottom margin as it's the last element */
    max-width: 500px; /* Force text to break similarly to image_3.png */
    margin-left: auto;
    margin-right: auto;
}

/* 4. The Pill-Badge CTA Link */
.instagram-pill-link {
    display: inline-block; /* Essential to make the whole pill clickable */
    text-decoration: none;
    margin-bottom: 3rem; /* Space below the pill CTA */
    overflow: visible; /* Ensure shadow is not clipped */
    transition: transform 0.2s ease, opacity 0.2s ease; /* Smooth hover */
}

/* 5. Hover effects */
.instagram-pill-link:hover {
    transform: translateY(-4px); /* Subtle "pop" on hover */
    opacity: 0.9;
}

/* 6. The Pill-Badge Inner Styling */
.instagram-pill-badge {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 99px;
    padding: 1rem 2.25rem;
    position: relative;
    /* Create the soft glow shadow with the gradient color */
    box-shadow: 0 10px 40px rgba(234, 83, 88, 0.12); /* Use a soft pink/orange alpha shadow */
}

/* 7. Icon within the Pill-Badge (Gradient circle) */
.instagram-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* The pink/orange gradient from image_3.png icon */
    background: linear-gradient(135deg, #FF9933 0%, #EA5358 100%);
    margin-right: 1.5rem; /* Space between icon and text */
}

.instagram-logo-icon {
    width: 26px;
    height: 26px;
    color: #ffffff; /* White icon on the gradient circle */
}

/* 8. Text within the Pill-Badge */
.instagram-pill-text-wrap {
    display: flex;
    flex-direction: column;
    text-align: left; /* Text stacks left inside the wrap, then the whole pill is centered overall */
}

.pill-badge-label {
    display: block;
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean theme sans-serif */
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.pill-badge-main-text {
    display: block;
    font-size: 1.75rem; /* Large font scale from image_3.png pill */
    color: #181818;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Keep consistent sans-serif */
    letter-spacing: -0.01em;
}
/* Container styling */
/* Container styling - Updated for flush-left footer alignment */
.social-row {
  display: flex;
  justify-content: flex-start; /* Snaps the icons to the left */
  align-items: center;
  gap: 15px; /* Tighter gap to match the proportion of your footer column */
  padding: 20px 0 0 0; /* Removes side padding so it aligns perfectly with your text */
  margin-top: 5px; /* Creates proper breathing room below the phone number */
}

/* Wrapper anchors the tooltip and the icon */
.social-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

/* Tooltip styling */
.icon-name {
  position: absolute;
  top: -45px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transform: scale(0);
  border-radius: 5px;
  padding: 5px 10px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy reveal */
  white-space: nowrap;
  pointer-events: none; /* Prevents tooltip from interfering with hover */
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Base icon styling */
.social-icon {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #0c0c0c; /* Default icon color */
  transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* SVG sizing and color inheritance */
.social-icon svg {
  width: 22px;
  height: 22px;
  z-index: 2; /* Keeps SVG above the filling background */
  transition: fill 0.3s ease;
}

/* The expanding background fill effect */
.social-icon::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 50%;
  transition: height 0.3s ease-out;
  z-index: 1;
}

/* Hover States for the Wrapper */
.social-wrapper:hover .icon-name {
  transform: scale(1);
}

.social-wrapper:hover .social-icon {
  color: #fff; /* fill="currentColor" on the SVG picks this up */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px); /* Slight lift on hover */
}

.social-wrapper:hover .social-icon::before {
  height: 100%;
}

/* --- Brand-Specific Colors --- */

/* Instagram */
.insta-wrapper .icon-name,
.social-icon.insta::before {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Facebook */
.fb-wrapper .icon-name,
.social-icon.fb::before {
  background: #1877F2;
}

/* YouTube */
.yt-wrapper .icon-name,
.social-icon.yt::before {
  background: #FF0000;
}

/* X (Twitter) */
.x-wrapper .icon-name,
.social-icon.x::before {
  background: #000000;
}

/* LinkedIn */
.in-wrapper .icon-name,
.social-icon.in::before {
  background: #0A66C2;
}
/* ==========================================================================
   BRAND CARDS: DISABLE TILT & FORCE HOVER ZOOM
   ========================================================================== */

/* 1. Force smooth transitions and disable any CSS-based tilt */
.brands-grid .brand-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    transform: none !important; /* Kills static CSS tilts */
    will-change: transform;
}

/* 2. Apply the Zoom effect on Hover */
.brands-grid .brand-card:hover {
    transform: scale(1.06) !important; /* Zooms in 6% */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important; 
    z-index: 10 !important;
}

/* 3. If the theme uses a wrapper for the tilt, stop it from interfering */
.brands-grid .brand-card:hover * {
    transform: none !important;
}
/* ==========================================================================
   BRAND LOGOS: NESTED HOVER EFFECT
   ========================================================================== */

/* 1. Add a smooth transition directly to the logo images */
.brands-grid .brand-icon img {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform;
}

/* 2. Scale up the logo when the user hovers anywhere on the brand card */
.brands-grid .brand-card:hover .brand-icon img {
    transform: scale(1.12) !important; /* Zooms the logo an extra 12% */
}
/* ==========================================================================
   PILLARS GRID: ALIGN WITH BENEFITS CARD DESIGN SYSTEM
   ========================================================================== */

/* 1. Structural Grid & Equal Heights */
.pillars-grid {
    display: grid;
    /* Automatically creates responsive columns that don't shrink below 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    /* CRITICAL: This is what forces all cards in the row to be the exact same height */
    align-items: stretch; 
    width: 90%;
    margin: 0 auto;
}

/* 2. Card Volume & Spacing */
.p-card {
    background-color: #ffffff;
    /* Matches the soft curves of the benefits cards */
    border-radius: 20px; 
    /* Expands the card vertically and horizontally to match target volume */
    padding: 40px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
    /* Subtle depth to separate it from the background */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
}

/* 3. Icon Formatting */
.p-card .icon-circle {
    width: 48px;
    height: 48px;
    /* Matches the soft yellow icon background */
    background-color: #fffbee; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
}

/* 4. Typography Hierarchy */
.p-card h3 {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #2c2c2c;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.p-card p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 5. Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .pillars-grid {
        /* Stacks to a single column on mobile screens */
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .p-card {
        /* Slightly tighter padding for mobile viewports */
        padding: 30px 20px;
    }
}