/* ============================================
   Dr. Jarnagin's Office - Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* --- Geometric Background Shapes --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 85, 45, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(207, 170, 85, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-tri {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(212, 85, 45, 0.05);
    transform: rotate(45deg);
    pointer-events: none;
}

.geo-tri--1 {
    top: 25%;
    left: 5%;
    animation: spin-slow 30s linear infinite;
}

.geo-dots {
    position: absolute;
    top: 40%;
    right: 8%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 85, 45, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.02); }
    66% { transform: translate(-15px, 20px) scale(0.98); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* --- Hero Clip --- */
.clip-hero-right {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator span {
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

.scroll-indicator .animate-scroll-line {
    animation: scroll-line 1.5s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { opacity: 0; height: 0; }
    50% { opacity: 1; height: 32px; }
    100% { opacity: 0; height: 32px; }
}

/* --- Buttons --- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #d4552d 0%, #b8431f 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 85, 45, 0.3);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 85, 45, 0.4);
    background: linear-gradient(135deg, #e4704a 0%, #d4552d 100%);
}

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

.cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #973419;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #d4552d;
    transition: all 0.3s ease;
}

.cta-outline:hover {
    background: #d4552d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 85, 45, 0.2);
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* --- Mobile Menu --- */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Service Cards --- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* --- Section Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Focus Styles --- */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* --- Selection --- */
::selection {
    background: rgba(212, 85, 45, 0.2);
    color: #7c2d19;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .clip-hero-right {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    h1 {
        font-size: 2.75rem !important;
        line-height: 1.1 !important;
    }

    h1 span.text-3xl {
        font-size: 1.75rem !important;
    }

    .geo-circle--1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle--2 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem !important;
    }

    .cta-btn, .cta-outline {
        width: 100%;
        justify-content: center;
    }

    .flex.flex-col.sm\:flex-row {
        flex-direction: column;
    }
}

/* --- Print --- */
@media print {
    .fixed, .geo-circle, .geo-tri, .geo-dots {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
