/*
Theme Name: Galex Beauty
Theme URI: https://galex.beauty
Author: Galex Beauty
Description: Custom theme replicating the GALEX BEAUTY brand site (professional beauty brand distribution).
Version: 1.0.0
Text Domain: galex-beauty
*/

:root {
    --navy: #191a46;
    --navy-2: #251b44;
    --orange: #ff6129;
    --orange-dark: #d96630;
    --lavender: #c0b6d8;
    --bg: #fdfdfc;
    --grey-text: #5c5473;
}

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

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    background: var(--bg);
    line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

h1, h2, h3 { font-weight: 500; line-height: 1.15; color: var(--navy); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
}
.btn-orange { background: var(--orange); color: #fff; border: 2px solid var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 26px 0;
    background: transparent;
    transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.is-solid {
    background: var(--navy);
    padding: 16px 0;
    box-shadow: 0 2px 14px rgba(0,0,0,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-logo img { height: 44px; width: auto; }
.main-nav ul { display: flex; gap: 30px; flex-wrap: wrap; }
.main-nav a {
    font-size: clamp(9px, 0.6vw, 13px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    opacity: .92;
}
.main-nav a:hover { opacity: 1; }
.nav-mobile-extra { display: none; }
.header-right { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.site-header.is-solid .nav-toggle span { background: #fff; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lang-switch {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: background .2s ease, border-color .2s ease;
}
.lang-switch:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 640px;
    height: 92vh;
    /* Scales with viewport width (not just a flat px cap) so very wide/
       high-res screens (5K/4K displays, e.g. 27" Retina iMacs) don't end up
       with a box so short relative to its full-viewport width that
       background-size:cover crops the photo down to a thin sliver. */
    max-height: clamp(900px, 50vw, 1500px);
    padding: 150px 0 130px;
    background-size: cover;
    background-position: center 22%;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(25,26,70,.92) 0%, rgba(25,26,70,.75) 28%, rgba(25,26,70,.25) 55%, rgba(25,26,70,.15) 100%);
    z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(40px, 5.2vw, 76px);
    max-width: 900px;
    color: #fff;
    font-weight: 500;
}
.hero-callout {
    position: absolute;
    right: 40px;
    bottom: 190px;
    max-width: 260px;
    text-align: right;
    z-index: 2;
}
.hero-callout .arrow { font-size: clamp(40px, 2.2vw, 56px); display: block; margin-bottom: 14px; }
.hero-callout p { font-size: clamp(15px, 1vw, 19px); }
.hero-scroll {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 11px;
    letter-spacing: .15em;
    font-weight: 700;
    z-index: 2;
}
.hero-scroll span {
    display: block;
    margin-top: 10px;
    animation: hero-scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Sticky sub-header used on rest of page ===== */
.subnav {
    background: var(--navy);
    padding: 22px 0;
}
.subnav .header-inner { align-items: center; }

/* ===== Two-col image/text sections ===== */
.split { padding: 100px 0; }
.split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 4px; width: 100%; height: 520px; object-fit: cover; }
.split-body h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 24px; }
.split-body p { color: var(--grey-text); margin-bottom: 16px; max-width: 460px; }
.split-body .btn { margin-top: 20px; }

/* ===== Stats ===== */
.stats { padding: 60px 0 100px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat img { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; margin-bottom: 30px; }
.stat .num { font-size: clamp(40px, 4.5vw, 64px); font-weight: 600; color: var(--navy); margin-bottom: 20px; }
.stat h3 { font-size: 22px; margin: 0; }
.stat p { color: var(--grey-text); font-size: 14px; max-width: 220px; margin: 0; }
.stat-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }

/* ===== Brands ===== */
.brands { padding: 60px 0; }
.pill {
    display: inline-block;
    background: var(--lavender);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 10px 22px;
    border-radius: 30px;
    margin-bottom: 24px;
}
.brands-head { display: grid; grid-template-columns: .8fr 1.6fr; gap: 60px; margin-bottom: 60px; }
.brands-head .lede { color: var(--grey-text); font-size: 15px; }
.brands-head h2 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 30px; }
.brands-head .actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* ===== Brand marquee (auto-scrolling logo slider) ===== */
.brand-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.brand-marquee-track {
    display: flex;
    width: max-content;
    animation: brand-marquee-scroll 26s linear infinite;
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-track .brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 56px;
    height: 110px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.brand-item img { max-height: 46px; max-width: 160px; width: auto; object-fit: contain; }
.brand-marquee.on-dark .brand-item img { filter: brightness(0) invert(1); }
@keyframes brand-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
/* On dark hero background */
.brand-marquee.on-dark {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(15,12,35,.55);
    backdrop-filter: blur(3px);
    z-index: 2;
}
.brand-marquee.on-dark .brand-item { color: #fff; }
/* On light section background */
.brand-marquee.on-light { background: #f2f1f6; }
.brand-marquee.on-light .brand-item { color: #444; border-right: 1px solid #e4e2ea; }

/* ===== Pillars ===== */
.pillars-intro { padding: 90px 0 30px; text-align: center; }
.pillars-intro .eyebrow { color: var(--orange); font-weight: 700; letter-spacing: .1em; font-size: 12px; margin-bottom: 16px; display: block; }
.pillars-intro h2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 760px; margin: 0 auto; }
.pillars-intro .btn { margin-top: 30px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
.pillar-card {
    position: relative;
    min-height: 620px;
    padding: 60px 40px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.pillar-bg {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(1.5px);
}
.pillar-card::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.22); }
.pillar-card .inner { position: relative; z-index: 2; }
.pillar-card .eyebrow { color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: .08em; margin-bottom: 14px; }
.pillar-card h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 16px; }
.pillar-card p { font-size: 14px; color: var(--navy); max-width: 320px; }

/* ===== CTA banner ===== */
.cta-banner { position: relative; min-height: 560px; display: flex; align-items: flex-end; }
.cta-banner .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-box {
    position: relative; z-index: 2;
    background: var(--navy);
    color: #fff;
    max-width: 620px;
    padding: 60px;
}
.cta-box .eyebrow { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-bottom: 16px; }
.cta-box h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); margin-bottom: 30px; }

/* ===== Blog ===== */
.blog-section { padding: 100px 0; }
.blog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.blog-head h2 { font-size: clamp(26px, 2.6vw, 36px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.blog-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 4px; margin-bottom: 24px; }
.blog-card .date { color: #a9a6b8; font-size: 13px; letter-spacing: .06em; margin-bottom: 10px; display: block; }
.blog-card h3 { font-size: 22px; margin-bottom: 14px; }
.blog-card p { color: var(--grey-text); font-size: 14px; margin-bottom: 24px; }

/* ===== Contact ===== */
.contact { padding: 40px 0 100px; }
.contact h2 { font-size: clamp(26px, 2.8vw, 40px); max-width: 760px; margin-bottom: 60px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0; }
.contact-info {
    background: var(--navy);
    color: #fff;
    padding: 50px 40px;
}
.contact-info .item { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-size: 15px; }
.contact-info .ico {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--orange);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-form { background: #fff; padding: 50px 40px; border: 1px solid #e8e6ee; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 20px; }
.contact-form label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--grey-text); margin-bottom: 8px;
}
.contact-form label .field-ico { color: var(--orange); font-size: 14px; line-height: 1; }
.contact-form input, .contact-form textarea {
    width: 100%; border: none; border-bottom: 1px solid #ddd; padding: 8px 0; font-size: 15px;
    background: transparent; font-family: inherit;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form .consent { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 30px 0; color: var(--grey-text); }
.contact-form .consent a { text-decoration: underline; }
.contact-form .submit-row { display: flex; justify-content: flex-end; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.footer-top { padding: 70px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; position: relative; z-index: 2; }
.site-footer .site-logo img { height: 46px; }
.footer-col h4 { display: none; }
.footer-col ul li { margin-bottom: 16px; font-size: 14px; }
.footer-contact .item { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
    width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    position: relative; z-index: 2;
}
.footer-watermark {
    position: absolute;
    right: -60px; bottom: -140px;
    font-size: 560px;
    font-weight: 800;
    color: rgba(255,255,255,.05);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 960px) {
    .split-inner, .brands-head, .stats-grid, .pillars, .blog-grid, .contact-grid { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
    .split.reverse .split-media { order: 0; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: block;
        position: fixed;
        top: 0; right: 0;
        width: min(78vw, 320px);
        height: 100vh;
        background: var(--navy);
        padding: 100px 30px 30px;
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 22px; }
    .main-nav a { font-size: 14px; }
    .header-right .btn-orange { display: none; }
    .nav-mobile-extra { display: block; margin-top: 10px; }
    .hero-callout { position: static; margin-top: 40px; text-align: left; }
}

/* ===== Legal / static content pages ===== */
.legal-page { padding: 180px 0 100px; }
.legal-wrap { max-width: 900px; }
.legal-page h1 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 40px; }
.legal-content h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-content h3 { font-size: 17px; margin: 26px 0 10px; }
.legal-content p { color: var(--grey-text); margin-bottom: 16px; line-height: 1.7; }
.legal-content ul { margin: 0 0 16px 20px; color: var(--grey-text); line-height: 1.7; }
.legal-content li { list-style: disc; margin-bottom: 8px; }
.legal-content a { color: var(--orange); text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0 30px; font-size: 14px; }
.legal-content table th, .legal-content table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e8e6ee; color: var(--grey-text); }
.legal-content table th { color: var(--navy); font-weight: 600; width: 240px; }
.legal-content strong { color: var(--navy); }
