/* ====================================
   R&N Analytics - Landing Page Styles
   ==================================== */

/* CSS Variables */
:root {
    --color-primary: #137374;
    --color-dark-blue: #0a355b;
    --color-dark: #032137;
    --color-gray: #434343;
    --color-white: #fff;
    --color-cream: #fff7e9;
    --color-yellow: #fed992;
    --color-yellow-border: #fdbf49;
    --color-green: #98d29b;
    --color-teal: #78c6c4;
    --color-teal-bg: rgba(120, 198, 196, 0.2);
    --color-green-bg: rgba(152, 210, 155, 0.2);
    --color-yellow-bg: rgba(254, 217, 146, 0.2);
    
    --font-primary: 'Nunito', sans-serif;
    --font-heading: 'Figtree', sans-serif;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Landing Page Container */
.landing-page {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* ====================================
   Header Menu
   ==================================== */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 100px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-menu.visible {
    transform: translateY(0);
    opacity: 1;
}

.logo {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 30px;
    color: var(--color-dark-blue);
    line-height: 45px;
    display: inline-flex;
    gap: 6px;
}

/* Logo Animation */
.logo-rn {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: transparent;
    color: var(--color-dark-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: rnHighlight 2s ease-in-out infinite;
}

.logo-analytics {
    display: inline-block;
    padding: 2px 0;
    color: var(--color-dark-blue);
    transition: color 0.3s ease;
    animation: analyticsHighlight 2s ease-in-out infinite;
}

@keyframes rnHighlight {
    0%, 100% {
        background-color: transparent;
        color: var(--color-dark-blue);
    }
    25%, 50% {
        background-color: var(--color-dark-blue);
        color: var(--color-white);
    }
}

@keyframes analyticsHighlight {
    0%, 50% {
        opacity: 0.6;
    }
    75%, 100% {
        opacity: 1;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    border-radius: 25px;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 18px 60px;
}

.btn-primary:hover {
    background-color: #0f6060;
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 18px 50px;
}

.btn-secondary:hover {
    background-color: #0f6060;
}

/* ====================================
   Section Labels
   ==================================== */
.section-label {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-primary);
    line-height: 35px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    position: relative;
    min-height: 732px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 180px 100px 100px;
    background: linear-gradient(135deg, rgba(120, 198, 196, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://www.figma.com/api/mcp/asset/a8ba7d94-c723-4ba3-b963-4a18e033ac82') center/cover no-repeat;
    z-index: -1;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 70px;
    line-height: 90px;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.hero-description {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 30px;
    line-height: 45px;
    color: var(--color-gray);
    max-width: 881px;
    margin-bottom: 50px;
}

/* ====================================
   Social Proof Banner
   ==================================== */
.social-proof {
    padding: 60px 100px;
    text-align: center;
}

.social-proof-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.logo-scroll-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
}
/* Pause animation on hover */
.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.9;
    flex-shrink: 0;
}

/* ====================================
   Problem Section
   ==================================== */
.problem-section {
    padding: 80px 100px;
    position: relative;
}

.problem-section::before {
    content: '+';
    position: absolute;
    top: 60px;
    right: 120px;
    font-size: 80px;
    font-weight: 300;
    color: var(--color-green);
    line-height: 1;
}

.problem-container {
    display: flex;
    align-items: center;
    position: relative;
}

.problem-main {
    flex: 1;
    background: var(--color-cream);
    border: 1px solid var(--color-yellow);
    border-radius: 40px;
    padding: 80px 100px 80px 60px;
}

.problem-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 70px;
    line-height: 85px;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.problem-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 70px;
    line-height: 85px;
    color: var(--color-primary);
}

.problem-details {
    flex: 0 0 450px;
    background: var(--color-white);
    border: 1px solid var(--color-yellow);
    border-radius: 40px;
    padding: 50px;
    margin-left: -80px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.problem-details p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 25px;
    line-height: 40px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.problem-details p:last-child {
    margin-bottom: 0;
}

/* ====================================
   Value Section
   ==================================== */
.value-section {
    background: var(--color-teal-bg);
    padding: 80px 100px;
}

.value-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 55px;
    color: var(--color-dark);
    margin-bottom: 50px;
}

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

.value-card {
    background: var(--color-white);
    border: 1px solid var(--color-teal);
    border-radius: 20px;
    padding: 25px;
    min-height: 289px;
}

.value-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 20px;
}

.icon-chart {
    width: 26px;
    height: 20px;
    background: linear-gradient(to top, var(--color-teal) 60%, transparent 60%),
                linear-gradient(to top, var(--color-yellow-border) 75%, transparent 75%) 9px 0,
                linear-gradient(to top, var(--color-green) 100%, transparent 100%) 18px 0;
    background-size: 8px 100%;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    border-radius: 2px 2px 0 0;
}

.value-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 35px;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.value-card p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: var(--color-gray);
}

/* ====================================
   Differentiation Section
   ==================================== */
.differentiation-section {
    padding: 100px 100px;
}

.diff-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.diff-left {
    flex: 1;
    max-width: 500px;
    position: sticky;
    top: 120px; /* Sticky effect for the left content */
}

.diff-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; /* Prevents cards from stretching to full width */
}

.diff-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 50px;
    line-height: 65px;
    color: var(--color-dark);
    margin-bottom: 50px;
}

.btn-culture-cta {
    background-color: var(--color-primary); /* Teal #137374 */
    color: white;
    width: 488px;
    height: 87px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-culture-cta:hover {
    transform: translateY(-2px);
    background-color: #106061; /* Slightly darker teal */
}

.diff-card {
    border-radius: 20px;
    padding: 20px;
    width: 100%; /* Default fallback */
}

/* Green Card Style */
.diff-card-green {
    background: #e9f5e9; /* Light green bg */
    border: 1px solid var(--color-green);
    width: 665px;
    min-height: 120px;
    max-width: 100%; /* Prevent overflow on resize */
}

/* Yellow Card Style */
.diff-card-yellow {
    background: #fff9ed; /* Light yellow bg */
    border: 1px solid var(--color-yellow-border);
    width: 572px;
    min-height: 120px;
    max-width: 100%;
}

.diff-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.diff-card p {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-gray);
}

/* ====================================
   Who We Work With Section
   ==================================== */
.work-with-section {
    margin: 0 100px 80px;
    background: var(--color-teal-bg);
    border: 1px solid var(--color-teal);
    border-radius: 70px;
    padding: 80px;
    text-align: center;
}

.work-with-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 60px;
    color: var(--color-dark);
    max-width: 894px;
    margin: 0 auto;
}

/* ====================================
   Testimonials Section
   ==================================== */
.testimonials-section {
    padding: 80px 100px;
    position: relative;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 60px;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    position: relative;
}

.testimonial-card {
    background: var(--color-green-bg);
    border: 1px solid var(--color-green);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
}

.testimonial-card:nth-child(2) {
    justify-self: start;
}

.testimonial-card:nth-child(3) {
    justify-self: end;
    margin-top: 40px;
}

.testimonial-card:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 20px;
}

.testimonial-logo {
    height: 32px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-gray);
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: var(--color-dark);
}

.author-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-dark);
}

/* Decorative X shape between testimonials */
.testimonials-decoration {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: var(--color-yellow-border);
    font-weight: 300;
    opacity: 0.8;
}

/* ====================================
   FAQ Section
   ==================================== */
.faq-section {
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 55px;
    color: var(--color-dark);
}

.faq-list {
    width: 100%;
}

.faq-item {
    background: var(--color-cream);
    border: 1px solid var(--color-yellow);
    border-radius: 15px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-dark);
    padding: 16px 60px 16px 25px;
    cursor: pointer;
    list-style: none;
    position: relative;
    white-space: nowrap;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: var(--color-gray);
    padding: 0 25px 16px;
}

/* ====================================
   Final CTA Section
   ==================================== */
.final-cta-section {
    padding: 120px 100px;
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 100px;
    line-height: 90px;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.cta-description {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 60px;
    color: var(--color-dark);
    margin-bottom: 50px;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background-color: var(--color-dark-blue);
    padding: 30px 50px 20px;
    position: relative;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section {
    flex-shrink: 0;
}

.footer-logo {
    width: 100px;
    height: auto;
}

.footer-links-container {
    display: flex;
    gap: 25px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 90px;
}

.footer-header {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
    transition: opacity 0.3s;
}

.footer-header:hover {
    opacity: 0.8;
}

.footer-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
}

.contact-value {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
}

.linkedin-link {
    display: inline-block;
}

.linkedin-link img {
    width: 20px;
    height: 20px;
}

.copyright {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-white);
    text-align: right;
    margin-top: 20px;
}

/* ====================================
   Geometric Shapes (Background)
   ==================================== */
.geometric-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1200px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 55px;
        line-height: 70px;
    }
}

@media (max-width: 968px) {
    .header-menu {
        padding: 30px 50px;
    }
    
    .hero {
        padding: 150px 50px 80px;
    }
    
    .hero-title {
        font-size: 45px;
        line-height: 60px;
    }
    
    .hero-description {
        font-size: 22px;
        line-height: 35px;
    }
    
    .problem-container {
        flex-direction: column;
    }
    
    .problem-details {
        flex: 1;
    }
    
    .diff-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .diff-left {
        width: 100%;
        max-width: 100%;
        position: static;
    }

    .diff-right .diff-card,
    .diff-right .diff-card:nth-child(n) {
        width: 100%; /* Reset widths to full on mobile */
    }
    
    .faq-section {
        flex-direction: column;
        gap: 50px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links-container {
        flex-wrap: wrap;
    }
    
    /* Who We Work With - Tablet */
    .work-with-section {
        margin: 0 50px 60px;
        padding: 60px 40px;
    }
    
    .work-with-title {
        font-size: 32px;
        line-height: 42px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* High z-index */
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-blue);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Active Hamburger State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .header-menu {
        padding: 20px 24px;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        /* display: none;  <-- Removed */ 
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        box-shadow: none;
        z-index: 999;
        gap: 40px;
    }

    .nav-links.active {
        right: 0; /* Slide in */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 700;
    }
    
    .logo {
        z-index: 1000;
    }

    /* Fix Hero Title Size */
    .hero-title {
        font-size: 32px;
        line-height: 42px;
        padding-top: 20px;
    }
    
    .problem-details {
        margin-left: 0; /* Reset negative margin on mobile */
        margin-top: -40px;
        padding: 30px;
        flex: auto;
    }
    
    .problem-main {
        padding: 40px 30px 60px 30px;
    }

    
    .problem-title,
    .problem-subtitle,
    .diff-title,
    .cta-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .problem-text,
    .diff-subtitle,
    .value-title,
    .faq-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card:nth-child(2) {
        margin-top: 0;
    }
    
    .testimonial-card:nth-child(3) {
        margin-top: 0;
    }
    
    .testimonial-card {
        max-width: 100%;
        justify-self: stretch;
    }
    
    .social-proof {
        padding: 40px 0; /* Remove side padding to let logos scroll edge to edge */
    }

    .social-proof-title {
        padding: 0 20px; /* Keep title padded */
    }
    
    .faq-item summary {
        white-space: normal;
    }
    
    .btn {
        font-size: 22px;
        padding: 15px 40px;
    }
    
    /* Fix fixed-width elements */
    .value-card,
    .diff-card,
    .faq-item {
        width: 100% !important;
        max-width: 100%;
    }
    
    .cta-section,
    .clients-section {
        padding: 60px 20px;
    }
    
    .hero-description {
        font-size: 18px;
        line-height: 28px;
    }
    
    /* Who We Work With Section - Mobile */
    .work-with-section {
        margin: 0 20px 40px;
        padding: 40px 20px;
        border-radius: 30px;
    }
    
    .work-with-title {
        font-size: 24px;
        line-height: 32px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .section-label {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    /* Testimonials Section - Mobile */
    .testimonials-section {
        padding: 40px 20px;
    }
    
    .testimonials-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 10px;
    }

    .footer-column {
        min-width: 0;
    }

    /* Left aligning columns */
    .footer-column:nth-child(1), 
    .footer-column:nth-child(4) {
        align-items: flex-start;
        text-align: left;
    }

    /* Center aligning columns */
    .footer-column:nth-child(2), 
    .footer-column:nth-child(5) {
        align-items: center;
        text-align: center;
    }

    /* Right aligning columns */
    .footer-column:nth-child(3) {
        align-items: flex-end;
        text-align: right;
    }
}