* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* keeps the fixed header off section titles */
}

body {
    background: #F5F1EA;
    font-family: 'Poppins', sans-serif;
}

/* Hidden heading for Google and screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ---------- Header / Nav ---------- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 70px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

nav h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 35px;
    color: #556B5D;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 45px;
}

nav ul li a {
    text-decoration: none;
    color: #2B2B2B;
    transition: 0.3s;
    font-weight: 400;
}

nav ul li a:hover {
    color: #556B5D;
}

/* Hamburger (shown on mobile only) */
.menu-toggle {
    display: none;
    background: none;
    color: #556B5D;
    padding: 6px 12px;
    font-size: 28px;
    border-radius: 8px;
}

.menu-toggle:hover {
    background: none;
    transform: none;
}

/* ---------- Hero ---------- */
.hero {
    height: 100vh;
    background-image: url("images/hatha.png");
    background-size: 135%;
    background-repeat: no-repeat;
    background-position: center 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
button {
    padding: 16px 38px;
    background: #556B5D;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

button:hover {
    background: #3f5246;
    transform: translateY(-3px);
}

/* Keyboard focus outlines */
.card:focus-visible,
.chat-icon:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #556B5D;
    outline-offset: 3px;
}

/* ---------- About ---------- */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    padding: 100px 80px;
    background: #ffffff;
}

.about-image img {
    width: 450px;
    max-width: 100%;
    border-radius: 20px;
}

.about-text {
    max-width: 550px;
    margin-top: -200px;
}

.about-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 55px;
    color: #556B5D;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #444;
}

/* ---------- Programs ---------- */
.classes {
    padding: 100px 80px;
    background: #F5F1EA;
    text-align: center;
}

.classes h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    color: #556B5D;
    margin-bottom: 60px;
}

.class-container {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 320px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    cursor: pointer;
}

.card h3 {
    font-size: 28px;
    color: #556B5D;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
    transition: 0.3s;
}

.card p {
    line-height: 1.8;
    color: #444;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-12px);
    background: #556B5D;
}

.card:hover h3,
.card:hover p {
    color: white;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 80px;
    background: #ffffff;
}

.contact h2 {
    text-align: center;
    font-size: 60px;
    font-family: 'Cormorant Garamond', serif;
    color: #556B5D;
    margin-bottom: 50px;
}

.contact-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-details {
    background: #F5F1EA;
    padding: 50px;
    border-radius: 25px;
    width: 420px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-details h3 {
    font-size: 42px;
    font-family: 'Cormorant Garamond', serif;
    color: #556B5D;
    margin-bottom: 25px;
}

.contact-details p {
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.info-box {
    margin-top: 35px;
}

.info-box a {
    text-decoration: none;
    color: #556B5D;
}

.contact-form {
    background: #F5F1EA;
    padding: 50px;
    border-radius: 25px;
    width: 520px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

form {
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input,
textarea,
select {
    padding: 12px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    background: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

textarea {
    height: 90px;
    resize: none;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #556B5D;
    box-shadow: 0 0 0 3px rgba(85, 107, 93, 0.15);
}

::placeholder {
    color: #718096;
    opacity: 1;
}

.contact-form button {
    padding: 14px;
    margin-top: 5px;
    background: #556B5D;
    border-radius: 40px;
}

.contact-form button:hover {
    background: #425247;
    transform: translateY(-1px);
}

.contact-form button:active {
    transform: translateY(1px);
}

#formStatus {
    display: none;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer {
    background: #556B5D;
    color: white;
    text-align: center;
    padding: 40px;
}

footer h3 {
    font-size: 35px;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 15px;
}

footer p {
    margin-bottom: 10px;
}

/* ---------- Program Modal ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    align-items: center;
    z-index: 3000; /* above the chat widget */
}

.modal-content {
    background: white;
    padding: 45px;
    border-radius: 25px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
}

.modal-content h2 {
    font-size: 45px;
    color: #556B5D;
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
}

/* Close buttons: plain "×", not the green pill */
.close-btn,
.close-chat {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover,
.close-chat:hover {
    background: none;
    transform: none;
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    color: #556B5D;
}

/* ---------- Chat Widget ---------- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: 'Poppins', sans-serif;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: #556B5D;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.chat-icon:hover {
    transform: scale(1.05);
    background: #3f5246;
}

.chat-box {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
    from { transform: translateY(15px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.chat-header {
    background: #556B5D;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.close-chat {
    font-size: 24px;
    color: white;
    opacity: 0.8;
}

.close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #F5F1EA;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 80%;
    line-height: 1.4;
}

.message.bot {
    background: white;
    color: #2B2B2B;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.message.user {
    background: #556B5D;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* stops iPhone Safari from zooming in */
}

.chat-input-area button {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 14px 20px;
    }

    nav h2 {
        font-size: 28px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 14px 20px;
    }

    .hero {
        background-size: cover;
        background-position: center top;
    }

    .about {
        flex-direction: column;
        padding: 70px 30px;
        gap: 40px;
    }

    .about-image img {
        width: 100%;
    }

    .about-text {
        margin-top: 0;
    }

    .about-text h2 {
        font-size: 42px;
    }

    .classes {
        padding: 70px 20px;
    }

    .classes h2 {
        font-size: 42px;
    }

    .card {
        width: 100%;
        padding: 30px;
    }

    .contact {
        padding: 80px 20px;
    }

    .contact h2 {
        font-size: 42px;
    }

    .contact-details,
    .contact-form {
        width: 100%;
        padding: 30px 22px;
    }

    .modal-content {
        padding: 35px 22px;
    }

    .modal-content h2 {
        font-size: 36px;
    }

    .chat-widget {
        right: 20px;
        bottom: 20px;
    }

    .chat-box {
        width: calc(100vw - 40px);
        height: 60vh;
    }
}