/* ==========================================================
   BOM CAMINHA — CUSTOM STYLES
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Grandstander&display=swap');


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

body {
    background-color: #fcfbf8;
}
/* ==========================================================
   TYPOGRAPHY / HEADINGS
========================================================== */

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
}

.md-typeset h1 {
    font-size: 2rem;
    color: #2c2963;
}

.md-typeset h2 {
    font-size: 1.55rem;
    color: #1f6f8b;
    margin-top: 1.2rem;
    margin-bottom: .6rem;
}

.md-typeset h3 {
    font-size: 1.3rem;
    color: #795548;
    margin-top: .8rem;
    margin-bottom: .5rem;
}

.md-typeset h4 {
    font-size: 1.15rem;
    color: #2c2963;
}

/* ==========================================================
   BODY TEXT
========================================================== */

.md-typeset {
    color: #463d34;
    line-height: 1.4;
}

.md-typeset p {
    margin-bottom: 1rem;
}
.md-typeset hr {
    margin: 1.2rem 0;
}

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

.md-header {
    background-color: #2c2963 !important;
}

.md-tabs {
    background-color: #24364b !important;
}


/* ==========================================================
   HOMEPAGE
========================================================== */

.home .md-sidebar,
.home .md-sidebar--primary,
.home .md-sidebar--secondary,
.home .md-tabs,
.home .md-content__button {
    display: none;
}

.home .md-main__inner {
    margin: 0;
    max-width: 100%;
}

.home .md-content {
    max-width: 100%;
}

/* Hide the redundant Home page heading */

body:has(.home-grid) .md-content h1 {
    display: none;
}

/* ==========================================================
   LANGUAGE BUTTONS
========================================================== */

.language-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 1rem 0 2rem;
}

.language-button {
    display: block;
    line-height: 0;
    transition: transform 0.2s ease;
}

.language-button img {
    display: block;
    width: 50px;
    height: auto;
}

.language-button.active img {
    width: 70px;
}

.language-button:hover {
    transform: scale(1.05);
}


/* ==========================================================
   HERO / HOMEPAGE PLAQUE
========================================================== */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 2rem;
}

.hero-plaque {
    display: block;
    width: 80%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}


/* ==========================================================
   HOMEPAGE CARDS
========================================================== */

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 130px;
    padding: 1.2rem;

    background: #faf7f1;
    border: 1px solid #d9cdb6;
    border-radius: 14px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);

    text-decoration: none !important;
    color: #2c2963 !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.card-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: .7rem;
}

.home-card span {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
}


/* ==========================================================
   CAPTAIN'S NOTE
========================================================== */

.captains-note {
    max-width: 850px;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.captain-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captain-line {
    flex: 1;
    height: 1px;
    background: #b08d57;
}

.captain-heading {
    white-space: nowrap;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #5f4819;
}

.captains-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 2rem 1rem;
}

.captain-quote {
    margin: .5rem 0 1rem;
    font-family: "Grandstander", cursive;
    font-size: 1rem;
    line-height: 1.2;
    color: #2c2963;
}

.captain-signoff {
    margin: .5rem 0 0;
    font-family: "Grandstander", cursive;
    font-size: 1.1rem;
    color: #5f4819;
}

.captain-anchor {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: .5rem;
}

.captain-shell {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-top: .3rem;
}


/* ==========================================================
   BRASS CARD
========================================================== */

.brass-card {
    position: relative;

    background:
        linear-gradient(
            160deg,
            #e3c47c,
            #c79a4c 45%,
            #b17d34
        );

    border: 2px solid #5b4216;
    border-radius: 8px;

    padding: 24px;

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.45),
        inset 0 -4px 5px rgba(0,0,0,.18),
        0 10px 18px rgba(0,0,0,.25);
}

.brass-card::before,
.brass-card::after {
    content: "";
    width: 18px;
    height: 18px;

    background: #7b5b24;
    border-radius: 50%;

    position: absolute;

    box-shadow:
        inset 1px 1px 2px rgba(255,255,255,.3),
        inset -1px -1px 2px rgba(0,0,0,.4);
}

.brass-card::before {
    top: 10px;
    left: 10px;
}

.brass-card::after {
    top: 10px;
    right: 10px;
}

.brass-card h2 {
    margin-top: 0;
}

.brass-card:hover {
    transform: translateY(-5px);
    transition: .25s;
    cursor: pointer;
}


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

.md-nav__link {
    display: flex;
    align-items: center;
    gap: .6rem;
}


/* Home */

.md-nav--primary > .md-nav__list > .md-nav__item:first-child > .md-nav__link::before {
    content: "";
    display: inline-block;

    width: 32px;
    height: 32px;

    margin-right: 14px;

    vertical-align: middle;

    background-image: url("../assets/images/home.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* Stay */

.md-nav__link[href$="staying/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/anchor.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* Caminho */

.md-nav__link[href$="caminho/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/shell2.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* Food */

.md-nav__link[href$="food/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/food.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* Shopping */

.md-nav__link[href$="shopping/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/shopping.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* Explore */

.md-nav__link[href$="explore/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/explore.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* Health */

.md-nav__link[href$="health/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/health.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* Transport */

.md-nav__link[href$="transport/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/transport.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* Contact */

.md-nav__link[href$="contact/"]::before {
    content: "";
    width: 30px;
    height: 30px;

    background: url("../assets/images/contact.png") center/contain no-repeat;

    flex-shrink: 0;
}


/* ==========================================================
   IMAGES
========================================================== */

/* Single centered image */

.image-center {
    display: block;

    width: 70%;
    max-width: 600px;

    height: auto;

    margin: 1.5rem auto;
}


/* Three images in one row */

.image-row {
    display: flex;

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

    gap: 1rem;

    margin: 1.5rem 0;
}

.image-row img {
    width: 30%;
    height: auto;
}


/* ==========================================================
   IMAGE + TEXT LAYOUTS
========================================================== */

.image-text-row {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2rem;
    align-items: start;
    margin: .8rem 0;
}

.image-text-row .text-column {
    padding-right: 1rem;
}

.image-text-row .image-column {
    display: flex;
    justify-content: flex-end;
    padding-right: 1.5rem;
}

.image-text-row .image-column img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0;
    border-radius: 8px;
}

/* ==========================================================
   PLACE CARDS
========================================================== */

.place-card {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 1.2rem;

    background: #faf7f1;
    border: 1px solid #d9cdb6;
    border-radius: 12px;

    padding: .8rem 1.2rem;
    margin: .8rem 0;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.place-card-content {
    display: flex;
    flex-direction: column;
}

.place-card-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2963;
    margin-bottom: .35rem;
}

.place-card-info {
    font-size: .9rem;
    line-height: 1.4;
    color: #463d34;
}

.place-card-info a {
    color: #b08d00;
}

.place-map-link {
    display: inline-block;
    margin-top: .5rem;
    font-size: .85rem;
    color: #5f4819 !important;
    text-decoration: none;
}

.place-map-link:hover {
    text-decoration: underline;
}

.place-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-card-image img {
    display: block;
    width: calc(100% - .5rem);
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: .5rem;
}

/* ==========================================================
   MAP IMAGE
========================================================== */

.map-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.map-image:hover {
    transform: scale(1.03);
}


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

a {
    color: #b08d00;
}

a:hover {
    color: #5f4819;
}


/* ==========================================================
   RESPONSIVE — SMALL SCREENS
========================================================== */

@media screen and (max-width: 700px) {

    /* Homepage */

    .home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
        padding: 0 .5rem;
    }

    .home-card {
        min-height: 110px;
        padding: 1rem .5rem;
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }

    .home-card span {
        font-size: 1.1rem;
    }

    .hero-plaque {
        width: 90%;
    }


    /* Language buttons */

    .language-buttons {
        gap: 8px;
    }

    .language-button img {
        width: 45px;
    }

    .language-button.active img {
        width: 62px;
    }


    /* Image + text */

    .image-text-row,
    .text-left,
    .image-left {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-text-row .text-column {
        padding-right: 0;
    }

    .image-text-row .image-column {
        justify-content: center;
        padding-right: 0;
    }

    .image-text-row .image-column img {
        max-width: 500px;
    }


    /* Place cards */

    .place-card {
        grid-template-columns: 1fr;
    }

    .place-card-image {
        justify-content: center;
    }

    .place-card-image img {
        width: 100%;
        max-width: 500px;
        margin-right: 0;
    }
}
.app-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: .8rem 0;
}

.app-link img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}
