/* ========================================
   NEST Brand Colors & Typography
   ======================================== */

:root {
    --nest-deep-navy: #0E2841;
    --nest-black: #0A0A0A;
    --nest-teal: #207888;
    --nest-teal-dark: #1a5f6f;
    --ice-white: #F5F5F5;
    --text-secondary: #555555;
    --border-light: #e8e8e8;
    --error-red: #d9534f;
    --success-green: #28a745;

    --font-family: 'Montserrat', sans-serif;
    --font-bold: 700;
    --font-semi-bold: 600;
    --font-medium: 500;
    --font-regular: 400;
    --font-light: 300;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--nest-black);
    background-color: #ffffff;
    font-weight: var(--font-regular);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--nest-teal);
    outline-offset: 2px;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    background-color: var(--ice-white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(14, 40, 65, 0.08);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: auto;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn i {
    font-size: 38px;
    color: white;
    line-height: 1;
}

.whatsapp-btn:hover {
    background-color: #20BA5A;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
}

/* ========================================
   Hero Section - Support
   ======================================== */

.hero-support {
    background: linear-gradient(135deg, var(--nest-deep-navy) 0%, #1a3d52 100%);
    color: var(--ice-white);
    padding: 20px 20px;
    text-align: center;
}

.hero-support h1 {
    font-size: 36px;
    font-weight: var(--font-bold);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-support p {
    font-size: 14px;
    font-weight: var(--font-light);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ========================================
   Support Content
   ======================================== */

.support-content {
    padding: 60px 20px 40px 20px;
    background-color: var(--ice-white);
}

.support-section {
    margin-bottom: 50px;
}

.support-section h2 {
    font-size: 28px;
    font-weight: var(--font-bold);
    color: var(--nest-deep-navy);
    margin-bottom: 30px;
    text-align: center;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(14, 40, 65, 0.05);
}

.faq-question {
    width: 100%;
    padding: 18px;
    background-color: #ffffff;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: var(--font-semi-bold);
    color: var(--nest-deep-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background-color 0.3s ease;
    font-family: var(--font-family);
}

.faq-question:hover {
    background-color: var(--ice-white);
}

.faq-icon {
    font-size: 20px;
    color: var(--nest-teal);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--ice-white);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 18px 18px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(14, 40, 65, 0.08);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: var(--font-semi-bold);
    color: var(--nest-deep-navy);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--font-family);
    color: var(--nest-black);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nest-teal);
    box-shadow: 0 0 0 3px rgba(32, 120, 136, 0.1);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}

.btn-submit {
    background-color: var(--nest-teal);
    color: var(--ice-white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: var(--font-semi-bold);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-family: var(--font-family);
}

.btn-submit:hover:not(:disabled) {
    background-color: var(--nest-teal-dark);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}

.form-status.success {
    color: var(--success-green);
}

.form-status.error {
    color: var(--error-red);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(14, 40, 65, 0.05);
}

.info-item h3 {
    font-size: 14px;
    font-weight: var(--font-semi-bold);
    color: var(--nest-deep-navy);
    margin-bottom: 12px;
}

.info-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    word-break: break-word;
}

.info-item strong {
    color: var(--nest-teal);
}

.info-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--nest-teal);
}

/* ========================================
   About Section
   ======================================== */

.about-section {
    background-color: var(--nest-deep-navy);
    color: var(--ice-white);
    padding: 25px 20px;
    text-align: center;
    margin: 0;
}

.about-section p {
    font-size: 14px;
    font-weight: var(--font-regular);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--ice-white);
    color: var(--nest-deep-navy);
    padding: 20px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-section {
    text-align: center;
}

.footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: var(--font-semi-bold);
    margin-bottom: 10px;
    color: var(--nest-teal);
}

.footer-section p {
    font-size: 13px;
    color: var(--nest-deep-navy);
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-word;
}

.footer-section p a {
    color: var(--nest-deep-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: var(--nest-teal);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: var(--nest-deep-navy);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--nest-teal);
}

.footer-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 12px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(14, 40, 65, 0.1);
    padding-top: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--nest-deep-navy);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (landscape) */
@media (max-width: 1024px) {
    .contact-wrapper {
        gap: 24px;
    }
}

/* Tablet (portrait) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-support {
        padding: 18px 16px;
    }

    .hero-support h1 {
        font-size: 26px;
    }

    .hero-support p {
        font-size: 13px;
    }

    .support-content {
        padding: 40px 16px 30px 16px;
    }

    .support-section {
        margin-bottom: 40px;
    }

    .support-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .logo-image {
        height: 42px;
    }

    .about-section {
        padding: 20px 16px;
    }

    .about-section p {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 0;
    }

    .logo-image {
        height: 36px;
    }

    .hero-support {
        padding: 16px 12px;
    }

    .hero-support h1 {
        font-size: 22px;
    }

    .hero-support p {
        font-size: 12px;
    }

    .support-content {
        padding: 30px 12px 20px 12px;
    }

    .support-section h2 {
        font-size: 19px;
    }

    .faq-question {
        font-size: 13px;
        padding: 14px;
    }

    .faq-answer p {
        padding: 0 14px 14px 14px;
        font-size: 13px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px; /* prevent zoom on iOS */
    }

    .about-section p {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer {
        padding: 16px 12px;
    }

    .footer-logo {
        height: 60px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .whatsapp-btn i {
        font-size: 32px;
    }
}

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

    .whatsapp-btn {
        animation: none;
    }
}
