/*
Theme Name: Yayasan Arsi Indonesia
Theme URI: https://arsiindonesia.or.id
Author: Antigravity AI
Author URI: https://arsiindonesia.or.id
Description: Tema kustom modern Hub-and-Spoke untuk Yayasan Arsi Indonesia (Yayasan, SD Arsi, Arsi Konstruksi, Arsi Stable Kuda, Arsi Farm Kambing).
Version: 1.0.0
Text Domain: arsi-indonesia
*/

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

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Primary Yayasan Palette */
  --color-primary: #0f766e;
  --color-primary-dark: #0d9488;
  --color-primary-light: #ccfbf1;
  --color-dark: #0f172a;
  --color-dark-muted: #334155;
  --color-light: #f8fafc;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  
  /* Unit Theme Accents */
  --accent-sd: #10b981;        /* Emerald Green for School */
  --accent-sd-bg: #ecfdf5;
  
  --accent-jasa: #2563eb;      /* Construction Blue */
  --accent-jasa-bg: #eff6ff;
  
  --accent-kuda: #d97706;      /* Amber Brown for Horse Farm */
  --accent-kuda-bg: #fffbeb;
  
  --accent-kambing: #059669;   /* Forest Green for Goat Farm */
  --accent-kambing-bg: #f0fdf4;

  --accent-donasi: #d97706;    /* Warm Gold for Donation */

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 30px -10px rgba(0,0,0,0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* Layout Container */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header & Navigation */
.top-bar {
  background: #092e2b;
  color: #a7f3d0;
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info span {
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.top-bar-units {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.top-bar-units span {
  font-weight: 600;
  font-size: 0.8rem;
  color: #a7f3d0;
  white-space: nowrap;
  margin-right: 2px;
}

.top-bar-units a {
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.2;
}

.top-bar-units a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.top-bar-units a.unit-btn-sd:hover { background: var(--accent-sd); border-color: var(--accent-sd); }
.top-bar-units a.unit-btn-jasa:hover { background: var(--accent-jasa); border-color: var(--accent-jasa); }
.top-bar-units a.unit-btn-kuda:hover { background: var(--accent-kuda); border-color: var(--accent-kuda); }
.top-bar-units a.unit-btn-kambing:hover { background: var(--accent-kambing); border-color: var(--accent-kambing); }

.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Footer Logo Styles */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.footer-mukhtar-logo {
  margin-top: 12px;
}

.footer-mukhtar-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-text h1 {
  font-size: 1.35rem;
  color: var(--color-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.main-nav a {
  color: var(--color-dark-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Dropdown Menu */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.8rem;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none !important;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--color-border);
  z-index: 100;
}

.menu-item-has-children:hover .sub-menu {
  display: flex !important;
}

.sub-menu a {
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* Unit Badge in Nav */
.nav-badge-sd { border-left: 4px solid var(--accent-sd); }
.nav-badge-jasa { border-left: 4px solid var(--accent-jasa); }
.nav-badge-kuda { border-left: 4px solid var(--accent-kuda); }
.nav-badge-kambing { border-left: 4px solid var(--accent-kambing); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
  color: white;
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-dark);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-sd {
  background: linear-gradient(135deg, var(--accent-sd), #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-jasa {
  background: linear-gradient(135deg, var(--accent-jasa), #1d4ed8);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-kuda {
  background: linear-gradient(135deg, var(--accent-kuda), #b45309);
  color: white;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-kambing {
  background: linear-gradient(135deg, var(--accent-kambing), #047857);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-wa {
  background: #25d366;
  color: white;
  font-weight: 700;
}
.btn-wa:hover {
  background: #128c7e;
  color: white;
}

/* Hero Component */
.hero-section {
  background: linear-gradient(135deg, #092e2b 0%, #0f766e 60%, #047857 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a7f3d0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-cards-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.unit-preview-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  color: white;
  transition: all 0.3s ease;
}

.unit-preview-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.unit-preview-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.unit-preview-card h3 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 6px;
}

.unit-preview-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Unit Banner Variant Headers */
.unit-hero {
  padding: 60px 0;
  color: white;
  margin-bottom: 40px;
}

.unit-hero-sd {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

.unit-hero-jasa {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.unit-hero-kuda {
  background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
}

.unit-hero-kambing {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}

.unit-hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.unit-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
}

/* Sections & Cards */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* Unit Accent Card Styles */
.card-sd .card-icon { background: var(--accent-sd-bg); color: var(--accent-sd); }
.card-sd { border-top: 4px solid var(--accent-sd); }

.card-jasa .card-icon { background: var(--accent-jasa-bg); color: var(--accent-jasa); }
.card-jasa { border-top: 4px solid var(--accent-jasa); }

.card-kuda .card-icon { background: var(--accent-kuda-bg); color: var(--accent-kuda); }
.card-kuda { border-top: 4px solid var(--accent-kuda); }

.card-kambing .card-icon { background: var(--accent-kambing-bg); color: var(--accent-kambing); }
.card-kambing { border-top: 4px solid var(--accent-kambing); }

/* Custom Interactive Features */
/* Cost Calculator */
.calc-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--accent-jasa-bg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.calc-result {
  background: var(--accent-jasa-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
  border: 1.5px dashed var(--accent-jasa);
}

.calc-result-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-jasa);
  margin: 10px 0;
}

/* Testimonial & Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px;
}

/* Legal Documents Grid */
.legal-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.legal-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.legal-card p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Multi-unit Floating WhatsApp Widget */
.wa-float-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.wa-float-btn {
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float-btn:hover {
  transform: scale(1.1);
}

.wa-modal {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: none;
}

.wa-modal.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-modal-header {
  background: #075e54;
  color: white;
  padding: 16px;
}

.wa-modal-header h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.wa-modal-header p {
  font-size: 0.8rem;
  opacity: 0.85;
}

.wa-unit-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-unit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}

.wa-unit-item:hover {
  background: #e2e8f0;
}

.wa-unit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 70px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #a7f3d0;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .top-bar .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
  }

  .top-bar-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.78rem;
    gap: 8px;
  }

  .top-bar-info span {
    margin-right: 8px;
  }

  .top-bar-units {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .top-bar-units .label-unit {
    width: 100%;
    text-align: center;
    font-size: 0.76rem;
    margin-bottom: 2px;
    display: block;
  }

  .top-bar-units a {
    padding: 6px 10px;
    font-size: 0.78rem;
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-grid, .grid-4, .grid-3, .grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .main-nav {
    display: none;
  }
}

/* ==========================================================================
   THEME COLOR PRESETS & FLOATING COLOR SWITCHER
   ========================================================================== */
body.theme-green {
  --color-primary: #0f766e;
  --color-primary-dark: #042f2e;
  --color-primary-light: #ccfbf1;
  --accent-donasi: #0d9488;
}

body.theme-black {
  --color-primary: #1e293b;
  --color-primary-dark: #0f172a;
  --color-primary-light: #e2e8f0;
  --accent-donasi: #334155;
}

body.theme-red {
  --color-primary: #be123c;
  --color-primary-dark: #881337;
  --color-primary-light: #ffe4e6;
  --accent-donasi: #e11d48;
}

body.theme-orange {
  --color-primary: #ea580c;
  --color-primary-dark: #9a3412;
  --color-primary-light: #ffedd5;
  --accent-donasi: #f97316;
}

body.theme-blue {
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e3a8a;
  --color-primary-light: #dbeafe;
  --accent-donasi: #2563eb;
}

body.theme-gold {
  --color-primary: #b45309;
  --color-primary-dark: #78350f;
  --color-primary-light: #fef3c7;
  --accent-donasi: #d97706;
}

body.theme-purple {
  --color-primary: #6d28d9;
  --color-primary-dark: #4c1d95;
  --color-primary-light: #ede9fe;
  --accent-donasi: #7c3aed;
}

/* Floating Color Switcher Widget Styling */
.color-float-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
}

.color-float-btn {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.color-float-btn:hover {
  transform: scale(1.1) rotate(15deg);
}

.color-picker-modal {
  position: absolute;
  bottom: 66px;
  left: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  width: 240px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid var(--color-border);
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.color-picker-modal.active {
  display: block;
}

.color-picker-header {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.color-swatch-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: bold;
}

.color-swatch-item:hover, .color-swatch-item.active {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.35);
}

.swatch-green { background: #0f766e; }
.swatch-black { background: #1e293b; }
.swatch-red { background: #be123c; }
.swatch-orange { background: #ea580c; }
.swatch-blue { background: #1d4ed8; }
.swatch-gold { background: #b45309; }
.swatch-purple { background: #6d28d9; }

