
/* =====================================================
   SAFEEDGE APARTMENTS
   CONTACT PAGE STYLESHEET
===================================================== */


/* ================= ROOT ================= */

:root {
    --dark-blue: #071A35;
    --dark-blue-2: #0B2548;
    --blue: #1687D9;
    --light-blue: #DDF2FF;
    --very-light-blue: #F4FAFE;

    --white: #ffffff;
    --black: #101820;
    --grey: #667085;
    --light-grey: #E8EEF3;

    --shadow: 0 20px 50px rgba(7, 26, 53, 0.10);

    --radius: 18px;

    --transition: all 0.35s ease;
}


/* ================= RESET ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

img {
    width: 100%;
    display: block;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid #e8edf3;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.nav-container {
    width: min(1200px, 92%);
    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* ================= LOGO ================= */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 80px;
    height: auto;
}


/* ================= DESKTOP NAV ================= */

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(18px, 2.5vw, 32px);

    margin-left: auto;
}

.desktop-nav a {
    position: relative;

    color: var(--dark-blue);

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    transition: color 0.25s ease;
}


/* Underline */

.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--blue);

    border-radius: 10px;

    transition: width 0.25s ease;
}


/* Hover */

.desktop-nav a:hover {
    color: var(--blue);
}

.desktop-nav a:hover::after {
    width: 100%;
}


/* Active */

.desktop-nav a.active {
    color: var(--blue);
}

.desktop-nav a.active::after {
    width: 100%;
}


/* ================= BOOK NOW ================= */

.nav-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-shrink: 0;

    padding: 11px 17px;

    border-radius: 5px;

    background: var(--dark-blue);
    color: var(--white);

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    transition: var(--transition);
}

.nav-book-btn:hover {
    background: var(--blue);
    color: var(--white);

    transform: translateY(-2px);
}






/* =====================================================
   CONTACT HERO
===================================================== */

.contact-hero {
    position: relative;

    min-height: 560px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(7, 26, 53, 0.97) 0%,
            rgba(7, 26, 53, 0.78) 45%,
            rgba(7, 26, 53, 0.38) 100%
        ),
        url("../Images/IMG_0081.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Bottom fade */

.contact-hero::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 130px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--white)
    );

    pointer-events: none;

    z-index: 2;
}


/* Hero content */

.contact-hero-content {
    position: relative;

    z-index: 3;

    max-width: 720px;

    padding-top: 60px;

    color: var(--white);

    animation: contactHeroIn 1.1s ease forwards;
}

@keyframes contactHeroIn {

    from {
        opacity: 0;
        transform: translateX(-45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Floating */

.contact-hero-content {
    animation:
        contactHeroIn 1.1s ease forwards,
        contactFloat 4.5s ease-in-out 1.1s infinite;
}

@keyframes contactFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* Eyebrow */

.contact-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--light-blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 24px;
}

.contact-eyebrow::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--blue);

    box-shadow:
        0 0 0 6px rgba(22, 135, 217, 0.15);
}


/* Heading */

.contact-hero h1 {
    color: var(--white);

    font-size: clamp(48px, 6vw, 82px);

    line-height: 1.02;

    letter-spacing: -3px;

    font-weight: 700;
}

.contact-hero h1 span {
    display: block;

    color: var(--blue);
}


/* Paragraph */

.contact-hero p {
    max-width: 580px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 17px;

    line-height: 1.8;
}


/* =====================================================
   CONTACT SECTION
===================================================== */

.contact-section {
    padding: 110px 0;
}

.contact-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;

    align-items: start;
}


/* ================= CONTACT INFO ================= */

.contact-info {
    animation: contactReveal 0.9s ease forwards;
}

@keyframes contactReveal {

    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.section-label {
    display: block;

    margin-bottom: 13px;

    color: var(--blue);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}


.contact-info h2 {
    color: var(--dark-blue);

    font-size: clamp(36px, 4vw, 54px);

    line-height: 1.1;

    letter-spacing: -2px;
}

.contact-info h2 span {
    color: var(--blue);
}


.contact-intro {
    max-width: 530px;

    margin-top: 22px;

    color: var(--grey);

    font-size: 14px;

    line-height: 1.9;
}


/* =====================================================
   CONTACT DETAILS
===================================================== */

.contact-details {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 38px;
}


.contact-item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 17px;

    background: var(--very-light-blue);

    border: 1px solid var(--light-grey);

    border-radius: 14px;

    transition: var(--transition);
}


.contact-item:hover {
    transform: translateX(6px);

    border-color: rgba(22, 135, 217, 0.3);

    box-shadow: var(--shadow);
}


.contact-icon {
    flex-shrink: 0;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--blue);

    background: var(--light-blue);

    font-size: 16px;
}


.contact-item small {
    display: block;

    color: var(--grey);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 3px;
}


.contact-item strong {
    display: block;

    color: var(--dark-blue);

    font-size: 13px;

    font-weight: 600;
}


.contact-arrow {
    margin-left: auto;

    color: var(--blue);

    font-size: 11px;
}


/* =====================================================
   SOCIAL LINKS
===================================================== */

.contact-socials {
    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid var(--light-grey);
}


.contact-socials > span {
    color: var(--grey);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.social-links {
    display: flex;

    gap: 8px;

    margin-top: 12px;
}


.social-links a {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: 1px solid var(--light-grey);

    border-radius: 50%;

    color: var(--dark-blue);

    background: var(--white);

    font-size: 13px;

    transition: var(--transition);
}


.social-links a:hover {
    color: var(--white);

    background: var(--blue);

    border-color: var(--blue);

    transform: translateY(-3px);
}


/* =====================================================
   CONTACT FORM
===================================================== */

.contact-form-wrapper {
    position: relative;

    padding: 42px;

    background: var(--very-light-blue);

    border: 1px solid var(--light-grey);

    border-radius: 20px;

    box-shadow: var(--shadow);

    animation: formReveal 0.9s ease forwards;
}


@keyframes formReveal {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.form-heading span {
    color: var(--blue);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.form-heading h3 {
    margin-top: 7px;

    color: var(--dark-blue);

    font-size: 30px;

    letter-spacing: -1px;
}


/* ================= FORM ================= */

#contactForm {
    margin-top: 30px;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.form-group {
    margin-bottom: 19px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--dark-blue);

    font-size: 11px;

    font-weight: 700;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid var(--light-grey);

    border-radius: 9px;

    outline: none;

    background: var(--white);

    color: var(--dark-blue);

    font-size: 12px;

    transition: var(--transition);
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98A2B3;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(22, 135, 217, 0.10);
}


.form-group textarea {
    min-height: 140px;

    resize: vertical;
}


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.submit-btn {
    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 10px;

    color: var(--white);

    background: var(--blue);

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}


.submit-btn:hover {
    background: #0d75c1;

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(22, 135, 217, 0.30);
}


.submit-btn.loading {
    opacity: 0.7;

    pointer-events: none;
}


.form-message {
    margin-top: 14px;

    text-align: center;

    font-size: 11px;

    font-weight: 600;
}


.form-message.success {
    color: #075e3b;
}


.form-message.error {
    color: #b42318;
}


/* =====================================================
   CONTACT CTA
===================================================== */

.contact-cta {
    padding: 100px 0;

    background:
        linear-gradient(
            135deg,
            var(--light-blue),
            var(--very-light-blue)
        );
}


.cta-content {
    text-align: center;
}


.cta-small {
    color: var(--blue);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.cta-content h2 {
    margin-top: 12px;

    color: var(--dark-blue);

    font-size: clamp(40px, 5vw, 62px);

    line-height: 1.05;

    letter-spacing: -2px;
}


.cta-content h2 span {
    color: var(--blue);
}


.cta-content p {
    max-width: 550px;

    margin: 20px auto 0;

    color: var(--grey);

    font-size: 14px;
}


.cta-buttons {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}


.cta-btn,
.whatsapp-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 52px;

    padding: 0 23px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 700;

    transition: var(--transition);
}


.cta-btn {
    color: var(--white);

    background: var(--dark-blue);
}


.cta-btn:hover {
    background: var(--blue);

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(22, 135, 217, 0.25);
}


.whatsapp-btn {
    color: var(--dark-blue);

    border: 1px solid var(--light-grey);

    background: var(--white);
}


.whatsapp-btn:hover {
    color: var(--white);

    background: var(--dark-blue);

    transform: translateY(-3px);
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    background: #ffffff;

    color: var(--dark-blue);

    padding: 25px 6% 0;

    border-top: 1px solid #e8edf3;
}


.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.6fr 1fr 1.1fr 1.5fr;

    column-gap: 40px;

    align-items: start;
}


/* ================= BRAND ================= */

.footer-brand {
    max-width: 270px;
}


.footer-brand img {
    width: 100px;

    height: auto;

    display: block;

    margin-bottom: 7px;
}


.footer-brand p {
    margin: 0;

    color: #526174;

    font-size: 11.5px;

    line-height: 1.4;
}


/* ================= SOCIALS ================= */

.footer-socials {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 10px;
}


.footer-socials a {
    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dbe3ec;

    border-radius: 50%;

    color: var(--dark-blue);

    background: var(--white);

    font-size: 12px;

    transition: var(--transition);
}


.footer-socials a:hover {
    background: var(--blue);

    border-color: var(--blue);

    color: var(--white);
}


/* ================= FOOTER COLUMNS ================= */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.footer-column h4 {
    margin: 0 0 9px;

    color: var(--dark-blue);

    font-size: 13px;

    font-weight: 700;
}


.footer-column > a {
    margin-bottom: 5px;

    color: #526174;

    font-size: 11.5px;

    line-height: 1.3;

    transition: color 0.25s ease;
}


.footer-column > a:hover {
    color: var(--blue);
}


/* ================= FOOTER CONTACT ================= */

.footer-contact p {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin: 0 0 6px;

    color: #526174;

    font-size: 11.5px;

    line-height: 1.3;
}


.footer-contact p i {
    width: 14px;

    margin-top: 1px;

    color: var(--blue);

    text-align: center;

    flex-shrink: 0;
}


.footer-contact p a {
    color: #526174;

    transition: color 0.25s ease;
}


.footer-contact p a:hover {
    color: var(--blue);
}


/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
    max-width: 1200px;

    margin: 18px auto 0;

    padding: 9px 0;

    border-top: 1px solid #edf1f5;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.footer-bottom p {
    margin: 0;

    color: #7a8796;

    font-size: 10px;
}


.footer-bottom > a {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--dark-blue);

    font-size: 10px;

    font-weight: 600;

    transition: color 0.25s ease;
}


.footer-bottom > a:hover {
    color: var(--blue);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .nav-container {
        width: 92%;
        gap: 18px;
    }

    .desktop-nav {
        gap: 18px;
    }

    .desktop-nav a {
        font-size: 11px;
    }

    .nav-book-btn {
        padding: 10px 14px;
        font-size: 10px;
    }


    .contact-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .contact-info {
        max-width: 700px;
    }


    .footer-container {
        grid-template-columns:
            1.5fr 1fr 1fr;

        column-gap: 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;

        max-width: 380px;
    }
}



    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 650px) {

    .container {
        width: 90%;
    }


    .nav-container {
        min-height: 70px;
    }


    .logo img {
        width: 50px;
    }


    .contact-hero {
        min-height: 600px;

        background:
            linear-gradient(
                180deg,
                rgba(7, 26, 53, 0.72),
                rgba(7, 26, 53, 0.97)
            ),
            url("../Images/IMG_0081.png");

        background-size: cover;

        background-position: center;
    }


    .contact-hero-content {
        padding-top: 50px;
    }


    .contact-hero h1 {
        font-size: clamp(43px, 13vw, 62px);

        letter-spacing: -2px;
    }


    .contact-hero p {
        font-size: 14px;
    }


    .contact-section {
        padding: 75px 0;
    }


    .contact-info h2 {
        font-size: 42px;
    }


    .contact-form-wrapper {
        padding: 28px 20px;

        border-radius: 16px;
    }


    .contact-item {
        padding: 14px;
    }


    .contact-item strong {
        font-size: 12px;
    }


    .contact-cta {
        padding: 80px 0;
    }


    .cta-content h2 {
        font-size: 45px;
    }


    .cta-buttons {
        flex-direction: column;
    }


    .cta-btn,
    .whatsapp-btn {
        width: 100%;
    }


    .footer-container {
        grid-template-columns: 1fr 1fr;

        gap: 20px 15px;
    }


    .footer-brand {
        grid-column: 1 / -1;

        max-width: 100%;
    }


    .footer-brand img {
        width: 90px;
    }


    .footer-column h4 {
        font-size: 12px;
    }


    .footer-column > a,
    .footer-contact p {
        font-size: 11px;
    }


    .footer-bottom {
        margin-top: 16px;

        padding: 8px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

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


/* =====================================================
   RESPONSIVE MOBILE HAMBURGER NAVIGATION
===================================================== */

.menu-toggle,
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .desktop-nav,
    .nav-book-btn {
        display: none !important;
    }

    .nav-container {
        min-height: 70px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        margin-left: auto;
        border: 0px;
        border-radius: 1px;
        background: transparent;
        color: var(--black);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        z-index: 1005;
    }


    .menu-toggle:hover{
                border-radius: 5px;
        border-width: 0px;
        background: var(--light-blue);
        color: var(--blue);

    }

    .menu-toggle:focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: 3px;
        border-radius: 6px;
        
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        background: var(--white);
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 10px 24px rgba(7, 26, 53, 0.10);
        transition: max-height .35s ease, opacity .25s ease, padding .35s ease, visibility .35s ease;
    }

    .mobile-nav.open {
        max-height: 500px;
        padding: 10px 20px 20px;
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 5px;
        border-bottom: 1px solid #e8edf3;
        color: var(--dark-blue);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: color .25s ease, padding-left .25s ease;
    }

    .mobile-nav a:hover,
    .mobile-nav a:focus-visible {
        color: var(--blue);
        padding-left: 10px;
    }

    .mobile-nav .mobile-book-btn {
        justify-content: center;
        margin-top: 14px;
        padding: 13px 20px;
        border: 0;
        border-radius: 8px;
        background: var(--blue);
        color: var(--white);
        font-weight: 700;
    }

    .mobile-nav .mobile-book-btn:hover,
    .mobile-nav .mobile-book-btn:focus-visible {
        padding-left: 20px;
        background: #0f6fae;
        color: var(--white);
    }
}

@media (max-width: 480px) {
    .nav-container {
        width: 94%;
        min-height: 64px;
    }

    .logo img {
        width: 72px;
    }

    .menu-toggle {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .mobile-nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mobile-nav.open {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 18px;
    }

    .mobile-nav a {
        font-size: 14px;
    }
}
