/* ==========================================================
   SRNE SOLAR – Custom Front Page CSS
   Clean, premium, sophisticated – crimson + amber palette
   ========================================================== */

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

:root {
  --red:    #C0392B;
  --orange: #E8650A;
  --grad:   linear-gradient(135deg, #C0392B 0%, #E8650A 100%);
  --dark:   #111111;
  --text:   #1A1A1A;
  --muted:  #666;
  --light:  #F8F8F8;
  --border: #E8E8E8;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.srne-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: transparent;
  border-bottom: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Scrolled: solid white */
.srne-nav.scrolled {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.03) !important;
}
.srne-nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding: 0 2rem;
  transition: height 0.4s ease;
}
.srne-nav.scrolled .srne-nav-inner { height: 64px; }
.srne-logo img { height: 32px; width: auto; transition: height 0.4s; }
.srne-nav.scrolled .srne-logo img { height: 28px; }
.srne-nav-links { display: flex; gap: 0.25rem; }
.srne-nav-links a {
  color: #ffffff !important;
  font-weight: 500; font-size: 0.85rem;
  padding: 0.5rem 1.2rem; border-radius: 100px;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.srne-nav.scrolled .srne-nav-links a { 
  color: #111111 !important; 
}
.srne-nav-links a:hover { background: rgba(255,255,255,0.1); }
.srne-nav.scrolled .srne-nav-links a:hover { background: rgba(0,0,0,0.04); color: var(--red) !important; }
.srne-nav-cta {
  background: var(--grad); color: #fff !important;
  font-weight: 700; font-size: 0.8rem;
  padding: 10px 24px; border-radius: 100px;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(192,57,43,0.2);
}
.srne-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(192,57,43,0.35); }

/* ── HERO (h3-* classes — no conflicts with theme CSS) ──── */
.h3-hero {
  background: #ffffff !important;
  padding-top: 0 !important;
  margin: 0 !important;
}

.h3-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Rounded image container */
.h3-img-box {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.h3-img-box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.h3-img-box > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

/* Dark glass floating badges on image */
.h3-badge {
  position: absolute;
  background: rgba(15, 15, 15, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.h3-b1 { top: 36%; left: 12%; }
.h3-b2 { top: 54%; left: 46%; }
.h3-b3 { top: 22%; right: 10%; }

/* Live pulse dot — small, sits INSIDE the box on the right edge */
.h3-live-dot {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4);
  animation: livepulse 2.5s ease infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(192, 57, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

/* Below-image row */
.h3-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 0 6rem;
  gap: 4rem;
  background: #ffffff !important;
}

/* Left text */
.h3-left {
  max-width: 440px;
  flex-shrink: 0;
}
.h3-left p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #222;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h3-left strong {
  color: #000;
  font-weight: 700;
}

.h3-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 18px 38px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.h3-btn:hover {
  background: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(192, 57, 43, 0.25);
}

/* Right: huge image-masked brand text */
.h3-right {
  flex-shrink: 0;
  text-align: right;
}
.h3-brand {
  display: block;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.8;
  text-transform: uppercase;
  background: url('/wordpress/wp-content/themes/srnesolar-indonesia/assets/images/hero.png') center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 15px 40px rgba(0,0,0,0.06));
}

/* ── SHARED SECTION ─────────────────────────────────────── */
.srne-section { padding: 6rem 2rem; }
.srne-container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }
.overline {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 1rem;
}
.subtext { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.product-card.featured { background: var(--grad); border: none; }
.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.product-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.product-card.featured h3 { color: #fff; }
.product-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.product-card.featured p { color: rgba(255,255,255,0.85); }
.card-link { font-size: 0.875rem; font-weight: 600; color: var(--red); }
.card-link:hover { color: var(--orange); }
.card-link-white { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.9); }

/* ── WHY SRNE ───────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-left .overline { text-align: left; }
.why-left h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 1rem; }
.why-left > .subtext { text-align: left; margin: 0 0 2rem 0; }
.features { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(192,57,43,0.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feature-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.feature-item p  { font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin: 0; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-card {
  border-radius: var(--radius); padding: 2rem 1.75rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.stat-card.light { background: var(--light); }
.stat-card.dark  { background: var(--dark); }
.stat-card.accent { background: var(--grad); }
.s-num { font-size: 2.75rem; font-weight: 900; line-height: 1; color: var(--red); }
.stat-card.dark  .s-num { color: #F5B942; }
.stat-card.accent .s-num { color: #fff; }
.s-lbl { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.stat-card.dark  .s-lbl { color: rgba(255,255,255,0.8); }
.stat-card.accent .s-lbl { color: rgba(255,255,255,0.8); }

/* ── SEGMENTS V2 (EDITORIAL) ─────────────────────────────────── */
.seg2-section {
  padding: 8rem 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.seg2-header {
  padding: 0 7%;
}

.seg2-overline {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--r1);
  margin-bottom: 1.5rem;
}

.seg2-title {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #111;
  letter-spacing: -0.03em;
}

.seg2-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  height: 600px;
  gap: 0;
}

.seg2-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  text-decoration: none;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.seg2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.8) 100%);
  transition: opacity 0.4s;
}

.seg2-card:hover .seg2-overlay {
  background: linear-gradient(to bottom, transparent 10%, rgba(0,0,0,0.9) 100%);
}

.seg2-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s;
}

.seg2-card:hover .seg2-body {
  transform: translateY(-10px);
}

.seg2-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--r1);
  display: block;
}

.seg2-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.seg2-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.seg2-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.seg2-card:hover .seg2-link {
  gap: 12px;
  color: var(--r1);
}

@media (max-width: 1024px) {
  .seg2-grid { grid-template-columns: 1fr; height: auto; }
  .seg2-card { height: 400px; }
  .seg2-header { padding: 0 5%; }
}


/* ── CTA BOX ────────────────────────────────────────────── */
.cta-box {
  background: var(--grad);
  border-radius: 24px; padding: 5rem 3rem;
  text-align: center; max-width: 800px; margin: 0 auto;
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.cta-box p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-white {
  display: inline-block;
  background: #fff; color: var(--red) !important;
  font-weight: 700; font-size: 0.95rem;
  padding: 14px 32px; border-radius: 100px;
  transition: all 0.3s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-outline-white {
  display: inline-block;
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 28px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff !important; }

/* ── FOOTER ─────────────────────────────────────────────── */
.srne-footer { background: #111; color: rgba(255,255,255,0.7); padding: 4rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.6);
  font-size: 0.875rem; margin-bottom: 0.6rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .srne-hero-body { flex-direction: column; align-items: flex-start; padding: 0 2rem 4rem; }
  .srne-hero-right { text-align: left; }
  .stat-label { text-align: left; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .seg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .srne-nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .srne-hero-badge { display: none; }
  .srne-section { padding: 4rem 1.5rem; }
}

/* ── CTA V15 REDESIGN ── */
.v15-section { padding: 100px 2rem; background: #fff; }
.v15-card {
  background: #111; border-radius: 40px; overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 520px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}
.v15-image { position: relative; overflow: hidden; }
.v15-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.v15-card:hover .v15-image img { transform: scale(1.08); }
.v15-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, rgba(17,17,17,0.8));
}
.v15-badge {
  position: absolute; top: 2rem; left: 2rem;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 800; color: #111;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.v15-badge-dot { width: 6px; height: 6px; background: #C0392B; border-radius: 50%; }

.v15-content { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.v15-overline { color: #C0392B; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; margin-bottom: 1.5rem; }
.v15-title { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 2rem; }
.v15-text { color: rgba(255,255,255,0.6); font-size: 1.1rem; line-height: 1.7; margin-bottom: 3.5rem; max-width: 480px; }

.v15-footer { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.v15-btn {
  background: #C0392B; color: #fff !important;
  font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 22px 42px; border-radius: 100px; transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(192,57,43,0.3);
}
.v15-btn:hover { background: #E8650A; transform: translateY(-4px); box-shadow: 0 15px 40px rgba(192,57,43,0.45); }
.v15-btn span { margin-left: 8px; font-size: 1.2rem; }

.v15-contact { display: flex; flex-direction: column; gap: 4px; }
.v15-label { color: rgba(255,255,255,0.4); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.v15-num { color: #fff; font-size: 1.3rem; font-weight: 800; text-decoration: none; transition: color 0.2s; }
.v15-num:hover { color: #C0392B; }

@media (max-width: 1024px) {
  .v15-card { grid-template-columns: 1fr; }
  .v15-image { height: 300px; }
  .v15-image-overlay { background: linear-gradient(to bottom, transparent, rgba(17,17,17,0.8)); }
  .v15-content { padding: 3rem 2rem; }
}
