/*
Theme Name: Lowcountry Deals
Theme URI: https://lowcountrydeals.info
Author: Lowcountry Society LLC
Author URI: https://lowcountrysociety.com
Description: Premium deals platform for the Lowcountry region. Part of the Lowcountry Society ecosystem.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
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: lowcountry-deals
Tags: deals, local-business, crm, custom-post-types
*/

/* ==========================================================
   DESIGN SYSTEM
   ========================================================== */

:root {
    --lcd-deep-navy: #0f1b2d;
    --lcd-mid-navy: #162a3e;
    --lcd-slate: #1e3348;
    --lcd-charcoal: #1a1a1a;
    --lcd-gold: #D4AF37;
    --lcd-gold-dark: #B8941F;
    --lcd-gold-light: #e8cc6e;
    --lcd-sand: #f7e8c8;
    --lcd-white: #FAFAF8;
    --lcd-text: #e2e8f0;
    --lcd-text-muted: #94a3b8;
    --lcd-text-dark: #1a1a1a;
    --lcd-border: rgba(212, 175, 55, 0.15);
    --lcd-glass: rgba(255, 252, 245, 0.05);
    --lcd-glass-border: rgba(212, 175, 55, 0.12);
    --lcd-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --lcd-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --lcd-shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.15);

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2.5rem;
    --sp-xl: 4rem;
    --sp-2xl: 6rem;

    --container-max: 1140px;
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* overflow-x on html breaks position:sticky/fixed stacking; clip horizontal scroll on body only */
body { overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    color: var(--lcd-text);
    line-height: 1.6;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(22, 42, 62, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 90% 80% at 50% 100%, rgba(10, 14, 24, 0.6) 0%, transparent 70%),
        var(--lcd-deep-navy);
    min-height: 100vh;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lcd-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--lcd-gold-light); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lcd-white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: var(--sp-sm); }

/* Body state: menu open */
body.menu-open { overflow: hidden; }

/* ==========================================================
   ENTRY CONTENT (WordPress content output)
   ========================================================== */

.entry-content { color: var(--lcd-text); line-height: 1.7; }
.entry-content a { color: var(--lcd-gold); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--lcd-gold-light); }

.entry-content ul,
.entry-content ol { margin: 0 0 var(--sp-md) 1.5rem; color: var(--lcd-text); }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
    border-left: 3px solid var(--lcd-gold);
    padding: var(--sp-sm) var(--sp-md);
    margin: var(--sp-md) 0;
    background: rgba(255, 255, 255, 0.03);
    font-style: italic;
    color: var(--lcd-text-muted);
}

.entry-content h2 { margin: var(--sp-lg) 0 var(--sp-sm); }
.entry-content h3 { margin: var(--sp-md) 0 var(--sp-xs); }
.entry-content h4 { margin: var(--sp-md) 0 var(--sp-xs); font-size: 1.1rem; }

.entry-content img {
    border-radius: var(--radius);
    margin: var(--sp-md) 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--sp-md) 0;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.entry-content th { background: rgba(255, 255, 255, 0.05); font-weight: 600; }
.entry-content code { background: rgba(255, 255, 255, 0.08); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.entry-content pre { background: rgba(0, 0, 0, 0.3); padding: var(--sp-md); border-radius: var(--radius); overflow-x: auto; margin: var(--sp-md) 0; }
.entry-content pre code { background: transparent; padding: 0; }

/* WordPress alignment classes */
.alignleft { float: left; margin: 0 var(--sp-md) var(--sp-md) 0; }
.alignright { float: right; margin: 0 0 var(--sp-md) var(--sp-md); }
.aligncenter { display: block; margin: var(--sp-md) auto; }
.alignwide { max-width: calc(var(--container-max) + 4rem); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* WP forms */
.wp-block-search { display: flex; gap: 0.5rem; }
.wp-block-search__input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--lcd-white);
    font-size: 0.95rem;
}
.wp-block-search__button { cursor: pointer; }

/* ==========================================================
   UTILITIES
   ========================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lcd-gold), var(--lcd-gold-dark));
    color: var(--lcd-charcoal);
    box-shadow: var(--lcd-shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    color: var(--lcd-charcoal);
}

.btn-outline {
    background: transparent;
    color: var(--lcd-gold);
    border: 2px solid var(--lcd-gold);
}

.btn-outline:hover {
    background: var(--lcd-gold);
    color: var(--lcd-charcoal);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--lcd-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--lcd-white);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* ==========================================================
   ECOSYSTEM BAR
   ========================================================== */

.ecosystem-bar {
    background: var(--lcd-charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.ecosystem-bar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-md);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.ecosystem-bar__link {
    color: var(--lcd-text-muted);
    transition: color var(--transition);
}

.ecosystem-bar__link:hover { color: var(--lcd-gold); }
.ecosystem-bar__link--active { color: var(--lcd-gold); font-weight: 600; }
.ecosystem-bar__sep { color: rgba(255, 255, 255, 0.15); }

/*
 * Fixed header stack (ecosystem + nav): sticky was unreliable because
 * overflow-x on html/body creates a scroll container that breaks sticky.
 * Fixed + main padding keeps My Deals visible without a top gap.
 */
:root {
    --lcd-header-offset: calc(2.1rem + 70px);
}

@media (max-width: 768px) {
    :root {
        --lcd-header-offset: calc(1.9rem + 60px);
    }
}

.site-header-group {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

body.admin-bar .site-header-group {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header-group {
        top: 46px;
    }
}

.site-main {
    padding-top: var(--lcd-header-offset);
}

/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    background: var(--lcd-deep-navy);
    border-bottom: 1px solid var(--lcd-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-md);
    height: 70px;
}

.site-logo {
    font-family: var(--font-serif);
    color: var(--lcd-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.site-logo:hover { color: var(--lcd-white); }
.site-logo:hover .site-logo-text__bottom { color: var(--lcd-gold-light); }

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo-text__top {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lcd-white);
    letter-spacing: 0.01em;
}

.site-logo-text__bottom {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lcd-gold);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-top: 1px;
    transition: color var(--transition);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--sp-md);
    align-items: center;
}

.main-navigation a {
    color: var(--lcd-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color var(--transition);
    white-space: nowrap;
}

.main-navigation a:hover { color: var(--lcd-gold); }

.my-deals-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--lcd-border);
    border-radius: 20px;
    color: var(--lcd-gold);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

.my-deals-pill:hover { background: rgba(212, 175, 55, 0.2); color: var(--lcd-gold); }

.my-deals-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--lcd-gold);
    color: var(--lcd-charcoal);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
}

/* ==========================================================
   MOBILE MENU
   ========================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle .hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--lcd-white);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active { opacity: 1; visibility: visible; }

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--lcd-deep-navy);
    border-left: 1px solid var(--lcd-border);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: var(--sp-xl) var(--sp-md) var(--sp-lg);
}

.mobile-menu-drawer.active { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: var(--sp-sm);
    right: var(--sp-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--lcd-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-menu-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--lcd-white); }

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-bottom: var(--sp-lg);
}

.mobile-nav-menu a {
    display: block;
    color: var(--lcd-text);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
}

.mobile-nav-menu a:hover { color: var(--lcd-gold); padding-left: 0.5rem; }

.mobile-menu-cta { margin-top: var(--sp-md); }
.mobile-menu-cta .btn { width: 100%; }

/* ==========================================================
   HERO (Minimal)
   ========================================================== */

.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    color: var(--lcd-white);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.88), rgba(22, 42, 62, 0.72), rgba(15, 27, 45, 0.82));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--sp-2xl) var(--sp-md);
    width: 100%;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--lcd-gold);
    margin-bottom: var(--sp-sm);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--sp-sm);
    max-width: 700px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--lcd-text-muted);
    margin-bottom: var(--sp-lg);
    max-width: 550px;
    line-height: 1.6;
}

.hero-actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

/* ==========================================================
   SECTION DEFAULTS
   ========================================================== */

.lcd-section { padding: var(--sp-2xl) 0; }
.lcd-section--alt { background: var(--lcd-mid-navy); }
.lcd-section--dark { background: var(--lcd-charcoal); }

.section-header { text-align: center; margin-bottom: var(--sp-xl); }
.section-header h2 { margin-bottom: var(--sp-xs); }
.section-header p { color: var(--lcd-text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--lcd-gold);
    margin-bottom: var(--sp-xs);
}

/* ==========================================================
   DEAL CARDS
   ========================================================== */

.deal-card {
    background: var(--lcd-glass);
    border: 1px solid var(--lcd-glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lcd-shadow);
    border-color: rgba(212, 175, 55, 0.25);
}

.deal-card__image { width: 100%; height: 200px; object-fit: cover; }

.deal-card__body {
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.deal-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--lcd-gold), var(--lcd-gold-dark));
    color: var(--lcd-charcoal);
    align-self: flex-start;
}

.deal-card__name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lcd-white);
    line-height: 1.3;
    margin: 0;
}

.deal-card__name a { color: inherit; }
.deal-card__name a:hover { color: var(--lcd-gold); }

.deal-card__offer { font-size: 0.95rem; font-weight: 600; color: var(--lcd-gold); margin: 0; }
.deal-card__address { font-size: 0.82rem; color: var(--lcd-text-muted); margin: 0; }
.deal-card__description { font-size: 0.85rem; color: var(--lcd-text-muted); line-height: 1.5; margin: 0; }

.deal-card__footer {
    padding: 0 var(--sp-md) var(--sp-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.deal-card__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--lcd-white);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all var(--transition);
}

.deal-card__cta:hover { background: rgba(255, 255, 255, 0.12); color: var(--lcd-white); }

/* ==========================================================
   CLIP BUTTON
   ========================================================== */

.clip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--lcd-gold);
    color: var(--lcd-gold);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.clip-btn:hover { background: rgba(212, 175, 55, 0.12); }

.clip-btn.is-clipped {
    background: var(--lcd-gold);
    color: var(--lcd-charcoal);
    border-color: var(--lcd-gold);
}

.clip-btn.is-clipped:hover { background: var(--lcd-gold-dark); border-color: var(--lcd-gold-dark); }

/* ==========================================================
   DEALS GRID + FILTER PILLS
   ========================================================== */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-md);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--sp-lg);
    justify-content: center;
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--lcd-text-muted);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-pill:hover { border-color: var(--lcd-gold); color: var(--lcd-gold); }

.filter-pill.is-active {
    background: var(--lcd-gold);
    border-color: var(--lcd-gold);
    color: var(--lcd-charcoal);
}

/* ==========================================================
   PARTNER SLIDER
   ========================================================== */

.partner-slider {
    overflow: hidden;
    position: relative;
    padding: var(--sp-sm) 0;
    cursor: grab;
    touch-action: pan-y;
}

.partner-slider.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.partner-slider__track {
    display: flex;
    gap: var(--sp-md);
    width: max-content;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .partner-slider { cursor: default; }
}

.partner-slide {
    flex-shrink: 0;
    width: 260px;
    padding: var(--sp-md);
    background: var(--lcd-glass);
    border: 1px solid var(--lcd-glass-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    transition: all var(--transition);
}

.partner-slide:hover { border-color: rgba(212, 175, 55, 0.3); background: rgba(255, 252, 245, 0.08); }

.partner-slide__logo {
    width: 100%;
    max-width: 160px;
    height: 88px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: var(--radius);
    object-fit: contain;
    object-position: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.partner-slide__logo:not(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #334155;
    text-align: center;
}

.partner-slide__name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--lcd-white); }
.partner-slide__deal { font-size: 0.82rem; color: var(--lcd-gold); font-weight: 500; }
.partner-slide__category { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lcd-text-muted); }

/* ==========================================================
   DISCOVER SECTION
   ========================================================== */

.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-md);
}

.discover-card {
    padding: var(--sp-lg);
    background: var(--lcd-glass);
    border: 1px solid var(--lcd-glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.discover-card:hover { border-color: rgba(212, 175, 55, 0.25); transform: translateY(-2px); }

.discover-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto var(--sp-sm);
    color: var(--lcd-gold);
    background: rgba(212, 175, 55, 0.09);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.discover-card:hover .discover-card__icon {
    color: var(--lcd-gold-light);
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.35);
}

.discover-card__svg {
    width: 1.9375rem;
    height: 1.9375rem;
    flex-shrink: 0;
}
.discover-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-xs); }
.discover-card p { color: var(--lcd-text-muted); font-size: 0.9rem; margin: 0; }

/* ==========================================================
   EMAIL CAPTURE
   ========================================================== */

.email-capture {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
    border: 1px solid var(--lcd-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl) var(--sp-lg);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.email-capture h3 { margin-bottom: var(--sp-xs); }
.email-capture p { color: var(--lcd-text-muted); margin-bottom: var(--sp-md); }

.email-capture__form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

.email-capture__input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--lcd-white);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition);
}

.email-capture__input::placeholder { color: var(--lcd-text-muted); }

.email-capture__input:focus {
    outline: none;
    border-color: var(--lcd-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ==========================================================
   HOW IT WORKS
   ========================================================== */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }

.step-card { text-align: center; padding: var(--sp-md); }

.step-card__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--lcd-gold);
    color: var(--lcd-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 0 auto var(--sp-sm);
}

.step-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-xs); }
.step-card p { color: var(--lcd-text-muted); font-size: 0.9rem; margin: 0; }

/* ==========================================================
   TRUST SIGNALS
   ========================================================== */

.trust-signals { display: flex; flex-wrap: wrap; gap: var(--sp-md); justify-content: center; }

.trust-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--lcd-text-muted);
}

.trust-signal__check { color: var(--lcd-gold); font-weight: 700; }

/* ==========================================================
   ECOSYSTEM CTA
   ========================================================== */

.ecosystem-cta {
    text-align: center;
    padding: var(--sp-xl) var(--sp-md);
    border-top: 1px solid var(--lcd-border);
}

.ecosystem-cta__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--lcd-text-muted);
    margin-bottom: var(--sp-md);
}

.ecosystem-cta__links { display: flex; justify-content: center; gap: var(--sp-lg); flex-wrap: wrap; }

.ecosystem-cta__link { color: var(--lcd-text); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.ecosystem-cta__link:hover { color: var(--lcd-gold); }
.ecosystem-cta__link--active { color: var(--lcd-gold); font-weight: 600; }

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    background: var(--lcd-charcoal);
    color: var(--lcd-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-xl);
    padding: var(--sp-2xl) var(--sp-md);
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-brand { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-brand__logo { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--lcd-white); }
.footer-brand__tagline { font-size: 0.9rem; line-height: 1.6; }

.footer-social { display: flex; gap: var(--sp-sm); margin-top: var(--sp-sm); }

.footer-social__link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--lcd-text-muted);
    transition: all var(--transition);
}

.footer-social__link:hover { background: rgba(212, 175, 55, 0.15); border-color: var(--lcd-gold); color: var(--lcd-gold); }

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lcd-white);
    margin-bottom: var(--sp-md);
}

.footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-column a { color: var(--lcd-text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-column a:hover { color: var(--lcd-gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--sp-md);
    text-align: center;
    font-size: 0.82rem;
}

.footer-bottom__inner { max-width: var(--container-max); margin: 0 auto; }

/* ==========================================================
   PARTNER PAGE
   ========================================================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-md);
}

.partner-card {
    background: var(--lcd-glass);
    border: 1px solid var(--lcd-glass-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-sm);
    transition: all var(--transition);
}

.partner-card:hover { transform: translateY(-4px); box-shadow: var(--lcd-shadow); border-color: rgba(212, 175, 55, 0.25); }

.partner-card__logo {
    width: 100%;
    max-width: 220px;
    height: 118px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    object-fit: contain;
    object-position: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.partner-card__logo:not(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: #334155;
    text-align: center;
}

.partner-card__name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--lcd-white); }
.partner-card__deal { color: var(--lcd-gold); font-weight: 600; font-size: 0.95rem; }
.partner-card__meta { font-size: 0.82rem; color: var(--lcd-text-muted); line-height: 1.5; }
.partner-card__actions { display: flex; gap: 0.75rem; margin-top: auto; padding-top: var(--sp-sm); }

/* ==========================================================
   PARTNER MODAL
   ========================================================== */

.partner-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.partner-modal.active { opacity: 1; visibility: visible; }

.partner-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.partner-modal__dialog {
    position: relative;
    background: var(--lcd-mid-navy);
    border: 1px solid var(--lcd-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--lcd-shadow);
}

.partner-modal__close {
    position: absolute;
    top: var(--sp-sm);
    right: var(--sp-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--lcd-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.partner-modal__close:hover { background: rgba(255, 255, 255, 0.12); color: var(--lcd-white); }

.partner-modal__logo {
    display: block;
    width: 100%;
    max-width: 240px;
    height: 112px;
    margin: 0 auto var(--sp-sm);
    padding: 12px 14px;
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    object-fit: contain;
    object-position: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Light-on-light partner marks (e.g. white wordmark on white tile) */
.partner-card__logo.partner-logo--dark-backdrop,
.partner-slide__logo.partner-logo--dark-backdrop,
.partner-modal__logo.partner-logo--dark-backdrop {
    background:
        radial-gradient(ellipse 88% 92% at 50% 40%, rgba(52, 78, 115, 0.96) 0%, rgba(24, 42, 72, 0.98) 48%, rgba(14, 26, 48, 1) 100%),
        linear-gradient(150deg, #1c3354 0%, #0f1c32 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ==========================================================
   CLIPPED DEALS PAGE
   ========================================================== */

.clipped-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-md);
}

.clipped-page__actions { display: flex; gap: 0.75rem; }

.clipped-page__empty {
    text-align: center;
    padding: var(--sp-2xl) var(--sp-md);
}

.clipped-page__empty h3 { margin-bottom: var(--sp-sm); }
.clipped-page__empty p { color: var(--lcd-text-muted); margin-bottom: var(--sp-md); }

/* ==========================================================
   SINGLE DEAL
   ========================================================== */

.deal-single { max-width: 800px; margin: 0 auto; padding: var(--sp-xl) var(--sp-md); }
.deal-single .entry-header { margin-bottom: var(--sp-lg); }
.deal-single .deal-featured-image { width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--sp-md); }
.deal-single .entry-title { margin-bottom: var(--sp-sm); }
.deal-single .deal-offer-headline h2 { color: var(--lcd-gold); font-size: 1.5rem; margin-bottom: var(--sp-md); }

.deal-single .deal-pricing { display: flex; gap: var(--sp-sm); align-items: baseline; margin: var(--sp-md) 0; }
.deal-single .original-price { text-decoration: line-through; color: var(--lcd-text-muted); font-size: 1.1rem; }
.deal-single .sale-price { color: var(--lcd-gold); font-size: 1.5rem; font-weight: 700; }

.deal-single .deal-promo-code {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--lcd-border);
    border-radius: var(--radius);
    padding: var(--sp-sm) var(--sp-md);
    margin: var(--sp-md) 0;
}

.deal-single .deal-end-date { color: var(--lcd-text-muted); margin: var(--sp-sm) 0; }

.deal-single .deal-terms {
    margin-top: var(--sp-lg);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--lcd-border);
    font-size: 0.9rem;
    color: var(--lcd-text-muted);
}

.deal-single .entry-footer { margin-top: var(--sp-lg); display: flex; gap: var(--sp-sm); }

/* Featured deal landing */
.deal-featured-landing .featured-deal-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    color: var(--lcd-white);
    overflow: hidden;
}

.deal-featured-landing .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; }

.deal-featured-landing .hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.85), rgba(15, 27, 45, 0.6));
    padding: var(--sp-2xl) 0;
}

.deal-featured-landing .featured-deal-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--sp-sm); }
.deal-featured-landing .featured-deal-offer { font-size: 1.25rem; color: var(--lcd-gold); margin-bottom: var(--sp-sm); }
.deal-featured-landing .deal-summary-box { background: var(--lcd-mid-navy); padding: var(--sp-lg) 0; }
.deal-featured-landing .summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-sm); }
.deal-featured-landing .deal-content-section { padding: var(--sp-xl) 0; }

.deal-featured-landing .deal-highlights ul { list-style: none; }
.deal-featured-landing .deal-highlights li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--lcd-text); }
.deal-featured-landing .deal-highlights li::before { content: ''; position: absolute; left: 0; top: 0.85rem; width: 8px; height: 8px; border-radius: 50%; background: var(--lcd-gold); }

.deal-featured-landing .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.deal-featured-landing .gallery-item img { border-radius: var(--radius-lg); width: 100%; }
.deal-featured-landing .deal-terms-section { padding: var(--sp-lg) 0; color: var(--lcd-text-muted); font-size: 0.9rem; }

.deal-featured-landing .sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: var(--sp-sm);
    background: var(--lcd-deep-navy);
    border-top: 1px solid var(--lcd-border);
    z-index: 1000;
    text-align: center;
}

/* ==========================================================
   ARCHIVE / SEARCH
   ========================================================== */

.page-header { padding: var(--sp-xl) 0 var(--sp-lg); text-align: center; }
.no-deals { text-align: center; padding: var(--sp-2xl) var(--sp-md); color: var(--lcd-text-muted); }

.pagination { margin: var(--sp-xl) 0; display: flex; justify-content: center; gap: 0.4rem; }

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--lcd-text-muted);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.pagination a:hover { border-color: var(--lcd-gold); color: var(--lcd-gold); }
.pagination .current { background: var(--lcd-gold); border-color: var(--lcd-gold); color: var(--lcd-charcoal); font-weight: 600; }

/* ==========================================================
   CONTACT FORM
   ========================================================== */

.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: var(--sp-md); }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--lcd-text); margin-bottom: 0.35rem; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--lcd-white);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--lcd-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-success { text-align: center; padding: var(--sp-lg); color: var(--lcd-gold); }

/* ==========================================================
   MAP PAGE
   ========================================================== */

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--lcd-border);
}

.map-legend { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-md); justify-content: center; }
.map-legend__item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--lcd-text-muted); }
.map-legend__dot { width: 10px; height: 10px; border-radius: 50%; }

/* ==========================================================
   PRINT
   ========================================================== */

@media print {
    body { background: white; color: black; }
    .site-header-group, .site-header, .site-footer, .ecosystem-bar, .mobile-menu-drawer,
    .mobile-menu-backdrop, .clip-btn, .my-deals-pill,
    .hero-section, .partner-slider, .email-capture { display: none; }
    .deal-card { break-inside: avoid; border: 1px solid #ccc; background: white; color: black; }
    .deal-card__name, .deal-card__offer { color: black; }
    .deal-card__category { background: #eee; color: black; }
}

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

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .main-navigation, .header-cta { display: none; }
    .header-inner { height: 60px; }
    .hero-section { min-height: 350px; }
    .hero-content { padding: var(--sp-xl) var(--sp-md); }
    .steps-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
    .deals-grid { grid-template-columns: 1fr; }
    .discover-grid { grid-template-columns: 1fr 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: var(--sp-lg); }
    .email-capture__form { flex-direction: column; }
    .ecosystem-bar .container { justify-content: center; font-size: 0.75rem; gap: var(--sp-sm); }
    .clipped-page__header { flex-direction: column; align-items: flex-start; }
    .deal-featured-landing .sticky-cta-mobile { display: block; }
    .deal-featured-landing .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .discover-grid { grid-template-columns: 1fr; }
    .filter-pills { gap: 0.35rem; }
    .filter-pill { padding: 0.4rem 1rem; font-size: 0.8rem; }
    .partner-slide { width: 220px; }
    .ecosystem-bar .container { flex-wrap: wrap; gap: 0.5rem; }
}
