/*
Theme Name: SRNE Solar Indonesia
Theme URI: https://srnesolar.co.id
Description: Theme resmi SRNE Solar Indonesia – distributor panel surya, inverter, dan sistem energi surya terpercaya di Indonesia.
Author: SRNE Solar Indonesia
Author URI: https://srnesolar.co.id
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: srnesolar-indonesia
*/

/* =====================================================
   SRNE SOLAR INDONESIA – Brand Color System
   Primary Red  : #D0021B
   Orange Accent: #FF6D00
   White        : #FFFFFF
   Dark Text    : #1A1A1A
   Light Gray   : #F5F5F5
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --srne-red:        #C0392B;           /* Deeper, less neon — sophisticated crimson */
    --srne-red-dark:   #962d22;
    --srne-orange:     #E8650A;           /* Warm amber-orange, not neon */
    --srne-gradient:   linear-gradient(135deg, #C0392B 0%, #E8650A 100%);
    --srne-gradient-hover: linear-gradient(135deg, #962d22 0%, #C0520A 100%);
    --srne-white:      #FFFFFF;
    --srne-light:      #F8F8F8;
    --srne-border:     #E8E8E8;
    --srne-text:       #1A1A1A;
    --srne-text-light: #666666;
    --srne-dark:       #111111;
    --srne-footer-bg:  #1A1A1A;
    --srne-shadow:     0 4px 24px rgba(0, 0, 0, 0.05);
    --srne-shadow-lg:  0 12px 48px rgba(0, 0, 0, 0.1);
    --srne-radius-xl:  48px;
    --srne-radius-lg:  24px;
    --srne-glass:      rgba(255, 255, 255, 0.7);
}

/* =====================================================
   BASE & TYPOGRAPHY
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--srne-white);
    color: var(--srne-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-image: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--srne-text);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

p {
    color: var(--srne-text-light);
    margin-bottom: 1rem;
}

a {
    color: var(--srne-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--srne-orange);
}

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

header.wp-block-template-part,
.srne-header-v2 {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.02) !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
}

/* Fix: Remove background/border from header inner groups */
.srne-header-v2 .wp-block-group {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove the old red bar for v2 */
.srne-header-v2::before {
    display: none !important;
}

/* Top bar merah di atas header */
.wp-block-template-part[data-slug="header"]::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--srne-gradient);
    width: 100%;
}

.wp-block-site-title a,
.site-title a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000 !important;
    letter-spacing: -0.04em;
    text-decoration: none;
    text-transform: capitalize;
}

/* Navbar Logo styling */
.srne-navbar-logo {
    margin: 0;
    transition: transform 0.3s ease;
}

.srne-navbar-logo:hover {
    transform: scale(1.05);
}

.srne-navbar-logo img {
    height: 40px; /* Reduced from 50px for a more compact navbar */
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* Nav links */
.wp-block-navigation a,
.nav-link {
    color: var(--srne-text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wp-block-navigation a:hover,
.nav-link:hover {
    color: var(--srne-red) !important;
    background: rgba(208, 2, 27, 0.06);
}

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

.wp-element-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    background: var(--srne-gradient) !important;
    color: var(--srne-white) !important;
    border: none !important;
    border-radius: 12px !important; /* Slightly more rounded */
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 8px 24px rgba(208, 2, 27, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--srne-gradient-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(208, 2, 27, 0.35) !important;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--srne-red) !important;
    border: 2px solid var(--srne-red) !important;
    box-shadow: none !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--srne-red) !important;
    color: var(--srne-white) !important;
}

/* =====================================================
   CARDS & GROUPS
   ===================================================== */

.srne-card,
.post-card {
    background: var(--srne-white);
    border: 1px solid var(--srne-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.srne-card:hover,
.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--srne-red);
    box-shadow: var(--srne-shadow);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.srne-hero,
.wp-block-cover:first-of-type {
    background: var(--srne-gradient) !important;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.srne-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Hero teks warna putih */
.srne-hero h1,
.srne-hero h2,
.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2 {
    color: var(--srne-white) !important;
    -webkit-text-fill-color: var(--srne-white) !important;
}

.wp-block-cover__inner-container p {
    color: rgba(255,255,255,0.88) !important;
}

/* =====================================================
   PRODUCT / FEATURE CARDS
   ===================================================== */

.srne-product-card {
    background: var(--srne-white);
    border: 1px solid var(--srne-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.srne-product-card:hover {
    border-color: var(--srne-red);
    box-shadow: var(--srne-shadow);
    transform: translateY(-4px);
}

.srne-product-card .product-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(208,2,27,0.1), rgba(255,109,0,0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* =====================================================
   BADGE / TAG
   ===================================================== */

.srne-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(208,2,27,0.1), rgba(255,109,0,0.1));
    color: var(--srne-red);
    border: 1px solid rgba(208,2,27,0.2);
    border-radius: 100px;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* =====================================================
   SECTION STYLING
   ===================================================== */

/* Section dengan background abu-abu muda */
.srne-section-light {
    background: var(--srne-light);
    padding: 5rem 0;
}

/* Section divider merah */
.srne-divider {
    height: 4px;
    background: var(--srne-gradient);
    border: none;
    border-radius: 2px;
    width: 60px;
    margin: 1rem 0 2rem;
}

/* Section judul dengan aksen merah */
.srne-section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.srne-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--srne-gradient);
    border-radius: 2px;
}

.srne-section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =====================================================
   STATS / ANGKA
   ===================================================== */

.srne-stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--srne-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* =====================================================
   FORM INPUTS
   ===================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1.5px solid var(--srne-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--srne-text);
    background: var(--srne-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--srne-red);
    box-shadow: 0 0 0 3px rgba(208, 2, 27, 0.1);
    outline: none;
}

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

.wp-block-template-part[data-slug="footer"],
footer.wp-block-template-part,
.site-footer {
    background: var(--srne-footer-bg) !important;
    color: rgba(255,255,255,0.75) !important;
    padding: 4rem 0 2rem;
}

.wp-block-template-part[data-slug="footer"] a,
footer a,
.site-footer a {
    color: rgba(255,255,255,0.75);
    transition: color 0.2s ease;
}

.wp-block-template-part[data-slug="footer"] a:hover,
footer a:hover,
.site-footer a:hover {
    color: var(--srne-orange);
}

.wp-block-template-part[data-slug="footer"] h3,
.wp-block-template-part[data-slug="footer"] h4,
footer h3,
footer h4 {
    color: var(--srne-white) !important;
    -webkit-text-fill-color: var(--srne-white) !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer brand bar */
.wp-block-template-part[data-slug="footer"]::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--srne-gradient);
    margin-bottom: 3rem;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--srne-light);
}

::-webkit-scrollbar-thumb {
    background: var(--srne-gradient);
    border-radius: 4px;
}

/* =====================================================
   SELECTION
   ===================================================== */

::selection {
    background: rgba(208, 2, 27, 0.15);
    color: var(--srne-red);
}

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

@media (max-width: 768px) {
    .wp-block-group,
    .wp-block-column {
        padding: 1.5rem;
        border-radius: 12px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .wp-element-button,
    .wp-block-button__link {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

/* =====================================================
   HERO SECTION V3 — FULL-SCREEN CLEAN
   ===================================================== */

.srne-hero-v2 {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #0a0a0a;
    padding: 0;
}

.srne-hero-v2 * {
    box-sizing: border-box;
}

/* Full-screen background image */
.srne-hero-v2-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.srne-hero-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.srne-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.75);
}

/* Subtle gradient overlay — darker at bottom for readability */
.srne-hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.55) 100%
    );
}

/* Floating badges */
.srne-floating-badge {
    position: absolute;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.srne-floating-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Colored dot indicator on badge */
.srne-floating-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.srne-badge-1::before { background: #4ade80; }
.srne-badge-2::before { background: var(--srne-orange); }
.srne-badge-3::before { background: #38bdf8; }

.srne-badge-1 { top: 38%; left: 12%; }
.srne-badge-2 { top: 58%; left: 50%; }
.srne-badge-3 { top: 32%; right: 12%; }

/* Main content at bottom of hero */
.srne-hero-content-v2 {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
}

/* Left text block */
.srne-hero-text-left {
    max-width: 560px;
    flex-shrink: 0;
}

.srne-hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--srne-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.srne-hero-text-left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem 0;
}

.srne-hero-text-left h1 em {
    font-style: normal;
    background: var(--srne-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.srne-hero-text-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
    margin: 0 0 2.5rem 0;
    font-weight: 400;
}

/* CTA button group */
.srne-hero-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.srne-btn-floating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--srne-gradient);
    color: #fff !important;
    padding: 15px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(208,2,27,0.35);
    letter-spacing: 0.01em;
}

.srne-btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(208,2,27,0.5);
    color: #fff !important;
}

.srne-btn-floating svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.srne-btn-floating:hover svg {
    transform: translateX(4px);
}

.srne-btn-outline {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 100px;
    padding: 14px 28px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.srne-btn-outline:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

/* Right: big clean stat or accent */
.srne-hero-right {
    flex-shrink: 0;
    text-align: right;
}

.srne-hero-big-num {
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--srne-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.srne-hero-big-num-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-top: 0.25rem;
    text-align: right;
}

/* Indicator dot (live feel) */
.srne-indicator-dot {
    position: absolute;
    top: 6%;
    right: 4%;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
    animation: live-pulse 2.5s infinite;
    z-index: 10;
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Scroll indicator */
.srne-hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.srne-hero-scroll:hover { opacity: 0.9; }

.srne-hero-scroll span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.srne-scroll-line {
    width: 1.5px;
    height: 40px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scroll-drop 1.8s ease infinite;
}

@keyframes scroll-drop {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* Thin accent bar at top of page */
.srne-hero-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--srne-gradient);
    z-index: 20;
}

@media (max-width: 992px) {
    .srne-hero-content-v2 {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2rem 4rem 2rem;
        gap: 2rem;
    }
    .srne-hero-text-left {
        max-width: 100%;
    }
    .srne-hero-right {
        text-align: left;
        width: 100%;
    }
    .srne-hero-big-num-label { text-align: left; }
}

@media (max-width: 600px) {
    .srne-floating-badge { display: none; }
    .srne-hero-cta { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   UTILITY
   ===================================================== */
.text-red    { color: var(--srne-red) !important; }
.text-orange { color: var(--srne-orange) !important; }
.bg-red      { background: var(--srne-red) !important; }
.bg-gradient { background: var(--srne-gradient) !important; }
.text-white  { color: var(--srne-white) !important; }
.srne-rounded { border-radius: 16px; }
.srne-rounded-xl { border-radius: 48px; }


