:root {
    --ios-blue: #007AFF;
    --ios-background: #f2f2f7;
    --ios-surface: #ffffff;
    --ios-gray: #8e8e93;
    --ios-green: #34C759;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 160px 0 0 0; /* Adjusted for side-by-side header */
    background-color: #ffffff;
    color: #1c1c1e;
    line-height: 1.6;
}

/* Header & Wavy Effect */
header {
    background-color: var(--ios-blue);
    color: white;
    padding: 10px 20px 40px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.header-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap; /* Added to allow nav to wrap below */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.logo {
    height: 140px; /* Even larger logo */
    width: auto;
    display: block;
    max-width: 250px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Hamburger Menu Toggle */
#menu-toggle {
    display: none;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 22px;
    z-index: 1001;
    margin: 0; /* Float right handled by flex justify-between */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Nav Menu */
nav {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    flex-direction: row; /* Change to row for horizontal layout */
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: transparent; /* Remove the dropdown background */
    position: relative; /* Keep it inside the header flow */
    top: 0;
    left: 0;
    backdrop-filter: none;
    margin-top: -10px; /* Pull it up closer to the logo/hamburger */
}

#menu-toggle:checked ~ nav {
    max-height: 60px; /* Small enough for one row of links */
    padding: 10px 0;
    box-shadow: none;
}

/* Hamburger to X Transform */
#menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
#menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    background: transparent;
    border-radius: 12px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after, nav a.active::after {
    width: 20px;
}

nav a:hover {
    letter-spacing: 1px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1); /* Subtle transparent hover */
}

nav a.active {
    background: rgba(255, 255, 255, 0.15);
}

.btn-inquiry {
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    body {
        padding-top: 130px;
    }

    .logo {
        height: 100px;
    }

    .hamburger {
        width: 28px;
        height: 18px;
    }

    nav {
        flex-direction: column; /* Stack on mobile only */
        gap: 10px;
    }

    #menu-toggle:checked ~ nav {
        max-height: 200px;
    }

    nav a {
        font-size: 14px;
        padding: 5px 0;
    }
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

h1, h2 {
    color: #1c1c1e;
    letter-spacing: -0.5px;
}

.intro-text {
    font-size: 18px;
    color: #3a3a3c;
    margin-bottom: 40px;
}

/* Contact Cards */
.contact-section {
    background-color: var(--ios-background);
    padding: 40px 20px;
    border-radius: 24px;
    margin-top: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card h3 {
    margin-top: 0;
    color: var(--ios-blue);
    font-size: 16px;
    text-transform: uppercase;
}

/* Services */
.activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.activity-item {
    background: var(--ios-background);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
}

/* Footer */
footer {
    background-color: #e5e5ea;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    color: var(--ios-gray);
    font-size: 14px;
    margin: 0;
}
