/*
Theme Name: Augmene
Theme URI: https://augmene.com
Author: Augmene Research Initiative
Author URI: https://augmene.com
Description: Official theme for the Augmene clinical technology research project, exploring smartphone-based 3D scanning for prosthetic workflows.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: augmene
Tags: medical, research, technology, clean, minimal, responsive
*/

/* ============================================================
   COLOUR SYSTEM
   ============================================================ */

:root {
    --color-primary:      #1E88E5;
    --color-primary-dark: #1565C0;
    --color-navy:         #0F172A;
    --color-text:         #475569;
    --color-text-muted:   #64748B;
    --color-bg:           #F8FAFC;
    --color-bg-section:   #EEF4FA;
    --color-border:       #D9E2EC;
    --color-white:        #FFFFFF;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-navy);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.75;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */

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

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

.section {
    padding: 96px 0;
}

.section--alt {
    background-color: var(--color-bg-section);
}

.section--dark {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.72);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section--dark .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.section-header {
    margin-bottom: 56px;
}

.section-header--center {
    text-align: center;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 640px;
}

.section-header--center p {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */

.grid {
    display: grid;
    gap: 32px;
}

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

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

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}

/* Footer logo sits on a dark background — invert to white */
.footer-logo img {
    filter: brightness(0) invert(1);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background-color: var(--color-bg-section);
    color: var(--color-navy);
}

.site-nav .nav-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.site-nav .nav-cta:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Clinic portal login button in header */
.nav-clinic-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nav-clinic-login:hover {
    background-color: var(--color-primary-dark, #1565c0);
    color: var(--color-white) !important;
    transform: translateY(-1px);
    text-decoration: none;
}

/* WordPress menu */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.main-navigation ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
    display: block;
}

.main-navigation ul li a:hover {
    background-color: var(--color-bg-section);
    color: var(--color-navy);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-section) 50%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero__content {
    max-width: 580px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-bg-section);
    color: var(--color-primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    border: 1px solid var(--color-border);
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-navy);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero__title em {
    font-style: normal;
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__device-frame {
    width: 280px;
    background: var(--color-white);
    border-radius: 32px;
    padding: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 2;
}

.hero__device-screen {
    background: linear-gradient(145deg, var(--color-bg-section) 0%, var(--color-border) 100%);
    border-radius: 20px;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
}

.hero__device-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scan UI illustration inside the hero device */
.hero__scan-ui {
    width: 152px;
    height: 152px;
    flex-shrink: 0;
}

.hero__device-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 1.75;
}

.hero__device-text {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.hero__device-dots {
    display: flex;
    gap: 6px;
}

.hero__device-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
    opacity: 0.4;
    animation: dots 1.5s infinite;
}

.hero__device-dots span:nth-child(2) { animation-delay: 0.2s; }
.hero__device-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.hero__visual-bg {
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1;
}

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

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.28);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn--secondary:hover {
    background-color: var(--color-bg-section);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

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

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

.btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
    background-color: var(--color-navy);
    padding: 48px 0;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.stat-item__label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================================
   CHALLENGE SECTION
   ============================================================ */

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

.challenge-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.challenge-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.08);
}

.challenge-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--color-bg-section);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-item__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.75;
}

.challenge-item__content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.challenge-item__content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================================
   APPROACH SECTION
   ============================================================ */

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.approach-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
    z-index: 0;
}

.approach-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.approach-step__number {
    width: 56px;
    height: 56px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.15);
}

.approach-step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.approach-step p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */

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

.tech-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 36px 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tech-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.1);
    transform: translateY(-4px);
}

.tech-card__icon {
    width: 52px;
    height: 52px;
    background: var(--color-bg-section);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-card__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.75;
}

.tech-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   DEMONSTRATION SECTION
   ============================================================ */

.demo-container {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.demo-video-wrapper {
    position: relative;
    background: var(--color-navy);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.demo-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.demo-play-btn {
    width: 72px;
    height: 72px;
    background: rgba(30, 136, 229, 0.2);
    border: 2px solid rgba(30, 136, 229, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-play-btn:hover {
    background: rgba(30, 136, 229, 0.35);
    border-color: rgba(30, 136, 229, 0.8);
    transform: scale(1.05);
}

.demo-play-btn svg {
    width: 28px;
    height: 28px;
    fill: rgba(255, 255, 255, 0.85);
    stroke: none;
    margin-left: 4px;
}

.demo-video-placeholder p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    margin: 0;
}

.demo-caption {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.demo-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFF8E1;
    border: 1px solid #FFE082;
    color: #6D4C00;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 20px;
}

/* ============================================================
   CLINICAL IMPACT SECTION
   ============================================================ */

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

.impact-card {
    padding: 40px 32px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(30, 136, 229, 0.08) 0%, rgba(30, 136, 229, 0.03) 100%);
    border: 1px solid rgba(30, 136, 229, 0.15);
}

.impact-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 136, 229, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.impact-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 1.75;
}

.impact-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 10px;
}

.impact-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   R&D STATUS SECTION
   ============================================================ */

.status-panel {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.status-panel__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #E8F5E9;
    color: #2E7D32;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.status-indicator::before {
    content: '';
    width: 7px;
    height: 7px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.status-stage {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.status-stage--active {
    border-color: var(--color-primary);
    background: var(--color-bg-section);
}

.status-stage__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.status-stage--active .status-stage__label {
    color: var(--color-primary);
}

.status-stage__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.status-stage--active .status-stage__name {
    color: var(--color-navy);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

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

.about-visual {
    background: linear-gradient(145deg, var(--color-bg-section) 0%, var(--color-border) 100%);
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual svg {
    width: 80px;
    height: 80px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.25;
    opacity: 0.5;
}

.about-content .section-label {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 16px;
}

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

.about-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--color-text);
    font-weight: 500;
}

.about-value::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--color-bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E88E5' stroke-width='2'%3E%3Cpolyline points='3 8 6.5 11.5 13 5'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-item__icon {
    width: 40px;
    height: 40px;
    background: var(--color-bg-section);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.75;
}

.contact-item__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.contact-item__value {
    font-size: 0.9375rem;
    color: var(--color-navy);
    font-weight: 500;
}

.contact-item__value a {
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 28px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--color-navy);
    background: var(--color-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}

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

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 72px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-col h5 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: 16px;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-col ul li a:hover {
    color: var(--color-white);
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.7;
}

/* Stats contextual reference note */
.stats-reference {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.7;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer legal / disclaimer block */
.footer-legal {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal__title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.footer-legal__body {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1.8;
    max-width: 860px;
    margin: 0;
}

.footer-refs {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1.8;
    max-width: 860px;
    margin-top: 10px;
}

/* ============================================================
   MODEL VIEWER SECTION
   ============================================================ */

.model-viewer-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.model-viewer-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 30px 60px -22px rgba(0, 0, 0, 0.55),
        0 10px 22px -10px rgba(0, 0, 0, 0.35);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 55%),
        #111111;
    margin-bottom: 20px;
}

/* The web component element itself */
model-viewer {
    width: 100%;
    height: 560px;
    border-radius: 20px;
    background: #111111;
    display: block;
    outline: none;
    --poster-color: #111111;
    --progress-bar-color: rgba(255, 255, 255, 0.55);
    --progress-mask: rgba(0, 0, 0, 0);
}

@media (max-width: 768px) {
    model-viewer { height: 420px; }
}

@media (max-width: 480px) {
    model-viewer { height: 340px; }
    .model-viewer-wrap { border-radius: 16px; }
}

/* Placeholder shown while model is absent or loading */
.model-viewer-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    pointer-events: none;
}

.model-viewer-placeholder svg {
    opacity: 0.2;
    stroke: var(--color-primary);
}

.model-viewer-placeholder p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    max-width: 360px;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.model-caption {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 16px;
    line-height: 1.65;
}

.model-caption--notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F0F4FF;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    font-style: normal;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    model-viewer { height: 340px; }
}

@media (max-width: 480px) {
    model-viewer { height: 260px; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none; /* shown by JS after consent check */
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background-color: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 32px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    flex-wrap: wrap;
}

.cookie-banner__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
}

.cookie-banner__text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
    color: var(--color-white);
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
    font-family: inherit;
    line-height: 1;
}

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

.cookie-btn--accept:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.cookie-btn--reject {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn--reject:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 16px;
    }
    .cookie-banner__actions {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ============================================================
   COOKIE POLICY PAGE
   ============================================================ */

.policy-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 96px;
}

.policy-content h1 {
    margin-bottom: 8px;
}

.policy-content .policy-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 48px;
}

.policy-content h2 {
    font-size: 1.25rem;
    margin-top: 40px;
    margin-bottom: 12px;
}

.policy-content p,
.policy-content li {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.75;
}

.policy-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 1rem;
}

.policy-content ul li {
    margin-bottom: 6px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .approach-steps { grid-template-columns: repeat(2, 1fr); }
    .approach-steps::before { display: none; }
    .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .status-stages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-logo img { height: 36px; }
    .section { padding: 64px 0; }

    .hero { padding-top: 120px; padding-bottom: 64px; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { display: none; }

    .menu-toggle { display: flex; }

    .site-nav,
    .main-navigation {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 24px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .site-nav.is-open,
    .main-navigation.is-open {
        display: block;
    }

    .site-nav ul,
    .main-navigation ul {
        flex-direction: column;
    }

    .nav-clinic-login { padding: 7px 14px; font-size: 0.8125rem; }

    .challenge-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .grid--2 { grid-template-columns: 1fr; }
    .grid--3 { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; }
    .approach-steps { grid-template-columns: 1fr; }
    .status-stages { grid-template-columns: 1fr 1fr; }
    .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .status-panel { padding: 28px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.875rem; }
    .hero__actions { flex-direction: column; align-items: flex-start; }
    .stats-bar__grid { grid-template-columns: 1fr 1fr; }
    .status-stages { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
