/* =========================================================
   PARIKSHA BIOTECH — design tokens
   Palette: clinical red + warm paper white
   Display: Space Grotesk | Body: Inter | Data: IBM Plex Mono
   Signature: the "control / test line" strip motif, borrowed
   from a rapid diagnostic strip, used as a divider + accent
   throughout the site.
   ========================================================= */

:root {
    --red-900: #4A050F;
    --red-700: #A30D26;
    --red-600: #C8102E;
    --red-500: #E23349;
    --red-100: #FCE4E6;
    --red-50:  #FFF4F4;

    --paper:   #FFFBFA;
    --white:   #FFFFFF;
    --ink:     #1C1414;
    --muted:   #7A6363;
    --line:    #F0D9DA;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 14px;
    --shadow: 0 20px 50px rgba(74, 5, 15, 0.09);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= SIGNATURE: test-strip motif ================= */

.strip {
    width: 64px;
    margin-bottom: 18px;
}

.strip .control,
.strip .test {
    height: 4px;
    border-radius: 2px;
    transform-origin: left;
    animation: draw 900ms ease-out forwards;
}

.strip .control {
    background: var(--red-600);
    width: 100%;
}

.strip .test {
    background: var(--red-500);
    opacity: 0.45;
    width: 62%;
    margin-top: 6px;
    animation-delay: 150ms;
}

@keyframes draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--red-600);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-label::before {
    content: "";
    width: 22px;
    height: 3px;
    background: var(--red-600);
    border-radius: 2px;
}

/* ================= HEADER ================= */

.header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 3% 0;
    background: linear-gradient(var(--paper) 55%, transparent);
}

.header {
    height: 76px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 26px;

    background: rgba(255, 251, 250, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 999px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(74, 5, 15, 0.10);

    transition: box-shadow 0.3s, transform 0.3s;
}

.header:hover {
    box-shadow: 0 18px 42px rgba(74, 5, 15, 0.14);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red-600);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 999px;
    white-space: nowrap;
    transition: 0.25s;
}

.header-cta:hover {
    background: var(--red-700);
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 26px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.logo h2 {
    font-size: 17px;
    letter-spacing: 1px;
    font-weight: 700;
}

.logo h2 span {
    color: var(--red-600);
}

.logo small {
    color: var(--muted);
    font-size: 10px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

nav#navbar {
    display: flex;
    gap: 34px;
}

nav#navbar a {
    position: relative;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 0;
    transition: 0.25s;
}

nav#navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: var(--red-600);
    transition: width 0.25s;
}

nav#navbar a:hover,
nav#navbar a.active {
    color: var(--red-600);
}

nav#navbar a:hover::after,
nav#navbar a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--red-600);
}

/* ================= BUTTONS ================= */

.btn {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.25s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn.primary {
    background: var(--red-600);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--red-700);
    transform: translateY(-2px);
}

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

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

.text-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red-600);
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
}

/* ================= PAGE HERO (inner pages) ================= */

.page-hero {
    padding: 70px 8% 60px;
    background:
        radial-gradient(circle at 88% 10%, var(--red-50) 0, transparent 45%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-hero .strip {
    margin-left: 0;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 600px;
    color: var(--muted);
    font-size: 17px;
}

.crumb {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--red-600);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.crumb span {
    color: var(--muted);
}

/* ================= HOME HERO ================= */

.hero {
    min-height: 560px;
    padding: 70px 8% 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 46px;

    background:
        radial-gradient(circle at 85% 20%, var(--red-100) 0, transparent 38%),
        var(--paper);
}

.hero-content {
    flex: 1 1 460px;
    max-width: 50%;
}

/* HERO IMAGE SLOT — reserved space on the right of the hero for a photo,
   matched 50/50 with the text column. Drop an <img> inside
   .hero-image-slot (see index.html) to replace the placeholder. */

.hero-image-slot {
    flex: 1 1 460px;
    max-width: 50%;
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px;
    overflow: hidden;
}

.hero-image-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-image-slot .placeholder-text {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
}

.hero-image-slot .placeholder-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--red-600);
    margin-bottom: 8px;
}

.tagline {
    color: var(--red-600);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(46px, 6.4vw, 78px);
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin-bottom: 26px;
}

.hero h1 span {
    display: block;
    color: var(--red-600);
}

.hero-text {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 34px;
}

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

/* ================= STATS ================= */

.stats {
    background: var(--red-900);
    color: var(--white);
    padding: 34px 8%;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.stat:last-child {
    border: none;
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 27px;
    color: var(--red-500);
    margin-bottom: 8px;
}

.stat span {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* ================= COMMON SECTION ================= */

.section {
    padding: 90px 8%;
}

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

.section-heading .section-label {
    justify-content: center;
}

.section-heading h2 {
    font-size: 42px;
    margin-bottom: 14px;
}

.section-heading > p:last-child {
    color: var(--muted);
}

/* ================= ABOUT ================= */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    background: var(--white);
}

.about-image {
    min-height: 420px;
    border-radius: 24px;
    background:
        radial-gradient(circle, var(--red-100), var(--red-50) 60%, var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.about-image .about-image-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
}

.about-image .strip-panel .strip {
    width: 100%;
    margin-bottom: 24px;
}

.about-image .strip-panel .strip .control,
.about-image .strip-panel .strip .test {
    width: 100%;
}

.about-content h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 22px;
}

.about-content h2 span {
    color: var(--red-600);
}

.about-content p {
    color: var(--muted);
    margin-bottom: 16px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.mission-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    background: var(--paper);
}

.mission-card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--red-700);
}

.mission-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* ================= PRODUCTS ================= */

.products {
    background: var(--paper);
}

.search-box {
    width: min(600px, 100%);
    margin: 0 auto 50px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--white);
}

.search-box input:focus {
    border-color: var(--red-600);
}

.search-box span {
    position: absolute;
    right: 18px;
    top: 16px;
    color: var(--red-600);
}

.no-results {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

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

.product-media {
    position: relative;
    height: 210px;
    background: var(--red-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-main {
    font-size: 60px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.product-img:hover {
    transform: scale(1.04);
}

.pack-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red-600);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* ================= IMAGE LIGHTBOX ================= */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: min(900px, 92vw);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-caption {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 15px;
    margin-top: 18px;
    text-align: center;
    letter-spacing: 0.3px;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.lightbox-close:hover {
    background: var(--red-600);
    border-color: var(--red-600);
}

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red-600);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.thumb-row {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.thumb.active,
.thumb:hover {
    border-color: var(--red-600);
    background: var(--red-100);
}

.product-info {
    padding: 22px;
}

.product-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red-600);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 20px;
    margin: 10px 0 8px;
}

.product-info > p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    min-height: 58px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 14px 0 16px;
}

.price-current {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--red-700);
}

.price-original {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
}

.save-tag {
    font-size: 11px;
    color: var(--red-600);
    font-family: var(--font-mono);
    font-weight: 700;
}

.order-btn {
    width: 100%;
    padding: 13px;
    border: none;
    background: var(--red-600);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s;
}

.order-btn:hover {
    background: var(--red-700);
}

/* ================= WHY US / FEATURES ================= */

.why-us {
    background: var(--white);
}

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

.feature {
    padding: 32px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: 0.3s;
}

.feature:hover {
    border-color: var(--red-500);
    transform: translateY(-5px);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-100);
    color: var(--red-600);
    border-radius: 10px;
    font-size: 20px;
    margin-bottom: 18px;
}

.feature h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--muted);
    font-size: 13.5px;
}

/* ================= CTA ================= */

.cta {
    margin: 0 8% 90px;
    padding: 50px 55px;
    background: var(--red-900);
    color: var(--white);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta p {
    color: var(--red-500);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cta h2 {
    font-size: 32px;
}

.cta-button {
    background: var(--white);
    color: var(--red-700);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background: var(--red-100);
}

/* ================= CONTACT ================= */

.contact {
    background: var(--paper);
}

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

.contact-card {
    background: var(--white);
    padding: 34px 20px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.contact-card p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 13.5px;
}

.contact-card a.action {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 7px;
    background: var(--red-600);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.contact-card a.action:hover {
    background: var(--red-700);
}

.contact-note {
    max-width: 760px;
    margin: 60px auto 0;
    padding: 26px 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-note .strip {
    margin: 0;
    width: 44px;
}

.contact-note p {
    color: var(--muted);
    font-size: 13.5px;
}

/* ================= TESTIMONIALS ================= */

.testimonials {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
}

.testimonial-viewport {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);

    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;

    transition: transform 0.15s ease, box-shadow 0.3s, border-color 0.3s;
    will-change: transform;
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--red-100);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.slider-dots .dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: 0.25s;
}

.slider-dots .dot.active {
    width: 24px;
    border-radius: 5px;
    background: var(--red-600);
}

.testimonial-stars {
    color: var(--red-500);
    font-size: 14px;
    letter-spacing: 3px;
}

.testimonial-quote {
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.75;
    flex-grow: 1;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--red-600);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}

.testimonial-person h5 {
    font-size: 13.5px;
    font-weight: 700;
}

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

/* ================= FEATURED (home teaser) ================= */

.featured-footer {
    text-align: center;
    margin-top: 45px;
}

/* ================= FOOTER ================= */

footer {
    position: relative;
    background: var(--red-900);
    color: var(--white);
    padding: 70px 15% 25px;
    margin-top: 40px;
    border-radius: 36px 36px 0 0;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226,51,73,0.25), transparent 65%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: relative;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1);
}

.footer-logo h3 {
    font-size: 15px;
}

.footer-logo p {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    margin-top: 4px;
}

.footer-brand > p {
    color: rgba(255,255,255,0.6);
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--white);
    font-size: 14px;
    transition: 0.25s;
}

.footer-socials a:hover {
    background: var(--red-600);
    border-color: var(--red-600);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

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

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 13.5px;
    transition: 0.2s;
    width: fit-content;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 13.5px;
}

.footer-contact li span:first-child {
    color: var(--red-500);
}

.copyright {
    padding-top: 22px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.copyright .made {
    color: rgba(255,255,255,0.35);
}

/* ================= CURSOR PARTICLES ================= */

#cursor-fx {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 900px), (hover: none) {
    #cursor-fx {
        display: none;
    }
}

/* ================= REVEAL ON SCROLL ================= */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ================= MODAL (unused fallback, kept minimal) ================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 20, 20, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 460px;
    padding: 36px;
    background: var(--white);
    border-radius: 18px;
    position: relative;
}

.close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
    .about {
        grid-template-columns: 1fr;
        gap: 46px;
    }

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

    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }

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

    .stat:nth-child(2) {
        border-right: none;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content,
    .hero-image-slot {
        max-width: 100%;
        width: 100%;
        flex: 0 1 auto;
    }

    .hero-image-slot {
        min-height: 0;
        padding: 10px;
    }

    .hero-image-slot img {
        height: auto;
        max-height: 320px;
    }
}

@media (max-width: 700px) {
    .header-wrap {
        padding: 12px 4% 0;
    }

    .header {
        padding: 0 20px;
        border-radius: 24px;
    }

    nav#navbar {
        display: none;
        position: absolute;
        left: 0;
        top: 88px;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 25px;
        gap: 16px;
        box-shadow: 0 16px 34px rgba(74, 5, 15, 0.14);
        border: 1px solid var(--line);
        border-radius: 20px;
    }

    .header-cta {
        display: none;
    }

    nav#navbar.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero,
    .page-hero {
        padding: 30px 6% 40px;
    }

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

    .section {
        padding: 70px 6%;
    }

    .section-heading h2,
    .about-content h2 {
        font-size: 32px;
    }

    .features,
    .contact-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .cta {
        margin: 0 6% 70px;
        padding: 36px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta h2 {
        font-size: 26px;
    }

    footer {
        border-radius: 26px 26px 0 0;
        padding: 50px 6% 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand > p {
        max-width: 100%;
    }

    .contact-note {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }
}
