/* Box model sanity */
*, *::before, *::after { box-sizing: border-box; }

/* Prevent horizontal scroll if something slips */
html, body { overflow-x: hidden; }

/* Make all media shrink to fit */
img, svg, video, canvas, iframe { 
  max-width: 100%; 
  height: auto; 
  display: block;
}
img {
  min-width: 300px;
}

.logo {
    width: 50%;
    height: auto;
    margin: 0 auto;
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    min-width: 200px;
}
.logo_footer {
    width: 30%;
    height: auto;
    margin: 0 auto;
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    min-width: 175px;
}

/* Base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  color: #472115;
  background: #4d4b30;
}

/* Hero */
.hero {
  background: url('images/clouds.PNG') no-repeat center center/cover;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

/* Nav */
.nav {
  position: relative;
}

.nav a {
  text-decoration: none;
  color: white;
  background: #472115;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 0 5px;
}

.nav a:hover {
  background: #331e11;
}

/* Burger */
.burger {
  display: none;
  font-size: 75px;
  background: none;
  border: none;
  color: #472115;
  cursor: pointer;
}

/* About section (mobile-first) */
.about {
  /* background: #4d4b30; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* Center inner blocks + let them size to content nicely */
.about .profile,
.about .about-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Responsive media */
.profile-img,
.checkered-border {
  display: block;
  height: auto;
  max-width: 100%;
  min-width: 300px;
}

/* Visually centered images on small screens */
.profile-img {
  width: auto;
  min-width: 300px;
  margin: 2rem auto;
}

.checkered-border {
  max-width: min(90vw, 600px);
  margin: 0 auto;
  min-width: 300px;
}

/* Slide down mobile menu */
.nav-links {
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, transform 0.35s ease;
}
.nav-links.show {
  opacity: 1;
}

section.services .service-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 32px);
  justify-items: center;
  max-width: min(1100px, 92vw);
  margin: clamp(8px, 2vw, 24px) auto;
}

section.services .service-item a { margin-top: 8px; }

section.services .service-list + h1.two + .service-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 32px);
  justify-items: center;
  max-width: min(1100px, 92vw);
  margin: clamp(8px, 2vw, 24px) auto;
}

.service-descriptions {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 300ms ease, opacity 220ms ease;
  width: min(520px, 92vw);   /* align with your image width */
  text-align: left;
  line-height: 1.4;
}

.service-descriptions.open {
  max-height: 500px; /* adjust as needed */
  opacity: 1;
  margin-top: 8px;
  background-color: #472115;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
}

.two-large{
    display: block;
    width: 80%;
    max-width: 600px;
    height: auto;
    margin: 3rem auto 1rem auto;
}
.services_banner {
    background: url('images/clouds.PNG') no-repeat center center/cover;
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    font-size: 150%;
}

.service-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    margin-bottom: 0;
}
.service-list img {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 1rem;
}


.service-list a {
    font-size: 24px;
    background-color: #472115;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
    padding: 8px 36px;
    border-radius: 20px;
}

.bellow_service{
  margin: auto;
  max-width: 1000px;
}

.bellow_service img{
    display: block;
    width: 80%;
    max-width: 400px;
    height: auto;
    margin: 3rem auto;
}


section.why .service-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 32px);
  justify-items: center;
  max-width: min(1200px, 92vw);
  margin: clamp(8px, 2vw, 24px) auto;
}

section.services .service-item img,
section.services .service-list + h1.two + .service-list img,
section.why .service-item img {
  width: 100%;
  height: auto;
  max-width: 520px;
}

/* Location section */
.location-section {
  padding: clamp(40px, 8vw, 90px) 0;
  position: relative;
  margin-bottom: 3rem;
}


.location-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: min(1200px, 94vw);
  margin: 0 auto;
  flex-direction: column;
}


.location-item {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}


.location-grid img {
  width: 75%;
  height: auto;
  max-width: 500px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}


#location {
  width: 75%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.contact_info {
  position: relative;
  background-image: url('images/contact.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  /* background-color: #472115; */
  width: 50%;
  min-width: 340px;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 340px;
  color: #472115;
  padding: 2rem;
  /* border-radius: 12px; */
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact_text {
  position: absolute;
  top: 45%;   /* adjust until it’s “between the parts” */
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #472115;
  font-size: 1rem;
  font-weight: bold;
}
.contact_text a {
  text-decoration: none;
  color: #472115;
}

.footer {
  background: url('images/clouds.PNG') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
}
.footer-content {
  width: 100%;
  padding: 5%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.footer-content a {
    font-size: .75rem;
    background-color: #472115;
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: .5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.logo_footer {
    width: clamp(100px, 20vw, 240px); 
    height: auto;
    margin: 0 auto;
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
/* Small screens burger menu */
@media (max-width: 448px) {
  .burger {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background: #6b4a34;
    position: fixed;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding: 2rem;
    justify-content: center;
    align-items: center;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    margin: 5px 0;
    text-align: center;
  }
  .location-item {
    width: auto;
    max-width: 90%;
    max-height: 90%;
  }
}


@media screen and (min-width: 449px) {
  .close {
    display: none;
  }
}


@media (min-width: 460px) {

  .services_banner{
    height: 25vh;
    font-size: 2.5rem;
  } 
  .footer-h1 {
    height: auto;
    font-size: 2rem;
  }
  .two{
    font-size: 6rem;
  }
}



/* Tablet+ (≥768px): side-by-side about layout */
@media (min-width: 768px) {

  .about {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
  }

  .about .profile,
  .about .about-content {
    width: auto;
    display: block;
  }

  .profile-img 
  .service-item {
    margin-right: 2rem;
    max-width: 80%;
  }
  .profile-img,
  .checkered-border {
    max-width: 80%
  }

  .about-content {
    padding: 5%;
  }
  .service-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    min-width: 300px;
  }
  .bellow_service{
    display: flex;
  }
  .location-grid {
    flex-direction: row;
  }
  .footer-content {
    width: 50%;
    padding: 2%;
    justify-content: center;
  }
  .footer-content a{
      font-size: 1rem;
  }

}

@media (min-width: 1200px) {
  .contact_info {
    line-height: 1.4;
  }
  .contact_text {
    font-size: 1.2rem;
  }
}

/* medium screens, I felt the checkered border thing was too wide at times */
@media (max-width: 1260px) and (min-width: 448px) {
  .checkered-border,
  .profile-img {
    max-width: 80%;
  }
}

@media (min-width: 640px) {
  section.services .service-list { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  section.services .service-list + h1.two + .service-list { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  section.why .service-list { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}

@media (min-width: 1024px) {
  section.services .service-list { grid-template-columns: repeat(2, 1fr); }
  section.services .service-list + h1.two + .service-list { grid-template-columns: repeat(2, 1fr); }
  section.why .service-list { grid-template-columns: repeat(2, 1fr); }
}

.services_banner { margin-bottom: clamp(8px, 2vw, 24px); }

