:root {
    --color-primary: #0f5c8c;
    --color-primary-dark: #0a3d5e;
    --color-accent: #f2a71b;
    --color-dark: #142433;
    --color-light: #f5f8fa;
    --color-text: #34495e;
    font-size: 16px;
}

/* Scroll animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
}

.scroll-animate.active {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.active.from-left {
    animation-name: slideInFromLeft;
}

.scroll-animate.active.from-right {
    animation-name: slideInFromRight;
}

.scroll-animate.active.from-bottom {
    animation-name: slideInFromBottom;
}

.scroll-animate.active.from-top {
    animation-name: slideInFromTop;
}

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-animate.active {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Stagger effects for elements in sequence */
.hero-text .scroll-animate:nth-child(1) { animation-delay: 0s; }
.hero-text .scroll-animate:nth-child(2) { animation-delay: 0.15s; }
.hero-text .scroll-animate:nth-child(3) { animation-delay: 0.3s; }
.hero-text .scroll-animate:nth-child(4) { animation-delay: 0.45s; }

.services-grid .scroll-animate:nth-child(1) { animation-delay: 0s; }
.services-grid .scroll-animate:nth-child(2) { animation-delay: 0.1s; }
.services-grid .scroll-animate:nth-child(3) { animation-delay: 0.2s; }
.services-grid .scroll-animate:nth-child(4) { animation-delay: 0.3s; }
.services-grid .scroll-animate:nth-child(5) { animation-delay: 0.4s; }
.services-grid .scroll-animate:nth-child(6) { animation-delay: 0.5s; }

.reasons-grid .scroll-animate { animation-delay: 0.1s; }
.reasons-grid .scroll-animate:nth-child(1) { animation-delay: 0s; }
.reasons-grid .scroll-animate:nth-child(2) { animation-delay: 0.1s; }
.reasons-grid .scroll-animate:nth-child(3) { animation-delay: 0.2s; }
.reasons-grid .scroll-animate:nth-child(4) { animation-delay: 0.3s; }
.reasons-grid .scroll-animate:nth-child(5) { animation-delay: 0.4s; }

.stats-inner .scroll-animate:nth-child(1) { animation-delay: 0s; }
.stats-inner .scroll-animate:nth-child(2) { animation-delay: 0.15s; }
.stats-inner .scroll-animate:nth-child(3) { animation-delay: 0.3s; }

.contact-list .scroll-animate:nth-child(1) { animation-delay: 0s; }
.contact-list .scroll-animate:nth-child(2) { animation-delay: 0.1s; }
.contact-list .scroll-animate:nth-child(3) { animation-delay: 0.2s; }
.contact-list .scroll-animate:nth-child(4) { animation-delay: 0.3s; }

.about-page-text .scroll-animate:nth-child(1) { animation-delay: 0s; }
.about-page-text .scroll-animate:nth-child(2) { animation-delay: 0.15s; }
.about-page-text .scroll-animate:nth-child(3) { animation-delay: 0.3s; }
.about-page-text .scroll-animate:nth-child(4) { animation-delay: 0.45s; }

.page-hero .scroll-animate:nth-child(1) { animation-delay: 0s; }
.page-hero .scroll-animate:nth-child(2) { animation-delay: 0.15s; }

.appointment-form .scroll-animate:nth-child(1) { animation-delay: 0s; }
.appointment-form .scroll-animate:nth-child(2) { animation-delay: 0.15s; }
.appointment-form .scroll-animate:nth-child(3) { animation-delay: 0.3s; }
.appointment-form .scroll-animate:nth-child(4) { animation-delay: 0.45s; }

form.scroll-animate {
    animation-delay: 0.6s;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: #fff;
}

p {
    text-align: justify;
}

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

ul {
    list-style: none;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-dark);
}

.btn-primary:hover {
    background: #d99312;
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Header */
.site-header {
    background: var(--color-primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: auto;
    height: 130px;
    max-width: 280px;
    object-fit: contain;
    margin-top: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    color: #dce6ef;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    padding: 5rem 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.badge {
    display: inline-block;
    background: rgba(242, 167, 27, 0.15);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.hero-text p {
    color: #dce6ef;
    margin-bottom: 2rem;
    max-width: 520px;
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image i {
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Inner pages */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.6rem;
    margin-top: 0.6rem;
}

.about-page {
    padding: 5rem 0;
}

.about-page-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 4rem;
    max-width: 960px;
}

.about-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: var(--color-light);
    color: var(--color-primary);
    font-size: 7rem;
    border-radius: 16px;
}

.about-page-text h2 {
    color: var(--color-dark);
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.about-page-text p + p {
    margin-top: 1.2rem;
    text-align: justify;
}

.about-page-text p {
    text-align: justify;
}

.services-page {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(15, 92, 140, 0.02) 0%, rgba(242, 167, 27, 0.02) 100%);
}

.services-page-intro {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-page-intro p {
    text-align: justify;
}

.services-page-intro h2 {
    color: var(--color-dark);
    font-size: 2rem;
    margin: 0.6rem 0 1rem;
    animation: fadeInScale 0.7s ease-out;
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-detail-grid .service-detail {
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.services-detail-grid .service-detail:nth-child(1) { animation-delay: 0.05s; }
.services-detail-grid .service-detail:nth-child(2) { animation-delay: 0.1s; }
.services-detail-grid .service-detail:nth-child(3) { animation-delay: 0.15s; }
.services-detail-grid .service-detail:nth-child(4) { animation-delay: 0.2s; }
.services-detail-grid .service-detail:nth-child(5) { animation-delay: 0.25s; }
.services-detail-grid .service-detail:nth-child(6) { animation-delay: 0.3s; }
.services-detail-grid .service-detail:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-detail {
    border: 2px solid #dce6ef;
    border-radius: 12px;
    padding: 2rem;
    background: linear-gradient(135deg, #fff 0%, rgba(242, 167, 27, 0.02) 100%);
    transition: all 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.service-detail:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(242, 167, 27, 0.12);
    transform: translateY(-3px);
}

.service-detail[open] {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, #fff 0%, rgba(242, 167, 27, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(15, 92, 140, 0.15);
}

.service-detail-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    transition: all 0.2s ease;
}

.service-detail-heading::-webkit-details-marker {
    display: none;
}

.service-detail-heading::after {
    content: '\f078';
    color: var(--color-accent);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    padding-top: 0.2rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
    font-size: 0.9rem;
}

.service-detail[open] .service-detail-heading::after {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.service-detail-content {
    padding-top: 1.2rem;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-detail-heading i {
    color: var(--color-accent);
    font-size: 1.8rem;
    padding-top: 0.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-detail[open] .service-detail-heading i {
    transform: scale(1.1);
    color: var(--color-primary);
}

.service-detail h3 {
    color: var(--color-dark);
    font-size: 1.15rem;
    transition: color 0.3s ease;
}

.service-detail[open] .service-detail h3 {
    color: var(--color-primary);
}

.service-detail-content > p {
    margin-bottom: 1.4rem;
    text-align: justify;
    line-height: 1.8;
    color: var(--color-text);
}

.service-detail-list {
    list-style: disc;
    padding-left: 1.5rem;
}

.service-detail-list li {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    padding-left: 0.5rem;
}

.service-detail-list li:hover {
    padding-left: 1rem;
    color: var(--color-primary);
}

.service-detail-list li:hover strong {
    color: var(--color-accent);
}

.service-detail-list strong {
    color: var(--color-dark);
    transition: color 0.2s ease;
}

/* Contact and appointments */
.contact-page {
    padding: 5rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-details h2,
.appointment-form h2 {
    color: var(--color-dark);
    font-size: 1.8rem;
    margin: 0.6rem 0 1rem;
}

.contact-details > p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.contact-list {
    display: grid;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.contact-list i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--color-light);
    color: var(--color-primary);
    border-radius: 10px;
}

.contact-list strong,
.contact-list span {
    display: block;
}

.contact-list strong {
    color: var(--color-dark);
}

.contact-list a:hover {
    color: var(--color-primary);
}

.appointment-form {
    background: var(--color-light);
    border-radius: 12px;
    padding: 2.2rem;
}

.appointment-form > p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #c9d7e2;
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    padding: 0.75rem 0.85rem;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-primary);
    outline: 2px solid rgba(15, 92, 140, 0.15);
}

.form-error {
    color: #b42318;
    font-size: 0.82rem;
}

.form-success {
    margin-bottom: 1.2rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: #e7f6ec;
    color: #176b3a;
}

.appointment-form .btn {
    border: 0;
    cursor: pointer;
    font: inherit;
    margin-top: 1.4rem;
}

/* Stats */
.stats {
    background: var(--color-light);
    padding: 3rem 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Section heading */
.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.section-heading p {
    text-align: justify;
}

.eyebrow {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-block;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-heading h2 {
    font-size: 2rem;
    color: var(--color-dark);
    margin: 0.6rem 0 1rem;
    animation: fadeInScale 0.7s ease-out;
}

/* Services */
.services {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.service-card {
    background: var(--color-light);
    padding: 2.2rem 1.8rem;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card p {
    text-align: justify;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 92, 140, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    color: var(--color-dark);
    margin-bottom: 0.6rem;
}

/* About */
.about {
    background: var(--color-light);
    padding: 5rem 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
}

.about-image i {
    font-size: 6rem;
    color: var(--color-primary);
}

.about-text h2 {
    color: var(--color-dark);
    font-size: 1.9rem;
    margin: 0.6rem 0 1rem;
}

.about-text p {
    text-align: justify;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.checklist i {
    color: var(--color-primary);
}

/* Reasons and purpose */
.why-us {
    padding: 5rem 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.reason-card {
    border: 1px solid #dce6ef;
    border-radius: 12px;
    padding: 1.8rem;
}

.reason-card p {
    text-align: justify;
}

.reason-card i,
.purpose i {
    color: var(--color-accent);
    font-size: 1.7rem;
}

.reason-card h3 {
    color: var(--color-dark);
    font-size: 1.05rem;
    margin: 1rem 0 0.6rem;
}

.reason-card p {
    font-size: 0.92rem;
}

.purpose {
    background: var(--color-primary-dark);
    color: #dce6ef;
    padding: 5rem 0;
}

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

.purpose h2 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0.8rem 0;
}

.purpose p {
    text-align: justify;
}

/* CTA */
.cta {
    background: var(--color-primary-dark);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.cta p {
    color: #dce6ef;
    margin-bottom: 1.8rem;
    text-align: justify;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: #b9c6d2;
    padding: 4rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col p {
    max-width: 320px;
    margin-top: 1rem;
    text-align: justify;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner,
    .about-inner,
    .about-page-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .about-page-icon {
        min-height: 200px;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: block;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .main-nav {
        position: relative;
    }

    .nav-links.open {
        display: grid;
        position: absolute;
        top: calc(100% + 1rem);
        right: 0;
        width: min(280px, 92vw);
        gap: 0;
        padding: 0.5rem;
        background: var(--color-primary-dark);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        box-shadow: 0 12px 24px rgba(10, 61, 94, 0.25);
    }

    .nav-links.open a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .nav-links.open a.active {
        border-bottom: 0;
        background: rgba(242, 167, 27, 0.12);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-page,
    .about-page {
        padding: 3.5rem 0;
    }

    .service-detail {
        padding: 1.5rem;
    }

    .contact-page {
        padding: 3.5rem 0;
    }

    .appointment-form {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid,
    .purpose-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .logo img {
        height: 94px;
        max-width: 210px;
    }
}
