/* ========================================
   Children's Orthopaedics of Hawaii
   Bold Editorial — Charcoal + Coral
   ======================================== */

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

:root {
    --charcoal-900: #0f0f14;
    --charcoal-800: #1a1a24;
    --charcoal-700: #2a2a38;
    --charcoal-600: #3a3a4a;
    --charcoal-500: #4a4a5a;
    --coral-500: #E8635B;
    --coral-400: #F07870;
    --coral-300: #F59890;
    --coral-100: #FDE8E6;
    --cream-50: #FAFAF8;
    --cream-100: #F5F4F0;
    --cream-200: #EDEBE6;
    --white: #FFFFFF;
    --text-dark: #1a1a24;
    --text-muted: #6b6b7b;
    --text-light: #9a9aaa;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --nav-height: 80px;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-icon {
    color: var(--coral-400);
    display: flex;
    align-items: center;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}

.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--coral-300);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--coral-500) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--coral-400) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 20, 0.88) 0%,
        rgba(26, 26, 36, 0.75) 50%,
        rgba(15, 15, 20, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--coral-300);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid rgba(232, 99, 91, 0.3);
    border-radius: 100px;
    background: rgba(232, 99, 91, 0.08);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 28px;
    max-width: 800px;
}

.hero-emphasis {
    color: var(--coral-400);
    font-style: italic;
    font-weight: 500;
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 48px;
    font-weight: 300;
}

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

.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-trust-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.hero-trust-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.hero-trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--coral-400);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232, 99, 91, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    border-color: var(--coral-400);
    color: var(--coral-300);
    background: rgba(232, 99, 91, 0.08);
}

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

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

.btn-lg {
    padding: 20px 40px;
    font-size: 1rem;
}

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

/* ---------- Section Shared ---------- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--coral-500);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-title em {
    color: var(--coral-500);
    font-style: italic;
    font-weight: 500;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    font-weight: 300;
}

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

.services .container {
    text-align: center;
}

.services .section-subtitle {
    margin: 0 auto 64px;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--cream-200);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--coral-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--coral-100);
    color: var(--coral-500);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--charcoal-800);
    overflow: hidden;
}

.about .section-title {
    color: var(--white);
}

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

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--coral-500);
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.3;
}

.about-content .section-label {
    color: var(--coral-300);
}

.about-content .section-title {
    color: var(--white);
}

.about-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 400;
}

.about-feature svg {
    color: var(--coral-400);
    flex-shrink: 0;
}

/* ---------- Conditions ---------- */
.conditions {
    padding: 120px 0;
    background: var(--cream-50);
}

.conditions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.conditions-label-wrap .section-subtitle {
    margin-bottom: 40px;
}

.conditions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cream-200);
    transition: all 0.3s ease;
    cursor: default;
}

.condition-item:first-child {
    border-top: 1px solid var(--cream-200);
}

.condition-item:hover {
    padding-left: 12px;
}

.condition-item:hover .condition-dot {
    background: var(--coral-500);
    transform: scale(1.3);
}

.condition-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral-300);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.condition-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 20, 0.9) 0%,
        rgba(26, 26, 36, 0.82) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 300;
}

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

.contact-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--coral-100);
    color: var(--coral-500);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-detail-value {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.contact-detail-value a:hover {
    color: var(--coral-500);
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
    position: relative;
}

.contact-form-card {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--cream-200);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 300;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral-500);
    box-shadow: 0 0 0 3px rgba(232, 99, 91, 0.12);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--coral-100);
    color: var(--coral-500);
}

.form-success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.form-success-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Map ---------- */
.map-section {
    background: var(--cream-100);
}

.map-container {
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--cream-100), transparent);
    pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal-900);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--coral-400);
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 280px;
    font-weight: 300;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--coral-300);
    padding-left: 4px;
}

.footer-address {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-style: normal;
    margin-bottom: 12px;
}

.footer-phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--coral-400);
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: var(--coral-300);
}

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

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
    max-width: 500px;
    line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .conditions-layout,
    .contact-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(15, 15, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-trust {
        gap: 20px;
    }
    
    .hero-trust-divider {
        height: 28px;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image-accent {
        top: -12px;
        left: -12px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .conditions {
        padding: 80px 0;
    }
    
    .conditions-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .cta-banner {
        padding: 80px 0;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-card {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hero-trust-divider {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .condition-item,
    .btn {
        transition: all 0.3s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
