/*
 * Theme Name:  Heptalume Child
 * Theme URI:   https://heptalume.com
 * Description: Child theme for Kadence — Heptalume wellness brand
 * Author:      Heptalume
 * Author URI:  https://heptalume.com
 * Template:    kadence
 * Version:     1.0.0
 * License:     GPL-2.0-or-later
 * Text Domain: heptalume-child
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Chakra palette */
    --c1: #FF3C3C;
    --c2: #FF8C00;
    --c3: #FFD600;
    --c4: #3DBA6E;
    --c5: #2E9CFF;
    --c6: #6B4FCC;
    --c7: #C47FFF;

    /* Brand gold */
    --gold:   #C8976A;
    --gold-l: #DEB48C;

    /* Backgrounds */
    --bg:   #030308;
    --bg-1: #0A0A14;
    --bg-2: #111120;

    /* Borders */
    --border: rgba(255, 255, 255, 0.07);

    /* Text */
    --text:   #D0D0E0;
    --text-2: #888899;
    --white:  #F0F0F8;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;

    /* Spacing scale */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  2rem;
    --space-xl:  4rem;
    --space-2xl: 8rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 0.25s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-glow-gold: 0 0 24px rgba(200, 151, 106, 0.25);
    --shadow-glow-c7:   0 0 32px rgba(196, 127, 255, 0.2);
    --shadow-card:      0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-l);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text);
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-2);
    line-height: 1.7;
}

code, pre, kbd, samp {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.container--wide {
    max-width: 1440px;
}

.container--narrow {
    max-width: 800px;
}

.section {
    padding-block: var(--space-xl);
}

.section--lg {
    padding-block: var(--space-2xl);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid--4,
    .grid--3,
    .grid--2 { grid-template-columns: 1fr; }
    .container { padding-inline: var(--space-md); }
}

/* Flex */
.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap  { flex-wrap: wrap; }
.gap-sm     { gap: var(--space-sm); }
.gap-md     { gap: var(--space-md); }
.gap-lg     { gap: var(--space-lg); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Visibility */
.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;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-l));
    color: var(--bg);
    border: 1px solid transparent;
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--gold-l), var(--gold));
    color: var(--bg);
    box-shadow: var(--shadow-glow-gold);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--ghost {
    background: transparent;
    color: var(--text-2);
    border: none;
    padding-inline: var(--space-md);
}

.btn--ghost:hover {
    color: var(--white);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    border-color: rgba(200, 151, 106, 0.3);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.card__body {
    padding: var(--space-lg);
}

.card__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: rgba(200, 151, 106, 0.12);
    color: var(--gold);
    border: 1px solid rgba(200, 151, 106, 0.25);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header .eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    max-width: 560px;
    margin-inline: auto;
    color: var(--text-2);
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: var(--space-md) auto;
    border: none;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin-block: var(--space-lg);
}

/* ============================================================
   FORMS (global)
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.9375rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-2);
    opacity: 0.6;
}

.form-control:focus {
    border-color: var(--gold);
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

/* Product grid */
.woocommerce ul.products li.product {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    padding: 0;
}

.woocommerce ul.products li.product:hover {
    border-color: rgba(200, 151, 106, 0.3);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
    margin: 0;
    border-radius: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--white);
    padding: var(--space-md) var(--space-md) var(--space-xs);
}

.woocommerce ul.products li.product .price {
    color: var(--gold);
    font-weight: 600;
    padding: 0 var(--space-md) var(--space-md);
}

/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, var(--gold), var(--gold-l));
    color: var(--bg) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    border: none;
    padding: 0.625rem 1.5rem;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: linear-gradient(135deg, var(--gold-l), var(--gold));
    box-shadow: var(--shadow-glow-gold);
    transform: translateY(-1px);
    color: var(--bg) !important;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-bottom: var(--space-lg);
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--text-2);
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--gold);
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--c1);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    min-width: unset;
    min-height: unset;
    padding: 0.3rem 0.65rem;
    line-height: 1.4;
    top: 0.75rem;
    left: 0.75rem;
    right: auto;
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
    background: var(--bg-1);
    border-top-color: var(--gold);
    color: var(--text);
}

.woocommerce-error {
    background: var(--bg-1);
    border-top-color: var(--c1);
    color: var(--text);
}

/* ============================================================
   KADENCE OVERRIDES
   ============================================================ */

/* Force dark background on Kadence wrapper */
#page,
.site,
.site-content {
    background-color: var(--bg);
}

/* Header */
.site-header,
#masthead {
    background-color: var(--bg) !important;
    border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer,
#colophon {
    background-color: var(--bg-1) !important;
    border-top: 1px solid var(--border);
    color: var(--text-2);
}

/* Navigation links */
.main-navigation a,
.kadence-navigation a {
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition);
}

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

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 151, 106, 0.4);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: rgba(200, 151, 106, 0.25);
    color: var(--white);
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}


/* ===== LOGO SIZE FIX ===== */
.nav-logo-img {
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
}
.footer-logo-img {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
}
