/* ============================================
   Randy L Preshaw PhD — Medical & Health
   Clean Minimalist | Charcoal + Coral
   ============================================ */

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

:root {
    --charcoal: #374151;
    --charcoal-dark: #1f2937;
    --charcoal-light: #6b7280;
    --coral: #FF6B57;
    --coral-light: #FF8A76;
    --coral-dark: #E55543;
    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --gray-50: #F3F4F6;
    --gray-100: #E5E7EB;
    --gray-200: #D1D5DB;
    --gray-300: #9CA3AF;
    --gray-400: #6B7280;
    --gray-500: #4B5563;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--gray-100);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--coral);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform var(--transition);
}

.nav-logo:hover .logo-mark {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.nav.scrolled .logo-text {
    color: var(--charcoal-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav.scrolled .hamburger,
.nav.scrolled .hamburger::before,
.nav.scrolled .hamburger::after {
    background: var(--charcoal);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

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

.nav.scrolled .nav-link {
    color: var(--charcoal-light);
}

.nav.scrolled .nav-link:hover {
    color: var(--charcoal);
}

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    color: var(--white) !important;
    background: var(--coral);
    padding: 10px 22px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--coral-dark);
    transform: translateY(-1px);
}

.nav.scrolled .nav-cta {
    color: var(--white) !important;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(31, 41, 55, 0.82) 0%,
        rgba(55, 65, 81, 0.65) 50%,
        rgba(55, 65, 81, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    padding-top: 80px;
}

.hero-line {
    width: 60px;
    height: 2px;
    background: var(--coral);
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    max-width: 780px;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1.1s;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 100px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 87, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-white-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-white-outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- Hero Scroll ---------- */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1.5s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ---------- Section Styles ---------- */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal-dark);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--charcoal-light);
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

/* ---------- Services ---------- */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(55, 65, 81, 0.08);
    transform: translateY(-4px);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 107, 87, 0.08);
    color: var(--coral);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.75;
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--coral);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    padding: 20px 0;
}

.about-divider {
    width: 50px;
    height: 2px;
    background: var(--coral);
    margin: 24px 0;
}

.about-text {
    font-size: 1rem;
    color: var(--charcoal-light);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-100);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    line-height: 1.4;
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(31, 41, 55, 0.88) 0%,
        rgba(55, 65, 81, 0.78) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 107, 87, 0.08);
    color: var(--coral);
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-value:hover {
    color: var(--coral);
}

/* ---------- Form ---------- */
.contact-form-wrapper {
    background: var(--off-white);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal-dark);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 87, 0.1);
}

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

.form-note {
    font-size: 12px;
    color: var(--gray-300);
    margin-top: 16px;
    text-align: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.form-success.active {
    display: block;
    animation: fadeUp 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 87, 0.1);
    color: var(--coral);
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--charcoal-dark);
    margin-bottom: 10px;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
}

/* ---------- Map ---------- */
.map-section {
    border-top: 1px solid var(--gray-100);
}

.map-container {
    height: 350px;
    overflow: hidden;
    filter: grayscale(0.4) contrast(1.05);
    transition: filter var(--transition);
}

.map-container:hover {
    filter: grayscale(0) contrast(1);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-mark {
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.footer-brand .logo-text {
    font-size: 17px;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a:hover {
    color: var(--coral);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p,
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a:hover {
    color: var(--coral);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(31, 41, 55, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .nav-cta {
        font-size: 15px;
        padding: 14px 32px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 28px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}
