/* Global Styles */
:root {
    --light-gray: #D9D9D9;
    --dark-brown: #3E2222;
    --medium-brown: #947049;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-brown);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: white;
    padding: 7px 20px;
    border: 1px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-weight: 500;
}

.btn:hover {
    background-color: white;
    color: var(--dark-brown);
}

.btn i {
    margin-left: 8px;
    font-size: 0.9rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-brown);
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    h2 {
        font-size: 1.6rem;
    }
}

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

/* Navbar */
.navbar {
    background-color: var(--light-gray);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar .logo a {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar .logo h1 {
    font-size: 1.5rem;
    color: var(--dark-brown);
}

.navbar nav ul {
    display: flex;
}

.navbar nav ul li {
    margin-left: 30px;
}

.navbar nav ul li a {
    color: var(--dark-brown);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--medium-brown);
}

.navbar nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--medium-brown);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-brown);
}

/* Media Query untuk Navbar */
@media (max-width: 768px) {
    .navbar .container {
        padding: 10px 15px;
    }
    
    .navbar .logo img {
        height: 35px;
    }
    
    .navbar nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-gray);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: circle(0px at top right);
        transition: all 0.4s ease-in-out;
        z-index: 1000;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar nav.active {
        clip-path: circle(1500px at top right);
    }
    
    .navbar nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .navbar nav ul li {
        margin: 15px 20px;
        text-align: center;
    }
    
    .navbar nav ul li a.active::after {
        bottom: -3px;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 360px) {
    .navbar .logo h1 {
        font-size: 1.2rem;
    }
    
    .navbar .logo img {
        height: 30px;
    }
}

/* Hero Section */
.hero {
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin: 120px auto 50px;
    position: relative;
    width: calc(100% - 60px);
    max-width: 1800px;
    height: calc(100vh - 170px);
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgb(62, 34, 34));
}

.hero-content {
    padding: 40px;
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.hero-content h2 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 1000px;
    margin: 0 auto;
}

/* Media Queries untuk Hero */
@media (max-width: 992px) {
    .hero {
        margin: 110px auto 50px;
        width: calc(100% - 40px);
        height: calc(85vh - 160px);
    }
    
    .hero-content {
        padding: 35px;
        margin-bottom: 25px;
    }
    
    .hero-content h2 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin: 100px auto 40px;
        width: calc(100% - 30px);
        height: calc(70vh - 140px);
        min-height: 450px;
    }
    
    .hero-content {
        padding: 30px 25px;
        margin-bottom: 20px;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        line-height: 1.3;
        max-width: 700px;
    }
}

@media (max-width: 576px) {
    .hero {
        margin: 80px auto 30px;
        width: calc(100% - 20px);
        height: 60vh;
        min-height: 350px;
        border-radius: 15px;
    }
    
    .hero-content {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 85vh;
        min-height: 300px;
        margin-top: 80px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Layanan Section */
.layanan {
    padding: 80px 0 150px;
    text-align: center;
}

.layanan-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.layanan-card {
    width: calc(33.333% - 20px);
    max-width: 350px;
    min-width: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.layanan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.layanan-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(62, 34, 34, 0.8);
    color: white;
    padding: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Media Queries untuk Layanan */
@media (max-width: 992px) {
    .layanan {
        padding: 70px 0 120px;
    }
    
    .layanan-cards {
        gap: 25px;
    }
    
    .layanan-card {
        width: calc(50% - 15px);
        margin-bottom: 10px;
    }
    
    .layanan-card img {
        height: 280px;
    }
    
    .layanan-title {
        font-size: 1.2rem;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .layanan {
        padding: 60px 0 100px;
    }
}

@media (max-width: 576px) {
    .layanan {
        padding: 50px 0 80px;
    }
    
    .layanan-cards {
        gap: 20px;
    }
    
    .layanan-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 10px;
    }
    
    .layanan-card img {
        height: 250px;
    }
    
    .layanan-title {
        padding: 10px;
        font-size: 1.1rem;
    }
}

/* Galeri Section */
.galeri {
    padding: 65px 0 5px;
    background-color: var(--dark-brown);
    color: white;
}

.gallery-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-image {
    flex: 1;
    min-width: 300px;
}

.gallery-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-text {
    flex: 1;
    padding: 0 30px;
    min-width: 300px;
}

.gallery-text h2 {
    color: white;
    font-size: 2.1rem;
}

.gallery-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Media Queries untuk Galeri */
@media (max-width: 992px) {
    .galeri {
        padding: 50px 0 30px;
    }
    
    .gallery-content {
        flex-direction: column;
    }
    
    .gallery-image {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .gallery-text {
        width: 100%;
        padding: 20px 10px;
        text-align: center;
    }
    
    .gallery-text h2 {
        font-size: 1.8rem;
    }
    
    .gallery-text p {
        font-size: 1rem;
        max-width: 600px;
        margin: 0 auto 20px;
    }
    
    .gallery-image img {
        height: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .galeri {
        padding: 40px 0 20px;
    }
    
    .gallery-text h2 {
        font-size: 1.6rem;
    }
    
    .gallery-text p {
        font-size: 0.95rem;
    }
    
    .gallery-image img {
        height: 250px;
        border-radius: 8px;
    }
}

/* Perjalanan Section */
.perjalanan {
    padding: 40px 0;
    background-color: var(--dark-brown);
    color: white;
}

.journey-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.journey-text {
    flex: 1;
    padding: 0 30px;
    min-width: 300px;
}

.journey-text h2 {
    color: white;
    font-size: 2.1rem;
}

.journey-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.journey-image {
    padding-bottom: 20px;
    flex: 1;
    min-width: 300px;
}

.journey-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Media Queries untuk Perjalanan */
@media (max-width: 992px) {
    .perjalanan {
        padding: 30px 0 40px;
    }
    
    .journey-content {
        flex-direction: column;
    }
    
    .journey-text {
        order: 2;
        width: 100%;
        padding: 20px 10px;
        text-align: center;
    }
    
    .journey-image {
        order: 1;
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 0;
    }
    
    .journey-text h2 {
        font-size: 1.8rem;
    }
    
    .journey-text p {
        font-size: 1rem;
        max-width: 600px;
        margin: 0 auto 20px;
    }
    
    .journey-image img {
        height: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .perjalanan {
        padding: 20px 0 40px;
    }
    
    .journey-text h2 {
        font-size: 1.6rem;
    }
    
    .journey-text p {
        font-size: 0.95rem;
    }
    
    .journey-image img {
        height: 250px;
        border-radius: 8px;
    }
}

/* Footer */
footer {
    background-color: var(--light-gray);
    color: var(--dark-brown);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 150px;
    margin-right: 15px;
}

.footer-logo h3 {
    font-size: 2rem;
}

.footer-menu,
.footer-contact {
    margin-bottom: 20px;
}

.footer-menu h4,
.footer-contact h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    color: var(--medium-brown);
}

.footer-menu h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--medium-brown);
}

.footer-menu ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--medium-brown);
}

.footer-menu ul li,
.footer-contact ul li {
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    font-weight: 500;
}

.footer-contact ul li i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--dark-brown);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Pengaturan khusus untuk alamat (item terakhir pada kontak) */
.footer-contact ul li:last-child {
    line-height: 1.5;
}

.footer-contact ul li:last-child i {
    margin-top: 3px;
}

.footer-contact ul li:last-child a {
    max-width: calc(100% - 26px); /* Lebar total dikurangi lebar ikon + margin */
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Media Queries untuk Footer */
@media (max-width: 992px) {
    footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        justify-content: space-between;
    }
    
    .footer-logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .footer-logo img {
        height: 120px;
    }
    
    .footer-menu {
        padding-left: 50px;
    }
    
    .footer-contact {
        width: 45%;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        flex-direction: column;
        margin-bottom: 25px;
    }
    
    .footer-logo {
        margin-bottom: 25px;
    }
    
    .footer-logo img {
        height: 100px;
    }
    
    .footer-menu,
    .footer-contact {
        margin-bottom: 25px;
        width: 100%;
        text-align: left;
        padding-left: 20px;
    }
    
    .footer-menu h4::after,
    .footer-contact h4::after {
        left: 0;
    }
    
    .footer-contact ul li {
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .footer-contact ul li:last-child {
        align-items: flex-start;
    }
    
    .footer-contact ul li:last-child a {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-logo img {
        height: 80px;
    }
    
    .footer-logo h3 {
        font-size: 1.6rem;
    }
    
    .footer-menu h4, 
    .footer-contact h4 {
        font-size: 1.1rem;
    }
    
    .footer-menu ul li,
    .footer-contact ul li {
        font-size: 0.9rem;
    }
    
    .footer-contact ul li:last-child a {
        font-size: 0.85rem;
    }
}

@media (max-width: 460px) {
    .footer-logo img {
        height: 70px;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
}