/* =========================================================
   MARGACINTA DIGITAL
   DESIGN SYSTEM PROFESIONAL & MODERN
   ========================================================= */

/* =========================
   ROOT VARIABLES
========================= */

:root {
    --paper: #fbfaf7;
    --paper-soft: #f3f1eb;
    --surface: #ffffff;
    --surface-muted: #f7f7f3;

    --ink-strong: #17211f;
    --ink: #33413d;
    --ink-soft: #68736f;

    --green: #1f5b4f;
    --green-deep: #163f37;
    --green-soft: #e8f0ed;

    --gold: #b88a44;
    --gold-soft: #efe4d0;

    --border: #dedfd9;
    --border-strong: #cfd2cb;

    --shadow-sm: 0 8px 24px rgba(28, 40, 36, 0.06);
    --shadow-md: 0 16px 42px rgba(28, 40, 36, 0.09);
    --shadow-lg: 0 28px 70px rgba(28, 40, 36, 0.13);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --transition: 0.22s ease;
}

/* =========================
   RESET & BASE
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink-strong);
    background: var(--paper);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: #ffffff;
    background: var(--green);
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4 {
    color: var(--ink-strong);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

p {
    color: var(--ink-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 11px;
    color: var(--green);
    background: transparent;
    border: 1px solid rgba(31, 91, 79, 0.24);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid rgba(222, 223, 217, 0.95);
    backdrop-filter: blur(14px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 28px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.logo-text {
    min-width: 0;
}

.logo-text h2 {
    margin: 0;
    font-size: 18px;
    white-space: nowrap;
}

.logo-text p {
    margin-top: 2px;
    font-size: 11px;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    position: relative;
    padding: 9px 11px;
    color: #53605c;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition:
        color var(--transition),
        background var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--green-deep);
    background: rgba(31, 91, 79, 0.07);
}

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

.btn-primary,
.btn-secondary,
.small-btn,
.whatsapp-btn,
.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.btn-primary,
.small-btn,
.detail-btn {
    color: #ffffff;
    background: var(--green);
    border: 1px solid var(--green);
}

.btn-primary:hover,
.small-btn:hover,
.detail-btn:hover {
    color: #ffffff;
    background: var(--green-deep);
    border-color: var(--green-deep);
    transform: translateY(-1px);
}

.btn-secondary,
.whatsapp-btn {
    color: var(--green);
    background: transparent;
    border: 1px solid rgba(31, 91, 79, 0.28);
}

.btn-secondary:hover,
.whatsapp-btn:hover {
    color: #ffffff;
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-1px);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(184, 138, 68, 0.13),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--paper) 0%,
            var(--paper-soft) 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(31, 91, 79, 0.09);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: 64px;
}

.hero-left {
    max-width: 650px;
}

.hero h1 {
    max-width: 720px;
    margin: 20px 0 18px;
    font-size: clamp(44px, 5.8vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 630px;
    font-size: 16.5px;
    line-height: 1.8;
}

.hero-right {
    display: grid;
    gap: 18px;
}

.hero-image {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-card {
    width: 100%;
    padding: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.hero-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.hero-card p {
    font-size: 14px;
    line-height: 1.75;
}

.hero-card hr {
    margin: 17px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
}

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

.section {
    padding: 82px 0;
}

.grey {
    background: var(--paper-soft);
}

.section-title {
    max-width: 700px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-title h2 {
    margin: 12px 0 14px;
    font-size: clamp(30px, 4vw, 42px);
}

.section-title p {
    max-width: 650px;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.75;
}

/* =========================
   VIDEO
========================= */

.video-wrapper {
    max-width: 920px;
    margin: auto;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.video-wrapper video {
    display: block;
    width: 100%;
    background: #000000;
    border-radius: 12px;
}

/* =========================
   CARD SYSTEM
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: none;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 91, 79, 0.24);
    box-shadow: var(--shadow-sm);
}

.card h3 {
    margin: 18px 0 12px;
    color: var(--ink-strong);
    font-size: 22px;
}

.card p {
    font-size: 14px;
    line-height: 1.75;
}

.image-cards .card {
    padding: 0 0 24px;
}

.image-cards img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.image-cards .card h3,
.image-cards .card p,
.image-cards .card .small-btn,
.image-cards .card .product-info,
.image-cards .card .catalog-actions {
    margin-left: 22px;
    margin-right: 22px;
}

/* =========================
   PAGE HEADER
========================= */

.page-header {
    position: relative;
    overflow: hidden;
    padding: 96px 0 82px;
    text-align: left;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(184, 138, 68, 0.15),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--paper-soft),
            var(--paper)
        );
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    font-size: clamp(42px, 5.5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-header p {
    max-width: 660px;
    margin: 0;
    font-size: 16.5px;
    line-height: 1.75;
}

/* =========================
   UMKM
========================= */

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card p {
    flex-grow: 1;
}

.product-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-price {
    color: var(--green);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 19px;
    font-weight: 700;
}

.product-unit {
    color: var(--ink-soft);
    font-size: 12px;
}

.support-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 920px;
    margin: auto;
    padding: 30px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.support-content h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.support-content p {
    font-size: 14.5px;
    line-height: 1.7;
}

/* =========================
   MAP
========================= */

.map-wrapper {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 430px;
    border: 0;
}

/* =========================
   CONTACT
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-card {
    padding: 27px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 91, 79, 0.24);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 17px;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(31, 91, 79, 0.12);
    border-radius: 10px;
    font-size: 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.contact-card p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.contact-card a,
.contact-link {
    display: inline-block;
    margin-top: 5px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.contact-card a:hover,
.contact-link:hover {
    text-decoration: underline;
}

/* =========================
   DEVELOPER / COLLABORATION
========================= */

.developer-section {
    position: relative;
    overflow: hidden;
    background: var(--paper-soft);
}

.developer-section::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -110px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(31, 91, 79, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.developer-section .container {
    position: relative;
    z-index: 1;
}

.developer-wrapper {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 44px;
    max-width: 1050px;
    margin: 40px auto 0;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.developer-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-photo img {
    width: 100%;
    max-width: 390px;
    height: 260px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.developer-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 13px;
    padding: 6px 10px;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(31, 91, 79, 0.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.developer-content h3 {
    margin-bottom: 14px;
    font-size: clamp(27px, 3vw, 38px);
}

.developer-content > p {
    margin-bottom: 13px;
    font-size: 14.5px;
    line-height: 1.8;
}

.developer-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.developer-info > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.developer-info strong {
    color: var(--green);
    font-size: 12px;
}

.developer-info span {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
}

.developer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.developer-stat {
    padding: 15px 12px;
    text-align: center;
    background: var(--green-deep);
    border-radius: 10px;
}

.developer-stat strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 25px;
}

.developer-stat span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
}

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

footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.76);
    background: var(--green-deep);
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

footer p {
    margin: 0;
    color: inherit;
    font-size: 12px;
    line-height: 1.6;
}

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

@media (max-width: 992px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-left {
        max-width: 760px;
    }

    .hero-right {
        max-width: 760px;
        width: 100%;
    }

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

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

    .developer-wrapper {
        grid-template-columns: 1fr;
    }

    .developer-photo img {
        max-width: 520px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 30px, 1120px);
    }

    .navbar {
        position: relative;
    }

    .logo-text p {
        white-space: normal;
    }

    .hero {
        padding: 68px 0;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .hero p {
        font-size: 15.5px;
    }

    .hero-image {
        height: 250px;
    }

    .section {
        padding: 66px 0;
    }

    .page-header {
        padding: 72px 0 64px;
    }

    .page-header h1 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .page-header p {
        font-size: 15.5px;
    }

    .support-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-box .btn-primary {
        width: 100%;
    }

    .map-wrapper iframe {
        min-height: 350px;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .logo-container {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .logo-text p {
        display: none;
    }

    nav {
        gap: 2px;
    }

    nav a {
        padding: 8px 9px;
        font-size: 12px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .small-btn,
    .whatsapp-btn {
        width: 100%;
    }

    .cards,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .card,
    .support-box {
        padding: 22px;
    }

    .image-cards .card {
        padding: 0 0 22px;
    }

    .developer-wrapper {
        padding: 22px;
    }

    .developer-photo img {
        height: 220px;
    }

    .developer-info,
    .developer-stats {
        grid-template-columns: 1fr;
    }
}
