/* ============================================
   Center For Family Health — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric Background Decorations --- */
.fixed.inset-0.pointer-events-none {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(17, 34, 64, 0.05) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    pointer-events: none;
}

.geo-triangle--1 {
    border-width: 0 0 60px 60px;
    border-color: transparent transparent rgba(245, 166, 35, 0.1) transparent;
    top: 60%;
    right: 5%;
    transform: rotate(45deg);
}

.geo-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(17, 34, 64, 0.1) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    pointer-events: none;
    bottom: 30%;
    left: 8%;
}

/* --- Section Geometric Elements --- */
.section-geo {
    position: absolute;
    pointer-events: none;
}

.section-geo--circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(245, 166, 35, 0.08);
    top: -200px;
    right: -200px;
}

.section-geo--circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.04);
    bottom: -100px;
    left: -100px;
}

.section-geo--stripe {
    width: 200px;
    height: 200px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
    top: 20%;
    left: -50px;
}

.section-geo--dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    bottom: 10%;
    right: 5%;
}

.section-geo--navy-square {
    width: 200px;
    height: 200px;
    background: rgba(17, 34, 64, 0.15);
    top: 10%;
    right: -50px;
    transform: rotate(15deg);
}

.section-geo--white-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -100px;
    left: -100px;
}

.section-geo--gold-dots {
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.2) 2px, transparent 2px);
    background-size: 14px 14px;
    top: 15%;
    left: 3%;
}

.section-geo--navy-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(17, 34, 64, 0.04);
    bottom: -150px;
    right: -150px;
}

.section-geo--gold-bar {
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, #f5a623, #f7b84e);
    border-radius: 4px;
    top: 30%;
    left: -30px;
    transform: rotate(-30deg);
}

.section-geo--gold-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(245, 166, 35, 0.08);
    top: 10%;
    right: -80px;
}

/* --- Navbar --- */
.nav-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 34, 64, 0.06);
    transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 4px 30px rgba(17, 34, 64, 0.1);
}

.nav-logo-text {
    transition: color 0.2s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5a623;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #d4891a;
}

/* --- Buttons --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5a623 0%, #d4891a 100%);
    color: #0a1628;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.45);
    background: linear-gradient(135deg, #f7b84e 0%, #e8991f 100%);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-navy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #112240;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 34, 64, 0.25);
}

.btn-navy:hover {
    transform: translateY(-2px);
    background: #1a3a5c;
    box-shadow: 0 8px 25px rgba(17, 34, 64, 0.35);
}

.btn-navy:active {
    transform: translateY(0);
}

/* --- Hero --- */
.hero-section {
    background: linear-gradient(135deg, #f8f6f0 0%, #ffffff 50%, #f0ede4 100%);
    min-height: 100vh;
    position: relative;
}

.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo--square {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f5a623 0%, #f7b84e 100%);
    border-radius: 24px;
    top: 15%;
    left: 3%;
    transform: rotate(25deg);
    opacity: 0.15;
}

.hero-geo--circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(245, 166, 35, 0.15);
    bottom: 10%;
    right: 2%;
}

.hero-geo--dot {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(17, 34, 64, 0.12) 2px, transparent 2px);
    background-size: 10px 10px;
    top: 40%;
    right: 8%;
}

.hero-geo--bar {
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, #112240, #234b70);
    border-radius: 3px;
    bottom: 25%;
    left: 6%;
    transform: rotate(-20deg);
    opacity: 0.2;
}

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

.hero-image-container {
    position: relative;
    z-index: 10;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(245, 166, 35, 0.3);
    border-radius: 3rem;
    z-index: -1;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 120px;
    height: 120px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 6px,
        rgba(245, 166, 35, 0.2) 6px,
        rgba(245, 166, 35, 0.2) 12px
    );
    border-radius: 16px;
    z-index: -1;
}

.hero-img {
    object-fit: cover;
}

.hero-float-card {
    animation: float 6s ease-in-out infinite;
}

.hero-float-badge {
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* --- Services --- */
.services-section {
    position: relative;
    overflow: hidden;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #f7b84e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-4px);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f5a623 0%, #d4891a 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.service-card-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f5a623, transparent);
    border-radius: 1px;
    transition: width 0.4s ease;
}

.service-card:hover .service-card-line {
    width: 60px;
}

/* --- About --- */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-image-col {
    position: relative;
}

.about-image-main {
    position: relative;
    z-index: 2;
}

.about-image-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(17, 34, 64, 0.2);
}

.about-geo {
    position: absolute;
    pointer-events: none;
}

.about-geo--circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.08);
    top: -40px;
    left: -40px;
    z-index: 1;
}

.about-geo--square {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.06), rgba(17, 34, 64, 0.02));
    border-radius: 16px;
    bottom: 20%;
    right: -30px;
    z-index: 1;
    transform: rotate(20deg);
}

.about-img {
    box-shadow: 0 25px 80px rgba(17, 34, 64, 0.15);
}

.about-feature {
    transition: transform 0.3s ease;
}

.about-feature:hover {
    transform: translateX(4px);
}

/* --- Why Us --- */
.why-section {
    position: relative;
    overflow: hidden;
}

.why-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* --- Testimonials --- */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-4px);
}

.testimonial-card-quote {
    margin-bottom: 1.25rem;
}

.testimonial-card-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card-author .w-12 {
    flex-shrink: 0;
}

/* --- CTA --- */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: linear-gradient(135deg, #112240 0%, #0a1628 100%);
    border-radius: 32px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(17, 34, 64, 0.25);
}

.cta-geo {
    position: absolute;
    pointer-events: none;
}

.cta-geo--circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(245, 166, 35, 0.1);
    top: -100px;
    right: -100px;
}

.cta-geo--circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.06);
    bottom: -80px;
    left: -80px;
}

.cta-geo--triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 40px;
    border-color: transparent transparent rgba(245, 166, 35, 0.1) transparent;
    top: 10%;
    left: 5%;
    transform: rotate(30deg);
}

/* --- Contact --- */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-info-card {
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form-card {
    position: relative;
}

.contact-input {
    transition: all 0.3s ease;
}

.contact-input:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5a623, #f7b84e, #f5a623);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #112240;
    color: #f5a623;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(17, 34, 64, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #f5a623;
    color: #0a1628;
    transform: translateY(-4px);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-float-card,
    .hero-float-badge {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    position: relative;
    z-index: 50;
}

.menu-line {
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5a623;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
    }

    .hero-geo--square {
        display: none;
    }

    .hero-geo--circle {
        width: 120px;
        height: 120px;
    }

    .hero-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }

    .hero-float-badge {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-top: 0.5rem;
    }

    .about-image-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .section-geo {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .quick-stats {
        flex-direction: column;
        gap: 1rem !important;
    }
}
