/* ===================================
   RENAV MESSENGER WEBSITE - STYLE.CSS
   Responsive, Accessible, Modern
   =================================== */

/* CSS Variables for consistency */
:root {
    --font-primary: 'DM Sans', sans-serif;
    --font-secondary: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    --color-bg: rgb(252, 245, 235);
    --color-text: #000;
    --color-green: #1ead55;
    --color-brown: rgb(100, 66, 33);
    --color-brown-dark: #654321;
    --color-green-dark: #106634;
    --color-whatsapp: rgb(42, 203, 146);
    --color-meta: rgb(85, 171, 253);
    --color-footer-bg: rgb(33, 28, 117);
    --color-footer-accent: rgb(76, 70, 197);
    --max-width: 1440px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Main Container - RESPONSIVE */
.all-Pages {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.all-Pages-content {
    width: 100%;
    max-width: var(--max-width);
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--color-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 calc(50vw - 50%);
}

.navbar header {
    background-color: rgba(252, 245, 235, 0.95);
    font-family: var(--font-secondary);
}

.nav-links {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.left-links #logo {
    width: 35px;
    height: auto;
}

.center-links {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 60px);
    font-size: clamp(16px, 1.25vw, 20px);
}

.center-links a {
    text-decoration: none;
    color: var(--color-text);
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
}

/* Focus states for accessibility */
.center-links a:focus,
.right-links:focus {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

.active:hover {
    color: rgb(53, 2, 156);
    background-color: rgba(128, 128, 128, 0.1);
}

.right-links {
    background-color: white;
    border: 1px solid black;
    padding: 14px 24px;
    border-radius: 9999px;
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--font-secondary);
    font-size: clamp(16px, 1.25vw, 20px);
    transition: var(--transition);
    cursor: pointer;
}

.right-links img {
    width: 25px;
    height: auto;
}

.right-links:hover {
    background-color: rgb(87, 196, 87);
    color: white;
    transform: scale(1.05);
}

.right-links:active {
    transform: scale(0.98);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger:focus {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* Hamburger animation when open */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-size: 24px;
    text-decoration: none;
    color: var(--color-text);
    padding: 15px 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background-color: rgba(128, 128, 128, 0.1);
    color: rgb(53, 2, 156);
}

/* ===================================
   CONSENT PREFERENCE
   =================================== */
.consent_preference {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.consent_preference img {
    width: 40px;
    height: 40px;
    background-color: rgb(0, 86, 167);
    border-radius: 50%;
    padding: 5px;
    transition: var(--transition);
}

.consent_preference:hover {
    cursor: pointer;
}

.consent_preference:hover img {
    transform: scale(1.1);
}

.consent_preference:focus-within {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
    border-radius: 50%;
}

/* ===================================
   PAGE 1 - HERO
   =================================== */
.Page1 {
    padding: clamp(10px, 3vw, 60px);
}

.Page1 .content1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(28px, 5vw, 60px);
    flex-wrap: wrap;
    font-weight: 550;
    text-align: center;
}

.Page1 .content2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(28px, 5vw, 60px);
    flex-wrap: wrap;
}

.Page1 .content3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.Page1 .content3 button {
    border-radius: 9999px;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.Page1 .content3 button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.Page1 .content3 button:active {
    transform: scale(0.98);
}

.Page1 .content3 .whatsapp {
    color: var(--color-whatsapp);
    border: 1px solid var(--color-whatsapp);
    background-color: white;
}

.Page1 .content3 .meta {
    color: var(--color-meta);
    border: 1px solid var(--color-meta);
    background-color: white;
}

.Page1 .content4 {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.Page1 .content4 img {
    border: 5px solid white;
    border-radius: 10px;
    -webkit-mask-image: linear-gradient(to top, #fff0 0%, rgb(0 0 0) 50% 50%);
    mask-image: linear-gradient(to top, #fff0 0%, rgb(0 0 0) 50% 50%);
    max-width: 75%;
    height: auto;
}

/* Section Spacing (replacing <br> tags) */
.section-spacing {
    height: clamp(30px, 5vw, 60px);
}

/* ===================================
   PAGE 2 & 6 - FEATURE SECTIONS
   =================================== */
.Page2,
.Page6 {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.Page2 .content1,
.Page6 .content1 {
    text-align: center;
    font-size: clamp(20px, 2vw, 25px);
    color: #434343;
    margin-bottom: 50px;
}

.Page2 .content2,
.Page6 .content2 {
    display: flex;
    align-items: center;
    gap: clamp(30px, 10vw, 200px);
    padding-left: clamp(20px, 5vw, 50px);
    flex-wrap: wrap;
    justify-content: center;
}

.Page2 .left_box,
.Page6 .left_box {
    flex: 1;
    min-width: 280px;
}

.Page2 .left_box .box-content-1,
.Page6 .left_box .box-content-1 {
    font-size: clamp(32px, 4vw, 49px);
    color: var(--color-green);
    margin-bottom: 50px;
}

.Page2 .left_box .box-content-2,
.Page6 .left_box .box-content-2 {
    font-size: clamp(18px, 2vw, 25px);
    margin-bottom: 20px;
    max-width: 100%;
}

.Page2 .right_box,
.Page6 .right_box {
    flex: 1;
    min-width: 280px;
}

.Page2 .right_box .box-content-1 img,
.Page6 .right_box .box-content-1 img {
    -webkit-mask-image: linear-gradient(to left, #fff0 0%, rgb(0 0 0) 100% 100%);
    mask-image: linear-gradient(to left, #fff0 0%, rgb(0 0 0) 100% 100%);
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

/* ===================================
   PAGE 3, 5, 7 - CARD GRIDS
   =================================== */
.Page3,
.Page5,
.Page7 {
    display: block;
    padding: 0 20px;
}

.Page3 .box-container,
.Page5 .box-container,
.Page7 .box-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px 100px 20px;
    width: 100%;
}

/* Common box styles */
.Page3 .box,
.Page7 .box {
    background-color: rgb(232, 245, 233);
    padding: 30px;
    box-shadow: rgb(16, 102, 52) 3px 3px 5px 0px;
    border-radius: 20px;
    line-height: 1.4;
    transition: var(--transition);
}

.Page3 .box:hover,
.Page7 .box:hover {
    transform: translateY(-5px);
    box-shadow: rgb(16, 102, 52) 5px 5px 15px 0px;
}

.Page5 .box {
    background-color: rgb(255, 236, 200);
    padding: 30px;
    box-shadow: rgb(217, 184, 133) 3px 3px 5px 0px;
    border-radius: 20px;
    line-height: 1.4;
    border: 1px solid rgb(229, 201, 153);
    transition: var(--transition);
}

.Page5 .box:hover {
    transform: translateY(-5px);
    box-shadow: rgb(217, 184, 133) 5px 5px 15px 0px;
}

.Page3 .box .box-content-1,
.Page5 .box .box-content-1,
.Page7 .box .box-content-1 {
    margin-bottom: 30px;
}

.Page3 .box .box-content-2,
.Page7 .box .box-content-2 {
    font-size: clamp(20px, 2vw, 25px);
    color: var(--color-green-dark);
    margin-bottom: 20px;
}

.Page5 .box .box-content-2 {
    font-size: clamp(20px, 2vw, 25px);
    color: var(--color-brown-dark);
    margin-bottom: 20px;
}

.Page3 .box .box-content-3,
.Page5 .box .box-content-3,
.Page7 .box .box-content-3 {
    line-height: 1.4;
    font-size: 16px;
}

/* ===================================
   PAGE 4 - SHARED TEAM INBOX
   =================================== */
.Page4 {
    display: flex;
    align-items: center;
    gap: clamp(20px, 5vw, 50px);
    padding: 0 clamp(20px, 5vw, 50px);
    flex-wrap: wrap;
    justify-content: center;
}

.Page4 .right_box {
    flex: 1;
    min-width: 280px;
}

.Page4 .right_box .box-content-1 {
    font-size: clamp(32px, 4vw, 49px);
    color: var(--color-brown);
    margin-bottom: 50px;
}

.Page4 .right_box .box-content-2 {
    font-size: clamp(18px, 2vw, 25px);
    margin-bottom: 20px;
}

.Page4 .left_box {
    flex: 1;
    min-width: 280px;
}

.Page4 .left_box .box-content-1 img {
    -webkit-mask-image: linear-gradient(to right, #fff0 0%, rgb(0 0 0) 100% 100%);
    mask-image: linear-gradient(to right, #fff0 0%, rgb(0 0 0) 100% 100%);
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

/* ===================================
   MARQUEE - CSS ANIMATION
   =================================== */
.marquee {
    padding: 50px 20px;
    background-color: white;
    overflow: hidden;
}

.marquee .heading {
    text-align: center;
    font-size: clamp(20px, 2vw, 25px);
    color: rgb(138, 79, 79);
    margin-bottom: 20px;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content img {
    width: clamp(150px, 15vw, 250px);
    height: auto;
    margin: 0 clamp(25px, 4vw, 50px);
    object-fit: contain;
}

/* Fallback for old marquee (to be removed from HTML) */
.marquee marquee {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.marquee marquee img {
    width: clamp(150px, 15vw, 250px);
    margin: 0 clamp(25px, 4vw, 50px);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background-color: var(--color-footer-bg);
    color: white;
    padding: 0 0 20px 0;
    line-height: 1.4;
    border-radius: 0 0 90px 90px;
    margin-bottom: 50px;
}

footer .content {
    margin: 0 clamp(20px, 8vw, 126px) 0 clamp(20px, 5vw, 70px);
    padding-top: 60px;
    display: flex;
    text-align: left;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
    justify-content: space-between;
}

footer .copyright {
    text-align: center;
    padding: 20px;
    font-size: clamp(12px, 1.2vw, 14px);
}

footer .box2_content,
footer .box3_content,
footer .box4_content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .box1 {
    padding: 0 0 20px 20px;
    width: 100%;
    max-width: 488px;
    min-width: 250px;
    flex: 1;
    text-align: left;
}

footer .box1 img {
    height: 150px;
    width: auto;
}

footer .box1 .box1_content {
    max-width: 320px;
    margin: 20px 0 16px 0;
}

footer .box2,
footer .box3,
footer .box4 {
    padding: 0 0 20px 0;
    min-width: 150px;
    flex: 0 1 auto;
}

footer .box2_content,
footer .box3_content,
footer .box4_content {
    margin-bottom: 12px;
    color: var(--color-footer-accent);
}

footer .box2_content p,
footer .box3_content p,
footer .box4_content p {
    text-decoration: 2px wavy underline;
    font-size: clamp(16px, 1.5vw, 20px);
}

footer .box2_content a,
footer .box3_content a,
footer .box4_content a {
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

footer .box2_content a:hover,
footer .box3_content a:hover,
footer .box4_content a:hover {
    color: var(--color-footer-accent);
}

footer .box2_content a:focus,
footer .box3_content a:focus,
footer .box4_content a:focus {
    outline: 2px solid var(--color-footer-accent);
    outline-offset: 2px;
}

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

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {

    .Page2 .content2,
    .Page6 .content2 {
        flex-direction: column;
        text-align: center;
    }

    .Page4 {
        flex-direction: column-reverse;
        text-align: center;
    }

    /* Grid: 2 columns on tablet */
    .Page3 .box-container,
    .Page5 .box-container,
    .Page7 .box-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .center-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .Page1 .content1,
    .Page1 .content2 {
        flex-direction: column;
    }

    .Page1 .content4 img {
        max-width: 95%;
    }

    /* Grid: 1 column on mobile */
    .Page3 .box-container,
    .Page5 .box-container,
    .Page7 .box-container {
        grid-template-columns: 1fr;
    }

    footer .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .box1 {
        text-align: center;
        padding-left: 0;
    }

    footer .box1 .box1_content {
        max-width: 100%;
    }

    footer {
        border-radius: 0 0 40px 40px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .nav-links {
        padding: 15px;
    }

    .right-links {
        padding: 10px 16px;
        font-size: 14px;
    }

    .Page1 .content3 {
        flex-direction: column;
    }

    .Page1 .content3 button {
        width: 100%;
        max-width: 280px;
    }

    .Page2 .left_box .box-content-1,
    .Page6 .left_box .box-content-1,
    .Page4 .right_box .box-content-1 {
        margin-bottom: 30px;
    }

    .marquee-content {
        animation-duration: 20s;
    }

    footer {
        border-radius: 0 0 20px 20px;
        margin-bottom: 30px;
    }

    footer .content {
        padding-top: 40px;
    }

    .consent_preference {
        bottom: 10px;
        left: 10px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .Page3 .box,
    .Page7 .box {
        border: 2px solid var(--color-green-dark);
    }

    .Page5 .box {
        border: 2px solid var(--color-brown-dark);
    }
}

/* Small Mobile Fixes (<375px) */
/* Small Mobile Fixes (<375px) */
@media (max-width: 375px) {
    .all-Pages {
        padding: 0;
    }

    .Page1 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .Page2,
    .Page3,
    .Page4,
    .Page5,
    .Page6,
    .Page7,
    footer .content {
        padding-left: 5px;
        padding-right: 5px;
    }

    .Page3 .box-container,
    .Page5 .box-container,
    .Page7 .box-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .marquee {
        padding-left: 0;
        padding-right: 0;
    }

    .Page2 .content2,
    .Page6 .content2 {
        padding-left: 0;
        padding-right: 0;
        gap: 20px;
    }

    .Page2 .left_box,
    .Page6 .left_box,
    .Page2 .right_box,
    .Page6 .right_box,
    .Page4 .left_box,
    .Page4 .right_box {
        min-width: auto;
        width: 100%;
        padding: 0;
    }

    .Page1 .content1,
    .Page1 .content2 {
        font-size: clamp(24px, 5vw, 40px);
    }

    .Page1 .content4 img {
        max-width: 100%;
    }

    .mobile-nav {
        width: 100%;
    }
}