/* ============================================
   Nancy Y. Rodriguez-Lora, MD — Medical Website
   Style: Bold Editorial · Midnight Blue & Mint
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a2744;
    background-color: #FAFCFB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ---------- Focus ---------- */
:focus-visible {
    outline: 2px solid #6EE7B7;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0A1F3F;
    color: #FAFCFB;
    padding: 0.75rem 1.5rem;
    z-index: 200;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    line-height: 1.15;
    color: #0A1F3F;
}

em {
    font-style: italic;
    color: #0D3B4A;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn--primary {
    background: #6EE7B7;
    color: #0A1F3F;
    padding: 0.875rem 2rem;
    border: 2px solid #6EE7B7;
}
.btn--primary:hover {
    background: #3DD8A0;
    border-color: #3DD8A0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(110, 231, 183, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #FAFCFB;
    padding: 0.875rem 2rem;
    border: 2px solid rgba(250, 252, 251, 0.5);
}
.btn--ghost:hover {
    border-color: #FAFCFB;
    background: rgba(250, 252, 251, 0.1);
}

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

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

/* ---------- Eyebrow ---------- */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.eyebrow-line {
    display: block;
    width: 40px;
    height: 2px;
    background: #6EE7B7;
    flex-shrink: 0;
}

.section-eyebrow span {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0D3B4A;
}

/* ---------- Section Headline ---------- */
.section-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #3D5A80;
    max-width: 560px;
    line-height: 1.7;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 31, 63, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(110, 231, 183, 0.15);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #6EE7B7;
    color: #0A1F3F;
    font-family: 'Playfair Display', serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #FAFCFB;
}

.logo-location {
    font-size: 0.6875rem;
    color: rgba(250, 252, 251, 0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(250, 252, 251, 0.8);
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: #6EE7B7;
}

.nav-links a::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #FAFCFB;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A1F3F;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13, 59, 74, 0.6) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(110, 231, 183, 0.08) 0%, transparent 60%),
        url('https://images.pexels.com/photos/8830486/pexels-photo-8830486.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: 0.35;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 31, 63, 0.85) 0%,
        rgba(10, 31, 63, 0.70) 50%,
        rgba(10, 31, 63, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-eyebrow .eyebrow-line {
    background: rgba(110, 231, 183, 0.6);
}

.hero-eyebrow span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(110, 231, 183, 0.9);
}

.hero-headline {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    color: #FAFCFB;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.hero-headline em {
    color: #6EE7B7;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(250, 252, 251, 0.75);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(250, 252, 251, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

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

/* ---------- About ---------- */
.about {
    padding: 7rem 0;
    background: #FAFCFB;
}

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

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

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 24px 64px rgba(10, 31, 63, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: #6EE7B7;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.4;
}

.about-content {
    padding: 1rem 0;
}

.about-content p {
    font-size: 1.0625rem;
    color: #3D5A80;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-credentials {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(10, 31, 63, 0.1);
}

.credential-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.credential-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0D3B4A;
}

.credential-value {
    font-size: 1rem;
    color: #1a2744;
}

/* ---------- Services ---------- */
.services {
    padding: 7rem 0;
    background: #0A1F3F;
}

.services .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services .section-eyebrow {
    justify-content: center;
}

.services .section-headline {
    color: #FAFCFB;
}

.services .section-subtitle {
    color: rgba(250, 252, 251, 0.65);
    margin: 0 auto;
}

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

.service-card {
    background: rgba(250, 252, 251, 0.04);
    border: 1px solid rgba(110, 231, 183, 0.15);
    border-radius: 12px;
    padding: 2.25rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: rgba(250, 252, 251, 0.08);
    border-color: rgba(110, 231, 183, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 231, 183, 0.12);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #6EE7B7;
}

.service-title {
    font-size: 1.375rem;
    color: #FAFCFB;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: rgba(250, 252, 251, 0.6);
    line-height: 1.7;
}

/* ---------- Approach ---------- */
.approach {
    padding: 7rem 0;
    background: #FAFCFB;
}

.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.approach-content {
    order: 1;
}

.approach-text {
    font-size: 1.0625rem;
    color: #3D5A80;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.approach-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: #1a2744;
    line-height: 1.6;
}

.approach-bullet {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #6EE7B7;
    line-height: 1.4;
    flex-shrink: 0;
}

.approach-image {
    order: 2;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 5/6;
    box-shadow: 0 24px 64px rgba(10, 31, 63, 0.12);
}

.approach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Patient Info ---------- */
.patient-info {
    padding: 7rem 0;
    background: #F0F7F4;
}

.patient-info .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.patient-info .section-eyebrow {
    justify-content: center;
}

.patient-info .section-headline {
    color: #0A1F3F;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: #FAFCFB;
    border: 1px solid rgba(10, 31, 63, 0.08);
    border-radius: 12px;
    padding: 2.25rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(110, 231, 183, 0.5);
    box-shadow: 0 8px 32px rgba(10, 31, 63, 0.08);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A1F3F;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: #6EE7B7;
}

.info-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.9375rem;
    color: #3D5A80;
    line-height: 1.7;
}

.info-card a {
    color: #0D3B4A;
    font-weight: 600;
    transition: color 0.2s ease;
}
.info-card a:hover {
    color: #6EE7B7;
}

.info-card-note {
    font-size: 0.8125rem !important;
    color: #6B8A6E !important;
    margin-top: 0.5rem !important;
}

/* ---------- Contact ---------- */
.contact {
    padding: 7rem 0;
    background: #0A1F3F;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding-top: 1rem;
}

.contact-info .section-eyebrow {
    margin-bottom: 1.5rem;
}

.contact-info .section-headline {
    color: #FAFCFB;
    margin-bottom: 1.25rem;
}

.contact-text {
    font-size: 1.0625rem;
    color: rgba(250, 252, 251, 0.7);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(110, 231, 183, 0.7);
}

.contact-detail-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    color: #FAFCFB;
}

.contact-detail-value a {
    color: #FAFCFB;
    transition: color 0.2s ease;
}
.contact-detail-value a:hover {
    color: #6EE7B7;
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
    background: rgba(250, 252, 251, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form-title {
    font-size: 1.5rem;
    color: #FAFCFB;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(250, 252, 251, 0.6);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(250, 252, 251, 0.07);
    border: 1px solid rgba(110, 231, 183, 0.25);
    border-radius: 8px;
    color: #FAFCFB;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(250, 252, 251, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6EE7B7;
    background: rgba(250, 252, 251, 0.1);
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.15);
}

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

.form-note {
    font-size: 0.8125rem;
    color: rgba(250, 252, 251, 0.4);
    margin-top: 1rem;
    text-align: center;
}

/* Success state */
.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 231, 183, 0.15);
    border-radius: 50%;
    color: #6EE7B7;
}

.success-title {
    font-size: 1.5rem;
    color: #FAFCFB;
    margin-bottom: 0.75rem;
}

.form-success p {
    color: rgba(250, 252, 251, 0.65);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #061428;
    padding: 3rem 0;
    border-top: 1px solid rgba(110, 231, 183, 0.1);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(110, 231, 183, 0.2);
    color: #6EE7B7;
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FAFCFB;
}

.footer-tagline {
    font-size: 0.75rem;
    color: rgba(250, 252, 251, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact {
    font-size: 0.875rem;
    color: rgba(250, 252, 251, 0.55);
    line-height: 1.8;
}

.footer-contact a {
    color: #6EE7B7;
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: #3DD8A0;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250, 252, 251, 0.08);
    width: 100%;
    max-width: 600px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(250, 252, 251, 0.35);
    line-height: 1.7;
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.6875rem !important;
    color: rgba(250, 252, 251, 0.25) !important;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        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; }
}

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

@media (max-width: 900px) {
    .about-grid,
    .approach-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .approach-content {
        order: 2;
    }
    .approach-image {
        order: 1;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 31, 63, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(110, 231, 183, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }
    
    .nav-links a:hover {
        background: rgba(110, 231, 183, 0.08);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .hero {
        padding: 7rem 1.25rem 4rem;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .about-accent {
        display: none;
    }
    
    .credential-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .about,
    .services,
    .approach,
    .patient-info,
    .contact {
        padding: 4rem 0;
    }
    
    .contact-form-wrap {
        padding: 1.5rem;
    }
}
