/* ========================================
   Roger Fortman, MD — Custom Styles
   Charcoal + Coral | Vibrant Modern
======================================== */

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

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

body {
    background-color: #121217;
    color: #e2e2e5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- 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(255, 107, 74, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.04) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.geo-circle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.05) 0%, transparent 70%);
    top: 50%;
    right: 5%;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent rgba(255, 107, 74, 0.08) transparent;
    top: 40%;
    left: 5%;
    transform: rotate(-15deg);
    pointer-events: none;
}

.geo-square {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 107, 74, 0.05);
    border-radius: 24px;
    bottom: 20%;
    right: 8%;
    transform: rotate(45deg);
    pointer-events: none;
}

.geo-square--1 {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 74, 0.04);
    top: 25%;
    right: 15%;
    border-radius: 16px;
    transform: rotate(30deg);
}

/* ---- Navbar ---- */
.nav {
    background: rgba(18, 18, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-link {
    position: relative;
}

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

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

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FF6B4A;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 74, 0.3);
}

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

.btn-primary--lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
    border-radius: 14px;
}

.btn-primary--full {
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.btn-secondary--lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
    border-radius: 14px;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
}

.hero-bg {
    z-index: 0;
}

.hero-img {
    will-change: transform;
    transition: transform 8s ease;
}

.hero:hover .hero-img {
    transform: scale(1.02);
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 23, 0.92) 0%,
        rgba(18, 18, 23, 0.75) 50%,
        rgba(18, 18, 23, 0.6) 100%
    );
}

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

.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

.hero-geo--2 {
    animation-delay: -2s;
    animation-duration: 8s;
}

.hero-geo--3 {
    animation-delay: -4s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 12deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 12deg)); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---- Sections ---- */
.section {
    position: relative;
}

.section-header {
    position: relative;
    z-index: 2;
}

.section-label {
    letter-spacing: 0.12em;
}

.section-title {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    position: relative;
    z-index: 2;
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 107, 74, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 107, 74, 0.1);
}

.service-card--accent {
    background: rgba(255, 107, 74, 0.08);
    border-color: rgba(255, 107, 74, 0.2);
}

.service-card--accent:hover {
    background: rgba(255, 107, 74, 0.12);
    border-color: rgba(255, 107, 74, 0.4);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 107, 74, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B4A;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: #FF6B4A;
    color: #ffffff;
    transform: scale(1.05);
}

.service-card--accent .service-card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.service-card--accent:hover .service-card-icon {
    background: #ffffff;
    color: #FF6B4A;
}

.service-card-title {
    line-height: 1.3;
}

.service-card-desc {
    line-height: 1.7;
}

.service-card-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: #9e9ea7;
    font-weight: 500;
}

.service-card-tag--light {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e2e5;
}

/* ---- About Section ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

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

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: #FF6B4A;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(to top, rgba(18, 18, 23, 0.3) 0%, transparent 40%);
}

.about-stat-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: #FF6B4A;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 20px 60px rgba(255, 107, 74, 0.35);
}

.about-stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
}

.about-stat-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

.about-values {
    gap: 24px;
}

.about-value {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 107, 74, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B4A;
    margin-bottom: 4px;
}

.about-value-title {
    font-size: 0.9375rem;
}

.about-value-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ---- Patients Section ---- */
.patients-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .patients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.patient-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.patient-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 74, 0.2);
}

.patient-card--featured {
    background: rgba(255, 107, 74, 0.06);
    border-color: rgba(255, 107, 74, 0.15);
}

.patient-card--featured:hover {
    border-color: rgba(255, 107, 74, 0.4);
}

.patient-card-visual {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.patient-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.patient-card:hover .patient-card-img {
    transform: scale(1.08);
}

.patient-card-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 23, 0.6) 0%, transparent 60%);
}

.patient-card-content {
    padding: 24px;
}

.patient-card-title {
    line-height: 1.3;
}

.patient-card-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
}

.patient-card-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 12px;
    background: rgba(255, 107, 74, 0.2);
    border: 1px solid rgba(255, 107, 74, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    color: #FFB39E;
    font-weight: 600;
}

/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(255, 107, 74, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B4A;
}

.contact-detail-value {
    line-height: 1.4;
}

/* ---- Contact Form ---- */
.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-form-title {
    line-height: 1.3;
}

.contact-form-subtitle {
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c4c4ca;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #5a5a66;
}

.form-input:focus {
    border-color: #FF6B4A;
    background: rgba(255, 107, 74, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}

.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='%239e9ea7' 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 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-select option {
    background: #2a2a31;
    color: #e2e2e5;
}

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

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 107, 74, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B4A;
}

.form-success-text {
    line-height: 1.6;
}

/* ---- Map Section ---- */
.map-section {
    background: rgba(255, 255, 255, 0.02);
}

.map-container {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.map-container iframe {
    filter: grayscale(0.6) brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0.3) brightness(0.9) contrast(1.05);
}

/* ---- Footer ---- */
.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr auto;
        gap: 60px;
    }
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 60px;
    }
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-title {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9e9ea7 !important;
}

.footer-link {
    color: #c4c4ca;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ---- Mobile Menu ---- */
.mobile-menu-btn {
    transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    transition: color 0.2s ease;
}

/* ---- Scroll Reveal ---- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }

    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Utility: Hidden ---- */
.hidden {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 28px;
    }

    .about-stat-card {
        right: 0;
        bottom: -20px;
    }

    .about-image-accent {
        top: -12px;
        left: -12px;
        width: 70px;
        height: 70px;
    }

    .hero-headline {
        font-size: 2.75rem;
    }

    @media (min-width: 640px) {
        .hero-headline {
            font-size: 3.5rem;
        }
    }

    @media (min-width: 768px) {
        .hero-headline {
            font-size: 4.5rem;
        }
    }

    @media (min-width: 1024px) {
        .hero-headline {
            font-size: 5rem;
        }
    }

    @media (min-width: 1280px) {
        .hero-headline {
            font-size: 5.5rem;
        }
    }
}

/* ---- Focus Styles ---- */
*:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}
