/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* --- BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--title-color);
  line-height: 1.6;
  margin: var(--header-height) 0 0 0;
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Basic reset for images */
}

/* --- BLOGGER SPECIFIC HIDES --- */
.post-footer,
.comments,
.blog-pager,
h2.date-header,
.post-title, /* Hides post titles if not using for pages */
.blog-feeds,
#PageList1, /* Example widget to hide, adjust as needed */
.icon-inline,
.post-feeds,
.sidebar-wrapper, /* Hides the entire sidebar */
#bloggerMainContent /* Hides default Blogger main content if custom one is used */ {
  display: none !important;
}

/* --- CSS VARIABLES --- */
:root {
  --header-height: 4rem;
  --first-color: #069C54;
  --first-color-alt: #048654;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #A6A6A6;
  --body-color: #FBFEFD;
  --container-color: #FFFFFF;
  --about: #333; /* Used for strong text in about section */

  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.2rem;
  --h2-font-size: 1.1rem;
  --h3-font-size: 1rem;
  --normal-font-size: .99rem;
  --small-font-size: .85rem;
  --smaller-font-size: .7rem;

  --font-medium: 400;
  --font-semi-bold: 500;

  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  --z-tooltip: 10;
  --z-fixed: 100;
}

/* --- DARK THEME VARIABLES --- */
body.dark-theme {
  --title-color: #F1F3F2;
  --text-color: #C7D1CC;
  --body-color: #1D2521;
  --container-color: #27302C;
  --about: #fff;
}

/* --- REUSABLE COMPONENTS --- */
.bd-container {
  max-width: 960px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}


/*
.section { 
    padding-top: 4rem;
    padding-bottom: 3rem;
}
.home.section { 
    padding-top: 2rem; 
    padding-bottom: 2rem;
}
@media (max-width: 767px) {
    .section {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    .home.section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
*/



.section-title,
.section-subtitle {
  text-align: center;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}

.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: .75rem 1.25rem; /* Slightly increased padding */
  border-radius: .5rem;
  transition: background-color .3s;
  font-weight: var(--font-medium);
}

.button:hover {
  background-color: var(--first-color-alt);
}

/* --- LAYOUT --- */
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  border-bottom: 1px solid #cbdfd794;
  transition: box-shadow .3s, background-color .3s; /* For scroll-header & theme effect */
}

/* --- NAVIGATION --- */
.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__item {
  margin-bottom: var(--mb-2); /* For mobile menu */
}

.nav__link,
.nav__logo,
.nav__toggle {
  color: var(--text-color); /* Uses text-color variable */
  font-weight: var(--font-medium);
}

#nav__logo1 {
  font-size: 1.5rem;
  color: var(--first-color);
  font-weight: 600;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__link {
  transition: color .3s;
}

.nav__link:hover,
.active-link {
  color: var(--first-color);
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu (mobile) */
.show-menu {
  top: var(--header-height); /* Applied via JS */
}

/* Change background header on scroll */
.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* --- HOME SECTION --- */
.home__container {
  /* height: calc(100vh - var(--header-height)); */ /* Original */
  min-height: calc(100vh - var(--header-height) - 4rem); /* Adjusted for padding, ensure it's still significant */
  align-content: center; /* Vertically centers grid items if container is taller */
  grid-template-rows: auto; /* Default, let content define rows */
}

.home__data {
    text-align: center; /* Center text by default */
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.home__subtitle {
  font-size: 1.5rem; /* Adjusted for better hierarchy */
  font-weight: 400;
  color: var(--title-color);
  margin-bottom: var(--mb-2); /* Adjusted margin */
}
.home__subtitle:last-of-type {
  margin-bottom: var(--mb-4); /* More margin after last subtitle before button */
}

.home__img {
  width: 300px; /* Default width */
  max-width: 100%; /* Ensure it doesn't overflow */
  height: auto;
  margin: var(--mb-3) auto 0 auto; /* Center horizontally, add some top margin */
  border-radius: 100px 15px 15px 15px;
  box-shadow: -10px 10px 0px #98ca96;
}

/* --- ABOUT SECTION --- */
.about__data {
  text-align: center;
}
.about-per {
    margin-bottom: var(--mb-3);
}
.about__img {
  width: 300px; /* Default width */
  max-width: 100%; /* Ensure it doesn't overflow */
  height: auto;
  margin: var(--mb-3) auto 0 auto;
  border-radius: 15px 100px 15px 15px;
  box-shadow: 10px -10px 0px #98ca96;
}
/* Order of elements in about section for larger screens handled in media queries */


/* --- SERVICES SECTION (Placeholder if HTML added later) --- */
.services__container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.services__content {
  text-align: center;
}
.services__img {
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
}
.services__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}
.services__description {
  padding: 0 1.5rem;
}

/* --- MENU SECTION (Our Products) --- */
.menu__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for slightly smaller cards */
  justify-content: center;
}
.menu__content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: rgba(4, 134, 84, 0.05);
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(3, 74, 40, .15);
  padding: 1rem; /* Adjusted padding */
}
#grace {
  background-color: rgba(4, 134, 84, 1);
  color: white;
}
#graceh3, #gracep {
  color: white;
}
#gracewa {
  background-color: white;
  color: rgba(4, 134, 84, 1);
}
/* .menu__img styling was removed as not present in HTML for products */
.menu__name,
.menu__preci {
  font-weight: var(--font-semi-bold);
  color: var(--title-color); /* Uses variable */
}
.menu__name {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-1); /* Added margin */
}
.menu__detail,
.menu__preci {
  font-size: var(--small-font-size);
}
.menu__detail {
  margin-bottom: var(--mb-1);
  color: var(--text-color); /* Softer color for detail */
}
.menu__preci {
    margin-bottom: 2.5rem; /* Space for the button */
}
.menu__button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: .625rem .813rem;
  border-radius: .5rem 0 .5rem 0;
}

/* --- CONTACT SECTION --- */
.contact__container {
  text-align: center;
}
.contact__description {
  margin-bottom: var(--mb-3);
}

/* --- FOOTER SECTION --- */
.footer {
    position: relative;
    margin-top: 50px; /* Keep this if specific spacing before footer is needed */
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}
.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
  justify-items: center; /* Center footer columns */
}
.footer__content ul { /* Ensure lists in footer are aligned as intended */
    text-align: left; /* Default for lists, adjust if center desired */
}
.footer__content li {
    margin-bottom: var(--mb-1);
}
.footer__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-2);
}
.footer__copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
  padding-bottom: 8px;
}
.footer-email {
    font-size: 13px !important; /* Retained from original if specific size needed */
}

/* --- PARTNER SECTION --- */
.partner.section { /* Ensure partner section uses section padding */
    padding-top: 2rem; /* Less padding if desired */
    padding-bottom: 2rem;
}
.partner-div {
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  /* width: 96%; */ /* Handled by bd-container or section width */
  /* margin: 80px auto 30px auto; */ /* Replaced by section padding/margins */
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap; /* Allow wrapping for partner logos */
  gap: 1.5rem; /* Gap between title and logos if they wrap */
}
.partner-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--title-color); /* Use variable */
  text-transform: uppercase;
  margin: 0;
  text-align: center; /* Center title if it wraps */
  flex-basis: 100%; /* Make title take full width on small screens before logos */
}
.partner-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center; /* Center logos */
  flex-wrap: wrap; /* Allow logos to wrap */
}
.partner1 {
  width: 120px;
  height: 60px;
  object-fit: contain;
}
@media (min-width: 768px) {
    .partner-title {
        flex-basis: auto; /* Allow title and logos on same line */
        text-align: left;
    }
}


/* --- SCROLL TOP BUTTON --- */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: rgba(6, 156, 84, .5);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}
.scrolltop:hover {
  background-color: var(--first-color-alt);
}
.scrolltop__icon {
  font-size: 1.8rem;
  color: var(--body-color);
}
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/* --- THEME CHANGE BUTTON --- */
.change-theme {
  /* position: absolute; */ /* Changed in desktop media query */
  /* right: 1rem; */
  /* top: 1.8rem; */
  color: var(--text-color); /* Uses variable */
  font-size: 1.2rem; /* Slightly larger for easier tap */
  cursor: pointer;
  margin-left: var(--mb-1); /* Space from other nav items in mobile */
}

/* --- SPECIAL STYLES --- */
/* These IDs were for margin-top adjustments, now handled by section padding */
/* #Menu-heading {
  margin-top:20%;
}
#contact-heading {
  margin-top:20%;
} */
#Menu-heading, #contact-heading {
    margin-bottom: var(--mb-2); /* Ensure space below heading before content */
    margin-top: var(--mb-6);
}

/* --- TESTIMONIAL SLIDER --- */
.testimonial-container.section { /* Ensure testimonial container also gets section padding */
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.testimonial-header {
  text-align: center;
  margin-bottom: 2rem;
}
.testimonial-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 0.4rem;
}
.testimonial-header p {
  color: var(--text-color);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
}
.testimonial-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 30px -15px rgba(6, 156, 84, 0.1), 0 5px 15px -10px rgba(0, 0, 0, 0.1);
  background-color: var(--container-color);
  border: 1px solid #ddd; /* Use theme variable or remove if box-shadow is enough */
  margin-bottom: 1.5rem;
}
.testimonial-slider {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  touch-action: pan-y;
}
.testimonial-slide {
  min-width: 100%;
  padding: 2.5rem 2rem;
  background: var(--container-color);
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.testimonial-slide.is-active {
  opacity: 1;
}
.slide-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s;
}
.testimonial-slide.is-active .slide-content {
  opacity: 1;
  transform: translateY(0);
}
.client-info {
  margin-bottom: 1.25rem;
}
.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--body-color);
  margin: 0 auto 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.5rem;
  border: 2px solid var(--container-color);
  box-shadow: 0 0 0 3px var(--first-color);
}
.client-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 0.15rem;
}
.client-title {
  font-size: 0.85rem;
  color: var(--first-color);
  font-weight: 500;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.client-location {
  font-size: 0.8rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.client-location i {
  font-size: 0.7rem;
  color: var(--first-color-alt);
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  margin: 1.25rem 0;
  padding: 0 0.5rem;
  font-style: italic;
  color: var(--text-color);
  position: relative;
}
.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--first-color-alt);
  opacity: 0.2;
  position: absolute;
  font-family: serif;
  line-height: 1;
}
.testimonial-text::before {
  top: -0.25rem;
  left: -0.5rem;
}
.testimonial-text::after {
  bottom: -1rem;
  right: -0.5rem;
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  margin-top: 0.5rem;
}
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-grow: 1;
  margin: 0 1rem;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-color-light);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: var(--first-color);
  transform: scale(1.2);
}
.arrow {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.arrow:hover {
  background: var(--first-color);
  color: var(--container-color); /* Updated for better contrast */
}
.arrow:active {
  transform: scale(0.95);
}

/* --- STYLES FOR BLOGGER POST CONTENT (MOVED FROM INLINE) --- */
/* About Us Page Specific Styles */
.about-us-page-content li { padding:10px; margin:10px 0; }
.about-us-page-content { margin-top:10%; line-height: 2; margin-bottom:10%; } /* Consider removing % margin if section padding is used */
.about-us-page-content p, .about-us-page-content h2 { padding: 10px 0 ; }
@media only screen and (max-width: 768px) { .about-us-page-content li{ padding:5px; } }

/* Our Products Page Specific Styles */
.our-products-page-content .Product1,
.our-products-page-content .Product2 { margin: 5rem auto; padding: 0 1.5rem; text-align: left; }
.our-products-page-content .Product1 h2,
.our-products-page-content .Product2 h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color:#40a53d; padding-top: 30px; }
.our-products-page-content .clean-list { list-style-type: disc; list-style-position: outside; padding-left: 1.5em; margin-left: 0; max-width: 600px; }
.our-products-page-content .clean-list li { line-height: 1.5; margin-bottom: 0.5em; }
.our-products-page-content .product-content { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.our-products-page-content .product-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; }
.our-products-page-content .product-text { width: 100%; }
.our-products-page-content .product-text h3 { font-size: 1.5rem; margin-bottom: 1rem; text-align: left; }
.our-products-page-content .product-text p { line-height: 1.6; color: #555; text-align: left; }

@media (min-width: 768px) {
  .our-products-page-content .product-content { flex-direction: row; align-items: center; }
  .our-products-page-content .product-text, .our-products-page-content .product-img-container { flex: 1; }
  .our-products-page-content .Product1 .product-text { order: 1; padding-right: 2rem; } .our-products-page-content .Product1 .product-img-container { order: 2; }
  .our-products-page-content .Product2 .product-text { order: 2; padding-left: 2rem; text-align: right; } .our-products-page-content .Product2 .product-img-container { order: 1; }
}
@media (max-width: 767px) {
  .our-products-page-content .product-text { margin-bottom: 1.5rem; }
  .our-products-page-content .Product2 h2, .our-products-page-content .Product1 h2 { font-size:24px; }
  .our-products-page-content .product-text h3 { font-size:18px; }
}
.image { width: 100%; } /* From FeaturedPost widget */


/* --- MEDIA QUERIES --- */
/* Mobile devices (up to 767px) */
@media only screen and (max-width: 767px) {
  .l-main{
    /* These negative margins might pull content outside its container if not careful */
    /* margin-left: -0.7rem; 
    margin-right: -0.7rem; */
  }
  .bd-container { /* Ensure bd-container has some space on very small screens */
    width: calc(100% - 1rem); /* Reduce side margin slightly */
    margin-left: .5rem;
    margin-right: .5rem;
  }

  .nav__menu {
    position: fixed;
    top: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: top 0.4s ease-in-out;
    box-shadow: 0 4px 4px rgba(0,0,0,.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
  .nav__list {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
  }
  .nav__item {
      margin-left: 0; /* Remove left margin for stacked items */
      margin-bottom: var(--mb-3); /* Space between stacked items */
  }
  .nav__item:last-child {
      margin-bottom: 0; /* No bottom margin for last item */
  }
  .nav__item .change-theme { /* Ensure theme button is also centered if in list */
      margin-left: 0;
  }

  .show-menu {
    top: var(--header-height) !important;
  }
  .bx-menu, .bx-x {
    transition: transform 0.3s ease;
  }

  /* HOME SECTION MOBILE */
  .home__container {
    min-height: calc(100vh - var(--header-height) - 2rem); /* Adjusted for mobile padding */
    display: grid;
    grid-template-columns: 1fr; /* Single column */
    grid-template-rows: auto auto; /* data first, then image */
    align-content: center; /* Try to center content vertically if space allows */
    gap: var(--mb-3);
  }
  .home__data {
    grid-row: 1;
    text-align: center;
  }
  .home__img {
    grid-row: 2;
    /* height: 140% !important; */ /* REMOVED */
    max-width: 85%; /* Slightly smaller max-width for image */
    height: auto;
    margin: 0 auto; /* Center horizontally, remove specific top margin */
    border-radius: 70px 15px 15px 15px; /* keep */
  }
  .home__title {
    font-size: 1.5rem; /* Adjusted for mobile */
    /* margin-top: 30px; */ /* REMOVED */
    margin-bottom: var(--mb-1);
  }
  .home__subtitle {
    font-size: 1rem; /* Adjusted for mobile */
    margin-bottom: var(--mb-1);
  }
  .home__subtitle:last-of-type {
    margin-bottom: var(--mb-3); /* Space before button */
  }

  .button { /* General button on mobile, if it needs to be block */
    font-size: var(--normal-font-size); /* Use variable */
    /* display: block; */ /* Uncomment if all buttons should be block on mobile */
    /* width: fit-content; */
    /* margin-left: auto; */
    /* margin-right: auto; */
  }
  .home__data .button { /* Specific for home button */
     margin: var(--mb-2) auto 0 auto;
  }


  .footer__container {
    justify-items: left; /* As per original */
    gap: var(--mb-3); /* Ensure gap between footer columns */
  }
  .footer__content ul {
    text-align: left; /* Align text left in each column */
  }
  .footer__title {
    font-size: var(--h3-font-size) !important; /* Adjust if needed */
  }
  .footer__content {
    font-size: var(--small-font-size) !important; /* Adjust if needed */
  }

  /* ABOUT SECTION MOBILE */
  .about__container {
      grid-template-columns: 1fr; /* Single column */
      gap: var(--mb-3);
  }
  .about__data {
    /* margin-top: -20px; */ /* REMOVED */
    text-align: center;
  }
  .about__img {
    /* height: 100% !important; */ /* REMOVED */
    max-width: 85%;
    height: auto;
    margin: 0 auto;
    border-radius: 15px 70px 15px 15px; /* keep */
  }
  
  /* #menu { margin-top:60px; } */ /* REMOVED, use section padding */
  /* #Menu-heading { margin-top: 0; } */ /* REMOVED */

  .partner-div {
    flex-direction: column;
    gap: 1.5rem; /* Increased gap for column layout */
  }
  .partner-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem; /* Gap between logos */
  }
  .partner1 {
    width: 100px;
    height: 50px;
  }

  iframe{
    margin-top: 1.5rem;
    min-height: 300px; /* Ensure map has some height */
  }
  /* #contact-heading { margin-top: 20px; } */ /* REMOVED */

  .testimonial-container {
    margin-left: auto;
    margin-right: auto;
  }
  .testimonial-header h2 {
    font-size: 1.5rem;
  }
  .testimonial-header p {
    font-size: 0.95rem;
  }
  .testimonial-slide {
    padding: 2rem 1.5rem;
  }
  .client-name {
    font-size: 1rem;
  }
  .testimonial-text {
    font-size: 0.95rem;
  }
  .testimonial-controls {
    padding: 0 0.5rem;
  }
  .slider-nav {
    margin: 0 0.5rem;
  }
  .arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* Smaller Mobile devices (up to 480px) - Testimonial specific */
@media (max-width: 480px) {
    .testimonial-container {
        /* margin: 1.5rem auto; */ /* Already centered by section and bd-container */
    }
    .testimonial-header h2 {
        font-size: 1.4rem;
    }
    .testimonial-header p {
        font-size: 0.9rem;
    }
    .testimonial-slide {
        padding: 2rem 1.25rem;
    }
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 1.5rem;
    }
    .testimonial-text::before {
        left: -0.25rem;
    }
    .testimonial-text::after {
        right: -0.25rem;
        bottom: -0.75rem;
    }
    .testimonial-controls {
        justify-content: center;
        position: relative;
        padding: 0;
        margin-top: 0.8rem;
    }
    .slider-nav {
        margin: 0;
        order: 2;
    }
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        order: 1;
        color: var(--first-color);
        background: rgba(255, 255, 255, 0.6); /* Consider var(--container-color) with opacity */
        backdrop-filter: blur(3px);
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    .arrow.prev {
        left: 10px;
    }
    .arrow.next {
        right: 10px;
        order: 3;
    }
}

/* Tablets (768px and up) */
@media screen and (min-width: 768px) {
  body {
    margin: 0; /* Reset margin for larger screens */
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    flex-direction: row; /* Nav items in a row */
    align-items: center; /* Align items vertically */
  }
  .nav__item {
    margin-left: var(--mb-4); /* Adjusted margin for desktop */
    margin-bottom: 0; /* No bottom margin for horizontal list */
  }
  .nav__toggle {
    display: none;
  }
  .change-theme {
    position: initial; /* Reset position for desktop */
    margin-left: var(--mb-2); /* Space from other nav items */
  }

  .home__container {
    min-height: 80vh; /* Ensure it takes up good space */
    grid-template-columns: repeat(2,1fr); /* Two columns */
    align-items: center; /* Vertically align content in columns */
    gap: var(--mb-1); /* Gap between columns */
    
    
  }
  .home__data {
      text-align: left; /* Align text left on desktop */
      order: 1; /* Data first */
  }
  .home__img {
      order: 2; /* Image second */
      width: 400px; /* Larger image on desktop */
      margin: 0 auto; /* Center in its column */
  }
  .home__data .button { /* Button alignment on desktop */
      margin-left: 0;
      margin-right: auto;
  }


  .services__container,
  .menu__container {
    margin-top: var(--mb-6);
  }
  .menu__container {
    column-gap: 2rem; /* Adjusted gap */
  }
  .menu__content {
    padding: 1.5rem;
  }
  /* .menu__img was removed */
  
  .about__container {
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 3rem; /* Increased gap */
  }
  .about__data, .about__initial {
    text-align: left;
  }
  .about__img {
    order: -1; /* Image first on desktop */
    width: 400px; /* Larger image */
    margin: 0 auto; /* Center in its column */
  }

  .contact__container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
    text-align: left; /* Align contact data left */
    /* padding: 10px !important; */ /* Remove important, use section padding */
  }
  .contact__initial {
      text-align: left;
  }
  .contact__button {
    justify-self: center;
  }
}

@media screen and (max-width: 766px) {
.home__container {
  margin: -8rem 0;

 
  
}

}
/* Desktop (960px and up) */
@media screen and (min-width: 960px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__img {
    width: 450px; /* Even larger on bigger screens */
  }
  .about__img {
      width: 450px;
  }
  .about__container {
    column-gap: 5rem; /* Larger gap */
  }
}

/* Tall screens (adjust if needed, home__container uses min-height now) */
/* @media screen and (min-height: 721px) {
  .home__container {
    min-height: 640px; 
  }
} */

/* --- IOS-SPECIFIC FIXES --- */
@supports (-webkit-touch-callout: none) {
  body, .home__container { /* home__container might not need -webkit-fill-available if min-height is used */
    min-height: -webkit-fill-available;
  }
  body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .l-header {
    padding-top: env(safe-area-inset-top);
  }
  .nav__menu.show-menu {
     top: calc(var(--header-height) + env(safe-area-inset-top)) !important;
  }
  img { /* General img fix for iOS */
    -webkit-backface-visibility: hidden;
    /* image-rendering: -webkit-optimize-contrast; */ /* Can sometimes make images look pixelated, test if needed */
    transform: translateZ(0); /* Good for promoting to layer */
    /* max-width: 100%; height: auto; border-radius: inherit; */ /* Already in global img styles */
  }

  /* Specific image handling for home and about - focus on rendering fixes, not layout overrides */
  .home__img, .about__img {
    /* The general mobile/desktop styles should dictate size and object-fit. */
    /* These iOS specific styles should only fix rendering issues. */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Keep if it solves a visual issue */
    overflow: hidden; /* Keep if necessary */
    /* transform: translateZ(0) scale(1.0001); */ /* Already in general img via transform: translateZ(0) */
  }

  body {
    -webkit-font-smoothing: subpixel-antialiased;
  }
  input, textarea, select {
    font-size: 16px; /* Good for iOS to prevent zoom */
    -webkit-appearance: none;
  }
  .button, .nav__link, .menu__button, .arrow, .slider-dot {
    -webkit-tap-highlight-color: transparent;
  }
  .testimonial-slider-wrapper {
    -webkit-overflow-scrolling: touch;
  }
  h1, h2, h3, p {
    word-break: break-word; /* Good */
    -webkit-hyphens: auto; /* Good */
  }
  .scrolltop.show-scroll {
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  /*
  @media only screen and (max-width: 767px) {
    .home__img, .about__img {
        // Only add if general mobile styles are insufficient for iOS rendering
        // max-height: 40vh !important; // AVOID if possible, very restrictive
    }
  }
  */
}

/* Safari 10+ specific hack for -webkit-mask-image if needed */
@supports (background: -webkit-named-image(i)) and (not (font: -apple-system-body)) and (-webkit-appearance: none) {
  .home__img, .about__img {
    /* -webkit-mask-box-image: none; */ /* Original had this, but usually mask-image is the one */
  }
}