/* 
   NeuroMet Wellness - Main Stylesheet 
   Brand Palette:
   - Primary: #1F4E4E (Deep Teal)
   - Secondary: #6FB7B7 (Soft Aqua)
   - Accent: #FFFFFF (Medical White)
   - Text: #2E2E2E (Charcoal Grey)
   - Highlight: #E0F2F2 (Light Cyan/Sage)
*/

:root {
    --color-primary: #1F4E4E;
    --color-secondary: #6FB7B7;
    --color-accent: #FFFFFF;
    --color-text: #2E2E2E;
    --color-light-bg: #F8FAFA;
    --color-highlight: #E0F2F2;
    --color-border: #E5E7EB;

    /* Transition */
    --transition-standard: 0.3s ease;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 90px;
    /* Increased slightly */
}

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

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-accent);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 1.05rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #163a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 78, 78, 0.2);
}

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

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

.section {
    padding: 5rem 0;
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

.text-left .section-title::after {
    left: 0;
    transform: none;
}

/* Header */
header {
    height: var(--header-height);
    background-color: var(--color-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    max-width: 1400px;
}


.logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    /* Increased from 60px */
    width: auto;
    margin-right: 0.8rem;
}

/* Desktop Navigation (Only for large screens) */
@media (min-width: 1201px) {
    .nav-links {
        display: flex;
        gap: 1.2rem;
        /* Reduced from 1.5rem */
        align-items: center;
    }

    .nav-links li a {
        font-weight: 500;
        color: var(--color-text);
        font-size: 0.95rem;
        /* Slightly reduced font size */
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--color-secondary);
    }
}

/* Base styles for links (mobile first or shared) */
.nav-links li a {
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge the gap */
    margin-bottom: -20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    /* Slightly wider */
    z-index: 9999;
    /* Ensure on top */
    border: 1px solid var(--color-border);
    list-style: none;
    /* Reset list style */
    margin: 0;
    /* Reset margin */
    text-align: left;
    /* Align text left */
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active-dropdown .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
    white-space: nowrap;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-menu li a:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    background-color: var(--color-light-bg);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: 500px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #444;
    /* Slightly darker for better readability */
    margin-bottom: 1rem;
}

.hero-authority {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Handle smaller screens better */
}

.hero-image {
    flex: 1;
    position: relative;
    /* Allow potential absolute positioning or just normal flow */
    /* Remove center/center align-items to allow block flow for stacked items */
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    max-width: 100%;
}

/* Trust Indicators */
.trust-bar {
    background-color: var(--color-primary);
    color: #fff;
    padding: 2.5rem 0;
}

.trust-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
}

.trust-item {
    flex: 1;
    min-width: 200px;
}

.trust-item h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.trust-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Services Snapshot */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-standard);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 0.8rem;
    /* slight arrow movement */
}

/* Features / Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-box .icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-highlight);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.feature-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: #555;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-highlight);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Team Grid Helper */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

/* Footer Grid Refinement */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 1200px) {
    :root {
        --header-height: 70px;
    }

    /* Typography scale for mobile */
    html {
        font-size: 15px;
    }

    .section {
        padding: 3rem 0;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    .mobile-menu-btn {
        display: block !important;
        padding: 0.5rem;
        font-size: 1.8rem;
        margin-left: auto;
        /* Push to the right */
    }

    .nav-links {
        display: flex;
        /* Force flex for column layout */
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-accent);
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition-standard);
        align-items: flex-start;
        overflow-y: auto;
        /* Handle scrolling if menu is tall */
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a a {
        padding: 1rem 0;
        display: block;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1.2rem;
        /* Larger tap target */
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 1rem;
        gap: 2rem;
    }

    .hero-image {
        width: 100%;
        margin-bottom: 2rem;
        /* Add breathing room */
        height: auto;
        display: flex;
        /* Remove extra whitespace */
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        max-height: 500px;
        /* Prevent it from being too tall on tablets */
        object-fit: cover;
        border-radius: 12px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Fixed Tablet Grid: Allow 2 columns on tablet (e.g. 600px - 992px) */
    /* Only force 1 column on VERY small screens */
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}



/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

/* Persistent Tooltip */
.whatsapp-float::after {
    content: "WhatsApp Us!";
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

/* Tooltip Arrow */
.whatsapp-float::before {
    content: "";
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #fff;
}

/* Hide tooltip on very small screens to prevent overlap */
@media (max-width: 400px) {

    .whatsapp-float::after,
    .whatsapp-float::before {
        display: none;
    }
}

/* 
   Large Screen / Curved Monitor Optimization 
   Ensures the site doesn't look too narrow on 4k/Ultrawide screens
*/
@media (min-width: 1600px) {
    :root {
        --container-width: 1500px;
    }

    html {
        font-size: 18px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .section {
        padding: 6rem 0;
    }
}

/* BLOG CARD STYLES (Added Recently) */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.blog-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.read-more:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

/* Value Prop Banner */
.value-prop-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-prop-banner h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-prop-banner p {
    margin-bottom: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Desktop-only Row Reverse utility for alternate layout */
@media (min-width: 769px) {
    .row-reverse-lg {
        flex-direction: row-reverse;
    }

    .align-start-lg {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .value-prop-banner {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .value-prop-banner h4 {
        font-size: 1.3rem;
    }

    .value-prop-banner p {
        font-size: 1rem;
    }
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: ">";
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* --- DIGITAL CARE SUITE SECTION --- */
.digital-suite-section {
    background-color: #F8FAFC;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
    /* For animations */
}

.suite-header-group {
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.suite-subtitle {
    font-size: 1.1rem;
    color: #64748B;
    line-height: 1.6;
    margin-top: 1rem;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.suite-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F1F5F9;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.suite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.suite-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #F0FDFA;
    /* Light Teal background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.suite-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.suite-card-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.suite-card-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.suite-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.suite-secondary-link {
    font-size: 0.9rem;
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.suite-secondary-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for cards */
.suite-card:nth-child(1) {
    transition-delay: 0.1s;
}

.suite-card:nth-child(2) {
    transition-delay: 0.2s;
}

.suite-card:nth-child(3) {
    transition-delay: 0.3s;
}