/* ===================================
   CPC Pediatric Group — Custom Styles
   Charcoal + Coral Color Palette
   =================================== */

:root {
    --charcoal-900: #121212;
    --charcoal-800: #1E1E24;
    --charcoal-700: #2A2A35;
    --charcoal-600: #3A3A4A;
    --charcoal-500: #4A4A5A;
    --coral-500: #FF5C2E;
    --coral-400: #FF7B56;
    --coral-300: #FFA88F;
    --coral-100: #FFE0D9;
}

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

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--charcoal-900);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* ===================================
   Geometric Background Shapes
   =================================== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle {
    border-radius: 50%;
}

.geo-square {
    border-radius: 24px;
}

.geo-triangle {
    border: none;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 92, 46, 0.05);
}

.geo-coral-1 {
    background: radial-gradient(circle, rgba(255, 92, 46, 0.3) 0%, transparent 70%);
}

.geo-coral-2 {
    background: rgba(255, 123, 86, 0.15);
}

.geo-coral-3 {
    background: radial-gradient(circle, rgba(255, 168, 143, 0.2) 0%, transparent 70%);
}

.geo-coral-4 {
    border-bottom-color: rgba(255, 123, 86, 0.05) !important;
}

/* ===================================
   Navbar
   =================================== */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(18, 18, 18, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all duration-300;
}

#navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu button animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobileMenu {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                pointer-events 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--coral-400), var(--coral-300));
    transition: width 0.3s ease;
}

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

/* ===================================
   Service Cards
   =================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

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

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

/* ===================================
   Testimonial Cards
   =================================== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: rgba(255, 92, 46, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* ===================================
   Scroll Reveal Animations
   Progressive enhancement — only active
   when JS runs and user prefers motion
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }

    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }
}

/* ===================================
   Form Styles
   =================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--charcoal-500);
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal-900);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

/* ===================================
   Selection Color
   =================================== */
::selection {
    background: rgba(255, 92, 46, 0.3);
    color: white;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .geo-shape {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .geo-shape {
        opacity: 0.3;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .geo-shape,
    .animate-bounce {
        display: none;
    }
}
