/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Apply a natural box layout model to all elements */
html {
  box-sizing: border-box;
  scroll-padding-top: 70px; /* Adjust based on sticky header height */
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
}
body.no-scroll { /* Prevent background scroll when mobile menu is open */
    overflow: hidden !important;
}

/* --- Utility Classes --- */
.sr-only { /* For screen reader only text */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Title Bar (Consistent across all pages) --- */
.title-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(45, 87, 44, 0.92);
    backdrop-filter: blur(14px);
    padding: 10px 25px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.logo-link { 
    text-decoration: none;
}
.logo {
    font-family: 'Lora', serif;
    font-size: clamp(22px, 3.5vw, 26px); 
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}

.nav-links { 
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a,
.auth-buttons-mobile a.login-button,
.auth-buttons-mobile button.logout-button {
    color: white;
    text-decoration: none;
    padding: 8px 4px; 
    transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    position: relative;
}

.nav-links > a { 
    margin: 0 12px; 
    font-size: 16px; 
    border-bottom: 2px solid transparent;
}

.nav-links > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #a7d7c5;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links > a:hover::after,
.nav-links > a:focus::after {
    width: 100%;
    left: 0;
}

.nav-links > a:hover,
.nav-links > a:focus,
.nav-links > a:active {
    color: #f0f0f0;
    transform: translateY(-1px);
    outline: none;
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons-desktop {
    display: flex; 
    align-items: center;
    gap: 10px;
}
.auth-buttons-mobile {
    display: none; 
    flex-direction: column;
    align-items: stretch; 
    gap: 10px;
    padding: 15px 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: 10px;
}
.auth-buttons-mobile .login-button,
.auth-buttons-mobile .logout-button {
    width: 100%;
    text-align: center;
    padding: 12px 20px; 
    font-size: 15px; 
    font-weight: 500; 
    border-radius: 25px; 
    background-color: #5c8d57; 
    border: none; 
    cursor: pointer; 
}
.auth-buttons-mobile .login-button:hover,
.auth-buttons-mobile .logout-button:hover {
    background-color: #4a7d45; 
    transform: translateY(-2px);
}

.login-button, .logout-button {
    background-color: #5c8d57;
    color: white;
    padding: 9px 20px; 
    text-align: center;
    font-size: 15px; 
    border: none;
    cursor: pointer;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.login-button:hover, .logout-button:hover,
.login-button:focus, .logout-button:focus,
.login-button:active, .logout-button:active {
    background-color: #4a7d45;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    outline: none;
}

.mobile-nav-toggle {
    display: none; 
    background: none;
    border: none;
    color: white;
    font-size: 24px; 
    cursor: pointer;
    padding: 8px;
    z-index: 1001; 
    transition: transform 0.3s ease, color 0.3s ease;
}
.mobile-nav-toggle:hover, .mobile-nav-toggle:focus {
    transform: scale(1.1);
    color: #a7d7c5;
    outline: none;
}
.mobile-nav-toggle .fa-bars { 
    display: inline-block;
}
.mobile-nav-toggle .fa-times { 
    display: none;
}
.mobile-nav-toggle.active .fa-bars { 
    display: none;
}
.mobile-nav-toggle.active .fa-times { 
    display: inline-block;
}


/* --- Hero Section (from index.html) --- */
.hero-section {
    min-height: 90vh;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.05) 100%), 
        url('https://images.unsplash.com/photo-1472224371017-08207f84aaae?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}
.hero-section::before { 
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0; 
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    background: rgba(0, 0, 0, 0.45); 
    padding: clamp(30px, 6vw, 55px);
    border-radius: 18px;
    max-width: 780px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: zoomIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards; 
    position: relative;
    z-index: 2;
    opacity: 0; 
}

.hero-section h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin-bottom: 20px;
    animation: slideInDown 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5); 
    opacity: 0; 
}

.hero-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    animation: fadeIn 1.6s ease-in forwards; 
    opacity: 0; 
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); 
}
.hero-section p:nth-of-type(1) { animation-delay: 0.9s; } 
.hero-section p:nth-of-type(2) { animation-delay: 1.2s; } 


.prakriti-path {
    background-image: linear-gradient(45deg, #5c8d57, #4a7d45);
    padding: 18px 40px;
    color: white;
    text-decoration: none;
    border-radius: 35px;
    margin-top: 25px;
    display: inline-block;
    font-weight: bold;
    font-size: clamp(1rem, 2vw, 1.1rem);
    transition: background-image 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s forwards; 
    opacity: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.prakriti-path:hover, .prakriti-path:focus, .prakriti-path:active {
    background-image: linear-gradient(45deg, #4a7d45, #3a6d35);
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    outline: none;
}


/* --- Learn More Section (from index.html) --- */
.learn-more-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background-color: #ffffff;
    text-align: center;
}

.learn-more-section h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 25px;
    color: #2d572c;
}

.learn-more-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: #4f4f4f;
}

.learn-more-button {
    background-color: #5c8d57;
    color: white;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 28px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-more-button:hover, .learn-more-button:focus, .learn-more-button:active {
    background-color: #4a7d45;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    outline: none;
}

/* --- Category Section (from index.html) --- */
.category-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background-color: #eaf0e5;
}

.category-section h2 {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 60px;
    color: #2d572c;
    position: relative;
}

.category-section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #5c8d57;
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.categories-container {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 70px);
    max-width: 1200px;
    margin: 0 auto;
}

.category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    background-color: #ffffff;
    padding: clamp(25px, 4vw, 40px);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category.reverse {
    flex-direction: row-reverse;
}

.category:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.category-text {
    flex: 1;
    min-width: 280px;
    max-width: 520px;
}

.category-text h3 {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    margin-bottom: 20px;
    color: #2d572c;
    line-height: 1.3;
}

.category-text p {
    font-size: clamp(1rem, 2vw, 1.05rem);
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.explore-button {
    display: inline-block;
    background-color: #5c8d57;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 28px;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-button:hover, .explore-button:focus, .explore-button:active {
    background-color: #4a7d45;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    outline: none;
}

.category-image {
    flex: 1;
    min-width: 280px;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-image img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover; 
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.category-image img:hover {
    transform: scale(1.05);
    opacity: 0.92;
}


/* --- Horizontal Scroll for Plants (Plant Collection - from index.html) --- */
.plants-section { /* This is used on index.html */
    background-color: #f0f4f0;
    padding: clamp(60px, 10vw, 100px) 0;
    overflow: hidden;
}

.plants-section h2 {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 50px;
    color: #2d572c;
    padding: 0 20px;
}

.scroll-container { /* Used on index.html */
    display: flex;
    gap: clamp(20px, 3vw, 25px);
    overflow-x: auto;
    padding: 20px clamp(20px, 4vw, 40px);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #5c8d57 #e0e0e0;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}
.scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background-color: #5c8d57;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}
.scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #4a7d45;
}


.plant-box { /* Used on index.html for horizontal scroll */
    aspect-ratio: 1 / 1; 
    width: clamp(250px, 19vw, 320px); 
    min-width: unset; 
    flex: 0 0 auto; 
    background-color: #fff;
    padding: 15px; 
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f0f0f0;
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
}

.plant-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.plant-box img {
    width: 100%;
    height: 70%; 
    object-fit: cover; 
    border-radius: 10px;
    transition: transform 0.35s ease;
}

.plant-box:hover img {
    transform: scale(1.05);
}

.plant-box p {
    padding-top: 10px; 
    font-weight: 600;
    color: #2d572c;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.3;
    flex-shrink: 0; 
}

/* --- Plant Page Specific Styles (for indoor_plants.html, etc.) --- */
.plant-page-section {
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 20px; /* Adjusted padding */
    background-color: #f9f9f9; /* Light bg for these pages */
}

.plant-page-section h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 3rem); /* Larger heading */
    color: #2d572c;
    margin-bottom: 20px;
}

.section-description {
    font-size: clamp(1.1rem, 2.2vw, 1.25rem);
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

.button-container {
    margin-bottom: 40px; /* Space below search button */
}
  
.search-btn { /* Shared button style, can be used for other CTAs too */
    background-color: #5c8d57; /* Main green */
    color: white;
    padding: 14px 28px;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    border: none;
    border-radius: 25px; /* Pill shape */
    text-decoration: none; /* If it's an <a> tag */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    display: inline-block; /* For proper padding and margin */
}
  
.search-btn:hover, .search-btn:focus {
    background-color: #4a7d45; /* Darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    outline: none;
}
  
/* Plant Cards for Plant Category Pages */
.plant-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 28vw, 340px), 1fr)); /* Responsive cards */
    gap: clamp(20px, 3vw, 30px); /* Responsive gap */
    padding: 0; /* Removed padding, section has it */
    max-width: 1400px; /* Max width for the container */
    margin: 0 auto; /* Center the container */
}
  
.plant-card { /* For indoor_plants.html, etc. */
    background-color: white;
    border-radius: 12px; /* More rounded */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* Softer, more diffused shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
  
.plant-card:hover {
    transform: translateY(-8px) scale(1.02); /* Enhanced hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
  
.plant-image { /* Container for the image */
    width: 100%;
    aspect-ratio: 4 / 3; /* Maintain aspect ratio for image area */
    overflow: hidden; /* Clip image if it overflows on zoom */
}
.plant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if needed */
    transition: transform 0.4s ease;
}
.plant-card:hover .plant-image img {
    transform: scale(1.08); /* Zoom image on card hover */
}
  
.plant-content {
    padding: 20px; /* Increased padding */
    text-align: left;
    flex-grow: 1; /* Allow content to take available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
  
.plant-content h3 {
    font-family: 'Lora', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
    margin-bottom: 12px;
    color: #2d572c;
}
.plant-content p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow paragraph to expand */
}
  
.plant-details {
    margin-top: auto; /* Push to bottom */
}
.details-link {
    display: inline-block;
    color: #5c8d57;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 0; /* Padding for easier click */
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}
  
.details-link:hover, .details-link:focus {
    color: #3a6d35; /* Darker on hover */
    text-decoration: underline;
    outline: none;
}

/* --- Services Section (from index.html) --- */
.service-section-container {
    padding: clamp(60px, 10vw, 100px) 20px;
    background-color: #ffffff;
}

.service-heading {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 60px;
    color: #2d572c;
}

.service-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(25px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.service-link-wrapper {
    text-decoration: none;
    color: inherit;
    flex: 1 1 clamp(280px, 30%, 350px);
    min-width: 280px;
    display: flex;
    transition: transform 0.3s ease;
}
.service-link-wrapper:hover, .service-link-wrapper:focus-within {
    transform: translateY(-8px);
}


.service-container {
    width: 100%;
    text-align: center;
    padding: 30px 25px;
    background-color: #f9fff9;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-link-wrapper:hover .service-container,
.service-link-wrapper:focus-within .service-container {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    outline: none;
}
.service-link-wrapper:focus-visible .service-container {
    outline: 3px solid #5c8d57;
    outline-offset: 3px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}


.service-container img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
}

.service-container h3 {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin: 15px 0 10px;
    color: #2d572c;
}

/* --- Testimonials Section (from index.html) --- */
.testimonials-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background-color: #eaf0e5;
    text-align: center;
}

.testimonials-section h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 60px;
    color: #2d572c;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(25px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.testimonial {
    background-color: #fff;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    flex: 1 1 clamp(280px, 30%, 360px);
    min-width: 280px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-size: clamp(1.05rem, 2vw, 1.1rem);
    margin-bottom: 25px;
    font-style: italic;
    color: #4f4f4f;
    flex-grow: 1;
    line-height: 1.7;
}

.testimonial h4 {
    font-size: clamp(1rem, 1.8vw, 1.05rem);
    color: #2d572c;
    font-weight: 600;
    margin-top: auto;
}
.testimonial h4::before {
    content: "— ";
}


/* --- Gallery Section (from index.html) --- */
.gallery-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.gallery-section h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 60px;
    color: #2d572c;
    position: relative;
}

.gallery-section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #5c8d57;
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.gallery-container { /* Main gallery on index.html */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 22vw, 260px), 1fr)); 
    gap: clamp(15px, 2vw, 20px); 
    max-width: 1300px;
    margin: 0 auto;
}

.gallery-item { /* Main gallery on index.html */
    overflow: hidden;
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    aspect-ratio: 1 / 1; 
    position: relative;
}
.gallery-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px); 
}

.gallery-item img { /* Main gallery on index.html */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.1); 
}


/* View More Button for Gallery (from index.html) */
.view-more-container {
    margin-top: 50px;
}

.view-more-button {
    background-color: #2d572c;
    color: #fff;
    padding: 16px 38px;
    text-decoration: none;
    border-radius: 28px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.view-more-button:hover, .view-more-button:focus, .view-more-button:active {
    background-color: #4a7d45;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    outline: none;
}


/* --- Newsletter Subscription Section (from index.html) --- */
.newsletter-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background-color: #ffffff;
    text-align: center;
}

.newsletter-section h2 {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 25px;
    color: #2d572c;
}

.newsletter-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: #4f4f4f;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    padding: 16px 25px;
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 28px;
    flex-grow: 1;
    min-width: 250px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.newsletter-form input[type="email"]:focus {
    border-color: #5c8d57;
    box-shadow: 0 0 0 3px rgba(92, 141, 87, 0.25);
    outline: none;
}

.newsletter-form button {
    padding: 16px 32px;
    font-size: 1rem;
    background-color: #5c8d57;
    color: white;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form button:hover, .newsletter-form button:focus, .newsletter-form button:active {
    background-color: #4a7d45;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    outline: none;
}
.newsletter-form button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.newsletter-message {
    margin-top: 25px;
    font-size: 1rem;
    min-height: 1.5em;
    font-weight: 500;
}
.newsletter-message.success {
    color: #27ae60;
}
.newsletter-message.error {
    color: #e74c3c;
}


/* --- Back to Top Button (from index.html) --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 18px;
    border: none;
    background-color: #5c8d57;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}
#backToTop.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
}


#backToTop:hover, #backToTop:focus, #backToTop:active {
    background-color: #4a7d45;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    outline: none;
}


/* --- Footer (Consistent across all pages) --- */
footer {
    background-color: #2d572c;
    padding: clamp(40px, 6vw, 60px) 20px;
    text-align: center;
    color: #e0e0e0;
}

footer .social-handles {
    margin-bottom: 25px;
}

footer .social-handles a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: clamp(24px, 4vw, 28px);
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-handles a:hover, footer .social-handles a:focus {
    color: #a7d7c5;
    transform: scale(1.25) rotate(5deg);
    outline: none;
}

footer p {
    margin-top: 20px;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: #c0c0c0;
}


/* --- Responsive Design Adjustments --- */

@media screen and (max-width: 992px) { /* Tablet and smaller */
    .title-bar {
        padding: 10px 20px;
    }
    .nav-links > a { 
        display: none;
    }
    .nav-links { 
        display: none; 
    }

    .nav-links.active { 
        display: flex !important; 
        flex-direction: column;
        align-items: stretch; 
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        background-color: rgba(40, 77, 39, 0.99);
        padding: 10px 0; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.15);
        gap: 0; 
        animation: slideDownNav 0.3s ease-out;
    }
    .nav-links.active > a { 
        display: block !important; 
        padding: 14px 20px;
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
        color: white; 
    }
    .nav-links.active > a:nth-last-of-type(1 of a):has(~ .auth-buttons-mobile),
    .nav-links.active > a:last-of-type:not(:has(~ .auth-buttons-mobile)) {
        border-bottom: none;
    }


    .nav-links.active > a:hover, 
    .nav-links.active > a:focus, 
    .nav-links.active > a:active {
        background-color: rgba(255,255,255,0.1);
        transform: translateX(3px);
    }
    .nav-links.active > a::after { display: none; } 

    .auth-buttons-desktop {
        display: none;
    }
    .auth-buttons-mobile { 
        display: flex; 
    }

    .mobile-nav-toggle {
        display: flex; 
        align-items: center;
        justify-content: center;
    }

    .category {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }
    .category-image, .category-text {
        max-width: 90%;
        min-width: unset;
    }
    .category-image img {
        max-height: 320px;
    }

    .service-section {
        gap: 30px;
    }
    .service-link-wrapper {
        flex-basis: calc(50% - 15px);
        min-width: 260px;
    }
     .testimonials-container {
        gap: 25px;
    }
    .testimonial {
        flex-basis: calc(50% - 12.5px);
        min-width: 260px;
    }
    .plant-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 40vw, 320px), 1fr));
    }
}


@media screen and (max-width: 768px) { /* Smaller tablets and large phones */
    html { scroll-padding-top: 58px; } 
    .title-bar { padding: 8px 15px; } 
    .logo { font-size: clamp(20px, 3vw, 24px); }


    .hero-section { min-height: 80vh; background-attachment: scroll; }
    .hero-content { max-width: 90%; } 
    .hero-section h1 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); }
    .hero-section p { font-size: clamp(1rem, 2.8vw, 1.1rem); }
    .prakriti-path { padding: 15px 35px; font-size: clamp(0.95rem, 1.9vw, 1.05rem); }

    .learn-more-section h2,
    .category-section h2,
    .plants-section h2, /* For index.html plants */
    .plant-page-section h2, /* For category pages */
    .service-heading,
    .testimonials-section h2,
    .gallery-section h2,
    .newsletter-section h2 {
        font-size: clamp(1.7rem, 5.5vw, 2.2rem);
        margin-bottom: 40px;
    }
    
    .plant-box { /* For index.html plants */
        width: clamp(180px, 45vw, 220px); 
        aspect-ratio: 1 / 1; 
    }
    .plant-cards-container { /* For category pages */
        grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 80vw, 300px), 1fr)); /* Fewer columns on small screens */
    }


    .service-link-wrapper, .testimonial {
        flex-basis: 100%;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 38vw, 220px), 1fr));
        gap: clamp(10px, 1.5vw, 15px);
    }

    .newsletter-form {
        flex-direction: column;
        gap: 18px;
    }
    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        max-width: 380px; 
        padding: 15px 22px; 
    }
}

@media screen and (max-width: 480px) { /* Small phones */
    .title-bar { padding: 8px 12px; }
    .logo { font-size: clamp(18px, 4.5vw, 20px); }

    .hero-section {
        min-height: 75vh;
        padding: 30px 15px;
    }
    .hero-content {
        padding: clamp(20px, 5vw, 30px);
    }
    .hero-section h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
    .hero-section p { font-size: clamp(0.9rem, 2.5vw, 1rem); }
    .prakriti-path { padding: 14px 30px; font-size: clamp(0.9rem, 1.8vw, 1rem); }


    .learn-more-section,
    .category-section,
    .plants-section,
    .plant-page-section,
    .service-section-container,
    .testimonials-section,
    .gallery-section,
    .newsletter-section {
        padding: clamp(35px, 7vw, 50px) 15px;
    }

    .category-text h3 { font-size: clamp(1.4rem, 4.5vw, 1.7rem); }
    .category-text p { font-size: clamp(0.85rem, 2.3vw, 0.95rem); }
    .explore-button { padding: 10px 22px; font-size: clamp(0.8rem, 2.3vw, 0.9rem); }

    .plant-box { /* For index.html plants */
        width: clamp(140px, 42vw, 170px); 
        aspect-ratio: 1 / 1; 
    }
    .plant-cards-container { /* For category pages */
        grid-template-columns: 1fr; /* Single column for very small screens */
    }


    .service-container img { height: 180px; }
    .service-container h3 { font-size: clamp(1.2rem, 3.8vw, 1.5rem); }

    .testimonial p { font-size: clamp(0.9rem, 2.5vw, 0.95rem); }

    #backToTop {
        bottom: 15px; 
        right: 15px;
        width: 42px; 
        height: 42px;
        font-size: 15px; 
    }
    #backToTop.visible {
      opacity: 0.85; 
    }

    footer { padding: 25px 15px; }
    footer .social-handles a { font-size: clamp(18px, 4.5vw, 22px); margin: 0 10px; }
    footer p { font-size: clamp(0.8rem, 2vw, 0.9rem); }
}


/* Keyframes for animations */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
