/* ==========================================================================
   ARSH DAIRY FARM - Premium Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --primary: #2E7D32;       /* Forest Green */
  --primary-dark: #1B5E20;  /* Dark Green */
  --primary-light: #E8F5E9; /* Light Mint Green */
  --secondary: #A1887F;     /* Earthy Accent */
  
  --bg-milk: #FAFAFA;       /* Milk White */
  --bg-light: #F5F5F5;      /* Light Gray */
  --bg-white: #FFFFFF;
  --text-dark: #212121;     /* Soft Dark */
  --text-muted: #666666;    /* Muted Gray */
  --border-color: #E0E0E0;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-milk);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Typography & Modern Wrapping --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.25;
  text-wrap: balance; /* Modern Wrapping standard */
}

p, li, blockquote {
  text-wrap: pretty; /* Prevent Orphans standard */
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- Layout Utility Classes --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--bg-white) !important;
}

.badge {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-tag {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary);
  border: 2px stroke var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

/* --- Sticky Navigation Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
}

.main-header.scrolled {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo-highlight {
  color: var(--primary);
}

.desktop-nav .nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

/* --- Mobile Hamburger Menu --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  cursor: pointer;
}

.hamburger-btn .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1001;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: hidden;
  opacity: 0;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
  opacity: 1;
}

.drawer-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--bg-white);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
}

.mobile-drawer.open .drawer-sheet {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.close-drawer-btn {
  font-size: 2rem;
  background: transparent;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-nav-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  display: block;
}

.drawer-link:hover {
  color: var(--primary);
}

.drawer-btn {
  background-color: var(--primary);
  color: var(--bg-white);
  text-align: center;
  padding: 10px;
  border-radius: 50px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px;
  color: var(--bg-white);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content .badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--bg-milk);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-subheading {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--bg-milk);
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

/* --- Stats Bar Section --- */
.stats-section {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--primary);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- About Us Section --- */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.image-overlay-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 20px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.image-overlay-badge .badge-title {
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.image-overlay-badge .badge-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.about-points {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-points li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.point-icon {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Why Choose Us Section --- */
.why-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.why-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: left;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Our Products Section --- */
.products-section {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image-container {
  position: relative;
  height: 260px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-info {
  padding: 30px;
  text-align: left;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-btn {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.product-btn:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

/* Coming Soon Product Catalogue */
.upcoming-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.upcoming-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.upcoming-card {
  background-color: var(--bg-white);
  padding: 25px 15px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px dashed var(--border-color);
  opacity: 0.8;
  transition: var(--transition-normal);
}

.upcoming-card:hover {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.02);
}

.upcoming-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.upcoming-card h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* --- Our Process (Timeline) --- */
.process-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 50px;
  padding-bottom: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  width: 90%;
  height: 4px;
  background-color: var(--primary-light);
  z-index: 1;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 15px;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 8px var(--bg-white);
  transition: var(--transition-normal);
}

.timeline-step:hover .step-number {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Gallery Section --- */
.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(27, 94, 32, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-normal);
  color: var(--bg-white);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--bg-white);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Testimonials Section --- */
.testimonials-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 35px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial-user h4 {
  font-size: 1rem;
  color: var(--primary-dark);
}

.testimonial-user p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FAQ Section (Accordion Details Standard) --- */
.faq-section {
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.custom-accordion {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition-normal);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: var(--bg-white);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-normal);
}

.accordion-btn:hover {
  background-color: var(--primary-light);
}

.accordion-btn .accordion-icon {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.accordion-panel {
  transition: height 0.3s ease;
  overflow: hidden;
}

/* Browser default fallback or explicit hide */
.accordion-panel[hidden] {
  display: none !important;
}

.panel-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Contact Us Section --- */
.contact-section {
  padding: 80px 0;
  background-color: var(--bg-milk);
}

.contact-grid {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 40px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info-panel {
  background-color: var(--primary-dark);
  padding: 50px;
  color: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-lead-text {
  font-size: 1rem;
  opacity: 0.9;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-icon {
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-item h4 {
  color: var(--bg-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.detail-item p, .detail-item a {
  font-size: 0.9rem;
  opacity: 0.85;
}

.detail-item a:hover {
  opacity: 1;
  text-decoration: underline;
}

.map-placeholder {
  margin-top: auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.map-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--bg-white);
}

.map-inner span {
  font-weight: 600;
  font-size: 0.95rem;
}

.map-inner p {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Contact Form Panel */
.contact-form-panel {
  padding: 50px;
}

.contact-form-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-form-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-milk);
  transition: var(--transition-normal);
  color: var(--text-dark);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.error-msg {
  color: #D32F2F;
  font-size: 0.8rem;
  display: none;
  margin-top: 5px;
}

.form-group.invalid input, .form-group.invalid textarea {
  border-color: #D32F2F;
  background-color: #FFEBEE;
}

.form-group.invalid .error-msg {
  display: block;
}

/* Form success banner */
.form-success-banner {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease forwards;
}

.form-success-banner.visible {
  display: block;
}

#contactForm.hidden {
  display: none;
}

.banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.form-success-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.form-success-banner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Footer Section --- */
.main-footer {
  background-color: #1A301E; /* Dark earthy green overlay */
  color: #B0BEC5;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 4fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: var(--bg-white);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.owner-footer {
  color: var(--bg-white);
}

.footer-links h4, .footer-socials h4 {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: #B0BEC5;
  background-color: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: var(--bg-white);
  background-color: var(--primary);
}

.location-label {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Scroll Entrance Animations (CSS view-timeline Standard) --- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .scroll-reveal {
      animation: fade-in-up auto linear forwards;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

/* Fallback JS Triggered CSS Transitions */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }
  .about-grid {
    gap: 40px;
  }
  .about-img {
    height: 380px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .hero-subheading {
    font-size: 1.2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .image-overlay-badge {
    right: 0;
    bottom: 20px;
  }
  
  .timeline {
    flex-direction: column;
    gap: 40px;
  }
  
  .timeline::before {
    left: 42px;
    width: 4px;
    height: 80%;
    top: 30px;
  }
  
  .timeline-step {
    display: flex;
    text-align: left;
    gap: 20px;
    padding: 0;
  }
  
  .step-number {
    margin: 0;
    flex-shrink: 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-panel, .contact-form-panel {
    padding: 30px 20px;
  }
  
  .stats-section {
    margin-top: -30px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.2rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
