/* ============================================
   Scope Medical Care PC — Custom Styles
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #080f1a;

    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16), 0 8px 20px rgba(15, 23, 42, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    background: #ffffff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal-700);
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--teal-700);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* --- Header / Nav --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-100);
    transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-800);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--teal-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--teal-600);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    color: var(--slate-600);
    font-weight: 500;
    font-size: 0.938rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.nav-cta a {
    background: var(--teal-600);
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    margin-left: 8px;
}

.nav-cta a:hover {
    background: var(--teal-700);
}

.nav-icon {
    width: 16px;
    height: 16px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 24px;
    height: 2.5px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--slate-900) 0%, #0c3540 50%, var(--teal-900) 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(15, 118, 110, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--teal-300);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 560px;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--slate-300);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Float Cards */
.hero-cards {
    position: relative;
    height: 480px;
    perspective: 1000px;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.float-card--1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.float-card--2 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: -2s;
}

.float-card--3 {
    bottom: 0;
    right: 40px;
    animation-delay: -4s;
}

.float-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-card-icon svg {
    width: 24px;
    height: 24px;
}

.float-card-icon--teal {
    background: var(--teal-500);
    color: #fff;
}

.float-card-icon--white {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.float-card-body {
    display: flex;
    flex-direction: column;
}

.float-card-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.float-card-label {
    font-size: 0.8125rem;
    color: var(--slate-300);
    line-height: 1.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

.float-card--2 {
    animation-name: float2;
}

@keyframes float2 {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 14px)); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.938rem;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--teal-600);
    color: #fff;
    border-color: var(--teal-600);
}

.btn-primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--slate-700);
    border-color: var(--slate-200);
}

.btn-outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
    background: var(--teal-50);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section-tag--light {
    color: var(--teal-300);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title--light {
    color: #ffffff;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 560px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--slate-50);
}

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

.service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-200);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--teal-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--teal-600);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--teal-600);
    color: #fff;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: #ffffff;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid #fff;
}

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

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--teal-100);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text em {
    color: var(--teal-700);
    font-style: italic;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    flex-shrink: 0;
}

.value-icon svg {
    width: 22px;
    height: 22px;
}

.value-item strong {
    display: block;
    font-size: 1rem;
    color: var(--slate-800);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.5;
}

/* --- Insurance --- */
.insurance {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--slate-900) 0%, #0c3540 100%);
    overflow: hidden;
}

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

.insurance-content .section-title {
    margin-bottom: 20px;
}

.insurance-text {
    font-size: 1.0625rem;
    color: var(--slate-300);
    line-height: 1.8;
    margin-bottom: 32px;
}

.insurance-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.insurance-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--slate-200);
}

.insurance-list li svg {
    width: 20px;
    height: 20px;
    color: var(--teal-400);
    flex-shrink: 0;
}

.insurance-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.insurance-visual img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    height: 560px;
    object-fit: cover;
}

.insurance-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.insurance-circle {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    top: -40px;
    left: -40px;
}

.insurance-circle--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    bottom: -20px;
    right: -20px;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--slate-50);
}

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

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--teal-600);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.contact-item a {
    color: var(--teal-600);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--teal-700);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrap {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--slate-800);
    background: var(--slate-50);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

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

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

.form-notice {
    font-size: 0.8125rem;
    color: var(--slate-400);
    text-align: center;
    margin-top: 16px;
}

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

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

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--teal-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--teal-600);
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--slate-900);
    padding: 60px 0 32px;
}

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

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

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

.footer-brand .logo-text {
    font-size: 1.3rem;
    color: #fff;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--slate-400);
    max-width: 260px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
}

.footer-links a {
    color: var(--slate-400);
    font-size: 0.9375rem;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--teal-400);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 32px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* --- Reveal Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-headline {
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-cards {
        display: none;
    }

    .about-grid,
    .insurance-inner,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 8px;
        box-shadow: var(--shadow-xl);
        transition: right 0.35s ease;
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 12px 0;
        font-size: 1.0625rem;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--slate-100);
        width: 100%;
    }

    .nav-cta a {
        justify-content: center;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }

    .about-accent {
        display: none;
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}
