/* ==========================================================================
   NÓMADA DIGITAL AGENCY - LANDING PAGE STYLES
   Design System & High-Fidelity Layout (Pilat Typography)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. LOCAL FONTS (PILAT TYPOGRAPHY SYSTEM FROM TRYNOW)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Book.otf') format('opentype');
    font-weight: 450;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat';
    src: url('assets/fonts/Pilat-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pilat Extended';
    src: url('assets/fonts/Pilat%20Extended%20Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Brand Palette */
    --color-teal-light: #2f9ba3;
    --color-teal-dark: #0f4f58;
    --color-teal-accent: #49c4ce;
    --color-bg-dark: #041014;
    --color-text-dark: #0f4f58;
    --color-text-light: #ffffff;
    --color-text-muted: #6e8e92;
    --color-border: #2f9ba3;
    --color-input-bg: #ffffff;

    /* Typography using Pilat as Primary */
    --font-primary: 'Pilat', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-extended: 'Pilat Extended', 'Pilat', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 30px rgba(15, 79, 88, 0.15);
    --shadow-glow: 0 0 25px rgba(47, 155, 163, 0.4);
}

/* --------------------------------------------------------------------------
   2. RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: #ffffff;
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

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

/* --- Typography Utilities --- */
.highlight-text {
    color: var(--color-teal-light);
    font-weight: 500;
}

.desktop-only {
    display: inline;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-pill {
    border-radius: 9999px;
}

.hero-cta {
    background-color: var(--color-teal-light);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(47, 155, 163, 0.3);
    margin-top: 1.5rem;
}

.hero-cta:hover {
    background-color: var(--color-teal-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: clamp(540px, 78vh, 720px);
    min-height: 520px;
    overflow: hidden;
    background-image: url('HERO IMAGE/NOMADA AGENCY - Landing Page_BG Image.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--color-text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(8, 22, 42, 0.45) 0%,
            rgba(10, 26, 48, 0.25) 50%,
            rgba(6, 16, 32, 0.55) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 76%;
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 3.5rem 0 3.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Navigation / Top Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand-logo img {
    height: auto;
    width: 60%;
    max-width: 578px;
    min-width: 270px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-fast);
}

.brand-logo img:hover {
    transform: scale(1.02);
}

.social-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.social-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-text-light);
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.social-toggle-btn:hover,
.social-toggle-btn.active {
    opacity: 0.8;
    transform: scale(1.08);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.social-links a:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero Body Text */
.hero-body {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
}

.hero-text-content {
    align-self: flex-end;
    width: 100%;
    max-width: 460px;
    text-align: left;
    margin-bottom: 4.5rem;
}

.hero-description {
    font-family: 'Pilat', sans-serif;
    font-weight: 200;
    font-size: 0.95rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-teal-light);
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.65rem 2rem;
    border-radius: 9999px;
    max-width: none;
    width: auto;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(47, 155, 163, 0.4);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. SERVICES CARDS SECTION
   -------------------------------------------------------------------------- */
.services-section {
    width: 100%;
    background-color: var(--color-teal-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.service-card {
    padding: 2.5rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.service-card.card-light {
    background-color: var(--color-teal-light);
}

.service-card.card-dark {
    background-color: var(--color-teal-dark);
}

.service-card:hover {
    filter: brightness(1.05);
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.card-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   5. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
    width: 100%;
    background-color: #ffffff;
    padding: 5rem 1.5rem 6rem 1.5rem;
}

.contact-container {
    width: 60%;
    max-width: 840px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 2.25rem;
    color: var(--color-teal-dark);
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.form-label {
    font-family: var(--font-primary);
    font-weight: 450;
    font-size: 0.9rem;
    color: var(--color-teal-dark);
    margin-left: 1rem;
}

.form-input,
.form-textarea {
    font-family: var(--font-primary);
    font-weight: 300;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: var(--color-teal-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    font-family: var(--font-primary);
    font-weight: 300;
    color: #a0aec0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-teal-dark);
    box-shadow: 0 0 0 3px rgba(15, 79, 88, 0.15);
}

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

/* File Upload Component */
.file-upload-group {
    margin-top: 0.5rem;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-upload-box {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.6rem 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.file-upload-box:focus-within,
.file-upload-box.has-file {
    border-color: var(--color-teal-dark);
}

.file-upload-box.has-file {
    background-color: #f4f9f9;
}

.file-upload-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.file-placeholder-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow: hidden;
    flex: 1;
}

.file-icon {
    flex-shrink: 0;
}

.file-text-placeholder {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.88rem;
    color: #a0aec0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-box.has-file .file-text-placeholder {
    color: var(--color-teal-dark);
    font-weight: 450;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-file-browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    border: 1px solid var(--color-border);
    color: var(--color-teal-dark);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.btn-file-browse:hover {
    background-color: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    color: #ffffff;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    transition: transform var(--transition-fast);
}

.btn-remove-file:hover {
    transform: scale(1.2);
}

/* Contact Type Selector */
.contact-type-container {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact-type-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-teal-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contact-type-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: nowrap;
}

.btn-type-option {
    padding: 0.55rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-teal-dark);
}

.btn-type-option:hover {
    border-color: var(--color-teal-dark);
    background-color: #f4f8fc;
}

.btn-type-option.active {
    background-color: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 79, 88, 0.25);
}

/* Submit Button */
.form-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-teal-dark);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.65rem 3rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 79, 88, 0.3);
    transition: all var(--transition-smooth);
    min-width: 160px;
}

.btn-submit:hover:not(:disabled) {
    background-color: var(--color-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 79, 88, 0.4);
}

.btn-submit {
    background-color: var(--color-teal-light);
    color: var(--color-text-light);
    padding: 0.85rem 4rem;
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 200px;
}

.btn-submit:hover {
    background-color: var(--color-teal-dark);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. FOOTER SECTION
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: var(--color-teal-light);
    color: var(--color-text-light);
    padding: 1.8rem 0;
    text-align: center;
}

.footer-container p {
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.footer-logo {
    height: 13px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   7. MODAL NOTIFICATION
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 16, 20, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-teal-light);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.2rem auto;
}

.modal-content h3 {
    font-family: var(--font-primary);
    color: var(--color-teal-dark);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.btn-modal-close {
    background-color: var(--color-teal-dark);
    color: #ffffff;
    width: 100%;
}

.btn-modal-close:hover {
    background-color: var(--color-teal-light);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Tablet & Mobile Collapsed Social Links (Max 992px) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text-content {
        max-width: 100%;
    }

    .desktop-only {
        display: none;
    }

    .social-toggle-btn {
        display: inline-flex;
    }

    .social-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.6rem);
        right: 0;
        background: rgba(15, 79, 88, 0.96);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 0.6rem 0.9rem;
        gap: 0.8rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        z-index: 100;
    }

    .social-links.open {
        display: flex;
    }

    .social-links a {
        width: 28px;
        height: 28px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .top-nav {
        padding: 1.5rem 0;
        gap: 1.25rem;
    }

    .brand-logo {
        max-width: calc(100% - 50px);
    }

    .brand-logo img {
        height: auto;
        max-height: 58px;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }

    .hero-body {
        padding: 2.5rem 0 2rem 0;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-cta {
        width: 100%;
        max-width: none;
        white-space: nowrap;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

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

    .service-card {
        padding: 3rem 1.8rem;
    }

    .contact-section {
        padding: 3.5rem 1.25rem 4.5rem 1.25rem;
    }

    .contact-container {
        max-width: 90%;
    }

    .contact-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-type-selector {
        flex-direction: column;
        width: 100%;
    }

    .btn-type-option {
        width: 100%;
        text-align: center;
    }

    .btn-submit {
        width: 100%;
    }
}