/* Custom CSS Variables */
:root {
    --blue: #0a3b80;
    --gold: #d4af37;
    --ink: #0f172a;
    --bg: #f6f8fb;
    --white: #fff;
    --navH: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font: 14px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: var(--bg);
    color: var(--ink);
    margin: 0; /* Ensure no default margin */
}

section[id] {
    scroll-margin-top: var(--navH);
}

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

/* Navbar Styles */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--navH);
    z-index: 9999;
    background: rgba(10, 59, 128, 0.72);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav.scrolled {
    background: rgba(10, 59, 128, 0.92);
}

.nav .wrap {
    max-width: 1160px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.brand img {
    max-height: 35px;
    width: auto;
    display: block;
}

.menu {
    display: flex;
    gap: 14px;
    align-items: center;
}

.menu a {
    padding: 8px 10px;
    opacity: 0.95;
    color: #fff;
    font-weight: 600;
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.menu a.active {
    background: rgba(212, 175, 55, 0.18);
}

.burger {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Hero Section */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    background-image: url('../images/hero-background.jpg?v=3');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 56vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 59, 128, 0.55);
}

.hero .inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.hero p {
    opacity: 0.95;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    margin: 4px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--gold);
    color: var(--blue);
}

.btn.ghost {
    border: 2px solid var(--gold);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn.loyalty {
    background: var(--blue);
    color: #fff;
}

.btn.loyalty:hover {
    background: #08316b;
    box-shadow: 0 10px 20px rgba(10, 59, 128, 0.3);
}

/* Section Styles */
section {
    padding: 64px 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

section.team .card {
    max-width: 300px;
    margin: 0 auto;
}

.services {
    text-align: center;
}

/* Remove extra margins */
section:first-child {
    margin-top: 0;
}

section:last-child {
    margin-bottom: 0;
}

/* Remove spacing issues */
body {
    margin: 0;
    padding-top: var(--navH);
    overflow-x: hidden;
    background: var(--bg);
}

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

html, body {
    width: 100%;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

h2.title {
    text-align: center;
    color: var(--blue);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    gap: 22px;
}

.about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about img {
    width: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card {
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(2,6,23,0.06);
}

.services table {
    width: 100%;
    border-collapse: collapse;
}

.services th, .services td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.services th {
    background: var(--blue);
    color: #fff;
    text-align: left;
}

.loyalty {
    background: var(--gold);
    color: var(--blue);
    padding: 28px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(2,6,23,0.06);
}

.loyalty .title {
    color: var(--blue);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    font-size: 28px;
    margin-bottom: 15px;
}

.loyalty p {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.loyalty img {
    max-width: 560px;
    width: 100%;
    margin: 12px auto 0;
    display: block;
}

.loyalty-text {
    color: var(--blue);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    justify-content: center;
}

.gallery {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.gallery .title {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 16px;
        margin: 0 auto;
        max-width: 100%;
    }

    .gallery .title {
        margin-bottom: 16px;
        text-align: center;
    }
    
    .gallery img {
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 8px;
    }
}

.gallery img, .team img {
    width: 100%;
    display: block;
}

.team {
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    text-align: center;
}

.team h4 {
    margin-top: 10px;
    font-size: 16px;
}

.map iframe {
    width: 100%;
    height: 320px;
    border: 0;
}

footer {
    background: var(--blue);
    color: #fff;
    text-align: center;
    padding: 22px 12px;
    margin-top: 32px;
    font-size: 13px;
}

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-grid .card {
    text-align: center;
    padding: 1.5rem;
}

.team-grid .card img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    aspect-ratio: 1;
}

.team-grid h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.team-grid p {
    color: var(--gray);
    font-size: 1rem;
}

/* SERVICES - Fixed size images */
.services img {
    width: 443px;
    height: 664px;
    object-fit: cover;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
}

/* GALLERY - Center on desktop */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .team-grid .card img {
        max-width: 120px;
    }
    
    .services img {
        width: 443px;
        height: 664px;
    }
}

/* Responsive Design */
@media (max-width: 820px) {
    .about {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    section {
        padding: 20px 16px;
    }
    
    h2.title {
        font-size: 22px;
        margin-bottom: 15px;
    }
}



@media (max-width: 480px) {
    /* Team section untuk layar sangat kecil */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .team .card {
        padding: 20px !important;
    }
    
    .team img {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 15px !important;
    }
    
    /* Gallery untuk layar sangat kecil */
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    .gallery img {
        height: auto !important;
        aspect-ratio: 1 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    }
    
    /* Tambahan untuk semua section */
    section {
        padding: 40px 16px !important;
    }
    
    h2.title {
        font-size: 22px !important;
        margin-bottom: 25px !important;
    }
}

@media (max-width: 780px) {
    .burger {
        display: inline-block;
    }
    
    .menu {
        position: fixed;
        right: 0;
        top: var(--navH);
        width: 68%;
        max-width: 320px;
        height: calc(100vh - var(--navH));
        background: var(--blue);
        padding: 18px;
        box-shadow: -12px 0 28px rgba(2,6,23,0.2);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        transform: translateX(100%);
        transition: transform 0.28s ease;
    }
    
    .menu.open {
        transform: translateX(0);
    }
}



.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    margin-left: 10px;
}

.btn-outline:hover {
    background: #e74c3c;
    color: #fff;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e74c3c;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #666;
}

.contact-info i {
    color: #e74c3c;
    margin-right: 10px;
    width: 20px;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #e74c3c;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #c0392b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: #e74c3c;
    margin-right: 15px;
    margin-top: 3px;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.info-item strong {
    color: #333;
}

.map-section {
    padding: 80px 0;
    background-color: #fff;
}

.map-container {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive untuk Contact Page */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .booking-form-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-form {
        padding: 1.5rem;
    }

    .loyalty-text {
        color: var(--blue);
        font-weight: 600;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--blue);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }

    .social-icons a:hover {
        transform: translateY(-2px);
        background: var(--gold);
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-top: 3rem;
        justify-content: center;
        justify-items: center;
    }

    .gallery-item {
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .gallery-item:hover {
        transform: scale(1.05);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Footer */
    .footer {
        background: #0a192f;
        color: #a8b2d1;
        padding: 3rem 0;
        text-align: center;
    }

    .footer-content {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: #64ffda;
        margin-bottom: 1rem;
    }

    .footer-links {
        margin-bottom: 1rem;
    }

    .footer-links a {
        color: #a8b2d1;
        margin: 0 15px;
        transition: color 0.3s ease;
    }

    .footer-links a:hover {
        color: #64ffda;
    }

    .social-links {
        margin-bottom: 1rem;
    }

    .social-links a {
        color: #a8b2d1;
        font-size: 1.5rem;
        margin: 0 10px;
        transition: color 0.3s ease;
    }

    .social-links a:hover {
        color: #64ffda;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        color: #8892b0;
    }
}

.contact-grid-horizontal {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.social-icons-horizontal {
    text-align: center;
    margin-top: 20px;
}

.social-icons-horizontal a {
    font-size: 24px;
    margin: 0 10px;
    color: var(--blue);
}