/* ===== Custom Styles for Dr. Kernilde Website ===== */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ---- Hero Overlay ---- */
.hero-overlay {
    background: linear-gradient(135deg, rgba(26,17,11,0.82) 0%, rgba(45,31,20,0.70) 50%, rgba(192,96,58,0.45) 100%);
}

/* ---- Geometric Shapes ---- */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}
.geo-circle-1 {
    width: 420px; height: 420px;
    border: 3px solid #C0603A;
    border-radius: 50%;
    top: -80px; right: -80px;
    animation: geoFloat 20s ease-in-out infinite;
}
.geo-circle-2 {
    width: 200px; height: 200px;
    background: #C0603A;
    border-radius: 50%;
    bottom: 15%; right: 10%;
    animation: geoFloat 15s ease-in-out infinite reverse;
}
.geo-square-1 {
    width: 120px; height: 120px;
    border: 3px solid #E0B080;
    top: 30%; right: 5%;
    transform: rotate(45deg);
    animation: geoSpin 25s linear infinite;
}
.geo-dots {
    width: 100px; height: 100px;
    bottom: 20%; left: 5%;
    background-image: radial-gradient(circle, #E0B080 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.4;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes geoSpin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 3px; height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(253,248,240,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45,31,20,0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: #C0603A;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---- CTA Buttons ---- */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(192,96,58,0.25);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192,96,58,0.35);
}
.cta-outline {
    transition: all 0.3s ease;
}
.cta-outline:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
}

/* ---- Section Labels ---- */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C0603A;
    background: #FDF0EB;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid #F5B4A0;
}
.section-label-light {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F5B4A0;
    background: rgba(192,96,58,0.15);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(192,96,58,0.3);
}

/* ---- Section Titles ---- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #2D1F14;
    line-height: 1.15;
}
.section-title-light {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #FDF8F0;
    line-height: 1.15;
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #F5E0C8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C0603A, #E0B080);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(192,96,58,0.12);
    border-color: transparent;
}
.service-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: #FDF0EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C0603A;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-card-icon {
    background: #C0603A;
    color: white;
    transform: scale(1.05);
}
.service-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2D1F14;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.service-card-desc {
    font-size: 0.925rem;
    color: #966C3A;
    line-height: 1.7;
}
.service-card-accent {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 80px; height: 80px;
    background: #FDF0EB;
    border-radius: 50%;
    transition: all 0.4s ease;
    opacity: 0;
}
.service-card:hover .service-card-accent {
    opacity: 1;
    transform: scale(1.5);
}

/* ---- About ---- */
.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(45,31,20,0.15);
}
.about-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}
.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}
.about-float-card {
    position: absolute;
    bottom: 24px; left: -20px;
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 15px 50px rgba(45,31,20,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.about-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #2D1F14;
    font-weight: 500;
}
.about-check svg { flex-shrink: 0; }

/* ---- Approach Cards ---- */
.approach-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;
}
.approach-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(192,96,58,0.4);
    transform: translateY(-4px);
}
.approach-card-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(192,96,58,0.25);
    line-height: 1;
    margin-bottom: 1rem;
}
.approach-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FDF8F0;
    margin-bottom: 0.75rem;
}
.approach-card-desc {
    font-size: 0.925rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #F5E0C8;
    transition: all 0.3s ease;
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(192,96,58,0.1);
    border-color: transparent;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px; right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #FADCD1;
    line-height: 1;
    pointer-events: none;
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}
.testimonial-text {
    font-size: 0.975rem;
    color: #6E311E;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    font-size: 0.875rem;
    color: #C0603A;
    font-weight: 600;
}

/* ---- Contact ---- */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-info-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: #FDF0EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C0603A;
    flex-shrink: 0;
}
.contact-form {
    background: #FDF8F0;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #F5E0C8;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2D1F14;
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #E0B080;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #2D1F14;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}
.form-input::placeholder { color: #D4A06A; }
.form-input:focus {
    border-color: #C0603A;
    box-shadow: 0 0 0 3px rgba(192,96,58,0.12);
}
.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 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23966C3A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-textarea {
    resize: vertical;
    min-height: 100px;
}
.form-note { margin-top: 1rem; }

/* ---- Mobile Menu ---- */
.mobile-nav-link {
    border-radius: 12px;
}

/* ---- Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-float-card {
        left: 12px;
        bottom: 16px;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .geo-circle-1 { width: 250px; height: 250px; }
    .geo-circle-2 { width: 120px; height: 120px; }
    .geo-square-1 { width: 70px; height: 70px; }
}

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
