/* @import url('https://fonts.googleapis.com/css2?family=Hubot+Sans:ital,wght@0,200..900;1,200..900&family=Jaini+Purva&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Hubot+Sans:ital,wght@0,200..900;1,200..900&family=Jaini+Purva&display=swap');

body{
    padding: 0;
    margin: 0;
}

.mt-5 {
    margin-top: 1rem;
}

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 7%;
    background-color: rgba(210, 180, 140, 0.95);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    /* hidden state */
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease-out, opacity 0.4s ease-out;
}

/* visible state */
#main-nav.nav-scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* flex container for logo + menu */
.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

/* brand */
#main-nav h1 {
    color: rgb(255, 255, 255);
    font-size: 3rem; /* better than vw for readability */
    margin: 0;
    font-family: 'Averia Serif Libre', serif;
}

/* nav links */
#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

#main-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Averia Serif Libre', serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.hero-section {
    height: 100vh; /* full screen height */
    background-image: url(images/pexels-andreea-ch-371539-3969099.jpg);
    background-size: cover ;      /* fills the area */
    background-position: center 35%; /* centers the subject */
    background-repeat: no-repeat;
    display: flex;
    font-family: "Averia Serif Libre", serif;
    text-align: center;
    user-select: none;
    position: relative;
}

.green-box {
    min-height: 300px;
    margin-top: 30%;
    transform: translateY(-50%);
    text-align: start;
}

.yellow-box {
    border-radius: 15px; /* Rounded corners */
    min-height: 80px;
    margin-top: 10%;
    text-align: center
}

.grey-box {
    min-height: 100%;
}

#eh{
    color: rgba(18, 67, 4, 1);
    font-size: clamp(4.5rem, 12vw, 14.5rem);
    line-height: 85%;
}

#eh span{
    margin-right: 25%;
}

.hero-logo{
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.3));
}

#sp{
    position: absolute;
    bottom: -2%;
    margin-left: 64%;
    margin-block-start: 0;
    font-size: 1.8em;
}

.grey-box{
    text-align: start;
    
} 

#ep{
    font-size: 2.5em;
    letter-spacing: 0.4em;
    font-weight: 300;
}

.gallery-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f8f8;
    user-select: none;
}

.gallery-section h2 {
    font-family: 'Averia Serif Libre', serif;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #124304; /* matches brand green */
    user-select: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    user-select: none;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    user-select: none;
}

.gallery img:hover {
    transform: scale(1.05);
}

footer {
  background-color: #d1cde5;
  color: #000000;
  padding: 20px 30px;
  user-select: none;
}

footer h2 {
  font-family: 'Averia Serif Libre', serif;
  text-align: center;
  font-size: 3rem;
  margin: 0 0 10px 0;
}

footer h4 {
  font-family: 'Averia Serif Libre', serif;
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 20px 0;
}

footer i{
    margin-right: 10px;
}

footer p {
  font-size: 1.9rem;
  margin: 8px 0;
}

/* Flexbox container for call + location */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Creates two equal-width columns */
  gap: 40%;                      /* Adds space between the columns */
  margin-top: 30px;                 /* Adds space below the "Contact Us" title */
  align-items: end;               /* Aligns items to the top of their column */
}
/* Left side */
.cd {
  flex: 1;
  text-align: left;
}

.contact-line {
    font-size: 1.5em;
    display: flex;
    align-items: center; /* Vertically aligns icons and text */
    margin-bottom: 15px; /* Space between each line */
}

.contact-line a {
    color: inherit; /* Makes links use the parent text color */
    text-decoration: none; /* Removes the underline from links */
    display: inline-flex;
    align-items: center;
}

.contact-line i {
    font-size: 1.6rem; /* Makes icons a bit larger */
    margin-right: 12px;
    width: 20px; /* Gives icons a consistent space */
    text-align: center;
}

.contact-line .contact-text {
    margin-left: 10px;
    line-height: 1.6;
}

/* Removes left margin for the location text which doesn't have multiple icons */
.location .contact-text {
    margin-left: 0;
}




@media only screen and (max-width: 1300px) {
    .yellow-box{
        visibility: hidden;
    }
    
}

@media only screen and (max-width: 1100px) {
    .hero-section{
        background-position: 90%;
    }
    #ep {
        font-size: 1.4em;
    }
}

@media only screen and (max-width: 770px) {
    #eh{
        margin-top: 10%;
    }
    .grey-box {
        position: absolute;
        top: 85%;
        font-size: 2em;      /* Make the font much smaller */
        letter-spacing: 0.1em; /* Reduce the spacing between letters */
        text-align: center;    /* Center the text within its column */
    }
    
    
    #sp {
        bottom: 16%;
        font-size: 1.3em;
        margin-left: 63%;
    }
    #ep{
        font-size: 1em;
    }
    .hero-section{
        background-position: 80%;
    }
    .hero-logo {
        position: absolute;
        top: 0px;
        right: 0px;
        width: 300px;
        z-index: 10;
    }
    .hero-logo img {
        width: 100%;
        height: auto;
    }
    .gallery{
        max-width: 480px;
        grid-template-columns: repeat(2,1fr);
        gap: 15px;
    }
    .gallery img{
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Stack the items vertically */
        text-align: center;         /* Center the text on mobile */
        gap: 0%;
    }

  /* Justify the content inside each line to the center */
  .contact-line {
        justify-content: center;
    }

    /* Make both columns center their text */
    .cd, .location {
        text-align: center;
    }

    /* Reduce font sizes for better readability on mobile */
    footer h2 {
        font-size: 2.2rem;
    }

    footer p {
        font-size: 1.1rem;
    }
}


@media only screen and (max-width: 440px) {
    #main-nav.nav-scrolled {
        height: fit-content;
    }
    #main-nav h1{
        font-size: 2.7em;
    }
    .hero-section{
        background-position: 80% ;
    }
    .yellow-box{
        visibility: hidden;
    }
    #eh{
        margin-top: 10%;
    }
    #ep{
        transform: translateY(-500px);
        font-size: 0.8em;
    }
    #sp {
        top: 55%;
        font-size: 1.4em;
        margin-left: 53%;
    }
    .hero-logo {
        position: absolute;
        top: -20px;
        right: 0px;
        width: 195px;
        z-index: 10;
    }
    .hero-logo img {
        width: 100%;
        height: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Stack the items vertically */
        text-align: center;         /* Center the text on mobile */
        gap: 0%;
    }

  /* Justify the content inside each line to the center */
  .contact-line {
        justify-content: center;
    }
    
    /* Make both columns center their text */
    .cd, .location {
        text-align: center;
    }

    /* Reduce font sizes for better readability on mobile */
    footer h2 {
        font-size: 2.2rem;
    }

    footer p {
        font-size: 1.1rem;
    }
    
}

@media only screen and (max-width: 400px){
    #ep{
        display: none;
    }
    .hero-logo{
        display: none;
    }
    #main-nav{
        display: none;
    }
}