:root {
    --primary-dark: #1b4332;
    --primary-color: #2d6a4f;
    --primary-light: #40916c;
    --accent-gold: #f5b041;
    --accent-green: #27ae60;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f9fbf9;
    --white: #ffffff;
    --brown-footer: #4a3b32;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

html, body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;

    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    transition: all 0.3s;
}

img {
    max-width: 100%;
}

/* ========================
   NAVBAR
   ======================== */
.navbar-wrapper {
    position: fixed;
    top: 15px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    transition: top 0.3s;
}

.navbar-wrapper.scrolled .navbar {
    background-color: rgba(27, 67, 50, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.navbar {
    background-color: var(--primary-dark);
    border-radius: 50px;
    padding: 8px 15px 8px 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 1200px;
    transition: all 0.3s;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 75px;
    border-radius: 8px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.2rem;
}

.brand-text small {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
    margin-left: auto;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.btn-nav {
    background-color: var(--accent-green);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: #219a52 !important;
}

/* Hamburger — hidden on desktop */
.hamburger {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(255,255,255,0.25);
}

/* Mobile Dropdown */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--primary-dark);
    border-radius: 20px;
    margin-top: 8px;
    padding: 10px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    padding: 15px;
}

.mobile-menu a {
    color: rgba(255,255,255,0.9);
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.mobile-menu-cta {
    background: var(--accent-green) !important;
    color: white !important;
    margin-top: 8px;
    text-align: center;
    justify-content: center !important;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #219a52;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #fff;
}

.btn-gold:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,176,65,0.35);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    position: relative;
    background-image: linear-gradient(rgba(27, 67, 50, 0.72), rgba(27, 67, 50, 0.72)),
        url('https://images.unsplash.com/photo-1524024973431-2ad916746881?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* ========================
   STATS BAR
   ======================== */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background: var(--white);
    border-radius: 50px;
    padding: 20px 40px;
    margin: -40px auto 60px;
    max-width: 1000px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 10;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: #f1f8e9;
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-text h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.stat-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================
   GENERAL SECTIONS
   ======================== */
.section {
    padding: 70px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* ========================
   TENTANG KAMI
   ======================== */
.tentang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tentang-text ul {
    list-style: none;
    margin-top: 20px;
    margin-bottom: 30px;
}

.tentang-text li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.tentang-text li i {
    color: var(--accent-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tentang-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.tentang-img img {
    width: 100%;
    display: block;
    height: 380px;
    object-fit: cover;
}

/* ========================
   KEUNGGULAN
   ======================== */
.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.keunggulan-item {
    padding: 20px 10px;
}

.keunggulan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #fdf2e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--accent-gold);
}

.keunggulan-item h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ========================
   PAKET
   ======================== */
.paket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-paket {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-paket:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-paket img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
}

.card-paket.gold {
    border: 2px solid var(--accent-gold);
    transform: scale(1.03);
}

.card-paket.gold:hover {
    transform: scale(1.03) translateY(-5px);
}

.paket-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ========================
   TERNAK
   ======================== */
.ternak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.card-ternak {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.card-ternak:hover {
    transform: translateY(-4px);
}

.card-ternak img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-ternak-body {
    padding: 15px;
}

.ternak-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 10px 0;
}

/* ========================
   KONTAK & TESTIMONI
   ======================== */
.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.kontak-card {
    background: #f4f8f4;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.kontak-info {
    display: flex;
    gap: 20px;
    text-align: left;
}

.kontak-detail {
    flex: 1;
}

.kontak-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.kontak-row i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.kontak-map {
    flex: 1;
}

/* ========================
   FOOTER
   ======================== */
footer {
    background-color: var(--brown-footer);
    color: var(--white);
}

.footer-top {
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-tagline {
    font-style: italic;
    font-weight: bold;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 15px 5%;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* WhatsApp FAB */
.wa-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    z-index: 999;
    transition: transform 0.3s;
}

.wa-fab:hover {
    transform: scale(1.1);
    color: white;
}

/* ========================
   MOBILE RESPONSIVE
   ======================== */
@media (max-width: 768px) {

    /* Navbar */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .navbar {
        border-radius: 12px;
        padding: 10px 15px;
        justify-content: space-between;
    }

    .navbar-brand {
        flex-shrink: 1;
        overflow: hidden;
    }

    .brand-text strong {
        font-size: 1.1rem;
        white-space: normal;
        display: block;
    }

    .brand-text small {
        display: none; /* Hide tagline on mobile navbar to prevent overflow */
    }

    .navbar-brand img {
        height: 50px; /* slightly smaller logo on mobile to leave room */
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        padding: 120px 20px 60px;
        text-align: center;
        align-items: flex-end;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Stats */
    .stats-bar {
        flex-direction: column;
        gap: 15px;
        margin: 20px 15px 40px;
        padding: 25px 20px;
        border-radius: 20px;
    }

    .stat-item {
        gap: 15px;
    }

    /* Sections */
    .section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Tentang Kami */
    .tentang-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tentang-img img {
        height: 250px;
    }

    /* Keunggulan */
    .keunggulan-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .keunggulan-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    /* Paket */
    .paket-grid {
        grid-template-columns: 1fr;
    }

    .card-paket.gold {
        transform: none;
    }

    /* Ternak */
    .ternak-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-ternak img {
        height: 130px;
    }

    .card-ternak-body {
        padding: 10px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-badges {
        justify-content: center;
        gap: 10px;
    }

    .footer-badges span {
        font-size: 0.78rem;
    }

    /* WhatsApp FAB */
    .wa-fab {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .keunggulan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ternak-grid {
        grid-template-columns: 1fr;
    }
}

/* Kontak responsive */
@media (max-width: 768px) {
    .kontak-grid {
        grid-template-columns: 1fr;
    }

    .kontak-card {
        padding: 25px 20px;
    }

    .kontak-info {
        flex-direction: column;
    }
}
