
/* =====================================================
   CARENEXIFY PREMIUM WEBSITE
   Deep Teal | Mint | Ivory | Copper
===================================================== */

:root {
    --navy: #0c2938;
    --navy2: #143c4b;
    --teal: #17695f;
    --mint: #d5f0e8;
    --mint2: #eef8f4;
    --ivory: #f5f1e8;
    --white: #ffffff;
    --copper: #d38d67;
    --text: #253d46;
    --muted: #71818a;
    --border: #e3e9e5;
    --shadow: 0 20px 60px rgba(12,41,56,.10);
    --shadow-hover: 0 30px 80px rgba(12,41,56,.18);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font: inherit;
}

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

.container {
    width: min(1200px, 90%);
    margin: auto;
}

.section-padding {
    padding: 110px 0;
}

.section-label {
    display: inline-block;
    color: var(--teal);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.highlight-text,
.section-heading h2 span,
.about-content h2 span,
.why-content h2 span,
.coverage-inner h2 span,
.blog-heading-row h2 span,
.faq-intro h2 span,
.contact-content h2 span {
    color: var(--teal);
}

/* TOP STRIP */

.top-strip {
    background: var(--navy);
    color: #d4e6e4;
    font-size: 12px;
    padding: 10px 0;
}

.top-strip-inner,
.top-strip-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-strip i {
    color: #8ed3bf;
    margin-right: 5px;
}

.top-strip-right a {
    transition: .3s;
}

.top-strip-right a:hover {
    color: #fff;
}

/* HEADER */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(12,41,56,.06);
    transition: .3s;
}

.main-header.scrolled {
    box-shadow: 0 8px 30px rgba(12,41,56,.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-symbol {
    width: 46px;
    height: 46px;
    background: var(--mint);
    color: var(--teal);
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 21px;
    transition: .4s;
}

.brand:hover .brand-symbol {
    transform: rotate(-8deg) scale(1.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    color: var(--navy);
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    letter-spacing: -1px;
}

.brand-text span {
    color: var(--teal);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 10px 0;
    position: relative;
    transition: .3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--teal);
    transition: width .3s;
}

.nav-link:hover {
    color: var(--teal);
}

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

.dropdown-trigger i {
    font-size: 10px;
    margin-left: 4px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 240px;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .3s;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px;
    font-size: 13px;
    border-radius: 10px;
    transition: .25s;
}

.dropdown-menu a:hover {
    background: var(--mint2);
    color: var(--teal);
    transform: translateX(4px);
}

.nav-cta,
.btn-primary,
.btn-outline,
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 23px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    transition: all .35s;
    cursor: pointer;
}

.nav-cta,
.btn-primary {
    background: var(--navy);
    color: white;
    border: 1px solid var(--navy);
}

.nav-cta:hover,
.btn-primary:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23,105,95,.25);
}

.btn-outline {
    border: 1px solid rgba(12,41,56,.2);
    color: var(--navy);
    background: transparent;
}

.btn-outline:hover {
    background: white;
    transform: translateY(-3px);
    border-color: white;
}

.btn-outline-dark {
    border: 1px solid rgba(12,41,56,.2);
    color: var(--navy);
    background: white;
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-3px);
}

.mobile-cta,
.menu-toggle {
    display: none;
}

/* HERO */

.hero-section {
    background: var(--ivory);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px;
    align-items: center;
    padding-bottom: 90px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #e8e7df;
    border-radius: 50px;
    padding: 10px 17px;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #68b99f;
    box-shadow: 0 0 0 5px #e6f5ed;
}

.hero-content h1 {
    font-size: clamp(48px, 5.5vw, 78px);
    letter-spacing: -4px;
    line-height: 1.08;
}

.hero-content h1 .highlight-text {
    display: inline-block;
    position: relative;
}

.hero-description {
    font-size: 16px;
    line-height: 1.9;
    color: #647780;
    max-width: 520px;
    margin: 25px 0 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 45px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    background: #dcefe6;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--teal);
}

.hero-trust strong,
.hero-trust span {
    display: block;
}

.hero-trust strong {
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 4px;
}

.hero-trust span {
    font-size: 12px;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    perspective: 1200px;
}

.hero-image-main {
    position: relative;
    z-index: 2;
    height: 500px;
    width: 90%;
    margin-left: auto;
    border-radius: 200px 200px 40px 40px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(12,41,56,.18);
    transform: rotateY(-7deg) rotateX(3deg);
    transition: .6s;
}

.hero-image-main:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-5px);
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-decoration {
    position: absolute;
    inset: 30px -15px -20px 20px;
    border: 2px solid #c3ddd0;
    border-radius: 200px 200px 40px 40px;
    z-index: 1;
}

.hero-floating-card {
    position: absolute;
    z-index: 5;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    padding: 16px 19px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(12,41,56,.12);
    animation: floating 5s ease-in-out infinite;
}

.floating-card-top {
    top: 60px;
    left: -20px;
}

.floating-card-bottom {
    bottom: 45px;
    right: -25px;
    animation-delay: 1.5s;
}

.floating-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 17px;
}

.floating-icon.mint {
    background: var(--mint);
    color: var(--teal);
}

.floating-icon.peach {
    background: #fae5d7;
    color: #b46e48;
}

.hero-floating-card strong,
.hero-floating-card span {
    display: block;
}

.hero-floating-card strong {
    font-size: 12px;
    color: var(--navy);
    margin-bottom: 4px;
}

.hero-floating-card span {
    font-size: 10px;
    color: var(--muted);
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(213,240,232,.6);
    top: -200px;
    right: -180px;
}

.shape-2 {
    width: 280px;
    height: 280px;
    background: rgba(211,141,103,.10);
    bottom: 100px;
    left: -160px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(23,105,95,.2);
    top: 60px;
    left: 45%;
}

.hero-bottom {
    border-top: 1px solid rgba(12,41,56,.1);
}

.hero-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 12px;
    color: var(--muted);
}

.hero-bottom-inner a {
    color: var(--teal);
    font-weight: 800;
}

.hero-bottom-inner i {
    margin-left: 8px;
}

/* INTRO STRIP */

.intro-strip {
    background: var(--navy);
    color: white;
    padding: 28px 0;
}

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

.intro-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-right: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    font-weight: 700;
}

.intro-item:last-child {
    border: 0;
}

.intro-item i {
    font-size: 19px;
    color: #8bd2bd;
}

/* ABOUT */

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

.about-visual {
    position: relative;
    min-height: 520px;
}

.about-image-large {
    width: 78%;
    height: 470px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.about-image-large img,
.about-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-small {
    position: absolute;
    width: 48%;
    height: 230px;
    right: 0;
    bottom: 0;
    border: 10px solid white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-circle-text {
    position: absolute;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    top: 20px;
    right: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 15px 35px rgba(23,105,95,.3);
    transform: rotate(10deg);
}

.about-circle-text i {
    font-size: 25px;
}

.about-circle-text span {
    font-size: 11px;
    text-align: center;
    font-weight: 800;
}

.about-content h2,
.why-content h2,
.contact-content h2 {
    font-size: clamp(36px,4vw,56px);
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.about-content > p,
.why-content > p,
.contact-content > p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 18px;
}

.about-points {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

.about-points div {
    font-size: 13px;
    font-weight: 700;
}

.about-points i {
    color: var(--teal);
    margin-right: 10px;
}

/* SECTION HEADINGS */

.section-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 55px;
}

.section-heading h2,
.blog-heading-row h2 {
    font-size: clamp(36px,4vw,56px);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

/* SERVICES */

.services-section {
    background: var(--mint2);
}

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

.service-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(12,41,56,.05);
    box-shadow: 0 10px 30px rgba(12,41,56,.04);
    transition: transform .4s, box-shadow .4s;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: var(--shadow-hover);
}

.service-image {
    height: 230px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--teal);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.service-card-content {
    padding: 26px;
    position: relative;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--mint);
    color: var(--teal);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-top: -52px;
    margin-bottom: 20px;
    position: relative;
    border: 4px solid white;
    box-sizing: content-box;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    min-height: 70px;
}

.service-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
    color: var(--teal);
    font-weight: 800;
    font-size: 12px;
}

.service-link i {
    transition: transform .3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* CARE OPTIONS */

.care-options-section {
    background: white;
}

.care-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.care-option-card {
    border-radius: 30px;
    padding: 45px;
    position: relative;
    overflow: hidden;
    transition: .4s;
}

.care-option-card:hover {
    transform: translateY(-8px);
}

.option-12 {
    background: var(--ivory);
}

.option-24 {
    background: var(--navy);
    color: white;
}

.option-24 h3 {
    color: white;
}

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

.option-tag {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    opacity: .7;
}

.option-icon {
    width: 55px;
    height: 55px;
    background: rgba(23,105,95,.1);
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--teal);
    font-size: 22px;
}

.option-24 .option-icon {
    background: rgba(255,255,255,.1);
    color: #a4dec9;
}

.care-option-card h3 {
    font-size: 30px;
    margin: 28px 0 5px;
}

.option-hours {
    font-size: 85px;
    line-height: 1;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -5px;
    color: var(--teal);
    margin: 18px 0;
}

.option-24 .option-hours {
    color: #9ddac7;
}

.option-hours span {
    font-size: 23px;
    letter-spacing: 0;
}

.care-option-card > p {
    line-height: 1.8;
    font-size: 14px;
    opacity: .7;
    max-width: 430px;
}

.care-option-card ul {
    list-style: none;
    margin: 28px 0;
    display: grid;
    gap: 13px;
}

.care-option-card li {
    font-size: 13px;
    font-weight: 700;
}

.care-option-card li i {
    color: var(--teal);
    margin-right: 9px;
}

.option-24 li i {
    color: #9ddac7;
}

.care-option-card .btn-primary,
.care-option-card .btn-outline-dark {
    width: 100%;
}

/* PROCESS */

.process-section {
    background: var(--ivory);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
}

.process-step {
    padding: 15px;
}

.process-icon {
    width: 85px;
    height: 85px;
    border-radius: 25px;
    background: white;
    color: var(--teal);
    font-size: 26px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(12,41,56,.06);
    position: relative;
    transition: .4s;
}

.process-step:hover .process-icon {
    background: var(--teal);
    color: white;
    transform: rotate(-8deg) translateY(-5px);
}

.process-icon span {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--copper);
    color: white;
    font-size: 10px;
    font-weight: 800;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

/* WHY US */

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

.why-list {
    display: grid;
    gap: 22px;
    margin-top: 35px;
}

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

.why-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 15px;
    background: var(--mint);
    color: var(--teal);
    display: grid;
    place-items: center;
}

.why-item h4 {
    font-size: 15px;
    margin-bottom: 7px;
}

.why-item p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.why-visual {
    position: relative;
}

.why-visual > img {
    height: 530px;
    width: 100%;
    object-fit: cover;
    border-radius: 35px;
    box-shadow: var(--shadow);
}

.why-quote-card {
    position: absolute;
    bottom: 25px;
    left: -35px;
    width: 75%;
    background: white;
    border-radius: 22px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.why-quote-card > i {
    color: var(--copper);
    font-size: 24px;
}

.why-quote-card p {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--navy);
    margin: 12px 0;
}

.why-quote-card span {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
}

/* COVERAGE */

.coverage-section {
    background: var(--mint2);
    text-align: center;
}

.coverage-inner {
    max-width: 800px;
}

.coverage-icon {
    width: 65px;
    height: 65px;
    background: var(--mint);
    color: var(--teal);
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 24px;
    margin: 0 auto 25px;
}

.coverage-inner h2 {
    font-size: clamp(38px,4.5vw,58px);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.coverage-inner > p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 650px;
    margin: auto;
}

.coverage-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 35px 0;
}

.coverage-tags span {
    background: white;
    border: 1px solid #e1ece5;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    transition: .3s;
}

.coverage-tags span:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-3px);
}

/* BLOG */

.blog-section {
    background: white;
}

.blog-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.blog-heading-row h2 {
    margin-bottom: 0;
}

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

.blog-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: .4s;
    background: white;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 240px;
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .7s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.07);
}

.blog-category {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 50px;
    background: var(--mint);
    color: var(--teal);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    font-size: 11px;
    color: var(--copper);
    font-weight: 800;
}

.blog-card h3 {
    font-size: 18px;
    line-height: 1.5;
    margin: 12px 0;
}

.blog-card h3 a {
    transition: .3s;
}

.blog-card h3 a:hover {
    color: var(--teal);
}

.blog-card-content p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

.blog-read {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    margin-top: 22px;
}

.blog-read i {
    transition: .3s;
}

.blog-read:hover i {
    transform: translateX(5px);
}

.mobile-blog-btn {
    display: none;
}

/* FAQ */

.faq-section {
    background: var(--ivory);
}

.faq-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.faq-intro h2 {
    font-size: clamp(36px,4vw,54px);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.faq-intro p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 28px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(12,41,56,.06);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 22px;
    font-weight: 800;
    font-size: 14px;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: .3s;
}

.faq-item.active .faq-toggle {
    background: var(--teal);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.faq-answer p {
    padding: 0 22px 22px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}

/* CONTACT */

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

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

.contact-content h2 {
    color: white;
}

.contact-content h2 span {
    color: #9bd9c5;
}

.contact-content > p {
    color: rgba(255,255,255,.65);
}

.contact-content .section-label {
    color: #9bd9c5;
}

.contact-info-list {
    display: grid;
    gap: 18px;
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(255,255,255,.09);
    display: grid;
    place-items: center;
    color: #9bd9c5;
}

.contact-info-item span,
.contact-info-item strong {
    display: block;
}

.contact-info-item span {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    margin-bottom: 5px;
}

.contact-info-item strong {
    font-size: 13px;
}

.contact-form-card {
    background: white;
    border-radius: 30px;
    padding: 38px;
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0,0,0,.15);
}

.contact-form-card h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.contact-form-card > p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

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

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    font-size: 12px;
    font-weight: 800;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #f7f9f8;
    border: 1px solid #e5ebe7;
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    outline: none;
    transition: .3s;
    font-size: 13px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #78b7a3;
    box-shadow: 0 0 0 3px rgba(120,183,163,.12);
    background: white;
}

.consent-label {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    align-items: flex-start;
}

.consent-label input {
    margin-top: 3px;
    accent-color: var(--teal);
}

.form-submit {
    width: 100%;
    border: none;
    margin-top: 5px;
}

/* FOOTER */

.site-footer {
    background: #081e2a;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr .8fr .9fr 1fr;
    gap: 50px;
    padding-top: 75px;
    padding-bottom: 70px;
}

.brand-footer .brand-text strong {
    color: white;
}

.brand-footer .brand-text span {
    color: #9bd9c5;
}

.footer-brand-col > p {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    line-height: 1.9;
    margin: 25px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    color: #9bd9c5;
    transition: .3s;
}

.social-links a:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-4px);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-main h4 {
    color: white;
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact p {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    transition: .3s;
}

.footer-links a:hover {
    color: #9bd9c5;
    transform: translateX(4px);
}

.footer-contact i {
    color: #9bd9c5;
    margin-right: 8px;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9bd9c5;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    color: rgba(255,255,255,.45);
    font-size: 11px;
}

.footer-bottom i {
    color: var(--copper);
}

/* FLOATING WHATSAPP */

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 25px;
    z-index: 900;
    background: #1c9d69;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 30px rgba(28,157,105,.3);
    transition: .3s;
}

.floating-whatsapp span {
    position: absolute;
    right: 70px;
    background: var(--navy);
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: .3s;
    pointer-events: none;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
}

.floating-whatsapp:hover span {
    opacity: 1;
    transform: translateX(0);
}

/* SCROLL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) {
    transition-delay: .08s;
}

.reveal:nth-child(3) {
    transition-delay: .16s;
}

.reveal:nth-child(4) {
    transition-delay: .24s;
}

@keyframes floating {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* BLOG PAGES */

.page-hero {
    background: var(--ivory);
    padding: 85px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(40px,5vw,64px);
    letter-spacing: -3px;
}

.page-hero p {
    color: var(--muted);
    line-height: 1.8;
    margin: 20px auto 0;
    max-width: 650px;
}

.blog-listing {
    padding: 80px 0;
}

.blog-detail-container {
    width: min(850px,90%);
    margin: auto;
}

.blog-detail-cover {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 25px;
    margin-bottom: 40px;
}

.blog-detail-content {
    font-size: 16px;
    color: #526872;
    line-height: 1.9;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    margin: 35px 0 15px;
}

.blog-detail-content p {
    margin-bottom: 18px;
}

/* RESPONSIVE TABLET */

@media (max-width: 1050px) {
    .nav-menu {
        gap: 17px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-image-main {
        height: 430px;
    }

    .hero-visual {
        min-height: 460px;
    }

    .about-grid,
    .why-grid,
    .contact-grid {
        gap: 45px;
    }

    .footer-main {
        gap: 30px;
    }
}

/* MOBILE NAVIGATION */

@media (max-width: 850px) {
    .top-strip-right {
        display: none;
    }

    .top-strip-inner {
        justify-content: center;
    }

    .nav-container {
        min-height: 74px;
    }

    .desktop-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 45px;
        height: 45px;
        background: var(--mint2);
        border: 0;
        border-radius: 12px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        background: var(--navy);
        border-radius: 5px;
        transition: .3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        top: 0;
        right: 0;
        left: auto;
        width: min(360px, 88%);
        height: 100dvh;
        background: white;
        box-shadow: -20px 0 50px rgba(12,41,56,.12);
        padding: 110px 35px 40px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        transform: translateX(110%);
        transition: transform .4s cubic-bezier(.2,.7,.2,1);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        font-size: 15px;
        padding: 17px 0;
        border-bottom: 1px solid #edf1ee;
    }

    .nav-link::after {
        display: none;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-trigger {
        display: block;
    }

    .dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 10px 15px;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .mobile-cta {
        display: inline-flex;
        margin-top: 25px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(45px,10vw,68px);
    }

    .hero-visual {
        width: min(550px,100%);
        margin: auto;
        min-height: 450px;
    }

    .hero-image-main {
        width: 85%;
        height: 420px;
    }

    .floating-card-top {
        left: 0;
    }

    .floating-card-bottom {
        right: 0;
    }

    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .intro-item {
        border: 0;
        justify-content: flex-start;
        padding: 12px 10px;
    }

    .about-grid,
    .why-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 60px;
    }

    .about-visual {
        max-width: 550px;
        margin: auto;
        width: 100%;
    }

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

    .care-options-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 35px;
    }

    .why-visual {
        max-width: 550px;
        margin: auto;
        width: 100%;
    }

    .faq-grid {
        gap: 40px;
    }

    .contact-grid {
        gap: 45px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

/* SMALL MOBILE */

@media (max-width: 550px) {
    .container {
        width: 90%;
    }

    .section-padding {
        padding: 75px 0;
    }

    .top-strip {
        font-size: 10px;
        padding: 9px 0;
    }

    .brand-symbol {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text span {
        font-size: 8px;
    }

    .hero-section {
        padding-top: 55px;
    }

    .hero-grid {
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 46px;
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-trust {
        margin-top: 30px;
    }

    .hero-visual {
        min-height: 350px;
    }

    .hero-image-main {
        height: 340px;
        border-radius: 150px 150px 28px 28px;
    }

    .hero-image-decoration {
        inset: 20px -5px -10px 10px;
        border-radius: 150px 150px 28px 28px;
    }

    .hero-floating-card {
        padding: 11px 13px;
        gap: 9px;
        border-radius: 14px;
    }

    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .hero-floating-card strong {
        font-size: 10px;
    }

    .hero-floating-card span {
        font-size: 8px;
    }

    .floating-card-top {
        top: 30px;
        left: -5px;
    }

    .floating-card-bottom {
        bottom: 15px;
        right: -5px;
    }

    .hero-bottom-inner {
        font-size: 10px;
    }

    .intro-grid {
        gap: 5px;
    }

    .intro-item {
        font-size: 11px;
        gap: 8px;
    }

    .intro-item i {
        font-size: 15px;
    }

    .about-visual {
        min-height: 370px;
    }

    .about-image-large {
        height: 340px;
        width: 82%;
    }

    .about-image-small {
        height: 160px;
        width: 48%;
        border-width: 7px;
    }

    .about-circle-text {
        width: 90px;
        height: 90px;
        right: 5%;
        font-size: 10px;
    }

    .about-circle-text i {
        font-size: 20px;
    }

    .about-content h2,
    .why-content h2,
    .contact-content h2,
    .faq-intro h2 {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .section-heading h2,
    .blog-heading-row h2 {
        font-size: 37px;
        letter-spacing: -2px;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image {
        height: 220px;
    }

    .service-card-content {
        padding: 23px;
    }

    .care-option-card {
        padding: 28px;
        border-radius: 24px;
    }

    .care-option-card h3 {
        font-size: 25px;
    }

    .option-hours {
        font-size: 70px;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .process-step {
        padding: 5px;
    }

    .process-icon {
        width: 68px;
        height: 68px;
        font-size: 22px;
        border-radius: 20px;
    }

    .process-step h3 {
        font-size: 15px;
    }

    .process-step p {
        font-size: 12px;
    }

    .why-visual > img {
        height: 400px;
        border-radius: 25px;
    }

    .why-quote-card {
        left: -5px;
        bottom: 15px;
        padding: 18px;
        width: 85%;
    }

    .why-quote-card p {
        font-size: 15px;
    }

    .coverage-tags {
        gap: 8px;
    }

    .coverage-tags span {
        padding: 10px 15px;
        font-size: 11px;
    }

    .blog-heading-row {
        display: block;
    }

    .desktop-blog-btn {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-image {
        height: 220px;
    }

    .mobile-blog-btn {
        display: flex;
        margin-top: 30px;
        width: 100%;
    }

    .faq-question {
        font-size: 12px;
        padding: 18px;
    }

    .faq-answer p {
        font-size: 12px;
    }

    .contact-form-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .contact-form-card h3 {
        font-size: 23px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 55px;
        padding-bottom: 50px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .floating-whatsapp {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
        font-size: 23px;
    }

    .floating-whatsapp span {
        display: none;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* BLOG ARTICLE EXTRAS */

.blog-detail-content h2 {
    font-size: 27px;
    color: var(--navy);
    letter-spacing: -1px;
}

.blog-detail-content p {
    color: #60747d;
    font-size: 15px;
    line-height: 2;
}

.blog-article-notice {
    padding: 22px;
    margin: 35px 0;
    background: var(--mint2);
    border-left: 4px solid var(--teal);
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
}

.blog-article-cta {
    background: var(--navy);
    color: white;
    padding: 35px;
    border-radius: 24px;
    margin: 45px 0 35px;
}

.blog-article-cta h3 {
    color: white;
    font-size: 26px;
    margin-bottom: 12px;
}

.blog-article-cta p {
    color: rgba(255,255,255,.7);
    margin-bottom: 22px;
}

.blog-article-cta .btn-primary {
    background: white;
    color: var(--navy);
    border-color: white;
}

.blog-article-cta .btn-primary:hover {
    background: var(--mint);
}

.active-link {
    color: var(--teal) !important;
}

@media(max-width:550px) {
    .blog-detail-cover {
        height: 250px;
        border-radius: 18px;
    }

    .blog-detail-content h2 {
        font-size: 23px;
    }

    .blog-detail-content p {
        font-size: 14px;
    }

    .blog-article-cta {
        padding: 25px;
    }

    .blog-article-cta h3 {
        font-size: 22px;
    }
}
/* CARENEXIFY BRAND LOGO */

/* =========================================
   CARENEXIFY HEADER - FINAL ENHANCEMENTS
========================================= */

/* Logo */
.brand-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Active navigation */
.nav-link.active {
    color: var(--teal);
}

.nav-link.active::after {
    width: 100%;
}

/* Dropdown button reset */
.dropdown-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown icons */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-menu a i {
    color: var(--teal);
    width: 18px;
}

/* Mobile header */
@media(max-width: 850px) {

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .nav-menu .dropdown-trigger {
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 17px 0;
        font-size: 15px;
        border-bottom: 1px solid #edf1ee;
    }

    .nav-dropdown.open .dropdown-trigger i {
        transform: rotate(180deg);
    }

    .dropdown-trigger i {
        transition: transform .3s;
    }

    .nav-menu .dropdown-menu a {
        padding: 13px 10px;
    }

    .nav-menu .nav-cta {
        justify-content: center;
    }
}

@media(max-width: 550px) {

    .brand-logo {
        width: 43px;
        height: 43px;
    }

    .brand-text strong {
        font-size: 21px;
    }
}
/* ============================================
   CARENEXIFY - MOBILE NAVIGATION FIX
   Responsive Menu | Layering | Dropdown | Scroll
============================================ */

@media (max-width: 850px) {

    /* Header and stacking */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        overflow: visible !important;
    }

    .nav-container {
        position: relative;
        min-height: 74px;
        overflow: visible !important;
    }

    /* Mobile menu button */
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 10002;
        width: 46px;
        height: 46px;
        flex-shrink: 0;
        cursor: pointer;
        border: none;
        background: var(--mint2);
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

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

    /* Hamburger to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile navigation panel */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;

        width: min(360px, 88vw);
        height: 100vh;
        height: 100dvh;

        background: #ffffff;
        padding: 100px 28px 35px;

        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;

        box-shadow: -15px 0 45px rgba(12,41,56,.15);

        transform: translateX(110%) !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        transition:
            transform .35s ease,
            opacity .3s ease,
            visibility .3s ease;

        z-index: 10001;
    }

    /* OPEN state */
    .nav-menu.open {
        transform: translateX(0) !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Navigation links */
    .nav-menu > .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 17px 0;
        font-size: 15px;
        color: var(--navy);
        border-bottom: 1px solid #edf1ee;
    }

    .nav-menu > .nav-link:hover {
        color: var(--teal);
    }

    .nav-link::after {
        display: none !important;
    }

    /* Dropdown */
    .nav-dropdown {
        width: 100%;
        position: relative;
    }

    .nav-menu .dropdown-trigger {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        text-align: left;

        padding: 17px 0;
        border: 0;
        border-bottom: 1px solid #edf1ee;

        background: transparent;
        color: var(--navy);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    .dropdown-trigger i {
        transition: transform .3s ease;
    }

    .nav-dropdown.open .dropdown-trigger i {
        transform: rotate(180deg);
    }

    /* Dropdown closed by default */
    .nav-menu .dropdown-menu {
        display: none !important;
        position: static !important;

        width: 100%;
        min-width: 0;

        padding: 8px 0 12px 15px;
        margin: 0;

        background: #f7fbf9;
        border-radius: 12px;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none !important;
    }

    /* Dropdown open */
    .nav-dropdown.open .dropdown-menu {
        display: block !important;
    }

    .nav-menu .dropdown-menu a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 13px 10px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Disable desktop hover dropdown on mobile */
    .nav-dropdown:hover .dropdown-menu {
        transform: none !important;
    }

    /* CTA inside menu */
    .nav-menu .mobile-cta {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 22px;
    }

    .desktop-cta {
        display: none !important;
    }

    /* Prevent background scrolling */
    body.menu-open {
        overflow: hidden !important;
        height: 100%;
        touch-action: none;
    }
}

/* Smaller mobile */
@media (max-width: 550px) {

    .nav-menu {
        width: 88vw !important;
        padding-left: 24px;
        padding-right: 24px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;
    }
}

/* Desktop: reset mobile menu state */
@media (min-width: 851px) {

    .nav-menu {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .menu-toggle {
        display: none !important;
    }

    body.menu-open {
        overflow: auto !important;
    }
}

/* ===== MOBILE SERVICES MENU DEFINITIVE FIX ===== */

@media screen and (max-width: 850px) {

    #navMenu.open {
        overflow-y: auto !important;
        overflow-x: visible !important;
    }

    #navMenu .nav-dropdown {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        overflow: visible !important;
    }

    #navMenu #servicesTrigger {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10002 !important;
    }

    #navMenu #servicesMenu {
        display: none !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    #navMenu #servicesDropdown.open #servicesMenu {
        display: block !important;
    }

    #navMenu #servicesMenu a {
        display: flex !important;
        width: 100% !important;
        padding: 13px 16px !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #servicesDropdown.open #servicesTrigger .fa-chevron-down {
        transform: rotate(180deg);
    }

}
/* ==========================================
   CARENEXIFY MOBILE SERVICES DROPDOWN FIX
   ========================================== */

@media (max-width: 991px) {

    /* Services parent */
    .nav-menu .dropdown,
    .nav-menu li.dropdown,
    #servicesDropdown {
        position: relative !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Dropdown panel - force proper styling */
    .nav-menu .dropdown-menu,
    #servicesMenu,
    #servicesDropdown .dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        background: #eaf5f2 !important;
        background-image: none !important;

        border: none !important;
        border-radius: 12px !important;

        padding: 8px 12px !important;
        margin: 8px 0 12px !important;

        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;

        box-shadow: none !important;
        overflow: visible !important;
        z-index: 9999 !important;
    }

    /* Show dropdown when Services is opened */
    .nav-menu .dropdown.open > .dropdown-menu,
    .nav-menu .dropdown.active > .dropdown-menu,
    .nav-menu .dropdown.show > .dropdown-menu,
    #servicesDropdown.open #servicesMenu,
    #servicesDropdown.active #servicesMenu,
    #servicesDropdown.show #servicesMenu,
    #servicesMenu.open,
    #servicesMenu.active,
    #servicesMenu.show {
        display: block !important;
    }

    /* Dropdown list items */
    .nav-menu .dropdown-menu li,
    #servicesMenu li {
        display: block !important;
        width: 100% !important;
        list-style: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Dropdown links */
    .nav-menu .dropdown-menu li a,
    #servicesMenu li a,
    #servicesMenu a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;

        padding: 13px 15px !important;
        margin: 3px 0 !important;

        color: #174b46 !important;
        background: transparent !important;

        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
        text-decoration: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        white-space: normal !important;

        border-radius: 8px !important;
        transform: none !important;
    }

    /* Hover/tap style */
    .nav-menu .dropdown-menu li a:hover,
    #servicesMenu li a:hover {
        background: #d5eae4 !important;
        color: #b46e45 !important;
    }

    /* Remove accidental clipping from nav containers */
    .nav-menu,
    .nav-menu ul,
    .nav-menu li,
    .nav-menu .dropdown {
        overflow: visible !important;
    }
}

/* ==========================================================
   CARENEXIFY - CLEAN RESPONSIVE NAVIGATION
   Desktop Navigation + Mobile Drawer + Services Dropdown
   Theme: Deep Teal | Mint | Ivory | Copper
========================================================== */

/* ---------- DESKTOP DEFAULT ---------- */

.main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: visible;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 86px;
    overflow: visible;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-toggle {
    display: none;
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.dropdown-trigger i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform .25s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    min-width: 245px;
    padding: 10px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(12,41,56,.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .25s ease;
    z-index: 9999;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    color: #253d46;
    font-size: 13px;
    border-radius: 9px;
    transition: .2s ease;
}

.dropdown-menu a:hover {
    background: #eef8f4;
    color: #17695f;
}

.dropdown-menu a i {
    width: 18px;
    color: #17695f;
}

.mobile-cta {
    display: none;
}

/* ---------- MOBILE NAVIGATION ---------- */

@media (max-width: 850px) {

    .main-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        overflow: visible;
    }

    .nav-container {
        min-height: 74px;
        overflow: visible;
    }

    .desktop-cta {
        display: none !important;
    }

    /* Hamburger */
    .menu-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        position: relative;
        z-index: 10002;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 0;
        border-radius: 12px;
        background: #eef8f4;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 21px;
        height: 2px;
        background: #0c2938;
        border-radius: 5px;
        transition: .3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Main slide-in panel */
    #navMenu,
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        width: min(360px, 88vw) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;

        margin: 0 !important;
        padding: 100px 25px 35px !important;

        background: #ffffff !important;
        box-shadow: -15px 0 45px rgba(12,41,56,.14);

        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;

        gap: 0 !important;

        transform: translateX(105%) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            transform .35s ease,
            opacity .3s ease,
            visibility .3s ease;

        z-index: 10001 !important;
    }

    /* Open panel */
    #navMenu.open,
    .nav-menu.open {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Main navigation links */
    #navMenu > .nav-link,
    .nav-menu > .nav-link {
        display: flex !important;
        align-items: center;
        width: 100%;
        min-height: 48px;

        margin: 0 !important;
        padding: 14px 0 !important;

        font-size: 15px;
        font-weight: 700;
        color: #0c2938;

        border-bottom: 1px solid #edf1ee;
    }

    .nav-link::after {
        display: none !important;
    }

    /* Services parent - compact, no extra spacing */
    #servicesDropdown,
    .nav-dropdown {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
        border: 0 !important;
    }

    /* Services button */
    #servicesTrigger,
    .nav-menu .dropdown-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        min-height: 48px !important;
        height: auto !important;

        margin: 0 !important;
        padding: 14px 0 !important;

        border: 0 !important;
        border-bottom: 1px solid #edf1ee !important;
        border-radius: 0 !important;

        background: transparent !important;
        color: #0c2938 !important;

        font-family: inherit !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-align: left !important;

        cursor: pointer !important;
    }

    /* Services arrow */
    #servicesTrigger i,
    .dropdown-trigger i {
        transition: transform .25s ease;
    }

    #servicesDropdown.open #servicesTrigger i,
    .nav-dropdown.open .dropdown-trigger i {
        transform: rotate(180deg);
    }

    /* Submenu - CLOSED */
    #servicesMenu,
    .nav-menu .dropdown-menu {
        display: none !important;

        position: static !important;
        inset: auto !important;

        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 4px 0 6px 12px !important;

        border: 0 !important;
        border-radius: 0 0 12px 12px !important;

        background: #f4faf7 !important;
        box-shadow: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;

        overflow: visible !important;
        transition: none !important;
    }

    /* Submenu - OPEN only */
    #servicesDropdown.open > #servicesMenu,
    .nav-dropdown.open > .dropdown-menu {
        display: block !important;
    }

    /* Submenu links */
    #servicesMenu a,
    .nav-menu .dropdown-menu a {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-height: 42px !important;
        height: auto !important;

        margin: 0 !important;
        padding: 11px 12px !important;

        background: transparent !important;
        color: #315c55 !important;

        border: 0 !important;
        border-radius: 8px !important;

        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;

        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    #servicesMenu a:hover,
    .nav-menu .dropdown-menu a:hover {
        background: #d5f0e8 !important;
        color: #17695f !important;
    }

    /* No desktop hover effects on mobile */
    .nav-dropdown:hover > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Mobile CTA */
    #navMenu .mobile-cta,
    .nav-menu .mobile-cta {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 20px 0 0 !important;
    }

    body.menu-open {
        overflow: hidden !important;
        height: 100%;
    }
}

/* ---------- SMALL MOBILE ---------- */

@media (max-width: 550px) {

    #navMenu,
    .nav-menu {
        width: 88vw !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }
}

/* ---------- DESKTOP RESET ---------- */

@media (min-width: 851px) {

    #navMenu,
    .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        width: auto !important;
        height: auto !important;
        max-height: none !important;

        padding: 0 !important;
        margin: 0 !important;

        background: transparent !important;
        box-shadow: none !important;

        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        overflow: visible !important;
        transition: none !important;
    }

    .menu-toggle {
        display: none !important;
    }

    .mobile-cta {
        display: none !important;
    }

    body.menu-open {
        overflow: auto !important;
        height: auto !important;
    }

    #servicesMenu,
    .nav-menu .dropdown-menu {
        display: block;
    }
}
