body {
  font-family: "Poppins", sans-serif;
  background-color: #f7f5ec;
  color: #2c2421;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

ul {
  list-style: none;
}

/* Header */
header {
  margin-top: 0%;
  background-color: #efefe2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-container ul {
  display: flex;
  gap: 70px;
  justify-content: flex-end;
  align-items: center;
}

.nav-container li a {
  color: #6a7b54 !important;
  text-decoration: none;
  font-weight: 600;
}

.nav-container .logo {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 28px;
  color: #6a7b54;
}

.nav-container li.logo {
  margin: 0 auto;
}

.nav-container li.logo a {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 28px;
  color: #6a7b54;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  font-weight: 300;
}

/* Dropdown Menu */
.dropdown {
  display: none !important;
  visibility: hidden;
  position: absolute;
  top: 110%;
  left: 67%;
  transform: translateX(-50%);
  background: #efefe2;
  padding: 8px 0;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  z-index: 1002;
}

.dropdown li {
  padding: 0;
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #6a7b54;
  text-decoration: none;
  font-weight: 600;
}

.dropdown li a:hover,
.dropdown li a:focus {
  background: rgba(106, 123, 84, 0.08);
}

.has-dropdown.open > .dropdown {
  display: block !important;
  visibility: visible;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60vh;
  background: linear-gradient(to right, #ffffff, #f9f4dd);
  overflow: hidden;
  gap: 200px;
}

.hero-text {
  padding-left: 2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
  header {
    padding: 12px;
  }
  .hamburger {
    display: block;
  }
  .nav-container ul {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    align-items: center;
  }
  .nav-container ul li:not(.logo) {
    display: none;
  }
  .nav-container ul.show {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    gap: 12px;
    background: #efefe2;
    padding: 12px;
    z-index: 9998;
  }
  .nav-container ul.show li {
    display: flex;
  }
  nav ul li.logo {
    display: none !important;
  }
  .hamburger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
  }
  .nav-container li.logo {
    margin: 0;
  }
  .hero {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .hero-text {
    padding-top: 1.5rem;
    padding-left: 0;
    text-align: center;
  }
  .hero-image {
    width: 100%;
  }
  .about-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .about-content h2 {
    text-align: left;
  }
  .about-text {
    align-self: stretch;
  }
}

.hero-text h1 {
  font-family: "Oleo Script Swash Caps", cursive !important;
  font-size: 55px;
  font-weight: 300;
  padding-left: 3rem;
  margin: 0;
}
.hero-text h4 {
  font-size: 18px;
  font-weight: 200;
  padding-left: 3rem;
  margin-bottom: -10px;
}
.hero-text p {
  padding-left: 3rem;
  font-size: 16px;
  line-height: 1.6;
}
.hero-text p span {
  font-weight: bold;
  font-family: "Oleo Script Swash Caps", cursive !important;
}
.hero-image {
  flex: 1 1 400px;
  z-index: 1;
}

.hero-image img {
  width: 130%;
  max-width: 1000px;
  height: 100%;
  display: block;
  transform: scale(1.2);
}
.about {
  background: #f5f5f5;
  padding: 50px 0;
}

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 30px;
}

.about-image {
  width: auto;
  height: auto;
  background: none;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: none; /* remove bottom border */
}

.about-text {
  max-width: 600px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.3;
  color: #2c2421;
  white-space: pre-line; /* apply paragraph breaks same as screenshot */
}

.services-section {
  background: rgb(255, 255, 255);
  padding: 100px 0;
}

.services {
  padding-left: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* left text, right image */
  align-items: center;
  gap: 10px;
}

.description {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.3;
  color: #2c2421;
  text-align: left;
}

.service-text h2 {
  margin-bottom: 20px;
}

.serviceimage {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.services-section span {
  font-weight: bold;
  font-family: "Oleo Script Swash Caps", cursive !important;
}
.about span {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: "Oleo Script Swash Caps", cursive !important;
}

/* CTA Section */
.cta {
  padding-top: 2rem;
  background-color: #f5f5f5;
  text-align: center;
  padding-bottom: 2rem;
}

.cta-images {
  display: flex;
  flex-direction: row;
  gap: 0px;
  justify-content: center;
}

.cta-left,
.cta-right {
  width: 50vw;
  margin: 0;
  cursor: pointer !important;
}

.cta-text {
  margin-top: 40px;
}

.cta-text h2 {
  font-size: 18px;
  margin: 20px 0;
}

.cta-text button {
  background-color: #2c2421;
  color: #fff;
  padding: 15px 60px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.cta-text button:hover {
  background-color: #6a7b54;
}

/* Footer */
footer {
  background-color: #efefe2;
  padding: 30px 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer .socials a {
  margin-left: 15px;
  text-decoration: none;
}
/* Tablet screens */
@media (max-width: 1024px) {
  .hero {
    gap: 60px; /* reduce huge gap */
    padding: 60px 40px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .about-content {
    grid-template-columns: 1fr; /* stack image and text */
    gap: 40px;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }

  .services {
    grid-template-columns: 1fr; /* stack text and image */
    gap: 40px;
    text-align: center;
  }

  .description {
    max-width: 100%;
  }
}
.hamburger {
  display: none;
}

/* High-resolution / large-screen rule: prevent default blue link color on devices
   like MacBook Pro 14" (high DPI). Keeps links using surrounding text color. */
@media (min-width: 1400px) and (min-resolution: 2dppx) {
  a, a:link, a:visited, a:hover, a:active, a:focus {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
}
/* Mobile screens */
@media (max-width: 768px) {
  /* Navigation */
  .nav-container ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  /* Hero section stacks neatly */
  .hero {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
    padding-left: 0;
  }

  .hero-text h4,
  .hero-text p {
    padding-left: 0;
  }

  .hero-text br{
    display: none;
  }

  .hero-image img {
    transform: none; 
    max-width: 100%;
    height: auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
    text-align: center;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.5;
    display: block;       
    margin-bottom: 1.5em; 
    white-space: normal !important;  
  }

  .about-text br {
    display: none; 
  } 

  .services {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .services br{
    display: none;
  }
  
  .serviceimage {
    max-width: 100%;
    height: auto;
  }

  /* CTA */
  .cta-text h2 {
    font-size: 24px;
    padding: 0 10px;
  }

  .cta-text button {
    margin-top: 15px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  footer .socials a {
    margin-left: 15px;
    text-decoration: none;
    display: inline-block;
  }
}

footer .socials a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Small mobile screens */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text h4 {
    font-size: 18px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .about-text p,
  .description {
    font-size: 14px;
    line-height: 1.4;
  }

  .cta-text h2 {
    font-size: 20px;
  }
    
  .cta-text button {
    font-size: 14px !important;
    padding: 12px 20px !important;
  }
}
/* Mobile: max-width 768px for About page */
@media (max-width: 768px) {
  nav {
    padding: 40px;
  }

  nav ul li.logo {
    display: none;
  }

  /* Show logo on the left outside dropdown */
  .nav-container::before {
    content: "JayGovindraj";
    font-family: "Oleo Script Swash Caps", cursive;
    font-size: 22px;
    position: absolute;
    color: #6a7b54;
    left: 20px;
    top: 18px;
    z-index: 1000;
  }

  /* Hamburger on the right */
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 18px;
    z-index: 1001;
    cursor: pointer;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* just below header */
    left: 0;
    width: 100%;
    background: #efefe2;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
    z-index: 999;
  }

  nav ul.show {
    display: flex;
  }

  /* Keep mobile links small */
  nav ul li a {
    font-size: 15px;
  }
}
/* 🔥 FORCE MOBILE MENU CLOSED BY DEFAULT */
@media (max-width: 768px) {
  nav ul {
    display: none !important; /* hide by default */
  }

  nav ul.show {
    display: flex !important; /* only visible when JS adds .show */
  }
}
