/* ====================================
   Contact Page Styles
   ==================================== */

:root {
    /* Brand Colors */
    --color-primary-blue: #0A355B;
    --color-primary-teal: #137374;
    --color-secondary-teal: #78C6C4;
    --color-bg-teal-light: #E4F4F3;
    --color-accent-green: #98D29B;
    --color-accent-yellow: #FED992;
    --color-accent-coral: #E88773;
    
    /* Text Colors */
    --color-white: #FFFFFF;
    --color-dark-text: #032137;
    --color-gray-text: #434343;
    --color-light-gray: #D9D9D9;

    /* Fonts */
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

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

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

body {
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-dark-text);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

/* ====================================
   Header
   ==================================== */
.header-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px clamp(20px, 5vw, 100px);
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 30px;
    color: var(--color-white);
    display: inline-flex;
    gap: 6px;
}

.logo img {
    height: 120px !important;
    width: auto;
}

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

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

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

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

.nav-links { display: flex; gap: 40px; }

.mobile-nav-only {
    display: none !important;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-white);
    transition: opacity 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    opacity: 0.8;
}
.nav-links a.active {
    color: var(--color-accent-yellow);
    opacity: 1;
}

/* ====================================
   Hero Section
   ==================================== */
.hero-section {
    background-color: var(--color-primary-blue);
    padding-top: clamp(160px, 18vh, 220px); /* Increased from 120px minimum */
    padding-bottom: clamp(150px, 20vh, 250px); /* Reduced from 400px */
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 1016px;
    margin: 0 auto;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 60px; /* Reduced from 70px */
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 24px; /* Reduced from 30px */
    line-height: 1.4;
    color: var(--color-light-gray);
    max-width: 881px;
    margin: 0 auto;
}

/* ====================================
   Contact Card & Form
   ==================================== */
.contact-container {
    position: relative;
    max-width: 1000px;
    margin: clamp(-180px, -15vh, -100px) auto 0; /* Adjusted from -250px */
    z-index: 10;
    padding-bottom: 50px; /* Reduced from 100px */
    padding-left: clamp(20px, 5vw, 40px);
    padding-right: clamp(20px, 5vw, 40px);
}

.contact-card {
    background: var(--color-bg-teal-light);
    border: 1px solid var(--color-secondary-teal);
    border-radius: 40px;
    padding: 30px 40px; /* Reduced vertical padding */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Reduced from 30px */
}

.form-row {
    display: flex;
    gap: 60px; /* Spacing between columns */
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced from 15px */
}

.form-group.full-width {
    width: 100%;
}

label {
    font-family: var(--font-body);
    font-weight: 800; /* ExtraBold */
    font-size: 16px; /* Reduced from 18px */
    color: var(--color-primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea {
    font-family: var(--font-body);
    font-size: 16px; /* Reduced from 18px */
    padding: 15px 25px; /* Reduced padding */
    border-radius: 20px;
    border: 1px solid var(--color-secondary-teal);
    background: var(--color-white);
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

input {
    height: 50px; /* Reduced from 60px */
}

textarea {
    height: 100px; /* Reduced from 150px */
    resize: vertical;
}

input:focus, textarea:focus {
    border-color: var(--color-primary-teal);
}

/* Submit Button */
.submit-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn {
    width: 367px;
    height: 87px;
    background: var(--color-primary-teal);
    border-radius: 25px;
    border: none;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background-color: #0e5c5d;
}

.arrow-icon {
    font-family: var(--font-heading); 
}


/* ====================================
   Direct Email Section
   ==================================== */
.direct-email-section {
    text-align: center;
    margin: 40px 0 60px; /* Reduced from 80px 0 100px */
    position: relative;
    z-index: 10;
}

.direct-email-section h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px; /* Reduced from 45px */
    color: var(--color-dark-text);
    margin-bottom: 10px; /* Reduced from 20px */
}

.direct-email-section p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 30px;
    color: var(--color-gray-text);
}

.direct-email-section a {
    color: var(--color-primary-teal);
    font-weight: 700;
    text-decoration: none;
}

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

.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-body);
    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-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
}

.contact-value {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
    text-decoration: none;
}
a.contact-value:hover {
    text-decoration: underline;
}

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

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

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


/* ====================================
   Decorative Elements
   ==================================== */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.yellow-line {
    position: absolute;
    left: 8%; /* Fluid */
    top: 45vh; /* Responsive height */
    width: 60px;
    height: 12px;
    background: var(--color-accent-yellow);
    border-radius: 6px;
}

.green-star {
    position: absolute;
    right: 15%; /* Fluid */
    top: 30vh; /* Responsive height */
    width: 60px;
    height: 60px;
    background-image: url("../assets/icons/Star 26.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.coral-dots-group {
    position: absolute;
    left: 45%; /* Fluid center-ish */
    top: 13vh; /* Responsive height */
    width: 40px;
    height: 40px;
    background-image: url("../assets/icons/Group 17 red.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.teal-star {
    /* For the star at bottom left */
    position: absolute;
    left: 23%;
    top: 78%;
    width: 60px;
    height: 60px;
    background-image: url("../assets/icons/Star 7 teal.svg");
    background-size: contain;
    background-repeat: no-repeat;
    /* transform: rotate(45deg);  */
}


/* Responsive */
@media (max-width: 1200px) {
    .container, .contact-container, .header-menu, .footer {
        padding-left: 50px;
        padding-right: 50px;
    }
    .hero-title { font-size: 50px; line-height: 1.2; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span {
    background-color: var(--color-dark-text);
}

.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 {
        justify-content: space-between;
        padding: 20px;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        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;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links.active .mobile-nav-only {
        display: block !important;
    }
    
    .mobile-nav-logo {
        width: 60px;
        height: auto;
    }

    .nav-links.active .mobile-nav-btn {
        background-color: var(--color-primary-teal) !important;
        color: #fff !important;
        width: 250px !important;
        height: 60px !important;
        font-size: 20px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
        border-radius: 25px;
    }

    .nav-links a {
        color: var(--color-dark-text);
        font-size: 24px;
    }

    .form-row { flex-direction: column; gap: 20px; }
    .contact-card { padding: 25px 20px; width: 100%; max-width: 100%; }
    .footer-links-container { flex-direction: column; gap: 30px; }
    .hero-section { min-height: auto; padding: 100px 20px 80px; }
    .contact-container { margin-top: -50px; padding: 0 20px; }
    .hero-title { font-size: 24px; line-height: 1.3; margin-bottom: 15px; }
    .hero-subtitle { font-size: 14px; line-height: 1.5; }
    
    /* Fix fixed-width elements */
    .input-wrapper,
    .form-group,
    .submit-btn {
        width: 100% !important;
        max-width: 100%;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 14px;
        padding: 12px;
    }
    
    .card-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .decorative-elements {
        display: none;
    }
    
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .footer-column {
        width: auto;
        align-items: flex-start;
        text-align: left;
    }

    /* Alignments for 2-column grid */
    .footer-column:nth-child(odd) {
        align-items: flex-start;
        text-align: left;
    }

    .footer-column:nth-child(even) {
        align-items: flex-end;
        text-align: right;
    }
}

/* ====================================
   Mobile Strict Implementation (max-width: 480px)
   ==================================== */
@media (max-width: 480px) {
    /* 1. Header & Hero */
    .hero-section {
        padding-top: 140px;
        padding-bottom: 200px; /* Space for the overlapping card */
    }

    .header-menu { padding: 10px 20px; }
    .logo img {
        height: 50px !important;
    }

    .hero-title {
        font-family: 'Figtree', sans-serif;
        font-weight: 700;
        font-size: 40px !important;
        line-height: 50px !important;
        color: white;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-family: 'Nunito', sans-serif;
        font-weight: 400;
        font-size: 20px !important;
        line-height: 30px !important;
        color: white;
        word-wrap: break-word;
    }

    /* 2. Contact Card & Form */
    .contact-container {
        margin-top: -150px; /* Pull up to overlap hero */
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 60px;
    }
    
    .contact-card {
        padding: 30px 20px !important;
        border-radius: 40px;
    }

    .contact-form {
        gap: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group label {
        font-family: 'Nunito', sans-serif;
        font-weight: 800 !important;
        font-size: 15px !important; /* Specs: 15px */
        line-height: 35px !important;
        color: #0A355B;
        text-transform: uppercase;
        letter-spacing: normal;
        margin-bottom: 0;
    }

    input, textarea {
        font-family: 'Nunito', sans-serif;
        font-weight: 400; /* Assumed regular */
        font-size: 16px; /* Keep legible size */
        border-radius: 20px;
    }
    
    input { height: 50px; }
    textarea { height: 120px; }

    /* Submit Button */
    .submit-btn {
        width: 100%;
        height: auto;
        min-height: 55px;
        border-radius: 25px;
        padding: 10px;
        font-family: 'Figtree', sans-serif;
        font-weight: 700 !important;
        font-size: 30px !important; /* Specs say 30px, fitting line-height 55 */
        line-height: 55px !important;
    }

    /* 3. Direct Email Section */
    .direct-email-section {
        margin: 40px 20px 60px;
    }

    .direct-email-section h2 {
        font-family: 'Figtree', sans-serif;
        font-weight: 700;
        font-size: 50px !important;
        line-height: 60px !important;
        color: #032137;
        word-wrap: break-word;
        margin-bottom: 10px;
    }

    .direct-email-section p {
        font-family: 'Nunito', sans-serif;
        font-weight: 400;
        font-size: 18px !important;
        line-height: 45px !important;
        color: #434343;
        word-wrap: break-word;
    }

    .direct-email-section a {
        color: #137374 !important;
        font-weight: 400 !important;
    }
    
    /* 4. Footer Mobile Typography overrides */
    .footer { padding: 20px !important; }
    .footer-logo-section { display: none !important; }
    
    .footer-content, .footer-links-container { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        gap: 20px !important;
    }
    
    .footer-column {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        min-width: unset !important;
    }
    
    .footer-detail {
        align-items: center !important;
    }
    
    .footer-column:nth-child(odd), .footer-column:nth-child(even) {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-header {
        font-family: 'Nunito', sans-serif;
        font-weight: 700 !important;
        font-size: 18px !important;
        color: white !important;
        display: block;
        margin-bottom: 5px;
    }
    
    .contact-label {
        font-family: 'Nunito', sans-serif;
        font-weight: 700 !important;
        font-size: 18px !important;
        color: white !important;
        margin: 0;
    }
    
    .contact-value {
        font-family: 'Nunito', sans-serif;
        font-weight: 400 !important;
        font-size: 18px !important;
        color: white !important;
    }

    .copyright {
        font-family: 'Nunito', sans-serif;
        font-weight: 400 !important;
        font-size: 14px !important;
        color: white !important;
        text-align: center !important;
    }
    .decorative-elements { 
        opacity: 1; 
        display: block !important; /* Override 768px display:none */
        z-index: 15; /* Ensure it sits on top of contact card (z-index 10) */
    }
    .yellow-line {
        position: absolute;
        left: 30px;
        top: 300px;
        width: 60px;
        height: 12px;
        background: var(--color-accent-yellow);
        border-radius: 6px;
    }

    .green-star {
        position: absolute;
        right: 40px;
        top: 450px;
        width: 40px;
        height: 40px;
    }

    .coral-dots-group {
        position: absolute;
        left: 20px;
        top: 100px;
        width: 40px;
        height: 40px;
    }

    .teal-star {
        /* For the star at bottom left */
        position: absolute;
        left: 23%;
        top: 64%;
        width: 40px;
        height: 40px;
    }

    .submit-btn img {
        display: none !important;
    }

}
