
/* ==========================================
   MAPLE CARGO PACKERS AND MOVERS
   CONTACT PAGE - COMPLETE RESPONSIVE CSS
   ========================================== */

:root {
    --navy: #082b78;
    --navy-dark: #061e59;
    --blue: #103f99;
    --orange: #ff6500;
    --orange-light: #ff9500;
    --text: #20334e;
    --muted: #687991;
    --border: #dce5f0;
    --light-bg: #f3f7fc;
    --white: #ffffff;
    --shadow: 0 12px 35px rgba(15, 48, 99, 0.09);
    --radius: 14px;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body,
input,
select,
textarea,
button {
    font-family: "Roboto", Arial, sans-serif;
}

body {
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-size: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(255, 101, 0, 0.55);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.section-space {
    padding: 75px 0;
}

h1,
h2,
h3,
.nav-links,
.btn,
.eyebrow {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

p {
    color: var(--muted);
}

/* ==========================================
   TOP BAR
   ========================================== */

.topbar {
    background: var(--navy-dark);
    color: var(--white);
    font-size: 13px;
}

.topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-address,
.top-phones,
.top-phones a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-address {
    min-width: 0;
}

.top-phones {
    flex-shrink: 0;
    gap: 20px;
}

.top-phones a {
    font-weight: 700;
}

.orange {
    color: var(--orange);
    font-size: 18px;
}

.top-address:hover,
.top-phones a:hover {
    color: #ffc38f;
}

/* ==========================================
   HEADER AND NAVIGATION
   ========================================== */

.site-header {
    position: relative;
    top: auto;
    z-index: 1000;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #e8edf4;
}

.site-header .container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.nav-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: auto;
    max-width: 165px;
    margin: 0;
    padding: 0;
}

.brand img {
    display: block;
    width: 145px;
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
}

.nav-links > a:not(.nav-quote) {
    color: var(--navy);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-links > a:not(.nav-quote):hover,
.nav-links > a.active {
    color: var(--orange);
}

.nav-links .nav-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 9px;
    background: linear-gradient(
        115deg,
        var(--orange),
        var(--orange-light)
    );
    color: var(--white);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 101, 0, 0.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-links .nav-quote:hover {
    filter: brightness(0.96);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--navy);
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1.3;
}

/* ==========================================
   COMMON BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 49px;
    padding: 11px 23px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        filter 0.2s ease;
}

.btn-orange {
    background: linear-gradient(
        110deg,
        var(--orange),
        var(--orange-light)
    );
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 101, 0, 0.13);
}

.btn-orange:hover {
    filter: brightness(0.96);
    transform: translateY(-2px);
}

.btn-blue {
    background: var(--navy);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--navy-dark);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-white {
    color: var(--navy);
    background: var(--white);
}

.btn-white:hover {
    background: #edf3ff;
}

/* ==========================================
   CONTACT PAGE HERO
   ========================================== */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 65px 0 70px;
    color: var(--white);
    background: linear-gradient(
        115deg,
        #07266f 0%,
        #123b8b 52%,
        #454a80 100%
    );
}

.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    right: -110px;
    bottom: -250px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.035),
        0 0 0 70px rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    color: var(--orange);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.5;
}

.hero-eyebrow {
    margin-bottom: 12px;
    color: #ffb16c;
}

.page-hero h1 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
}

.page-hero p {
    max-width: 760px;
    color: #e1e9fa;
    font-size: 17px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */

.section-heading {
    max-width: 740px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2,
.map-heading h2 {
    margin: 9px 0 12px;
    color: var(--navy);
    font-size: clamp(30px, 3.5vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading p {
    font-size: 16px;
}

/* ==========================================
   CONTACT SECTION AND GRID
   ========================================== */

.contact-section {
    padding: 75px 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 23px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: #ffb47f;
}

.info-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff0df;
    color: var(--orange);
    font-size: 23px;
    font-weight: 700;
}

.info-card h3 {
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
}

.info-card p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.65;
}

.detail-link {
    display: block;
    width: fit-content;
    margin-top: 4px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.detail-link:hover {
    color: var(--orange);
}

.trust-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 19px;
    border-radius: 12px;
    background: #edf4ff;
}

.trust-check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
}

.trust-note strong {
    color: var(--navy);
}

.trust-note p {
    margin-top: 3px;
    font-size: 14px;
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.form-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(15, 48, 99, 0.12);
    scroll-margin-top: 100px;
}

.form-heading {
    margin-bottom: 24px;
}

.form-heading h2 {
    margin: 7px 0 9px;
    color: var(--navy);
    font-size: 31px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.form-heading p {
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #324762;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d6e0ed;
    border-radius: 8px;
    background: #fff;
    color: #1c2c43;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #91a0b4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(16, 63, 153, 0.1);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 20px;
}

.privacy-note {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.form-error {
    margin-top: 16px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #fff0f0;
    color: #b42318;
    font-size: 14px;
}

.form-error[hidden] {
    display: none;
}

/* ==========================================
   MAP SECTION
   ========================================== */

.map-section {
    padding: 70px 0 75px;
    background: var(--light-bg);
}

.map-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.map-heading p {
    max-width: 650px;
}

.map-frame {
    height: 380px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #e6edf5;
    box-shadow: var(--shadow);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   CALL TO ACTION
   ========================================== */

.cta-section {
    padding: 55px 0;
    background: linear-gradient(
        110deg,
        #082b78,
        #17479b
    );
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-eyebrow {
    color: #ffbd8d;
}

.cta-inner h2 {
    margin: 8px 0;
    color: var(--white);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
}

.cta-inner p {
    color: #e0e8fa;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: #071a43;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 0.9fr;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 45px;
}

.footer-brand img {
    width: 165px;
    max-height: 85px;
    padding: 7px;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
}

.footer-about > p {
    margin: 18px 0 15px;
    color: #b9c8e1;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact-link {
    display: block;
    margin-top: 9px;
    color: #d7e3f5;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.footer-contact-link:hover,
.footer-column a:hover {
    color: #ffad72;
}

.footer-column h3 {
    margin: 7px 0 17px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.footer-column > a {
    display: block;
    width: fit-content;
    margin: 10px 0;
    color: #c3d0e5;
    font-size: 14px;
}

.footer-column p {
    color: #c3d0e5;
    font-size: 14px;
}

.footer-column .footer-whatsapp {
    margin: 14px 0;
    color: #ffad72;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer-bottom p {
    color: #9eafcb;
    font-size: 12px;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   Circular style matching homepage
   ========================================== */

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    padding: 0;
    gap: 0;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: #20c968;
    color: var(--white);

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.floating-whatsapp:hover {
    background: #16b858;
    transform: translateY(-3px);
}

.floating-whatsapp > span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
}

/* If the button includes text after the icon,
   hide the text visually but retain accessibility. */
.floating-whatsapp > span:not(:first-child) {
    display: none;
}

/* ==========================================
   TABLET RESPONSIVE
   ========================================== */

@media (max-width: 1050px) {
    .nav-inner {
        gap: 16px;
    }

    .brand {
        max-width: 145px;
    }

    .brand img {
        width: 135px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links > a:not(.nav-quote) {
        font-size: 17px;
    }

    .nav-links .nav-quote {
        min-height: 46px;
        padding: 0 15px;
        font-size: 17px;
    }

    .contact-layout {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 22px;
    }

    .form-card {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================
   MOBILE NAVIGATION AND LAYOUT
   ========================================== */

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, 600px);
    }

    .section-space {
        padding: 55px 0;
    }

    /* Top bar */
    .topbar-inner {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .top-address {
        font-size: 11px;
        line-height: 1.5;
    }

    .top-phones {
        flex-wrap: wrap;
        gap: 8px 16px;
        font-size: 12px;
    }

    /* Header */
    .site-header .container {
        width: calc(100% - 32px);
    }

    .nav-inner {
        min-height: 72px;
        position: relative;
        gap: 12px;
    }

    .brand {
        max-width: 150px;
    }

    .brand img {
        width: 140px;
        height: 55px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        z-index: 1001;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 16px 18px;
        border-top: 1px solid var(--border);
        background: var(--white);
        box-shadow: 0 14px 25px rgba(8, 43, 120, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a:not(.nav-quote) {
        padding: 12px 5px;
        border-bottom: 1px solid #edf0f5;
        font-size: 18px;
        white-space: normal;
    }

    .nav-links .nav-quote {
        margin-top: 12px;
        min-height: 46px;
        font-size: 18px;
    }

    /* Hero */
    .page-hero {
        padding: 48px 0;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions .btn {
        flex: 1 1 180px;
    }

    /* Contact layout */
    .contact-section {
        padding: 55px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info {
        order: 2;
    }

    .form-card {
        order: 1;
        padding: 23px 19px;
    }

    .form-heading h2 {
        font-size: 29px;
    }

    /* Map */
    .map-section {
        padding: 55px 0;
    }

    .map-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-frame {
        height: 320px;
    }

    /* CTA */
    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        flex: 1 1 180px;
    }

    /* Footer */
    .footer-grid {
        gap: 28px 20px;
        padding-top: 42px;
        padding-bottom: 32px;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    /* WhatsApp */
    .floating-whatsapp {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        right: 16px;
        bottom: 16px;
    }

    .floating-whatsapp > span:first-child {
        font-size: 29px;
    }
}

/* ==========================================
   SMALL MOBILE SCREENS
   ========================================== */

@media (max-width: 480px) {
    .container {
        width: calc(100% - 28px);
    }

    .top-phones {
        gap: 5px 15px;
    }

    .brand img {
        width: 130px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .full-width {
        grid-column: auto;
    }

    .form-card {
        padding: 21px 15px;
    }

    .info-card {
        padding: 19px 15px;
        gap: 13px;
    }

    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .map-frame {
        height: 270px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .floating-whatsapp {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
        right: 13px;
        bottom: 13px;
    }
}

/* ==========================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
