/* ============================================
   DR. TARIQ SINAN - DESIGN SYSTEM
   From thyroid-nodule-v7-proposed.html
   ============================================ */

:root {
    --color-bg-dark: #0a1628;
    --color-bg: #0f1d32;
    --color-bg-elevated: #162844;
    --color-surface: #1c3254;

    --color-primary: #00a0b0;
    --color-primary-glow: rgba(0, 160, 176, 0.3);
    --color-accent: #e85d04;
    --color-accent-hover: #ff6b0a;
    --color-accent-glow: rgba(232, 93, 4, 0.4);

    --color-text: #e8eef4;
    --color-text-muted: #b0c4de;
    --color-text-dim: #5a7a99;

    --color-border: rgba(255, 255, 255, 0.08);

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-accent: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.text-serif {
    font-family: var(--font-accent);
    font-style: italic;
}

.text-accent {
    color: var(--color-accent);
}

.text-primary {
    color: var(--color-primary);
}

.text-muted {
    color: var(--color-text-muted);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    height: 60px;
}

.header-cta {
    background: var(--color-accent);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--color-accent-hover);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--color-accent-glow);
    border: none;
    cursor: pointer;
    width: 100%;
    animation: glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 0 50px var(--color-accent-glow);
    transform: translateY(-2px);
}

@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 30px var(--color-accent-glow);
    }
    50% {
        box-shadow: 0 0 50px var(--color-accent-glow);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    padding: 1rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(0, 160, 176, 0.1);
}

.btn-text {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--color-text);
}

@media (min-width: 768px) {
    .btn-primary {
        width: auto;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-unit {
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.hero {
    padding: var(--space-lg) 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    display: block;
    width: 100%;
}

/* ============================================
   DOCTOR PHOTO
   ============================================ */
.doctor-photo-wrapper {
    position: relative;
    width: 180px;
    height: 200px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0, 160, 176, 0.3);
    background:
        linear-gradient(to right, var(--color-primary) 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, var(--color-primary) 2px, transparent 2px) 0 0,
        linear-gradient(to left, var(--color-primary) 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, var(--color-primary) 2px, transparent 2px) 100% 0,
        linear-gradient(to right, var(--color-primary) 2px, transparent 2px) 0 100%,
        linear-gradient(to top, var(--color-primary) 2px, transparent 2px) 0 100%,
        linear-gradient(to left, var(--color-primary) 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, var(--color-primary) 2px, transparent 2px) 100% 100%;
    background-size: 10px 10px;
    background-repeat: no-repeat;
    padding: 4px;
    box-shadow: 0 0 20px rgba(0, 160, 176, 0.15);
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.doctor-credential {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
}

.doctor-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: var(--space-lg);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 0 var(--space-sm);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Desktop hero layout */
@media (min-width: 768px) {
    .hero {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: var(--space-xl);
        align-items: center;
        text-align: left;
    }

    .doctor-photo-section {
        order: 2;
    }

    .hero-text-section {
        order: 1;
    }

    .doctor-photo-wrapper {
        width: 280px;
        height: 320px;
        margin: 0;
    }

    .doctor-credential,
    .doctor-name {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cta {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-stats {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 340px;
    }

    .doctor-photo-wrapper {
        width: 340px;
        height: 380px;
    }
}

/* ============================================
   3D GRID + SAWTOOTH WAVE BACKGROUND
   ============================================ */
.grid-perspective-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    perspective: 1000px;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
    transform: translateY(-30vh);
    -webkit-mask-image: none;
    mask-image: none;
}

@media (min-width: 768px) {
    .grid-perspective-container {
        height: 120vh;
        transform: translateY(-10vh);
    }
}

.grid-surface {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    transform: rotateX(20deg) translateY(-100px) translateZ(-100px);
    transform-origin: center top;
}

.grid-lines-base {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.grid-radial-masked-layer {
    position: absolute;
    inset: 0;
    -webkit-mask-image:
        linear-gradient(black 1px, transparent 1px),
        linear-gradient(90deg, black 1px, transparent 1px);
    mask-image:
        linear-gradient(black 1px, transparent 1px),
        linear-gradient(90deg, black 1px, transparent 1px);
    -webkit-mask-size: 50px 50px;
    mask-size: 50px 50px;
    mix-blend-mode: screen;
}

.radial-wave-sawtooth-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    padding-bottom: 150%;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle closest-side,
            transparent 10%,
            rgba(0, 160, 176, 0.05) 20%,
            rgba(0, 160, 176, 0.9) 49.5%,
            transparent 50%);
    opacity: 0;
    animation: sawtooth-wave-radiate 6s linear infinite;
}

.radial-wave-sawtooth-ring:nth-child(1) { animation-delay: 0s; }
.radial-wave-sawtooth-ring:nth-child(2) { animation-delay: 1.5s; }
.radial-wave-sawtooth-ring:nth-child(3) { animation-delay: 3.0s; }
.radial-wave-sawtooth-ring:nth-child(4) { animation-delay: 4.5s; }

@keyframes sawtooth-wave-radiate {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* ============================================
   SUMMARY SECTION
   ============================================ */
.summary {
    padding: var(--space-lg) 0 var(--space-2xl);
    position: relative;
    z-index: 1;
}

.summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.summary-card {
    background: rgba(22, 40, 68, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.summary-card h3 {
    color: var(--color-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.summary-card p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.summary-card ul {
    list-style: none;
    color: var(--color-text-muted);
}

.summary-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.summary-card li:last-child {
    border-bottom: none;
}

.summary-card li span:last-child {
    color: var(--color-text);
    font-weight: 500;
}

/* Reassurance Bar */
.reassurance-bar {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    border: 1px solid rgba(232, 93, 4, 0.2);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}

.reassurance-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-weight: 500;
}

.reassurance-icon {
    color: var(--color-accent);
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .reassurance-bar {
        flex-direction: row;
        justify-content: space-around;
    }
}

.summary-cta {
    text-align: center;
    padding-top: var(--space-md);
}

.summary-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .summary-links {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-lg);
    }
}

/* ============================================
   LONG FORM SECTION
   ============================================ */
.longform {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
}

.longform-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.longform-header p {
    color: var(--color-text-dim);
    font-size: 0.9375rem;
}

.narrative {
    margin-bottom: var(--space-2xl);
}

.narrative h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.narrative p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.8;
    max-width: 65ch;
    margin-bottom: var(--space-sm);
}

.narrative-highlight {
    background: var(--color-bg-elevated);
    border-left: 3px solid var(--color-primary);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.narrative-highlight p {
    margin: 0;
    color: var(--color-text);
    font-size: 1.125rem;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 20px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    align-items: start;
    position: relative;
    z-index: 1;
}

.process-step-number {
    width: 60px;
    height: 60px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 160, 176, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.process-step-number svg {
    width: 32px;
    height: 32px;
}

.process-step h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* Treatment Options */
.treatment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

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

.treatment-option {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.treatment-option h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.treatment-option .for-label {
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.treatment-option p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    color: var(--color-text-dim);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    color: var(--color-text-muted);
}

.comparison-table td:first-child {
    color: var(--color-text);
    font-weight: 500;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight-row td {
    background: rgba(0, 160, 176, 0.1);
    color: var(--color-text);
}

@media (max-width: 767px) {
    .comparison-table {
        font-size: 0.8125rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-xs) var(--space-sm);
    }
}

/* Benefit List */
.benefit-list {
    list-style: none;
    margin: var(--space-md) 0;
}

.benefit-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* Drawback List (bullets instead of checks) */
.drawback-list {
    list-style: none;
    margin: var(--space-md) 0;
}

.drawback-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.drawback-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

/* FAQ */
.faq-section {
    margin-top: var(--space-2xl);
}

.faq-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.accordion-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.accordion {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion summary {
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-primary);
}

.accordion[open] summary::after {
    content: '−';
}

.accordion summary:hover {
    background: rgba(0, 160, 176, 0.05);
}

.accordion-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.accordion-content p {
    margin-bottom: var(--space-sm);
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: var(--space-sm);
}

.cta-section p {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
    width: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-dim);
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE - Mobile fixes
   ============================================ */
@media (max-width: 767px) {
    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-steps::before {
        display: none;
    }

    .process-step-number {
        margin: 0 auto var(--space-sm);
    }
}
