/* =========================================
   PT. ANUGERAH GENERASI MAKMUR
   COMMON CSS
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fffdf8;
    color: #333;
    overflow-x: hidden;
}

:root {
    --primary: #D50000;
    --secondary: #FFC107;
    --dark: #222;
    --light: #ffffff;
    --gray: #f5f5f5;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}


/* =========================
   NAVBAR
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}

nav {
    width: 90%;
    max-width: 1300px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
}

.logo h2 {
    color: var(--primary);
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    color: #444;
    font-weight: 600;
    transition: .3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.active {
    color: var(--primary) !important;
}

.quote-btn {
    background: var(--primary);
    color: white;
    padding: 13px 28px;
    border-radius: 40px;
    transition: .3s;
    font-weight: 600;
}

.quote-btn:hover {
    background: var(--secondary);
    color: #111;
}


/* =========================
   GENERAL SECTIONS
========================= */

section {
    padding: 90px 8%;
}

section h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 15px;
}

section > p {
    text-align: center;
    color: #777;
    margin-bottom: 60px;
    font-size: 18px;
}


/* =========================
   PAGE HERO
========================= */

.page-hero {
    height: 420px;

    background: linear-gradient(
        135deg,
        #D50000,
        #ff9800
    );

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.page-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.page-content p {
    font-size: 22px;
}


/* =========================
   BUTTONS
========================= */

.primary {
    background: var(--primary);
    color: white;
    padding: 16px 34px;
    border-radius: 40px;
    transition: .3s;
    font-weight: 600;
    display: inline-block;
}

.primary:hover {
    background: var(--secondary);
    color: #111;
    transform: translateY(-5px);
}

.secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 16px 34px;
    border-radius: 40px;
    transition: .3s;
    font-weight: 600;
    display: inline-block;
}

.secondary:hover {
    background: var(--primary);
    color: white;
}


/* =========================
   CTA
========================= */

.cta {
    background: linear-gradient(
        135deg,
        #D50000,
        #FF9800
    );

    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
}

.cta p {
    color: white;
    margin-bottom: 35px;
}

.cta a {
    display: inline-block;
    background: white;
    color: #D50000;
    padding: 18px 40px;
    border-radius: 40px;
    font-weight: 700;
    transition: .3s;
}

.cta a:hover {
    background: #FFC107;
    color: #111;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #8B0000;
    color: white;
    padding: 70px 8% 30px;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 70px;
}

.footer-logo h2 {
    color: white;
    font-size: 32px;
}

footer p {
    color: #eee;
    line-height: 1.8;
}

footer hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,.2);
    margin: 40px 0 20px;
}


/* =========================
   BACK TO TOP
========================= */

.topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 55px;
    height: 55px;

    border: none;
    border-radius: 50%;

    background: #D50000;
    color: white;

    font-size: 24px;
    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,.2);

    transition: .3s;

    z-index: 999;
}

.topBtn:hover {
    background: #FFC107;
    color: #111;
    transform: translateY(-6px);
}


/* =========================
   ANIMATIONS
========================= */

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hero,
.page-hero {
    animation: fadeUp .8s ease;
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f3f3;
}

::-webkit-scrollbar-thumb {
    background: #D50000;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B0000;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:1024px) {

    nav {
        flex-direction: column;
        gap: 20px;
    }

    .about-story,
.contact-page {
    grid-template-columns: 1fr;
}

}

@media(max-width:768px) {

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    section {
        padding: 70px 6%;
    }

    section h2 {
        font-size: 34px;
    }

    .page-content h1 {
        font-size: 42px;
    }

    .primary,
    .secondary,
    .quote-btn {
        width: 100%;
        text-align: center;
    }

}

@media(max-width:480px) {

    .logo h2 {
        font-size: 20px;
    }

    .logo img {
        width: 50px;
    }

    .page-content h1 {
        font-size: 34px;
    }

    .topBtn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

}