/* =============================================================================
   SYNTROPY — MAIN STYLESHEET
   Global design tokens, resets, typography, layout, components
   ============================================================================= */

/* --- Design Tokens ---------------------------------------------------------- */
:root {
    /* Backgrounds */
    --bg:       #080808;
    --surface:  #111111;
    --surface2: #181818;

    /* Aliases used by utility classes */
    --color-bg-1: #080808;
    --color-bg-2: #111111;
    --color-bg-3: #181818;

    /* Brand */
    --pink:          #e8185d;
    --pink-dim:      rgba(232, 24, 93, 0.1);
    --pink-glow:     rgba(232, 24, 93, 0.2);
    --color-primary:       #e8185d;
    --color-primary-hover: #c0144d;
    --color-secondary:     rgba(232, 24, 93, 0.6);

    /* Text */
    --white:          #ffffff;
    --text:           #e0e0e0;
    --muted:          #888888;
    --color-text:     #ffffff;
    --color-text-muted: #888888;

    /* Borders */
    --border:            #222222;
    --color-border:      #222222;
    --color-border-dark: #1a1a1a;

    /* Typography */
    --font-heading:    'Syne', sans-serif;
    --font-sans:       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing scale */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Layout */
    --container-max:  1200px;
    --container-wide: 1400px;

    /* Radii */
    --radius-sm:  0.25rem;
    --radius-md:  0.5rem;
    --radius-lg:  0.75rem;
    --radius-xl:  1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 150ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

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

/* --- Typography ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem,   4vw, 3rem);   }
h3 { font-size: clamp(1.5rem, 3vw, 2rem);   }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--color-text-muted);
    line-height: 1.75;
}

strong { font-weight: 700; color: var(--color-text); }

/* --- Layout ----------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.section {
    padding: var(--sp-24) 0;
}

.section-sm {
    padding: var(--sp-16) 0;
}

/* --- Grid ------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

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

/* --- Section Headers -------------------------------------------------------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--sp-3);
}

/* New simplified label used by the homepage and product pages */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 12px;
}

.section-title {
    color: var(--color-text);
    margin-bottom: var(--sp-4);
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: var(--sp-4);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 580px;
    line-height: 1.75;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    margin-bottom: var(--sp-16);
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-sans);
    border: 2px solid transparent;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-sans);
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-sans);
    background: var(--surface);
    color: var(--white);
    border: 2px solid var(--border);
}
.btn-secondary:hover {
    background: var(--surface2);
    border-color: var(--pink);
    color: var(--white);
}

.btn-outline {
    background: var(--color-bg-2);
    color: var(--color-text);
    border-color: var(--color-border);
    border: 2px solid var(--color-border);
}
.btn-outline:hover {
    background: var(--color-bg-3);
    border-color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: transparent;
}
.btn-ghost:hover {
    color: var(--color-text);
    background: var(--color-bg-2);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-group {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    align-items: center;
}

/* --- Cards ------------------------------------------------------------------ */
.card {
    background: var(--color-bg-2);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
    border-color: rgba(232, 24, 93, 0.4);
    transform: translateY(-2px);
}

/* --- Badges / Tags ---------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.badge-primary {
    color: var(--color-primary);
    background: rgba(232, 24, 93, 0.1);
    border: 1px solid rgba(232, 24, 93, 0.3);
}

.badge-secondary {
    color: var(--color-secondary);
    background: rgba(232, 24, 93, 0.08);
    border: 1px solid rgba(232, 24, 93, 0.2);
}

.badge-muted {
    color: var(--color-text-muted);
    background: var(--color-bg-3);
    border: 1px solid var(--color-border-dark);
}

/* --- CTA Banner ------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-bg-2) 0%, var(--color-bg-3) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--sp-16) var(--sp-12);
    text-align: center;
    margin: 0 auto;
    max-width: 860px;
}

.cta-banner .section-eyebrow { display: block; margin-bottom: var(--sp-3); }
.cta-banner h2               { margin-bottom: var(--sp-4); }
.cta-banner p                { font-size: 1.125rem; margin-bottom: var(--sp-8); }
.cta-banner .btn-group       { justify-content: center; }

/* --- Background helpers ----------------------------------------------------- */
.bg-2 { background: var(--color-bg-2); }
.bg-3 { background: var(--color-bg-3); }

/* --- Text helpers ----------------------------------------------------------- */
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-center    { text-align: center; }

/* --- Divider ---------------------------------------------------------------- */
.divider {
    border: none;
    border-top: 1px solid var(--color-border-dark);
    margin: var(--sp-16) 0;
}

/* --- Fade-in animation ------------------------------------------------------ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.07s; }
.fade-in:nth-child(3) { transition-delay: 0.14s; }
.fade-in:nth-child(4) { transition-delay: 0.21s; }

/* --- Footer ----------------------------------------------------------------- */
.site-footer {
    background: var(--color-bg-1);
    border-top: 1px solid var(--color-border-dark);
    margin-top: auto;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--sp-16);
    padding: var(--sp-16) 0 var(--sp-12);
}

.footer-logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-top: var(--sp-4);
    max-width: 300px;
}

.footer-address {
    font-style: normal;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: var(--sp-4);
}

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

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--sp-4);
}

.footer-col ul li {
    margin-bottom: var(--sp-2);
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-text); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
    padding: var(--sp-6) 0;
    border-top: 1px solid var(--color-border-dark);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--sp-6);
}

.footer-bottom-links a {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--color-text); }

@media (max-width: 900px) {
    .footer-top  { grid-template-columns: 1fr; gap: var(--sp-10); }
    .footer-nav  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .footer-nav  { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .section     { padding: var(--sp-16) 0; }
    .section-sm  { padding: var(--sp-10) 0; }
    .cta-banner  { padding: var(--sp-10) var(--sp-6); }
}

/* --- WordPress admin bar adjustment ---------------------------------------- */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
