:root {
  --primary-color: #636F68;
  --secondary-color: #636F68;
  --extra-light: #000000;
  --white: #ffffff;
  --gradient-1: linear-gradient(to bottom right, #75866C, #75866C);
  --gradient-2: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  --max-width: 1200px;
}
@font-face {
  font-family: 'GothamBold';
  src: url('assets/Gotham-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'GothamMedium';
  src: url('assets/Gotham-Medium.otf') format('opentype');
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 4rem;
  font-family: 'GothamBold', sans-serif;
  font-weight: 700;
  text-align: center;
}

.section__description {
  font-size: 1rem;
  font-family: 'GothamMedium', sans-serif;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #ffffff;
  text-align: center;
}


.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-image: var(--gradient-2);
  outline: none;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: 'GothamMedium', sans-serif;
  color: var(--white);
  background-image: var(--gradient-1);
}

.header__container {
  padding-top: 2rem;
  display: grid;
  gap: 2rem;
  isolation: isolate;
}

.header__content {
  text-align: center;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  text-align: center;
}

.header__content .section__description {
  margin-bottom: 2rem;
}

.header__image {
  position: relative;
  isolation: isolate;
  z-index: -1;
  bottom: 5%;
  
  justify-self: center;
}

.header__image img {
  max-width: 550px;
  margin-inline: auto;
  border-radius: 20rem;
}

.header__image::after {
  position: absolute;
  content: "FARMHOUSE";
  letter-spacing: 1.5rem;
  opacity: 0.5;
  right: -2rem;
  top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
}

.about__container {
  display: grid;
  gap: 2rem;
}

.about__image {
  position: relative;
  isolation: isolate;
  max-width: 500px;
  margin: auto;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2)
  z-index: -1;
}

.about__img {
  border-radius: 100%;
}


.about__content {
  text-align: center;
}

.about__content .section__description {
  margin-bottom: 2rem;
}

.service__grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.service__card {
  padding: 2rem 1rem;
  text-align: center;
  background-image: var(--gradient-2);
  border-radius: 1rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  
}

.service__card .icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}


.service__card span {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.service__card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.service__card p {
  color: #fffff;
  line-height: 2rem;
}

.portfolio__grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.portfolio__card {
  position: relative; /* This is essential */
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}


.portfolio__card img {
  transition: 0.5s;
}

.portfolio__card:hover img {
  transform: scale(1.1);
}

.portfolio__video {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio__card:hover .portfolio__video {
  transform: scale(1.1);
}


.portfolio__banner {
  margin-top: 2rem;
  padding: 2rem;
  display: grid;
  gap: 2rem;
  text-align: center;
  background-image: var(--gradient-2);
  border-radius: 1rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.portfolio__banner__card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.portfolio__banner__card h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.portfolio__banner__card p {
  font-weight: 500;
}

.contact__container {
  text-align: center;
}

.contact__container .logo {
  margin-bottom: 1rem;
}

.contact__socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact__socials a {
  padding: 7px 10px;
  font-size: 3.5rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.contact__socials a:hover {
  background: var(--gradient-2);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
#contact {
  scroll-margin-top: 160px; /* match your header/logo height */
}

.footer {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--extra-light);
  text-align: center;
}
/*------------------------------------------------------------------------------------------------------------*/
@media (width > 576px) {
  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__banner {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

@media (width > 768px) {
  .header__container {
    padding-top: 12rem;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }

  .header__image {
    grid-area: 1/3/2/5;
  }

  .header__image img {
    margin-inline-start: unset;
  }

  .header__content {
    grid-area: 1/1/2/4;
    text-align: left;
  }

  .header__content h1 {
    font-size: 5rem;
    line-height: 5rem;
    text-align: left;
  }

  .header__content .section__description {
    text-align: left;
    margin-inline-start: unset;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__content,
  .about__content :is(.section__header, .section__description) {
    text-align: left;
  }

  .service__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio__container :is(.section__header, .section__description) {
    text-align: left;
    margin-inline-start: unset;
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio__banner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__logo {
  display: block;
  margin: 2rem auto; 
  max-width: 350px;
  height: auto;
}
.portfolio__card video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 1rem;
  object-fit: cover;
  transition: 0.4s ease;
}
./* Enquiry Form Styling */
.contact__container {
  padding: 4rem 1rem;
  max-width: 600px;
  margin: auto;
  text-align: left;
}

.form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form__group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffff; /* Lavender headline color */
  font-family: 'GothamBold', sans-serif;
}

.form__group input,
.form__group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'GothamBold', sans-serif;
  transition: border 0.3s;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: #d4c5ec;
  outline: none;
}

.form__group button.btn {
  background-color: #d4c5ec;
  color: #fffff;
  font-weight: bold;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form__group button.btn:disabled {
  background-color: #eee;
  color: #aaa;
  cursor: not-allowed;
}

#successMessage {
  margin-top: 2rem;
}

#successMessage p {
  font-size: 1.2rem;
  font-weight: 500;
  color: #4a3667;
}

#successMessage .btn {
  background-color: #4a3667;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  display: inline-block;
  margin-top: 1rem;
  font-family: 'GothamBold', sans-serif;
}
.section__subdescription {
  text-align: center;
  font-size: 1.25rem;
  color: #fffff;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  font-family: 'GothamMedium', sans-serif;
}
@media screen and (max-width: 768px) {

  .header {
    position: relative; /* Ensures the menu is positioned correctly */
    overflow: visible;  /* Prevents it from being clipped */
  }
}
/* NAV CONTAINER */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80%;
  z-index: 1000;
 height: auto; /* NEW: Prevents full-screen height */
  overflow: visible; /* Allow dropdowns or buttons to flow out */
  transition: all 0.3s ease;
}

/* NAV BAR */
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: auto;
  padding: 1.5rem 2rem;
  position: relative;
  transition: padding 0.3s ease;
}

/* LOGO CENTERED */
.nav__logo {
  height: 200px;
  width: auto;
  transition: height 0.3s ease;
  position: static;
  left: 50%;
 /*ransform: translateY(-27%);*/
  z-index: 2;

}

.nav__logo.shrink {
  height: 120px;
}

/* NAV LINKS (LEFT + RIGHT) */
.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  z-index: 1;
/*ansform: translateY(-300%);*/
}
.nav__links,
.nav__links--right {
  margin-top: 20px;
}

.nav__links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--secondary-color);
}

/* MOBILE MENU TOGGLE */
.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  display: none;
  z-index: 3;
}

/* MOBILE NAV (HIDDEN INITIALLY) */
@media screen and (max-width: 768px) {
  .nav__menu__btn {
    display: block;
  }

  .nav__bar {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    justify-content: space-between;
  }

  .nav__links.open {
    position: absolute;
    top: 50%;
	left: 69%;
    transform: translateY(-70%);
    right: 3rem; /* space to the left of the hamburger */
    flex-direction: column;
    align-items: flex-start;
    background-color: #4c5a4d;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    z-index: 20;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }


  .nav__links a {
    font-size: 1.25rem;
  }


.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0rem;
  position: static;
  transform: none;
  margin: auto;
  max-width: auto;
}

.nav__logo img {
  height: auto;
  width: auto;
  max-height: 80px; /* or whatever you want */
  max-width: auto; /* adjust as needed */
  object-fit: contain; /* ensures aspect ratio */
}

/* SHRINK ON SCROLL */
.nav__bar.shrink {
  padding: 0.5rem 1rem;
}

.nav__logo.shrink {
  height: 70px;
}

/* PAGE CONTENT PADDING TO AVOID OVERLAP */
main, .header, .hero {
  padding-top: 200px; /* Adjust based on your final nav height */
}
}
@media (max-width: 768px) {
  .header__container {
    display: flex;
    flex-direction: column;
    padding-top: 8rem;
    gap: 2rem;
    align-items: center;
  }

  .header__image {
    order: -1; /* Move image above the text */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header__image img {
    max-width: 90%;
    height: auto;
  }

  .header__content {
    order: 0;
    text-align: center;
  }

  .header__content h1 {
    font-size: 3rem;
    line-height: 4rem;
  }

  .section__description {
    font-size: 1.25rem;
    padding: 0 1rem;
  }
}


.nav__bar {
  display: flex;
  justify-content: center; /* Center logo + nav as a unit */
  align-items: center;
gap: 8rem;  space between logo and nav group */
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0rem;
  position: relative;
  background: #75866c;
}

.nav__logo {
  flex-shrink: 0;
}


/* Default: hide hamburger menu */
.nav__menu__btn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

/* Show hamburger menu and stack nav links on smaller screens */
@media (max-width: 768px) {
  .nav__menu__btn {
    display: block;
  }
}

@media (max-width: 768px) {
/* Refined mobile menu styles */
.nav__links {
  display: none;
  position: absolute;
  top: 70px; /* adjust based on header height */
  right: 1rem;
  background-color: #4a5d53;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 140px;
  text-align: center;
}

.nav__links.open {
  display: flex;
}

.nav__links li {
  margin: 0;
}

.nav__bar {
  justify-content: space-between;
  align-items: center;
  position: relative;
}


  .nav__logo {
    margin: 1rem 0;
  }

  .nav__menu__btn {
    position: absolute;
    right: 1rem;
    top: 1.25rem;
    z-index: 100;
  }
}

@media (max-width: 768px) {

  /* Hide by default */
  .nav__links--left,
  .nav__links--right {
    display: none;
  }

  /* Show both together when menu is open */
  .nav__links--left.open,
  .nav__links--right.open {
    display: flex;
  }

  /* Stack the second group just below the first */
  .nav__links--right.open {
    top: calc(50px + 57% + 3rem); /* adjust if spacing looks off */
  }
}



.video__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 2;
}


/*.video__overlay {
  opacity: 0;
  transition: 0.3s ease;
}

.portfolio__card:hover .video__overlay {
  opacity: 1;
}*/
