/*
Theme Name: Ecuador At Your Service
Theme URI: https://ecuadoratyourservice.com
Author: Suranjan Dharmasiri
Author URI: https://www.fiverr.com/suranjandh
Description: Custom WordPress theme developed for Ecuador At Your Service.
Version: 1.0.0
Text Domain: eays
*/

/* =========================================================
   ORIGINAL SITE FONTS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,200&family=Open+Sans:wght@300;400;500;600&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --ink: #202124;
    --olive: #7b915e;
    --olive-hover: #8ba668;
    --pink: #e66c7b;
    --paper: #fff;
    --mist: #deddd9;
    --muted: #8e9193;
    --border: #e3e3e3;
    --max: 980px;
}


/* =========================================================
   BASIC
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    position: relative;

    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;

    color: #000;
    background: #fff;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover,
a:focus {
    text-decoration: none;
}

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


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.post-title {
    font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
}

p {
    margin-top: 0;
}


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

.site-header {
    height: 58px;
    background: #222427;
    color: #fff;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 50;
}

.header-inner {
    width: 100%;
    max-width: 1320px;

    margin: auto;
    padding: 0 22px;

    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo img {
    width: 155px;
    height: auto;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-nav {
    flex: 1;

    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.main-nav > ul {
    display: flex;
    align-items: center;

    gap: 27px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-nav > ul > li > a {
    display: block;
    color: inherit;
    transition: opacity 0.2s ease-in-out;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus {
    color: inherit;
    opacity: 0.6;
}


/* Parent menu item */

.main-nav .menu-item-has-children {
    position: relative;
}


/* Dropdown */

.main-nav .sub-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 190px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #222427;

    z-index: 100;
}

.main-nav .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu li {
    display: block;
    width: 100%;
}

.main-nav .sub-menu a {
    display: block;

    padding: 10px 15px;

    white-space: nowrap;

    font-size: 0.82rem;
    font-weight: 500;

    color: #fff;
}

.main-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    background: none;
    border: 0;

    color: #fff;

    font-size: 28px;

    margin-left: auto;

    cursor: pointer;
}

.lang-placeholder {
    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    color: #ddd;

    white-space: nowrap;
}


/* =========================================================
   HOME HERO
   ========================================================= */

.hero {
    height: calc(100vh - 58px);
    min-height: 600px;

    background:
        url('assets/images/home-main.jpg')
        center center / cover
        no-repeat;

    position: sticky;

    top: 0;

    z-index: 0;
}


/* =========================================================
   GENERAL CONTENT
   ========================================================= */

.content-wrap {
    max-width: var(--max);

    margin: 0 auto;

    padding: 58px 24px;
}

.narrow {
    max-width: 860px;
}


/* =========================================================
   PAGE TITLES
   ========================================================= */

.page-title,
.post-title {
    text-align: center;
    text-transform: uppercase;

    font-family: "Montserrat", sans-serif;

    font-size: 2rem;
    font-weight: 500;

    line-height: 1.3;

    letter-spacing: 0.03em;

    margin: 0 0 30px;
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.page-content,
.single-content {
    font-family: "Open Sans", sans-serif;
}

.page-content p,
.single-content p {
    margin: 0 0 24px;

    font-size: 1rem;

    line-height: 1.8;
}

.page-content h2,
.page-content h3,
.single-content h2,
.single-content h3 {
    font-family: "Montserrat", sans-serif;

    font-weight: 500;

    margin: 34px 0 15px;

    line-height: 1.35;
}

.page-content h2,
.single-content h2 {
    font-size: 1.7rem;
}

.page-content h3,
.single-content h3 {
    font-size: 1.35rem;
}

.page-content ul,
.page-content ol,
.single-content ul,
.single-content ol {
    line-height: 1.8;
}

.page-content img,
.single-content img {
    margin: 25px auto;
}


/* =========================================================
   RULE
   ========================================================= */

.rule {
    height: 1px;

    background: var(--border);

    margin: 24px 0;
}


/* =========================================================
   FEATURED PROPERTIES
   ========================================================= */

.featured-zone {
    position: relative;

    z-index: 2;

    background: var(--mist);

    padding: 34px 0 58px;
}

.featured-shell {
    max-width: 840px;

    margin: auto;

    background: #fff;

    padding: 28px;
}

.featured-title {
    background: #222427;

    color: #fff;

    padding: 16px;

    font-family: "Montserrat", sans-serif;

    font-size: 1rem;
    font-weight: 600;

    text-transform: uppercase;

    margin-bottom: 22px;
}


/* =========================================================
   PROPERTY GRID
   ========================================================= */

.listing-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px 24px;
}

.listing-card .thumb {
    aspect-ratio: 1.42;

    background: #ecebe8;

    display: flex;

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

    color: var(--muted);

    font-size: 0.85rem;

    text-align: center;
}


/* Property title */

.listing-card h3 {
    font-family: "Montserrat", sans-serif;

    font-size: 1rem;
    font-weight: 500;

    line-height: 1.3;

    text-transform: uppercase;

    margin: 8px 0 10px;
}


/* Property details */

.listing-meta {
    font-family: "Open Sans", sans-serif;

    font-size: 0.95rem;
    font-weight: 400;

    line-height: 1.6;

    color: var(--muted);

    min-height: 58px;
}


/* Property price */

.listing-price {
    text-align: center;

    margin: 10px 0;

    font-family: "Montserrat", sans-serif;

    font-size: 1.3em;
    font-weight: 400;

    color: var(--olive);
}


/* Property button */

.listing-btn {
    display: block;

    text-align: center;

    background: var(--olive);

    color: #fff;

    font-family: "Montserrat", sans-serif;

    font-size: 0.75rem;
    font-weight: 600;

    padding: 9px;

    text-transform: uppercase;

    transition: background-color 0.2s ease-in-out;
}

.listing-btn:hover {
    background: var(--olive-hover);

    color: #fff;
}


/* =========================================================
   INTEGRATION NOTE
   ========================================================= */

.integration-note {
    border: 1px dashed #aaa;

    padding: 10px;

    margin-top: 18px;

    color: #666;

    font-size: 0.85rem;
}


/* =========================================================
   TESTIMONIAL
   ========================================================= */

.testimonial {
    position: relative;

    z-index: 2;

    max-width: none;

    margin: 0;

    padding: 70px 20px 100px;

    background: #fff;

    text-align: center;
}

.testimonial p,
.testimonial small,
.testimonial .quote {
    display: block;

    max-width: 760px;

    margin-left: auto;
    margin-right: auto;
}

.testimonial .quote {
    font-size: 46px;

    color: var(--olive);

    font-family: Georgia, serif;

    line-height: 1;
}

.testimonial p {
    font-family: "Open Sans", sans-serif;

    font-size: 0.95rem;

    line-height: 1.8;

    color: #555;
}

.testimonial small {
    font-family: "Montserrat", sans-serif;

    font-size: 0.8rem;
}


/* =========================================================
   FOOTER — OLD SITE MATCH
   ========================================================= */

.site-footer {
    position: relative;
    z-index: 10;

    background: #050505;
    color: #fff;

    padding: 72px 0 24px;
    min-height: 0;
}

.footer-grid {
    width: 100%;
    max-width: 980px;

    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1fr 0.85fr 1.15fr;
    column-gap: 55px;

    align-items: start;
}


/* -------------------------
   Footer logo
   ------------------------- */

.footer-logo {
    width: 145px;
    height: auto;

    margin: 0 0 20px;
}


/* -------------------------
   Footer typography
   ------------------------- */

.site-footer,
.site-footer p,
.site-footer label,
.site-footer input,
.site-footer button {
    font-family: "Open Sans", Arial, sans-serif;
}

.site-footer p {
    margin: 0 0 5px;

    color: #fff;

    font-size: 12px;
    font-weight: 300;
    line-height: 1.65;
}

.site-footer h4 {
    margin: 0 0 12px;

    color: #fff;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;

    text-transform: uppercase;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #aaa;
}


/* -------------------------
   Contact button
   ------------------------- */

.contact-button {
    display: block;

    width: 100%;

    margin-top: 14px;
    padding: 10px 14px;

    background: var(--pink);
    color: #fff;

    border: 0;

    text-align: center;

    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;

    line-height: 1.4;

    text-transform: uppercase;
}

.contact-button:hover {
    color: #fff;
    opacity: 0.9;
}


/* -------------------------
   Stay Connected
   ------------------------- */

.newsletter-fields {
    width: 100%;
}

.newsletter-fields label {
    display: block;

    margin: 0 0 3px;

    color: #fff;

    font-size: 11px;
    font-weight: 300;
}

.newsletter-fields input[type="text"],
.newsletter-fields input[type="email"] {
    display: block;

    width: 100%;
    height: 31px;

    margin: 0 0 8px;
    padding: 5px 8px;

    border: 0;
    border-radius: 0;

    background: #fff;
    color: #222;

    font-size: 12px;
    line-height: 1.2;
}

.newsletter-fields input:focus {
    outline: none;
}


/* Checkbox */

.newsletter-fields input[type="checkbox"] {
    width: auto;
    height: auto;

    margin: 2px 6px 0 0;
}


/* Newsletter button */

.newsletter-fields button,
.newsletter-fields input[type="submit"] {
    display: inline-block;

    margin-top: 6px;
    padding: 9px 16px;

    border: 0;
    border-radius: 0;

    background: var(--olive);
    color: #fff;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;

    line-height: 1.3;

    text-transform: uppercase;

    cursor: pointer;
}

.newsletter-fields button:hover,
.newsletter-fields input[type="submit"]:hover {
    background: var(--olive-hover);
}


/* -------------------------
   Copyright
   ------------------------- */

.copyright {
    max-width: 980px;

    margin: 55px auto 0;
    padding: 20px 20px 0;

    text-align: center;

    color: #777;

    font-family: "Open Sans", sans-serif;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.5;
}


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

@media (max-width: 760px) {

    .site-footer {
        padding: 45px 0 22px;
    }

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

        gap: 35px;

        padding: 0 24px;
    }

    .footer-logo {
        width: 140px;
    }

    .copyright {
        margin-top: 40px;
        padding-top: 15px;
    }
}

/* =========================================================
   BUYERS / SELLERS CONTENT
   ========================================================= */

.buyers-layout img.float-left {
    float: left;

    width: 46%;

    margin: 0 30px 20px 0;
}

.buyers-layout img.float-right {
    float: right;

    width: 46%;

    margin: 0 0 20px 30px;
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

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

    background:
        url('assets/images/Contact_Lama-2.jpg')
        center / cover
        no-repeat;

    padding: 75px 0;
}

.contact-card {
    max-width: 520px;

    margin-left: auto;
    margin-right: 8%;

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

    padding: 36px;
}

.contact-card h1,
.contact-card h2,
.contact-card h3 {
    font-family: "Montserrat", sans-serif;
}


/* =========================================================
   FORMS
   ========================================================= */

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

    padding: 12px;

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

    margin: 0 0 12px;

    font-family: "Open Sans", sans-serif;
}

.form-placeholder textarea {
    height: 120px;
}

.form-placeholder button {
    background: #222;

    color: #fff;

    border: 0;

    padding: 12px 25px;

    font-family: "Montserrat", sans-serif;

    font-size: 0.85rem;
    font-weight: 600;

    text-transform: uppercase;

    cursor: pointer;
}


/* =========================================================
   BLOG
   ========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 38px 28px;
}

.blog-card img {
    width: 100%;

    aspect-ratio: 1.65;

    object-fit: cover;
}

.blog-card h2 {
    font-family: "Montserrat", sans-serif;

    font-size: 1.25rem;
    font-weight: 500;

    line-height: 1.4;

    margin: 12px 0 4px;
}

.blog-card .date {
    font-family: "Open Sans", sans-serif;

    font-size: 0.8rem;

    color: var(--muted);
}


/* =========================================================
   SINGLE BLOG POST
   ========================================================= */

.single-content {
    max-width: 850px;

    margin: auto;
}

.single-content .featured {
    width: 100%;

    margin-bottom: 28px;
}

.single-content h1 {
    text-transform: none;

    font-family: "Montserrat", sans-serif;
}


/* =========================================================
   BACK TO BLOG
   ========================================================= */

.back-blog {
    display: inline-block;

    margin-top: 25px;

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

    padding: 8px 14px;

    font-family: "Montserrat", sans-serif;

    font-size: 0.8rem;
    font-weight: 500;
}

.back-blog:hover {
    color: var(--olive);

    border-color: var(--olive);
}


/* =========================================================
   WORDPRESS
   ========================================================= */

.screen-reader-text {
    position: absolute;

    left: -9999px;
}

.wp-block-image img {
    height: auto;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

::selection {
    background: var(--olive);

    color: #fff;
}

::-moz-selection {
    background: var(--olive);

    color: #fff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    html {
        font-size: 13px;
    }

    body {
        font-size: 1rem;
    }


    /* Header */

    .site-header {
        height: 58px;
    }

    .header-inner {
        padding: 0 14px;
    }

    .site-logo img {
        width: 130px;
    }


    /* Mobile menu button */

    .menu-toggle {
        display: block;
    }

    .lang-placeholder {
        display: none;
    }


    /* Mobile navigation */

    .main-nav {
        display: none;

        position: absolute;

        top: 58px;
        left: 0;
        right: 0;

        background: #222427;

        padding: 10px 18px 18px;

        font-size: 0.9rem;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        display: block;
    }

    .main-nav li {
        border-bottom: 1px solid #3a3a3a;
    }

    .main-nav a {
        display: block;

        padding: 11px 4px;
    }


    /* Mobile dropdown */

    .main-nav .sub-menu {
        position: static;

        display: block;

        background: transparent;

        min-width: 0;

        padding: 0 0 5px 15px;
    }

    .main-nav .sub-menu li {
        border-bottom: 0;
    }

    .main-nav .sub-menu a {
        padding: 8px 4px;

        font-size: 0.82rem;

        opacity: 0.8;
    }


    /* Hero */

    .hero {
        height: 220px;

        min-height: 0;
/*
        background-image:
            url('assets/images/home-main-mobile.jpg');
*/
        background-position: center top;

        position: relative;

        top: auto;
    }


    /* Content */

    .content-wrap {
        padding: 38px 20px;
    }

    .page-title,
    .post-title {
        font-size: 1.85rem;
    }


    /* Featured */

    .featured-zone {
        padding: 20px 12px 35px;
    }

    .featured-shell {
        padding: 16px;
    }


    /* Properties */

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

    .listing-card .thumb {
        aspect-ratio: 1.55;
    }

    .listing-card h3 {
        font-size: 1rem;
    }

    .listing-meta {
        font-size: 0.95rem;
    }

    .listing-price {
        font-size: 1.25rem;
    }


    /* Testimonial */

    .testimonial {
        padding: 50px 24px 70px;
    }


    /* Footer */

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

        gap: 28px;
    }

    .site-footer {
        min-height: 0;

        padding: 50px 0 30px;
    }

    .copyright {
        margin-top: 50px;
    }


    /* Buyers */

    .buyers-layout img.float-left,
    .buyers-layout img.float-right {
        float: none;

        width: 100%;

        margin: 20px 0;
    }


    /* Contact */

    .contact-hero {
        padding: 30px 15px;

        min-height: 620px;
    }

    .contact-card {
        margin: 0 auto;

        padding: 24px;
    }


    /* Blog */

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

    .single-content img {
        width: 100%;
    }
}