@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --primary: #1a5f6b;
    --primary-light: #22768a;
    --accent: #eab308;
    --accent-dark: #ca9a06;
    --dark: #0f3a42;
    --light: #f0f9fb;
    --white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(26,95,107,0.10);
    --shadow-lg: 0 8px 40px rgba(26,95,107,0.15);
}

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

html {
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    width: 100%;
    background: var(--white);
    overflow-x: clip;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Site header (top bar + navbar) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.top-bar-outer {
    overflow: hidden;
    background: var(--dark);
}

@media (min-width: 769px) {
    .top-bar-outer {
        max-height: 56px;
        transition: max-height 0.28s ease;
    }

    .site-header.top-bar-hidden .top-bar-outer {
        max-height: 0;
    }
}

.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-hours,
.top-bar-call {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-bar-hours i {
    color: var(--accent);
    font-size: 0.9rem;
}

.top-bar-call span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.top-bar-call a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: rgba(234, 179, 8, 0.2);
}

.top-bar-call a:hover,
.top-bar-call a:focus-visible {
    color: #facc15;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 16px rgba(26,95,107,0.10);
    border-bottom: 2px solid var(--light);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.logo-img { height: 46px; width: auto; flex-shrink: 0; }

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.logo-text-short { display: none; }

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 7px 14px;
    border-radius: 6px;
    transition: 0.25s;
    letter-spacing: 0.2px;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--light);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    flex-shrink: 0;
    padding: 4px;
    line-height: 1;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(15,58,66,0.95) 0%, rgba(26,95,107,0.88) 100%),
        url('https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&q=80&w=1400');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(234,179,8,0.18);
    border: 1px solid rgba(234,179,8,0.5);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: 1.08rem;
    margin-bottom: 34px;
    opacity: 0.88;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; }

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.25s;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(234,179,8,0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: var(--white);
    background: rgba(255,255,255,0.07);
}
.btn-outline:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.btn-full {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
}
.btn-full:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Sections */
.section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: 2.1rem; color: var(--primary); font-weight: 800; letter-spacing: -0.5px; }
.section-header p { color: var(--text-light); margin-top: 10px; font-size: 1rem; }
.underline {
    width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    margin: 12px auto 0;
    border-radius: 2px;
}
.bg-light { background: var(--light); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

/* Cards */
.card {
    background: var(--white);
    padding: 32px 26px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: 0.3s;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.icon-box {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--light), #d0edf2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: 0.3s;
}
.card:hover .icon-box { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); }

.card h3 { margin-bottom: 10px; color: var(--primary); font-size: 1.1rem; font-weight: 700; }
.card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }

/* About / Director Section */
.about-section { padding: 70px 0; }

.director-card {
    width: 100%;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 56px;
}

.col-img {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.director-photo-wrap {
    position: relative;
    display: inline-block;
}

.director-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 3px solid var(--accent);
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

.founder-img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: block;
    position: relative;
    z-index: 1;
    border: 3px solid var(--white);
    background: var(--white);
}

.col-text { flex: 1; }

.tag {
    display: inline-block;
    color: var(--primary);
    background: var(--light);
    border: 1px solid rgba(26,95,107,0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.director-heading,
.col-text h2 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.director-name { font-size: 1.5rem; margin-top: 2px; color: var(--dark); font-weight: 700; }

.director-title {
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 18px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.director-title-icon {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.director-divider {
    display: none;
}

.about-p { margin-bottom: 14px; color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }
.about-p:last-child { margin-bottom: 0; }

/* Contact Section */
.detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.detail-icon {
    width: 42px; height: 42px;
    background: var(--light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.detail-item i { font-size: 1.1rem; color: var(--primary); }
.detail-item h4 { color: var(--primary); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.detail-item p { color: var(--text-light); font-size: 0.92rem; }

.contact-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, text-decoration-color 0.2s;
    -webkit-tap-highlight-color: rgba(26, 95, 107, 0.15);
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-link:active {
    color: var(--primary-light);
}

.form-card {
    background: var(--white);
    padding: 20px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}

.form-field {
    margin-bottom: 10px;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.form-field .required {
    color: #dc2626;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
    margin-bottom: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,95,107,0.08);
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid {
    border-color: #dc2626;
    background: #fffbfb;
}

.field-error {
    display: none;
    font-size: 0.72rem;
    color: #dc2626;
    margin-top: 3px;
    line-height: 1.3;
}

.field-error:not(:empty) {
    display: block;
}

.form-alert {
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.form-alert.show {
    display: block;
}

.form-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-form textarea {
    resize: vertical;
    min-height: 88px;
}

#contact-submit {
    position: relative;
    margin-top: 2px;
    padding: 10px 20px;
}

#contact-submit .btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: form-spin 0.7s linear infinite;
}

#contact-submit.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

#contact-submit.is-loading .btn-label {
    visibility: hidden;
}

#contact-submit.is-loading .btn-spinner {
    display: block;
}

@keyframes form-spin {
    to { transform: rotate(360deg); }
}

/* Shadow utility */
.shadow { box-shadow: var(--shadow); }

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 14px 0;
    text-align: center;
}
.footer p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Fixes */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .flex-row { gap: 36px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Fixed header on mobile — no sticky/transform (prevents scroll gap) */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .top-bar-outer {
        position: static;
        transform: none;
        transition: none;
    }

    .site-header.top-bar-hidden .top-bar-outer {
        display: none;
    }

    .top-bar {
        padding: 8px 0;
        font-size: 0.72rem;
    }

    .top-bar-flex {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }

    .top-bar-hours,
    .top-bar-call {
        justify-content: center;
        gap: 6px;
    }

    .navbar { padding: 8px 0; }

    .logo-img { height: 38px; }
    .logo-area { gap: 8px; flex: 1; min-width: 0; }
    .logo-text { font-size: 0.95rem; white-space: nowrap; }

    .menu-toggle { display: flex; align-items: center; justify-content: center; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        text-align: center;
        border-top: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 4px 0; }
    .nav-links a { display: block; padding: 10px; }

    .hero { padding: 56px 0 52px; }
    .hero-badge {
        font-size: 0.65rem;
        letter-spacing: 1px;
        padding: 5px 12px;
        max-width: 92%;
        line-height: 1.4;
    }
    .hero h1 { font-size: 1.85rem; line-height: 1.25; }
    .hero p { font-size: 0.95rem; margin-bottom: 28px; padding: 0 4px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 85%; max-width: 280px; text-align: center; }

    .flex-row, .grid-3, .grid-2, .form-row {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .section { padding: 50px 0; }

    /* Director section — mobile card layout */
    .about-section {
        padding: 36px 0 44px;
        background: linear-gradient(165deg, #e8f6f8 0%, var(--light) 45%, #f8fbfc 100%);
    }

    .director-card {
        background: var(--white);
        border-radius: 20px;
        padding: 26px 20px 24px;
        box-shadow: 0 12px 40px rgba(26, 95, 107, 0.12);
        border: 1px solid rgba(26, 95, 107, 0.08);
        max-width: 420px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }

    .director-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }

    .about-director-row {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }

    .col-img {
        justify-content: center;
        margin-bottom: 0;
    }

    .director-photo-wrap {
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .director-photo-wrap::before {
        display: block;
        inset: -5px;
        border: 2px solid var(--accent);
        border-radius: 16px;
        opacity: 0.85;
    }

    .founder-img {
        width: 155px;
        height: 195px;
        border-radius: 14px;
        border: 2px solid var(--white);
        box-shadow: 0 10px 32px rgba(26, 95, 107, 0.22);
        object-fit: cover;
        object-position: center 12%;
        filter: contrast(1.04) brightness(1.03);
    }

    .col-text {
        text-align: center;
    }

    .col-text .tag {
        margin-bottom: 10px;
        font-size: 0.68rem;
    }

    .director-heading,
    .col-text h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 6px;
        white-space: nowrap;
    }

    .director-name {
        font-size: 1.15rem;
        margin-top: 0;
        color: var(--primary);
    }

    .director-title {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        font-size: 0.82rem;
        margin-bottom: 0;
        padding: 0 4px;
        gap: 6px;
    }

    .director-divider {
        display: block;
        width: 44px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        margin: 14px auto 16px;
        border-radius: 2px;
    }

    .about-p {
        text-align: left;
        font-size: 0.88rem;
        line-height: 1.75;
        margin-bottom: 12px;
        padding: 0 2px;
    }
}

@media (max-width: 520px) {
    .logo-text-full { display: none; }
    .logo-text-short {
        display: inline;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .hero h1 { font-size: 1.65rem; }
    .hero-badge { font-size: 0.6rem; letter-spacing: 0.8px; }

    .director-heading,
    .col-text h2 { font-size: 1.15rem; }

    .founder-img {
        width: 140px;
        height: 176px;
        object-position: center 10%;
    }

    .director-card {
        padding: 22px 16px 20px;
        border-radius: 18px;
    }
}
