/*
Theme Name: Unicorn Chemical Pro
Theme URI: https://www.unicornchemical.com
Author: Unicorn Chemical
Description: Production WordPress theme for Unicorn Chemical — waterproofing, heat proofing & construction chemicals. Built from the client's real site design (charcoal ink + stone + protective teal + bronze, "membrane layer" motif). Includes custom post types for Services, Products, Cities, Projects, Testimonials and FAQs with native Media Library image fields, plus a full Customizer options panel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: unicorn-chemical
*/

:root {
    --uc-gold: #FDB615;
    --uc-gold-dark: #E6A300;
    --uc-gold-light: #fde28a;
    --uc-dark: #0B0D0F;
    --uc-slate: #2A2F36;
    --uc-slate-light: #6B7A8A;
    --uc-light: #F5F7FA;
    --uc-white: #FFFFFF;
    --uc-radius: 1.25rem;
    --uc-radius-sm: 0.75rem;
    --uc-radius-lg: 2rem;
    --shadow-card: 0 20px 40px -12px rgba(0,0,0,0.5);
    --shadow-hover: 0 32px 64px -16px rgba(0,0,0,0.7);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 10% 30%, #14181c, #090b0d);
    color: var(--uc-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== GRADIENTS ===== */
.section-gradient {
    background: linear-gradient(145deg, rgba(20, 25, 30, 0.92) 0%, rgba(9, 11, 13, 0.98) 100%);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(253, 182, 21, 0.06);
}

.section-alt {
    background: radial-gradient(ellipse at 70% 20%, #1a1f26, #0c0f12);
    border-top: 1px solid rgba(253, 182, 21, 0.04);
    border-bottom: 1px solid rgba(253, 182, 21, 0.04);
}

.section-dark {
    background: radial-gradient(circle at 30% 40%, #1c1f24, #060808);
    border-top: 2px solid rgba(253, 182, 21, 0.15);
}

.section-gold-glow {
    background: radial-gradient(ellipse at center, rgba(253, 182, 21, 0.05), transparent 70%);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--uc-gold);
    background: rgba(253, 182, 21, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    border: 1px solid rgba(253, 182, 21, 0.12);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.lead {
    font-size: 1.15rem;
    color: #c8d0da;
    max-width: 640px;
    line-height: 1.8;
}

.section-head {
    margin-bottom: 3rem;
}

.section-head.center {
    text-align: center;
}

.section-head h2 {
    margin-bottom: 0.75rem;
}

.section-head p {
    color: #aab3be;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn:hover::after {
    transform: translateX(0);
}

.btn-gold {
    background: var(--uc-gold);
    color: #0B0D0F;
    box-shadow: 0 8px 24px -6px rgba(253, 182, 21, 0.3);
}

.btn-gold:hover {
    background: #f5c13a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px -8px rgba(253, 182, 21, 0.5);
}

.btn-primary {
    background: var(--uc-gold);
    color: #0B0D0F;
}

.btn-primary:hover {
    background: #f5c13a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--uc-gold);
    color: var(--uc-gold);
}

.btn-outline:hover {
    background: var(--uc-gold);
    color: #0B0D0F;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--uc-gold);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: #0B0D0F;
}

.btn-white:hover {
    background: var(--uc-gold);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.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: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: var(--uc-radius);
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(253, 182, 21, 0.25);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.05);
}

.card-band {
    display: flex;
    height: 4px;
    background: linear-gradient(90deg, var(--uc-gold), #f5c13a, var(--uc-gold), #f5c13a);
    background-size: 300% 100%;
    animation: shimmer 6s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

.card-band span { flex: 1; }

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #1e2329;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-body {
    padding: 1.75rem;
}

.card-cat {
    display: inline-block;
    background: rgba(253, 182, 21, 0.12);
    font-size: 0.65rem;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    color: var(--uc-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
}

.card-link {
    color: var(--uc-gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    transition: var(--transition);
}

.card-link:hover {
    gap: 0.8rem;
    color: #f5c13a;
}

.icon-tile {
    background: rgba(253, 182, 21, 0.08);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--uc-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: var(--transition);
}

.card:hover .icon-tile {
    background: rgba(253, 182, 21, 0.15);
    transform: scale(1.05);
}

/* ===== ANIMATIONS ===== */
.motion-fade {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ===== HERO ===== */
.hero-slider {
    padding: 2rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: var(--uc-radius-lg);
    box-shadow: 0 30px 60px -20px #000;
    border: 1px solid rgba(253, 182, 21, 0.08);
    background: #1b2026;
}

.badge-float {
    position: absolute;
    bottom: -0.5rem;
    right: -0.5rem;
    background: rgba(11, 13, 15, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.6rem 1.5rem;
    border-radius: 60px;
    font-size: 0.8rem;
    border: 1px solid var(--uc-gold);
    color: var(--uc-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stats div {
    font-size: 0.85rem;
    color: #bcc6d2;
}

.hero-stats strong {
    display: block;
    font-size: 2.2rem;
    color: var(--uc-gold);
    font-weight: 700;
    font-family: 'Fraunces', serif;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.8rem 0 0.5rem;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-stats { justify-content: center; }
    .hero-ctas { justify-content: center; }
    .badge-float { right: 0; bottom: -0.5rem; }
}

/* ===== TESTIMONIALS ===== */
.testi-card {
    background: rgba(255,255,255,0.02);
    padding: 2rem 2rem 1.8rem;
    border-radius: var(--uc-radius);
    border: 1px solid rgba(253, 182, 21, 0.05);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.testi-card:hover {
    border-color: rgba(253, 182, 21, 0.15);
    transform: translateY(-4px);
}

.testi-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #e4eaf1;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.testi-card .quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--uc-gold);
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    opacity: 0.3;
}

.testi-name {
    font-weight: 700;
    color: var(--uc-gold);
    font-family: 'Fraunces', serif;
}

.testi-role {
    font-size: 0.8rem;
    color: #8895a4;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 0.3rem 0;
}

.faq-q {
    background: transparent;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    align-items: center;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.faq-q:hover {
    color: var(--uc-gold);
}

.faq-q .icon {
    font-size: 1.5rem;
    color: var(--uc-gold);
    transition: var(--transition);
    font-weight: 300;
}

.faq-item.open .faq-q .icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}

.faq-item.open .faq-a {
    max-height: 400px;
    opacity: 1;
}

.faq-a-inner {
    padding-bottom: 1.2rem;
    color: #c8d0da;
    line-height: 1.8;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    font-size: 0.8rem;
    color: #8895a4;
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: var(--uc-gold);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: #f5c13a;
}

.breadcrumb .crumb-sep {
    margin: 0 0.5rem;
    color: #4a5568;
}

/* ===== SPEC TABLE ===== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255,255,255,0.02);
    border-radius: var(--uc-radius-sm);
    overflow: hidden;
}

.spec-table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.spec-table td:first-child {
    font-weight: 600;
    color: var(--uc-gold);
    width: 35%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.feature-list li {
    padding-left: 2rem;
    position: relative;
    color: #d0d8e0;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--uc-gold);
    font-weight: 700;
}

/* ===== DETAIL LAYOUT ===== */
.detail-layout {
    display: grid;
    gap: 3rem;
}

.detail-layout-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

@media (max-width: 900px) {
    .detail-layout-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 2.5rem 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(253, 182, 21, 0.04), transparent);
    border-bottom: 1px solid rgba(253, 182, 21, 0.04);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center; }
.text-gold { color: var(--uc-gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}

@media (max-width: 720px) {
    section {
        padding: 2.5rem 0;
    }
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-bar .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--uc-radius-sm);
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .card-body {
        padding: 1.25rem;
    }
}