/*
Theme Name: Nova Medical
Text Domain: nova-medical
*/

:root {
    /* Brand Colors */
    --color-primary: #0F4C75;
    /* Deep rich blue */
    --color-primary-dark: #0a3554;
    --color-primary-light: #3282B8;
    --color-secondary: #00B4D8;
    /* Vibrant cyan/teal */
    --color-secondary-hover: #0096c7;
    --color-accent: #FFAB73;
    /* Warm accent for contrast */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(15, 76, 117, 0.9) 0%, rgba(0, 180, 216, 0.8) 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);

    /* Neutrals */
    --color-bg-body: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows (Super Shadows for depth) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 15px rgba(0, 180, 216, 0.3);

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 8rem 0;
}

.text-center {
    text-align: center;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(15, 76, 117, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    /* reserved space */
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary-light);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* Backgrounds & Decorations */
.bg-primary-pattern {
    background-color: var(--color-primary);
    background: var(--gradient-primary);
    color: white;
}

.bg-soft {
    background-color: #F0F4F8;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 5rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Header */
/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.top-bar {
    background: var(--color-primary-dark);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo img {
    height: 48px;
    margin-right: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Nav Link Hover Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* Hero - Homepage (Premium Redesign) */
.home-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-body);
    padding-top: 4rem;
    /* Compensate for sticky header */
    overflow: hidden;
    text-align: left;
}

/* Subtle background mesh gradient */
.home-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(15, 76, 117, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.home-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
    font-size: 4.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 180, 216, 0.1);
    border-radius: var(--radius-full);
}

.hero-text p {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    max-width: 90%;
    margin: 0 0 2.5rem;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Hero Image & Overlay */
.hero-image {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* Changed to hidden to clip image */
    box-shadow: var(--shadow-xl);
    transform: rotate(-2deg);
    /* Stylish tilt */
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: rotate(0deg);
}

.hero-main-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
    transform: scale(1.05);
    /* Zoom in for hover effect prep */
}

/* Floating Badge */
.hero-logo-overlay {
    position: absolute;
    bottom: 40px;
    left: -40px;
    /* Moved to left for asymmetry */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite reverse;
    z-index: 10;
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Feature & Service Cards */
.card {
    background: var(--color-surface);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary-hover);
}

.card .icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(0, 180, 216, 0.05) 100%);
    color: var(--color-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.card:hover .icon-box {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.card p {
    color: var(--color-text-muted);
}

/* Accordion (FAQs) */
.accordion-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-color: var(--color-secondary-light);
}

.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.accordion-header span {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.5rem;
}

.accordion-content {
    padding: 0 2rem 2rem;
    color: var(--color-text-light);
    display: none;
    line-height: 1.6;
}

.accordion-item:hover .accordion-content {
    display: block;
}

/* Journey / Step Cards */
.step-card {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-secondary);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.step-card .step-number {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    border: 3px solid white;
}

/* Responsive Adjusments */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .step-card {
        margin-left: 1rem;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu simplified */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles */
/* Footer Styles */
footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 6rem 0 0;
    font-size: 0.95rem;
    border-top: 4px solid var(--color-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 48px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col p {
    opacity: 0.7;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    opacity: 0.7;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* Footer Newsletter Form */
.footer-newsletter input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.75rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: var(--transition-base);
}

.footer-newsletter input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    outline: none;
}

.footer-newsletter button {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.footer-newsletter button:hover {
    background: white;
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Social Icons in Footer */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-3px) rotate(360deg);
    border-color: var(--color-secondary);
}

/* Newsletter Section - Fixed Contrast */
.newsletter {
    position: relative;
    background: var(--color-primary);
    padding: 6rem 0;
    color: white;
    text-align: center;
    border-radius: 0;
    overflow: hidden;
}

/* Ensure background image has a dark overlay for text readability */
.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.95), rgba(0, 68, 102, 0.9));
    z-index: 1;
}

/* Ensure content sits top of the overlay */
.newsletter .container {
    position: relative;
    z-index: 2;
}

.newsletter h2 {
    color: #ffffff !important;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    outline: none;
    font-family: inherit;
    background: white;
    color: var(--color-text-main);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 3rem;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.newsletter-form button:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    background: #0a2a40;
    /* Slightly darker bottom strip */
    margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        background: transparent;
        border: none;
        padding: 0;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .hero-logo-overlay {
        display: none;
        /* Hide floating badge on mobile */
    }

    .home-hero {
        min-height: auto;
        padding-bottom: 4rem;
    }

    .home-hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* Page Hero (Internal Pages) */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    margin-bottom: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 60, 0.7);
    /* Dark blue overlay */
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}