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

html,
body {
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* ==================== HEADER ==================== */
header {
    background-color: #1565c0;
    color: #fff;
    padding: 0.5rem 1rem;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

/* ---------- Logo & Title ---------- */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.header-left img {
    max-width: 70px;
    height: auto;
}

.header-left h1 {
    font-size: 1.7rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Navigation ---------- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 0.5rem;
    position: relative;
}

/* Underline animation for normal links */
.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #ff9800;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

/* ---------- Login Button ---------- */
.login-btn {
    background-color: #ff9800;
    color: #fff;
    padding: 0.55rem 1.4rem;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
    background-color: #f57c00;
    transform: translateY(-1px);
}

/* ---------- Enquiry Button ---------- */
.enquiry-btn {
    background: #43a047;
    color: #fff !important;
    padding: 0.55rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-left: 0.5rem;
}

.enquiry-btn:hover {
    background: #388e3c;
    transform: scale(1.05);
}

/* Remove underline animation from buttons */
.header-nav a.enquiry-btn::after,
.header-nav a.login-btn::after {
    display: none;
}

/* Specific desktop login button */
.header-nav .login-btn.desktop-login {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== HAMBURGER MENU ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== MOBILE MENU ==================== */
@media (max-width: 768px) {

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1565c0;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        z-index: 1000;
        width: 100%;
        text-align: center;
    }

    .header-nav.open {
        max-height: 500px;
    }

    .header-nav a {
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        display: block;
        width: 100%;
    }

    .header-nav .enquiry-btn,
    .header-nav .login-btn {
        width: 100%;
        border-radius: 0;
        margin: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Hide mobile-only login button on desktop */
@media (min-width: 769px) {
    .header-nav .login-btn:not(.desktop-login) {
        display: none;
    }
}

/* ==================== BRANCHES SECTION ==================== */
.branches-section {
    padding: 70px 20px;
    text-align: center;
}

.branches-section h1,
.branches-section h2 {
    color: #1565c0;
}

.branches-section h2 {
    font-size: 2.3rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto 45px;
}

.branches-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.branch-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-top: 5px solid #1565c0;
    text-align: left;
}

.branch-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.branch-card h3 {
    font-size: 1.55rem;
    color: #1565c0;
    margin-bottom: 14px;
    border-bottom: 2px solid #e6ecf6;
    padding-bottom: 8px;
}

.branch-info p {
    margin: 10px 0;
    font-size: 0.96rem;
}

.email-link {
    color: #1565c0;
    font-weight: 600;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.map iframe {
    margin-top: 18px;
    border-radius: 14px;
    width: 100%;
    height: 240px;
    border: none;
}

/* ==================== FOOTER ==================== */
footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #1565c0;
    color: #fff;
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .header-left h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    header {
        padding: 1rem;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
    }

    .header-left img {
        max-width: 60px;
    }

    .header-left h1 {
        font-size: 1.35rem;
        white-space: normal;
    }

    .branches-section {
        padding: 50px 15px;
    }

    .branch-card {
        padding: 22px;
    }
}

/* ================= ACTIVE NAV LINK ================= */
.header-nav a.active::after {
    width: 100%;
}