/* ============================================
   Pineda Ramon Pediatrics — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
}

::selection {
    background: #ffcf15;
    color: #0f2751;
}

/* ---- Geometric Background Shapes ---- */
.geo-shapes {
    pointer-events: none;
}

.geo-shape {
    position: absolute;
    opacity: 0.04;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #ffcf15;
    top: -200px;
    right: -150px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #0f2751;
    bottom: 10%;
    left: -80px;
}

.geo-square-1 {
    width: 150px;
    height: 150px;
    background: #ffcf15;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #0f2751;
    top: 60%;
    left: 3%;
    transform: rotate(-15deg);
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #0f2751 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 25%;
    right: 8%;
    opacity: 0.06;
}

/* ---- Navbar ---- */
.nav-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 39, 81, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 4px 30px rgba(15, 39, 81, 0.1);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #0f2751;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #e6b800;
    background: rgba(255, 207, 21, 0.08);
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: #0f2751;
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-call:hover {
    background: #1e3d72;
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(15, 39, 81, 0.06);
}

.mobile-menu-btn .bar {
    width: 22px;
    height: 2.5px;
    background: #0f2751;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 39, 81, 0.08);
    animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #0f2751;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background: rgba(255, 207, 21, 0.08);
    color: #e6b800;
}

.mobile-call-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #0f2751;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-call-btn:hover {
    background: #1e3d72;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #030a18 0%, #0f2751 40%, #1e3d72 70%, #2e5291 100%);
    min-height: 100vh;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(255, 207, 21, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(46, 82, 145, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

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

.hero-shape-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 207, 21, 0.12);
    border-radius: 50%;
    top: 10%;
    left: -5%;
}

.hero-shape-2 {
    width: 180px;
    height: 180px;
    background: rgba(255, 207, 21, 0.06);
    transform: rotate(45deg);
    top: 20%;
    right: 5%;
}

.hero-shape-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 207, 21, 0.1);
    border-radius: 50%;
    bottom: 20%;
    right: 15%;
}

.hero-shape-4 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 207, 21, 0.07);
    bottom: 30%;
    left: 10%;
    transform: rotate(-20deg);
}

.hero-shape-5 {
    width: 60px;
    height: 60px;
    background: rgba(255, 207, 21, 0.08);
    border-radius: 12px;
    top: 40%;
    left: 8%;
    transform: rotate(30deg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 207, 21, 0.12);
    border: 1px solid rgba(255, 207, 21, 0.25);
    border-radius: 50px;
    color: #ffe78a;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    line-height: 1.7;
}

.hero-buttons {
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ffcf15;
    color: #0f2751;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 60px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 207, 21, 0.3);
}

.btn-primary:hover {
    background: #ffe78a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 207, 21, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 60px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-stats {
    gap: 1rem;
}

.hero-stat {
    text-align: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(6px); }
}

/* ---- Section Shared ---- */
.section-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e6b800;
    margin-bottom: 1rem;
}

.section-label-light {
    color: #ffe78a;
}

.section-title {
    margin-bottom: 1rem;
}

.section-desc {
    line-height: 1.7;
}

/* ---- Services Section ---- */
.services {
    background: #f0f3f9;
    position: relative;
}

.services-grid {
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(15, 39, 81, 0.06);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 39, 81, 0.1);
}

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

.service-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0f2751, #1e3d72);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcf15;
    margin-bottom: 1.25rem;
}

.service-card-title {
    margin-top: 0;
}

.service-card-desc {
    font-size: 0.9375rem;
}

/* ---- About Section ---- */
.about {
    background: #ffffff;
    position: relative;
}

.about-bg-accent {
    background: #fffbea;
}

.about-images {
    position: relative;
    min-height: 500px;
}

.about-img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(15, 39, 81, 0.15);
}

.about-img-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 39, 81, 0.2);
    border: 5px solid #ffffff;
    max-width: 55%;
}

.about-img-float-img {
    width: 100%;
    height: auto;
    display: block;
}

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

.about-deco-1 {
    width: 80px;
    height: 80px;
    background: #ffcf15;
    border-radius: 50%;
    top: -20px;
    left: -20px;
    opacity: 0.6;
}

.about-deco-2 {
    width: 40px;
    height: 40px;
    background: #0f2751;
    transform: rotate(45deg);
    bottom: 40px;
    right: 30px;
    opacity: 0.15;
}

.values-grid {
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 207, 21, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-text {
    font-size: 0.9375rem;
}

/* ---- New Patients Section ---- */
.new-patients {
    background: #030a18;
    position: relative;
}

.new-patients-bg {
    background: linear-gradient(135deg, #030a18 0%, #0f2751 100%);
}

.np-shape {
    position: absolute;
    pointer-events: none;
}

.np-shape-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 207, 21, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.np-shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 207, 21, 0.04);
    transform: rotate(45deg);
    bottom: 10%;
    left: 5%;
}

.np-shape-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
}

.np-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.np-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -10%;
    width: 20%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 207, 21, 0.3), transparent);
    display: none;
}

@media (min-width: 768px) {
    .np-step:not(:last-child)::after {
        display: block;
    }
}

.np-step-number {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 207, 21, 0.12);
    margin-bottom: 1rem;
}

.np-step-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 207, 21, 0.1);
    border: 1px solid rgba(255, 207, 21, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcf15;
    margin: 0 auto 1.25rem;
}

.np-step-title {
    margin-top: 0;
}

.insurance-banner {
    width: 100%;
}

/* ---- Testimonials Section ---- */
.testimonials {
    background: #f0f3f9;
    position: relative;
}

.testimonials-grid {
    gap: 1.5rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(15, 39, 81, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 39, 81, 0.08);
}

.testimonial-card-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 207, 21, 0.08) 50%);
    border-radius: 0 20px 0 20px;
    pointer-events: none;
}

.testimonial-quote-icon {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

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

.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0f2751, #1e3d72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author-name {
    display: block;
    font-size: 0.9375rem;
}

.testimonial-author-location {
    display: block;
    font-size: 0.8125rem;
}

/* ---- Contact Section ---- */
.contact {
    background: #ffffff;
    position: relative;
}

.contact-grid {
    gap: 2rem;
}

.contact-info-card {
    background: #ffffff;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 207, 21, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 39, 81, 0.08);
}

.contact-form-card {
    background: linear-gradient(135deg, #030a18, #0f2751);
}

.form-row {
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #ffcf15;
    background: rgba(255, 255, 255, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: #0f2751;
    color: #ffffff;
}

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

.btn-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ffcf15;
    color: #0f2751;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 207, 21, 0.25);
}

.btn-form-submit:hover {
    background: #ffe78a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 207, 21, 0.35);
}

.form-success {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- Footer ---- */
.footer {
    background: #030a18;
    position: relative;
}

.footer-geo {
    pointer-events: none;
}

.footer-circle-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 207, 21, 0.04);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.footer-circle-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 207, 21, 0.02);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffcf15;
}

.footer-bottom {
    gap: 0;
}

/* ---- Reveal Animation ---- */
.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) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .about-img-float {
        right: 0;
        bottom: -20px;
    }
    
    .about-img-float {
        max-width: 60%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .about-images {
        min-height: 400px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .about-images {
        min-height: 450px;
    }
}

@media (min-width: 1025px) {
    .np-step:not(:last-child)::after {
        display: block;
    }
}
