/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #fdf8f0;
  color: #4a3c31;
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  color: #22140c;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Content wrapper for consistent max width & centering */
.content-wrapper {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.header {
  background-color: #dedddd;
  color: #221409;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  animation: fadeDown 1s ease forwards;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0;
  color: #463a1a;
  user-select: none;
}

.tagline {
  font-style: italic;
  font-weight: 300;
  font-size: 0.875rem;
  color: #b8623e;
  margin-left: 1.1rem;
}

/* Navigation */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #d3861a;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #d3861a;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #d4b96f;
  border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f9f1e7;
  font-size: 2rem;
  cursor: pointer;
}

/* Vertical sections styling */
.vertical-section {
  padding: 5rem 0;
  scroll-margin-top: 68px; /* Height of sticky header for anchor jump offset */
  border-bottom: 1px solid #d4c9a1;
  background-color: #fdf8f0;
}

.bg-light-cream {
  background-color: #fbf6e7;
  border-bottom: 1px solid #d4c9a1;
}

/* Home Section */
.home-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-text {
  flex: 1 1 400px;
  animation: slideInLeft 1s ease forwards;
}

.home-text h2 {
  font-size: 3.25rem;
  margin-bottom: 1rem;
  color: #6b4f3f;
}

.home-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #5c4b3b;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: #d4b96f;
  color: #4a3c31;
  border-color: #d4b96f;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: transparent;
  color: #d4b96f;
  border-color: #d4b96f;
  outline: none;
}

.home-image {
  flex: 1 1 400px;
  text-align: center;
  animation: slideInRight 1s ease forwards;
}

.home-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* About Us Section */
.about-container {
  text-align: center;
}

.about-text {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 2rem;
  color: #5c4b3b;
}

.about-images {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.about-images img {
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.about-images img:hover,
.about-images img:focus {
  transform: scale(1.07);
  outline: none;
}

/* Services Section */
.services-container {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: #fff8e7;
  padding: 2.2rem 1.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(181, 148, 85, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  outline-offset: 4px;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(181, 148, 85, 0.6);
  outline: none;
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  color: #b59455;
}

/* Why Choose Us Section */
.why-choose-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 0;
  color: #5c4b3b;
  font-size: 1.2rem;
  line-height: 1.7;
}

.why-choose-list li {
  margin-bottom: 1.3rem;
  padding-left: 1.5rem;
  position: relative;
}

.why-choose-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #d4b96f;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1;
  top: 3px;
}

/* Our Process Section */
.process-steps {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 1.5rem;
  color: #5c4b3b;
  font-size: 1.2rem;
  line-height: 1.7;
  counter-reset: step-counter;
}

.process-steps li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2.5rem;
  counter-increment: step-counter;
}

.process-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  color: #d4b96f;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

/* Testimonials Section */
.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-card {
  background-color: #fff8e7;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(181, 148, 85, 0.3);
  padding: 2rem 2.5rem;
  max-width: 300px;
  font-style: italic;
  color: #5c4b3b;
  position: relative;
  outline-offset: 4px;
}

.testimonial-card footer {
  margin-top: 1.3rem;
  font-weight: 700;
  font-style: normal;
  color: #6b4f3f;
  text-align: right;
}

/* News & Events Section */
.news-container {
  max-width: 900px;
  margin: 0 auto;
  color: #5c4b3b;
}

.news-article {
  background-color: #fff8e7;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(181, 148, 85, 0.3);
  padding: 1.8rem 2.2rem;
  margin-bottom: 1.75rem;
  transition: box-shadow 0.3s ease;
}

.news-article:hover,
.news-article:focus-within {
  box-shadow: 0 12px 40px rgba(181, 148, 85, 0.5);
  outline: none;
}

.news-article h3 {
  margin-top: 0;
  color: #6b4f3f;
  font-weight: 700;
}

.news-article time {
  font-size: 0.9rem;
  color: #a88a4a;
  font-weight: 600;
  user-select: none;
  display: block;
  margin-top: 0.6rem;
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #6b4f3f;
}

input,
textarea {
  padding: 0.85rem 1.1rem;
  border: 2px solid #b59455;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #d4b96f;
  outline: none;
}

.error-message {
  color: #b94a48;
  font-size: 0.9rem;
  height: 1.25rem;
  margin-top: 0.25rem;
}

#form-status {
  margin-top: 1rem;
  font-weight: 600;
  color: #4a3c31;
}

/* Footer */
.footer {
  background-color: #5b3e1c;
  color: #f9f1e7;
  text-align: center;
  padding: 1.3rem 0;
  font-size: 0.95rem;
  user-select: none;
}

/* Responsive */
@media (max-width: 900px) {
  .home-container {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    order: 3;
    display: none;
  }

  .nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .logo {
    order: 1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .tagline {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 2.25rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }
}

/* Animations */
@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.responsive-img {
  width: 100%;       /* scales with container */
  max-width: 1200px; /* optional: limit max size */
  height: auto;      /* keeps aspect ratio */
  display: block;    /* removes inline spacing */
  margin: 0 auto;    /* centers the image */
  border-radius: 12px; /* optional: rounded corners */
}

/* Background images for vertical sections with overlays */
.home-section {
  background: 
    linear-gradient(rgba(210, 205, 200, 0.7), rgba(223, 219, 215, 0.7)),
    url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #f9f1e7;
}

.about-section.bg-light-cream {
  background:
    linear-gradient(rgba(251, 246, 231, 0.85), rgba(251, 246, 231, 0.85)),
    url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #4a3c31;
}

.services-section {
  background:
    linear-gradient(rgba(255, 248, 231, 0.9), rgba(255, 248, 231, 0.9)),
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #4a3c31;
}

.why-choose-section.bg-light-cream {
  background:
    linear-gradient(rgba(251, 246, 231, 0.9), rgba(251, 246, 231, 0.9)),
    url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #4a3c31;
}

.process-section {
  background:
    linear-gradient(rgba(253, 248, 240, 0.95), rgba(253, 248, 240, 0.95)),
    url('https://images.unsplash.com/photo-1494522330442-7c99f9a3b0f1?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #4a3c31;
}

.testimonials-section.bg-light-cream {
  background:
    linear-gradient(rgba(251, 246, 231, 0.85), rgba(251, 246, 231, 0.85)),
    url('https://images.unsplash.com/photo-1501466044931-62695aada8a2?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #4a3c31;
}

.news-section {
  background:
    linear-gradient(rgba(254, 251, 240, 0.95), rgba(254, 251, 240, 0.95)),
    url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #4a3c31;
}

.contact-section.bg-light-cream {
  background:
    linear-gradient(rgba(251, 246, 231, 0.9), rgba(251, 246, 231, 0.9)),
    url('https://images.unsplash.com/photo-1528605248644-14dd04022da1?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: #4a3c31;
}

/* Ensure text shadows on headings for better readability over backgrounds */
.section-title {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* For paragraphs and other text, subtle shadow */
.about-text, 
.why-choose-list li,
.process-steps li,
.testimonial-card,
.news-article p,
.news-article h3,
.contact-form label {
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Cards background override to keep them distinct */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
  word-wrap: break-word;     /* ensures long words break */
  overflow-wrap: break-word; /* modern alternative */
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Extra tweak for very small screens */
@media (max-width: 480px) {
  .service-card {
    padding: 15px;
    font-size: 14px;
  }
  .service-card h3 {
    font-size: 16px;
  }
  .service-card p {
    font-size: 13px;
  }
}

/* For input fields and textarea */
input,
textarea {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Adjust footer for dark background */
.footer {
  background-color: #4a3210;
  color: #f9f1e7;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* Contact Section tweak */
.contact-details {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

/* Company Head Section */
.head-profile {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.head-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.head-info {
  max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
  .head-profile {
    flex-direction: column;
    text-align: center;
  }
  .head-info {
    max-width: 100%;
  }
}
