:root {
    --primary-old: rgb(212, 175, 55);
    --primary-soft: rgb(183, 153, 92);
    --secondary-old: rgb(18, 84, 68);
}

i {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}
i img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.flex-row {
    display: flex;
    flex-direction: row;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
.flex-align-item-center {
    align-items: center;
}
.flex-justify {
    justify-content: center;
    
}
.flex-grow {
    flex-grow: 1;
}
.grid-constraint {
    display: grid;
    grid-template-columns: 1fr minmax(800px, 1280px) 1fr;
}
.grid-data-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    text-align: center;

    width: 100%;
}

.img-fit {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;

    bottom: 0;
}

.txt-center {
    text-align: center;
}
.font-title {
    color: var(--primary-old);
    font-weight: 700;
    
    text-transform: uppercase;
    letter-spacing: .25rem;

    margin: 20px 0;
}
.font-subtitle {
    font-weight: 500;

    text-transform: uppercase;
}
.font-txt {
    word-spacing: .125rem;
}
.font-data {
    color: var(--primary-old);
    font-weight: 700;
    font-size: 1rem;

    margin: 10px 0;
}
.font-bold {
    font-weight: 500;
    text-transform: uppercase;
}
.all-caps {
    text-transform: uppercase;
}

.margin-content {
    margin: 0 10px 10px 10px;
}
.margin-content-txt {
    margin-bottom: 25px;
}
.margin-btn-nav {
    margin: 10px 20px 10px 15px;
}
.margin-footer-social {
    margin-bottom: 10px;
}

button {
    padding: 10px 15px;
    border-radius: 15px;
    border: 2px solid var(--primary-old);
    background-color: transparent;
    color: var(--primary-old);

    transition: background-color .15s ease-in;
}
button:hover {
    border-radius: 15px;
    border: 2px solid var(--primary-old);
    background-color: var(--primary-old);
    color: white;

    transition: background-color .15s ease-in;
}
.btn-reversed {
    padding: 10px 15px;
    border-radius: 15px;
    border: 2px solid var(--primary-old);
    background-color: var(--primary-old);
    color: white;

    transition: background-color .15s ease-in;
}
.btn-reversed:hover {
    border-radius: 15px;
    border: 2px solid var(--primary-old);
    background-color: transparent;
    color: var(--primary-old);

    transition: background-color .15s ease-in;
}

form {
    display: flex;
    flex-direction: column;
}
form input {
    padding: 5px;
}

body {
    min-height: 100vh;
    min-height: 100dvh;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
    "nav"
    "main"
    "footer";

    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.onScrollNav {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 4px 8px rgba(18, 84, 68, 0.4);
    transition: background-color .15s ease-in;
    transition: box-shadow .15s ease-in;
}
nav {
    top: 0;
    position: sticky;
    grid-area: nav;
    background-color: white;
    box-shadow: 0;

    transition: background-color .15s ease-in;
    transition: box-shadow .15s ease-in;
    z-index: 1000;
}
.nav-section {
    grid-column: 2;

    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo menu";
}
.nav-section ul {
    list-style-type: none;
    align-items: center;
}
.nav-section ul li a {
    text-decoration: none;
    margin: 0 10px;
}

main {
    grid-area: main;
}
.hero {
    grid-column: 1 / -1;
    height: calc(100vh - 59px);
}
.hero img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    background-position: center;
}
.land-info {
    grid-column: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
    "lt title"
    "left right"
    "icon icon";
}
.land-info header {
    grid-area: title;
}
.land-info-right {
    grid-area: right;
}
.land-info-content {
    height: 100%;
}
.land-info-left {
    grid-area: left;
}
.land-info-icons {
    grid-area: icon;
    margin: 50px 0;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    place-items: center;
}
.icon-card {
    height: 150px;
    width: 125px;

    box-shadow: 0 4px 6px rgba(18, 84, 68, 0.4);
}
.icon-card header {
    padding: 10px 0 10px 0;
    flex-grow: 1;
}
.icon-card img {
}

.gallery {
    grid-column: 1 / -1;
    height: 100dvh;

    position: relative;
    overflow: hidden;
}
.gallery-item-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}
.gallery-item-container img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.earthworks {
    grid-column: 2;
}

.villa {
    grid-column: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
    "lt title"
    "left right";
}
.villa header {
    grid-area: title;
}
.villa-right {
    grid-area: right;
}
.villa-left {
    grid-area: left;
}

.floorplans {
    grid-column: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
    "title title"
    "left-title rt"
    "left right";
}
.floorplans header {
    grid-area: title;
}
.floorplans p {
    grid-area: left-title;
    margin: 15px 0;
}
.floorplan-info-left {
    grid-area: left;
}
.floorplan-info-data {
    text-align: center;
}
.floorplan-info-gallery {
    grid-area: left-gallery;
}
.floorplan-info-right {
    grid-area: right;
}

.masterplan {
    grid-column: 2;
}

.location {
    grid-column: 2;

    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
    "title right"
    "left right";
}
.location header {
    grid-area: title;
    margin: 0 10px;
}
.location-left {
    grid-area: left;
}
.location-right {
    grid-area: right;
}
.location-cta {
    margin-top: 50px;
}

footer {
    grid-area: footer;
    background-color: var(--secondary-old);
}
.footer-section {
    grid-column: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
    "left right"
    "left right"
    "copy copy";
}
.footer-left {
    grid-area: left;

    justify-self: center;
    margin-top: 25px;
}
.footer-contacts {

}
.footer-contacts h3 {
    margin-bottom: 15px;
    color: var(--primary-old);
}
.footer-socials {
    margin: 15px 0;
}
.footer-socials i {
    margin-right: 50px;
}
.footer-address {
    margin: 10px 0;
}
.footer-right {
    grid-area: right;
    width: 100%;
    padding: 0 50px;

    justify-self: center;
    margin-top: 25px;
}
.footer-right h3 {
    margin-bottom: 15px;
    color: var(--primary-old);
}
.footer-copy {
    grid-area: copy;
    text-align: center;
    bottom: 0;
    margin: 25px 0;
}

/*TRY OUTS*/

form {
    width: 100%;
}
form p {
    margin-bottom: 2px;
    font-weight: 700;
}
.email {
    padding: 15px;
    margin-bottom: 5px;
    width: 400px;
}
.send {
    width: 200px;
}


dialog {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    max-width: 550px;
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--secondary-old);
}
dialog:popover-open {
    display: flex;
}
dialog[popover]::backdrop {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    padding: 20px;
    border-radius: 8px;
}
#emailForm {
    width: 400px;
    margin: 50px;
}
#emailForm input {
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    outline: none;
    border-bottom: 5px solid var(--primary-old);
}
#emailForm select {
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    outline: none;
    border-bottom: 5px solid var(--primary-old);
}
#emailForm textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    outline: none;
    border-left: 5px solid var(--primary-old);
    max-width: 400px;
    min-width: 400px;
    min-height: 100px;
    max-height: 300px;
}
