/*
Theme Name: Agen Genteng Jatim
Theme URI: https://agengengtengjatim.com
Author: Custom Theme
Author URI: https://agengengtengjatim.com
Description: Theme profesional untuk Agen Genteng Jatim dengan tampilan modern, responsif, dan SEO-friendly.
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: genteng-jatim
Tags: business, responsive, custom-menu, featured-images
*/

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

:root {
  --navy: #1a2a4a;
  --navy-dark: #122038;
  --navy-mid: #1e3360;
  --orange: #c8420a;
  --orange-light: #e05510;
  --brick: #b03a0a;
  --white: #ffffff;
  --gray: #f4f6fa;
  --text: #2d3748;
  --muted: #64748b;
  --border: #e2e8f0;
  --font: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
}

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

/* ── TOP BAR ── */
.topbar {
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 14px; }
.topbar-right a {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
  color: #fff;
}
.topbar-right a:hover { background: rgba(255,255,255,0.35); }

/* ── NAVBAR ── */
.site-header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-box {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { line-height: 1.2; }
.logo-text .brand { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.logo-text .brand span { color: var(--orange); }
.logo-text .tagline { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* WordPress nav menu */
.main-navigation ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-navigation ul li a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
  display: block;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.main-navigation ul li.menu-cta a {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  border-bottom: none !important;
}
.main-navigation ul li.menu-cta a:hover { background: var(--navy-mid) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(105deg, var(--navy) 0%, var(--navy-mid) 45%, transparent 70%),
              url('') center/cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero.has-bg-image { background-size: cover; }
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(to left, rgba(200,66,10,0.15), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.hero h1 span { color: var(--orange-light); }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-benefits { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-benefit { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 600; }
.hero-benefit-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.hero-benefit-text { line-height: 1.3; }
.hero-benefit-text small { font-weight: 400; color: rgba(255,255,255,0.65); font-size: 11px; display: block; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.2s;
}
.btn-wa:hover { background: #1eb857; transform: translateY(-2px); }
.btn-wa-icon { font-size: 22px; }
.btn-wa-text { line-height: 1.2; }
.btn-wa-text small { font-size: 11px; font-weight: 400; display: block; opacity: 0.85; }

/* ── KEUNGGULAN BAR ── */
.keunggulan-bar { background: var(--navy); }
.keunggulan-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.keunggulan-item {
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.15s;
}
.keunggulan-item:last-child { border-right: none; }
.keunggulan-item:hover { background: rgba(255,255,255,0.05); }
.keunggulan-icon {
  width: 42px; height: 42px;
  background: rgba(200,66,10,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.keunggulan-text h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.keunggulan-text p { color: rgba(255,255,255,0.6); font-size: 12px; line-height: 1.5; }

/* ── SECTION WRAPPER ── */
.section { padding: 72px 0; }
.section-gray { background: var(--gray); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-head h2 span { color: var(--orange); }
.underline-accent { width: 48px; height: 3px; background: var(--orange); border-radius: 2px; margin: 0 auto; }

/* ── PRODUK ── */
.produk-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.produk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: all 0.2s;
}
.produk-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(200,66,10,0.12);
  transform: translateY(-4px);
}
.produk-img {
  background: linear-gradient(135deg, #fff5f0, #ffe8df);
  padding: 24px 16px 16px;
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.produk-img img { width: 100%; height: 100%; object-fit: contain; }
.produk-img .produk-emoji { font-size: 56px; }
.produk-body { padding: 16px 12px 20px; }
.produk-body h3 { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.produk-body p { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.4; }
.btn-produk {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}
.btn-produk:hover { background: var(--orange); color: #fff; }

/* ── STATS ── */
.stats-bar { background: var(--gray); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 36px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 28px; margin-bottom: 10px; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.stat-value span { color: var(--orange); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ── TENTANG ── */
.tentang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tentang-img-wrap { position: relative; }
.tentang-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ffe8df, #ffd4c2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(200,66,10,0.15);
}
.tentang-img-main img { width: 100%; height: 100%; object-fit: cover; }
.tentang-img-main .tentang-emoji { font-size: 80px; }
.tentang-badge-float {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--orange);
  color: #fff;
  padding: 20px 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(200,66,10,0.3);
}
.tentang-badge-float .num { font-size: 28px; font-weight: 800; display: block; }
.tentang-badge-float .txt { font-size: 11px; font-weight: 600; opacity: 0.9; }
.tentang-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.tentang-content h2 span { color: var(--orange); }
.tentang-content p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.tentang-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.tentang-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--navy); }
.tentang-list li::before {
  content: '✓';
  width: 24px; height: 24px;
  background: rgba(200,66,10,0.1);
  color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--brick); color: #fff; transform: translateY(-1px); }

/* ── ARTIKEL ── */
.artikel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.artikel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
}
.artikel-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-4px); }
.artikel-thumb {
  height: 180px;
  background: linear-gradient(135deg, #ffe8df, #ffd4c2);
  overflow: hidden;
}
.artikel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.artikel-body { padding: 20px; }
.artikel-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.artikel-body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.artikel-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.artikel-link { font-size: 13px; font-weight: 700; color: var(--orange); }
.artikel-link:hover { color: var(--brick); }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 60px 0; }
.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-text h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.5px; }
.cta-text p { color: rgba(255,255,255,0.7); font-size: 15px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-phone { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.6); padding: 24px 0; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; }
.footer-nav ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-nav ul li a:hover { color: #fff; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .produk-grid { grid-template-columns: repeat(3, 1fr); }
  .keunggulan-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .keunggulan-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .artikel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar-left { gap: 12px; font-size: 12px; }
  .main-navigation { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 4px; }
  .hamburger { display: flex; }
  .hero-benefits { flex-direction: column; gap: 14px; }
  .produk-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
  .tentang-grid { grid-template-columns: 1fr; }
  .tentang-badge-float { bottom: 16px; right: 16px; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .keunggulan-bar-inner { grid-template-columns: 1fr; }
  .artikel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .produk-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

/* ── WP ADMIN BAR FIX ── */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
