@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --text-dark: #5F4B3c;
  --text-light: #333333;
  --extra-light: #AAAAAA;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
}

* {
  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: 2rem;
  font-weight: 400;
  font-family: var(--header-font);
  color: var(--text-dark);
  text-align: center;
}

.section__description {
  color: var(--text-light);
  line-height: 1.75rem;
  text-align: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--text-dark);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--text-light);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
}

.header {
  min-height: 600px;
  background-image: radial-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.9)),
    url("assets/header.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--text-dark);
}

.nav__logo img {
  max-width: 70px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--text-dark);
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links .nav__logo {
  display: none;
}

.nav__links a {
  padding-bottom: 5px;
  font-weight: 500;
  color: var(--white);
  border-bottom: 2px solid transparent;
}

.nav__links a:hover {
  border-color: var(--white);
}

.about__container .section__description {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.about__container img {
  max-width: 170px;
  margin-inline: auto;
}

.portfolio__grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.portfolio__card {
  position: relative;
  isolation: isolate;
}

.portfolio__card::after {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-family: var(--header-font);
  color: var(--white);
}

.portfolio__card:nth-child(1)::after {
}

.portfolio__card:nth-child(2)::after {
}

.portfolio__card:nth-child(3)::after {
}

.portfolio__content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: 0.3s;
  z-index: 1;
}

.portfolio__card:hover .portfolio__content {
  opacity: 1;
}

.service {
  background-image: linear-gradient(rgba(95, 75, 60, 0.5),  rgba(0, 0, 0, 0.9)),
    url("assets/Screenshot\ 2025-11-14\ 114545.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service__container .section__header {
  color: var(--white);
}

.service__container .section__description {
  max-width: 600px;
  margin-inline: auto;
  color: var(--extra-light);
}

.service__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.service__card {
  text-align: center;
}

.service__card h4 {
  position: relative;
  isolation: isolate;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 400;
  font-family: var(--header-font);
  color: var(--white);
}

.service__card h4::after {
  position: absolute;
  content: "~";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  line-height: 0;
}

.service__card p {
  color: var(--extra-light);
  line-height: 1.75rem;
}

/* --- PRICING SECTION STYLES --- */

.pricing__container .section__description {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.pricing__grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  /* Default: 1 column on small screens */
  grid-template-columns: repeat(1, 1fr); 
  text-align: center;
}

.pricing__card {
  padding: 2rem;
  background-color: var(--white);
  border: 1px solid var(--extra-light);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.pricing__card:hover {
  border-color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
}

.pricing__card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--text-dark);
}

.pricing__card .price {
  display: block;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.5;
}

.pricing__container .btn {
  width: 100%;
  max-width: 250px;
  padding: 1rem;
  font-size: 1.05rem;
  /* Override default button color for visual distinction */
  background-color: var(--text-dark); 
}

.pricing__container a.btn:hover {
  background-color: var(--text-dark);
}

/* --- Responsive Adjustments for Pricing Grid --- */

@media (width > 540px) {
  .pricing__grid {
    /* 2 columns on medium screens */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  .pricing__grid {
    /* 3 columns on larger screens (since you have 6 cards, 2 rows of 3 is efficient) */
    grid-template-columns: repeat(3, 1fr);
  }
}

.client__container {
  padding-bottom: 2rem;
  background-color: var(--text-light);
}

.swiper {
  margin-top: 2rem;
  padding-bottom: 3rem;
  width: 100%;
}

.client__card {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.client__card img {
  max-width: 120px;
  margin-inline: auto;
  margin-bottom: 2rem;
  border-radius: 100%;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.client__card p {
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.75rem;
}

.client__card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.swiper-pagination-bullet-active {
  background-color: var(--text-dark);
}

.gallery__grid {
  margin-block: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery__grid img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    transition: 0.3s;
}

.gallery__grid:hover img:not(:hover) {
  opacity: 0.5;
}

.gallery__btn {
  text-align: center;
}


/* --- INSTAGRAM EMBED STYLES --- */

.instagram__container {
    text-align: center; /* Center the header and description */
}

.instagram__posts__grid {
    margin-top: 3rem;
    display: grid;
    /* On mobile (default), display posts in a single column */
    grid-template-columns: 1fr; 
    gap: 2rem;
    max-width: 1000px; /* Limits the overall width for a cleaner look */
    margin-inline: auto; /* Centers the grid container on the page */
}

.post__embed {
    /* Instagram embeds come with max-width/min-width, but this ensures they behave */
    width: 100%;
    /* The Instagram embed HTML already handles responsiveness, but this is a good safeguard */
    overflow: hidden; 
}

/* --- Media Query for Larger Screens (Tablets and Desktops) --- */
@media (min-width: 600px) {
    .instagram__posts__grid {
        /* On screens 600px and wider, display posts in two equal columns */
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem; /* Consistent spacing between the two posts */
    }
}

.instagram__cta {
    text-align: center;
    margin-top: 3rem;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.footer__container {
  display: grid;
  gap: 4rem 0;
  align-items: center;
/* 🛑 ADDED: Dark gradient background (Brown accent into Black) */
  background-image: linear-gradient(to bottom, var(--text-dark) 0%, rgba(0, 0, 0, 0.9) 100%);
  padding-top: 5rem; /* Ensures gradient starts cleanly */
}

.footer__col {
  padding-inline: 2rem;
}

.footer__container img {
  max-width: var(--max-width);
  margin-inline: auto;
  margin-bottom: 2rem;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__socials a {
  font-size: 1.5rem;
/* 🛑 CHANGED: White for visibility on dark background */
 color: var(--white);
}

.footer__socials a:hover {
 /* 🛑 CHANGED: Brown accent on hover */
 color: var(--text-dark);
}

.footer__links {
   list-style: none;
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 2rem;
}

.footer__links a {
  display: block;
  font-weight: 600;
/* 🛑 CHANGED: White for visibility on dark background */
  color: var(--white);
  text-align: center;
}

.footer__links a:hover {
/* 🛑 CHANGED: Brown accent on hover */
 color: var(--text-dark);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
/* 🛑 CHANGED: White for visibility on dark background */
  color: var(--white);
  text-align: center;
}

.footer__col p {
/* 🛑 CHANGED: Light gray for body text on dark background */
  color: var(--extra-light);
  line-height: 1.75rem;
  text-align: center;
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--white); /* 🛑 CHANGED: White text for visibility */
/* 🛑 CHANGED: Dark gray/black for contrast with the gradient above */
  background-color: var(--text-light); 
  text-align: center;
}

@media (width > 540px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__col:nth-child(1) {
    grid-area: 1/1/2/3;
  }

  .footer__col:nth-child(3) {
    border-left: 2px solid var(--text-dark);
  }
}

@media (width > 768px) {
  .header {
    min-height: 650px;
  }

  nav {
    padding: 2rem 1rem;
    position: static;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__header {
    display: none;
  }

  .nav__links {
    padding: 0;
    width: 100%;
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    background-color: transparent;
  }

  .nav__links .nav__logo {
    display: block;
  }

  .nav__links .nav__logo img {
    max-width: 150px;
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .blog__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog__content {
    grid-column: 2/3;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__col:nth-child(1) {
    grid-area: 1/2/2/3;
    border-left: 2px solid var(--text-dark);
    border-right: 2px solid var(--text-dark);
  }

  .footer__col:nth-child(3) {
    border: none;
  }
}

@media (width > 1024px) {
  .header {
    min-height: 700px;
  }

  .portfolio__grid {
    gap: 2rem;
  }
}