/* 
   SCOLIOSIS CLINIC NEW ZEALAND
   Antigravity-Style Medical UI System
*/

:root {
    /* Color Palette */
    --primary: #1E293B; /* Deep Slate Blue */
    --primary-light: #334155;
    --secondary: #0F766E; /* Clinical Teal/Blue */
    --secondary-light: #14B8A6;
    --accent: #D97706; /* Saffron/Warm Gold for CTAs */
    --accent-hover: #B45309;
    
    --bg-main: #F8FAFC; /* Soft Off-White */
    --bg-white: #FFFFFF;
    
    --text-main: #0F172A;
    --text-muted: #64748B;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Shadows & Glass */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-glass-dark: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    color: white;
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Top Trust Bar */
.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-badge i {
    color: var(--secondary-light);
    margin-right: 6px;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-links a:hover {
    color: var(--secondary-light);
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 24px;
    background: white;
    border-radius: 20px;
    top: 4px;
    left: 10px;
    transform: rotate(15deg);
    opacity: 0.8;
}

.logo-text {
    line-height: 1.1;
    font-family: var(--font-heading);
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--secondary-light);
}

.shape-2 {
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: var(--accent);
    opacity: 0.15;
}

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

.eeat-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    border: 1px solid rgba(0,0,0,0.05);
}

.avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-trust-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--primary-light);
}

.point i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glass);
}

.dark-glass {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.main-hero-card {
    position: relative;
    padding: 12px;
}

.hero-img {
    border-radius: 16px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: 40px;
    left: -40px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 60px;
    right: -30px;
    animation-delay: 3s;
}

.floating-badge i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: var(--bg-main);
    padding: 12px;
    border-radius: 50%;
}

.floating-badge strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

.floating-badge span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* Social Proof */
.social-proof {
    background: white;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.proof-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.proof-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-item {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #94A3B8;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    color: var(--primary);
}

/* Sections Global */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: white;
}

/* Triage Section */
.triage-section {
    padding: 100px 0;
}

.triage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.triage-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.triage-card:hover, .triage-card.active {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 118, 110, 0.2);
}

.triage-card.active {
    position: relative;
}

.triage-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    z-index: 1;
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.triage-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.symptoms-list {
    list-style: none;
    margin-bottom: 20px;
}

.symptoms-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.symptoms-list i {
    color: var(--secondary-light);
    font-size: 0.8rem;
}

.card-focus {
    font-size: 0.9rem;
    background: var(--bg-main);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.text-link {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-link:hover {
    gap: 10px;
}

/* Timeline Process */
.process-section {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background: rgba(15, 118, 110, 0.2);
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    flex: 1;
    padding: 30px;
    border-radius: var(--border-radius);
    background: var(--bg-main);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

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

/* Authority Section */
.authority-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, white 100%);
}

.authority-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.authority-img-wrapper {
    position: relative;
}

.img-bg-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    border-radius: var(--border-radius-lg);
    opacity: 0.1;
    z-index: 0;
}

.authority-img {
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 16px;
    z-index: 2;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.experience-badge strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--accent);
}

.experience-badge span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-kicker {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: inline-block;
}

.authority-content h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.authority-content h2 span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.credentials {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 24px;
}

.divider {
    height: 2px;
    width: 60px;
    background: var(--accent);
    margin-bottom: 24px;
}

.bio {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.authority-list {
    list-style: none;
    margin: 24px 0;
    display: grid;
    gap: 12px;
}

.authority-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.authority-list i {
    color: var(--secondary);
    background: rgba(15, 118, 110, 0.1);
    padding: 8px;
    border-radius: 50%;
}

/* CTA Section */
.final-cta {
    padding: 100px 0;
    background: white;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    align-items: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.trust-row {
    display: flex;
    gap: 20px;
}

.trust-row span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.trust-row i {
    color: var(--secondary-light);
}

.cta-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--text-main);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-microcopy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
}

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

.footer .logo {
    color: white;
    margin-bottom: 20px;
}

.footer .logo-text span {
    color: rgba(255,255,255,0.7);
}

.brand-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col a, .footer-col p {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.footer-col i {
    width: 20px;
    color: var(--secondary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255,255,255,0.5);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-container { gap: 40px; }
    .badge-1 { left: -20px; }
    .badge-2 { right: -10px; }
    .triage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero { padding: 40px 0 60px; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .hero-visual { order: -1; margin-bottom: 40px; }
    .hero-img { height: 350px; }
    .badge-1 { top: 20px; left: 10px; }
    .badge-2 { bottom: 20px; right: 10px; }
    
    .triage-grid { grid-template-columns: 1fr; }
    
    .timeline::before { left: 30px; }
    .timeline-number { width: 60px; height: 60px; min-width: 60px; font-size: 1.5rem; }
    .timeline-item { gap: 20px; }
    
    .authority-container { grid-template-columns: 1fr; }
    .experience-badge { right: 20px; }
    
    .cta-container { grid-template-columns: 1fr; padding: 40px 20px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand-col { grid-column: span 1; }
}

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
