@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap");

:root {
    --red: #e30613;
    --red-dark: #b90410;
    --dark: #101318;
    --dark-2: #171b22;
    --text: #242830;
    --muted: #6d7480;
    --light: #f5f7fa;
    --white: #ffffff;
    --border: #e6e9ee;
    --shadow: 0 18px 50px rgba(16, 19, 24, 0.09);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid #ffb3b8;
    outline-offset: 2px;
}

section {
    position: relative;
}

main section {
    padding: 100px 7%;
}

main section.alt {
    background: var(--light);
}

.muted {
    color: var(--muted);
    font-size: 0.88rem;
}

code {
    background: var(--light);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.82rem;
}

/* ================= HEADING ================= */

.section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.section-heading h2 {
    margin-bottom: 14px;
    color: var(--dark);
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.section-heading p {
    color: var(--muted);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 78px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(230, 233, 238, 0.8);
    box-shadow: 0 8px 30px rgba(16, 19, 24, 0.06);
    backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo div {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo strong {
    color: var(--dark);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
}

.logo span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.72rem;
}

nav {
    margin-left: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav-menu a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: #4d535d;
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 5px;
  background: var(--red);
  transform: scaleX(0);
  transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--red);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--dark);
    background: var(--white);
    font-size: 1.1rem;
}

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

.hero {
    min-height: 760px;
    height: 100vh;
    padding: 0 7%;
    display: flex;
    align-items: center;
    background: url("../img/stadion.jpg") center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 19, 24, 0.92) 0%, rgba(16, 19, 24, 0.7) 55%, rgba(16, 19, 24, 0.35) 100%);
}

.hero-content {
    position: relative;
    max-width: 720px;
    padding-top: 60px;
}

.badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background: rgba(227, 6, 19, 0.85);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    margin-bottom: 18px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    color: #ff4d57;
}

.hero-content p {
    max-width: 580px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn,
.btn-outline {
    min-height: 48px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--red);
    border: 1px solid var(--red);
}

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

.btn-outline {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover {
    color: var(--dark);
    background: var(--white);
    transform: translateY(-2px);
}

.hero-bottom {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.hero-bottom > div {
    padding: 20px 26px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-bottom > div:last-child {
    border-right: 0;
}

.hero-bottom strong {
    font-family: "Poppins", sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
}

.hero-bottom span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* ================= PETA ================= */

.demo-bar {
    max-width: 1200px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.map-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    gap: 24px;
}

.map {
    min-height: 520px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #dfe5e0;
}

.panel,
.card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.panel h3,
.card h3 {
    margin-bottom: 12px;
    color: var(--dark);
    font-family: "Poppins", sans-serif;
}

.panel .btn {
    margin-top: 16px;
}

.legend {
    max-width: 1200px;
    margin: 18px auto 0;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border-radius: 50%;
}

/* ================= PENILAIAN ================= */

.saw-layout,
.review-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
    gap: 24px;
    align-items: start;
}

.table-wrap {
    overflow-x: auto;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tbl th,
.tbl td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.tbl th {
    color: var(--dark);
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
}

.pill {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    background: #8a919c;
    white-space: nowrap;
}

label {
    display: block;
    margin-bottom: 14px;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
}

label input,
label select,
label textarea,
.search {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.search {
    max-width: 1200px;
    margin: 0 auto 18px;
}

/* ================= LAPANGAN ================= */

.card-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.lap-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.lap-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
}

.lap-card small {
    color: var(--red);
    font-weight: 800;
    letter-spacing: 1px;
}

.lap-card h3 {
    margin: 6px 0 10px;
    color: var(--dark);
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
}

.lap-card p {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.lap-card button {
    padding: 8px 18px;
    border: 1px solid var(--red);
    border-radius: 10px;
    color: var(--red);
    background: var(--white);
    font-weight: 700;
}

.lap-card button:hover {
    color: var(--white);
    background: var(--red);
}

/* ================= ULASAN ================= */

.review-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
}

.stars button {
    border: 0;
    background: none;
    color: #cfd4db;
    font-size: 1.9rem;
    line-height: 1;
}

.stars button.on {
    color: #f0b429;
}

.rev {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.rev small {
    color: var(--muted);
}

.rev .gold {
    color: #f0b429;
}

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

.footer {
    padding: 70px 7% 0;
    color: rgba(255, 255, 255, 0.75);
    background: var(--dark);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-logo div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo strong {
    color: var(--white);
    font-family: "Poppins", sans-serif;
}

.footer-logo span {
    font-size: 0.8rem;
}

.footer-desc {
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.82rem;
}

/* ================= RESPONSIF ================= */

@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        background: var(--white);
        box-shadow: 0 18px 30px rgba(16, 19, 24, 0.1);
    }

    nav.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 5%;
    }

    .map-layout,
    .saw-layout,
    .review-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 200px;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
        bottom: 24px;
    }

    .hero-bottom > div {
        padding: 10px 20px;
        border-right: 0;
    }

    main section {
        padding: 80px 5%;
    }
}

/* ===== Batasi tinggi hero beranda di layar lebar ===== */
@media (min-width:901px){
    .hero{min-height:clamp(520px,100vh,720px)}
}
