HTML
988 lines
33.9 KB
Ayurvedic Herbal Remedies & Natural Medicine Guide
Explore Ayurvedic herbal remedies and natural medicine. Learn about turmeric, ashwagandha, tulsi, triphala, neem and their healing properties.
Live Preview
Source Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Explore Ayurvedic herbal remedies and natural medicine. Learn about turmeric, ashwagandha, tulsi, triphala, neem and their healing properties.">
<title>Ayurvedic Herbal Remedies & Natural Medicine Guide</title>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Nunito+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #3a6b35;
--secondary-color: #8b7355;
--accent-color: #c9a96e;
--text-dark: #2c3e50;
--text-light: #6c757d;
--bg-light: #f8f9fa;
--bg-white: #ffffff;
--border-color: #e9ecef;
--herb-green: #5a8a3a;
}
body {
font-family: 'Nunito Sans', sans-serif;
color: var(--text-dark);
line-height: 1.6;
overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Cormorant Garamond', serif;
font-weight: 600;
line-height: 1.3;
}
/* Navigation */
.navbar {
position: sticky;
top: 0;
background: var(--bg-white);
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
z-index: 1000;
padding: 1rem 0;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-family: 'Cormorant Garamond', serif;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
text-decoration: none;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-menu a {
color: var(--text-dark);
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
transition: color 0.3s ease;
}
.nav-menu a:hover {
color: var(--primary-color);
}
.mobile-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
color: var(--text-dark);
cursor: pointer;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, rgba(58, 107, 53, 0.9), rgba(139, 115, 85, 0.85)),
url('https://images.unsplash.com/photo-1615485290382-441e4d049cb5?w=1600') center/cover;
color: white;
padding: 8rem 2rem 6rem;
text-align: center;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1.5rem;
font-weight: 700;
}
.hero p {
font-size: 1.25rem;
margin-bottom: 2rem;
opacity: 0.95;
font-weight: 300;
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
/* Section Styles */
section {
padding: 5rem 0;
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-header h2 {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 1rem;
}
.section-header p {
font-size: 1.1rem;
color: var(--text-light);
max-width: 700px;
margin: 0 auto;
}
/* About Section */
.about {
background: var(--bg-white);
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.about-image {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.about-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.about-text h3 {
font-size: 2rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
}
.about-text p {
color: var(--text-light);
margin-bottom: 1rem;
line-height: 1.8;
}
/* Herbs Grid Section */
.herbs {
background: var(--bg-light);
}
.herbs-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2.5rem;
}
.herb-card {
background: var(--bg-white);
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border-color);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.herb-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.herb-image {
height: 200px;
overflow: hidden;
}
.herb-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.herb-body {
padding: 2rem;
}
.herb-body h3 {
font-size: 1.5rem;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.herb-body .latin {
font-style: italic;
color: var(--text-light);
font-size: 0.9rem;
margin-bottom: 1rem;
}
.herb-body p {
color: var(--text-light);
line-height: 1.7;
margin-bottom: 1rem;
}
.herb-benefits {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
}
.herb-benefits span {
background: rgba(58, 107, 53, 0.1);
color: var(--primary-color);
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 500;
}
/* Trust Section */
.trust {
background: var(--bg-white);
}
.trust-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
margin-top: 3rem;
}
.trust-item {
text-align: center;
}
.trust-number {
font-size: 3rem;
font-weight: 700;
color: var(--primary-color);
font-family: 'Cormorant Garamond', serif;
margin-bottom: 0.5rem;
}
.trust-label {
font-size: 1.1rem;
color: var(--text-light);
font-weight: 500;
}
/* Content Section */
.content-section {
background: var(--bg-light);
}
.content-grid {
display: grid;
gap: 3rem;
}
.content-article {
background: var(--bg-white);
border-radius: 8px;
overflow: hidden;
display: grid;
grid-template-columns: 300px 1fr;
gap: 2rem;
border: 1px solid var(--border-color);
}
.article-image {
height: 100%;
min-height: 250px;
}
.article-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.article-content {
padding: 2rem 2rem 2rem 0;
}
.article-content h3 {
font-size: 1.75rem;
color: var(--primary-color);
margin-bottom: 1rem;
}
.article-content p {
color: var(--text-light);
line-height: 1.8;
margin-bottom: 1rem;
}
.article-meta {
display: flex;
gap: 1.5rem;
font-size: 0.9rem;
color: var(--text-light);
margin-top: 1.5rem;
}
.article-meta i {
margin-right: 0.5rem;
color: var(--accent-color);
}
/* Contact Section */
.contact {
background: var(--bg-white);
}
.contact-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
max-width: 1000px;
margin: 0 auto;
}
.contact-info h3 {
font-size: 1.75rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
}
.contact-info p {
color: var(--text-light);
margin-bottom: 2rem;
line-height: 1.8;
}
.contact-details {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.contact-item {
display: flex;
align-items: start;
gap: 1rem;
}
.contact-item i {
font-size: 1.25rem;
color: var(--primary-color);
margin-top: 0.25rem;
}
.contact-item-content h4 {
font-size: 1rem;
margin-bottom: 0.25rem;
color: var(--text-dark);
}
.contact-item-content p {
margin: 0;
color: var(--text-light);
}
.contact-form {
background: var(--bg-light);
padding: 2.5rem;
border-radius: 8px;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: var(--text-dark);
font-weight: 500;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 0.875rem 1rem;
border: 1px solid var(--border-color);
border-radius: 4px;
font-family: 'Nunito Sans', sans-serif;
font-size: 1rem;
transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.form-group textarea {
resize: vertical;
min-height: 120px;
}
.submit-btn {
background: var(--primary-color);
color: white;
padding: 1rem 2.5rem;
border: none;
border-radius: 4px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background 0.3s ease;
width: 100%;
}
.submit-btn:hover {
background: #2d5228;
}
/* Footer */
footer {
background: var(--text-dark);
color: white;
padding: 3rem 0 1.5rem;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
margin-bottom: 2rem;
}
.footer-section h3 {
font-size: 1.25rem;
margin-bottom: 1.5rem;
color: var(--accent-color);
}
.footer-section p {
color: rgba(255,255,255,0.7);
line-height: 1.8;
}
.footer-links {
list-style: none;
}
.footer-links li {
margin-bottom: 0.75rem;
}
.footer-links a {
color: rgba(255,255,255,0.7);
text-decoration: none;
transition: color 0.3s ease;
}
.footer-links a:hover {
color: var(--accent-color);
}
.footer-bottom {
border-top: 1px solid rgba(255,255,255,0.1);
padding-top: 1.5rem;
text-align: center;
color: rgba(255,255,255,0.6);
font-size: 0.9rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.mobile-toggle {
display: block;
}
.nav-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--bg-white);
flex-direction: column;
padding: 1rem 2rem;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
display: none;
}
.nav-menu.active {
display: flex;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1rem;
}
.section-header h2 {
font-size: 2rem;
}
.about-content,
.contact-wrapper {
grid-template-columns: 1fr;
gap: 2rem;
}
.content-article {
grid-template-columns: 1fr;
}
.article-image {
height: 250px;
}
.article-content {
padding: 2rem;
}
section {
padding: 3rem 0;
}
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<a href="#" class="logo">Herbal Remedies</a>
<button class="mobile-toggle" aria-label="Toggle menu">
<i class="fas fa-bars"></i>
</button>
<ul class="nav-menu">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#herbs">Herbs</a></li>
<li><a href="#knowledge">Knowledge</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="hero">
<div class="hero-content">
<h1>Ayurvedic Herbal Remedies & Natural Medicine</h1>
<p>Discover the healing power of traditional Ayurvedic herbs — turmeric, ashwagandha, tulsi, triphala, neem, and more — used for centuries to restore health and vitality.</p>
</div>
</section>
<!-- About Section -->
<section id="about" class="about">
<div class="container">
<div class="about-content">
<div class="about-image">
<img src="https://images.unsplash.com/photo-1615485290382-441e4d049cb5?w=800" alt="Ayurvedic herbs and spices">
</div>
<div class="about-text">
<h3>The Power of Ayurvedic Herbs</h3>
<p>Ayurvedic medicine has relied on herbs for over 5,000 years. Unlike modern pharmaceuticals that often target specific symptoms, Ayurvedic herbs work holistically — addressing the root cause while supporting the body's natural healing mechanisms.</p>
<p>Each herb has a specific energetic profile (rasa, virya, vipaka) that determines its effect on the doshas. A skilled practitioner selects herbs based on your constitution, current imbalances, and seasonal factors.</p>
<p>From the anti-inflammatory power of turmeric to the adaptogenic strength of ashwagandha, these natural remedies offer gentle yet profound healing when used correctly and consistently.</p>
</div>
</div>
</div>
</section>
<!-- Herbs Grid Section -->
<section id="herbs" class="herbs">
<div class="container">
<div class="section-header">
<h2>Key Ayurvedic Herbs</h2>
<p>Explore the most widely used herbs in Ayurvedic practice and their therapeutic benefits</p>
</div>
<div class="herbs-grid">
<!-- Turmeric -->
<div class="herb-card">
<div class="herb-image">
<img src="https://images.unsplash.com/photo-1615485925873-1c79fbd4a287?w=600" alt="Turmeric root">
</div>
<div class="herb-body">
<h3>Turmeric</h3>
<div class="latin">Curcuma longa</div>
<p>Known as the golden spice of Ayurveda, turmeric is a powerful anti-inflammatory and antioxidant. It supports liver function, improves digestion, and promotes healthy skin.</p>
<div class="herb-benefits">
<span>Anti-inflammatory</span>
<span>Antioxidant</span>
<span>Immune support</span>
</div>
</div>
</div>
<!-- Ashwagandha -->
<div class="herb-card">
<div class="herb-image">
<img src="https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=600" alt="Ashwagandha root powder">
</div>
<div class="herb-body">
<h3>Ashwagandha</h3>
<div class="latin">Withania somnifera</div>
<p>The premier adaptogen in Ayurveda, ashwagandha helps the body manage stress, reduces cortisol levels, improves sleep quality, and boosts energy and stamina.</p>
<div class="herb-benefits">
<span>Stress relief</span>
<span>Energy boost</span>
<span>Sleep aid</span>
</div>
</div>
</div>
<!-- Tulsi -->
<div class="herb-card">
<div class="herb-image">
<img src="https://images.unsplash.com/photo-1597312070198-21b9c1b18c2b?w=600" alt="Tulsi holy basil">
</div>
<div class="herb-body">
<h3>Tulsi (Holy Basil)</h3>
<div class="latin">Ocimum sanctum</div>
<p>Revered as the queen of herbs, tulsi enhances immunity, supports respiratory health, reduces stress, and promotes mental clarity. Daily consumption is considered highly beneficial.</p>
<div class="herb-benefits">
<span>Immune booster</span>
<span>Respiratory health</span>
<span>Mental clarity</span>
</div>
</div>
</div>
<!-- Triphala -->
<div class="herb-card">
<div class="herb-image">
<img src="https://images.unsplash.com/photo-1607619056571-7cf684c43608?w=600" alt="Triphala powder">
</div>
<div class="herb-body">
<h3>Triphala</h3>
<div class="latin">Three Fruits Blend</div>
<p>A combination of Amalaki, Bibhitaki, and Haritaki, triphala is the most widely used Ayurvedic formula. It gently detoxifies, supports digestion, and promotes regular elimination.</p>
<div class="herb-benefits">
<span>Digestive aid</span>
<span>Detoxification</span>
<span>Gentle laxative</span>
</div>
</div>
</div>
<!-- Neem -->
<div class="herb-card">
<div class="herb-image">
<img src="https://images.unsplash.com/photo-1607305227461-9c98c0816c0f?w=600" alt="Neem leaves">
</div>
<div class="herb-body">
<h3>Neem</h3>
<div class="latin">Azadirachta indica</div>
<p>Known as the village pharmacy, neem is a powerful blood purifier and antibacterial herb. It clears skin conditions, supports liver detoxification, and boosts immunity.</p>
<div class="herb-benefits">
<span>Skin health</span>
<span>Blood purifier</span>
<span>Antibacterial</span>
</div>
</div>
</div>
<!-- Brahmi -->
<div class="herb-card">
<div class="herb-image">
<img src="https://images.unsplash.com/photo-1471864226992-5a31b8b7e1c7?w=600" alt="Brahmi herb">
</div>
<div class="herb-body">
<h3>Brahmi</h3>
<div class="latin">Bacopa monnieri</div>
<p>The foremost brain tonic in Ayurveda, brahmi enhances memory, concentration, and learning ability. It calms the mind, reduces anxiety, and supports cognitive function.</p>
<div class="herb-benefits">
<span>Memory boost</span>
<span>Brain tonic</span>
<span>Anxiety relief</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Trust Section -->
<section class="trust">
<div class="container">
<div class="section-header">
<h2>Our Expertise</h2>
<p>Trusted herbal guidance backed by traditional knowledge and modern research</p>
</div>
<div class="trust-grid">
<div class="trust-item">
<div class="trust-number">200+</div>
<div class="trust-label">Herbs in Our Database</div>
</div>
<div class="trust-item">
<div class="trust-number">20+</div>
<div class="trust-label">Years of Experience</div>
</div>
<div class="trust-item">
<div class="trust-number">100%</div>
<div class="trust-label">Natural Ingredients</div>
</div>
<div class="trust-item">
<div class="trust-number">10k+</div>
<div class="trust-label">Clients Helped</div>
</div>
</div>
</div>
</section>
<!-- Content Section -->
<section id="knowledge" class="content-section">
<div class="container">
<div class="section-header">
<h2>Herbal Knowledge Articles</h2>
<p>Learn how to safely incorporate Ayurvedic herbs into your daily wellness routine</p>
</div>
<div class="content-grid">
<article class="content-article">
<div class="article-image">
<img src="https://images.unsplash.com/photo-1471864226992-5a31b8b7e1c7?w=600" alt="Herbal preparation">
</div>
<div class="article-content">
<h3>How to Prepare Ayurvedic Herbal Decoctions</h3>
<p>Ayurvedic herbs can be consumed in various forms — powders (churna), decoctions (kwath), medicated oils (taila), and tablets (vati). Each preparation method extracts different properties from the herbs.</p>
<p>A simple decoction involves boiling 1 teaspoon of herb powder in 2 cups of water until reduced to half. Strain and drink warm. This method is ideal for hard roots and barks, while delicate leaves are better infused as tea.</p>
<div class="article-meta">
<span><i class="far fa-clock"></i>8 min read</span>
<span><i class="far fa-folder"></i>Preparation</span>
</div>
</div>
</article>
<article class="content-article">
<div class="article-image">
<img src="https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=600" alt="Herbal safety">
</div>
<div class="article-content">
<h3>Safety Guidelines for Herbal Use</h3>
<p>While Ayurvedic herbs are generally safe, proper dosage and timing are crucial. Always start with smaller doses, take herbs with warm water, and avoid combining incompatible herbs without professional guidance.</p>
<p>Pregnant women, nursing mothers, and individuals on medication should consult a qualified practitioner before starting any herbal regimen. Quality matters — always source herbs from reputable suppliers who test for heavy metals and contaminants.</p>
<div class="article-meta">
<span><i class="far fa-clock"></i>6 min read</span>
<span><i class="far fa-folder"></i>Safety</span>
</div>
</div>
</article>
<article class="content-article">
<div class="article-image">
<img src="https://images.unsplash.com/photo-1615485290382-441e4d049cb5?w=600" alt="Seasonal herbs">
</div>
<div class="article-content">
<h3>Seasonal Herbal Protocols: Adapting Your Regimen</h3>
<p>Ayurveda recommends adjusting herbal intake with the seasons. In winter, warming herbs like ginger and cinnamon support digestion. In summer, cooling herbs like coriander and fennel prevent Pitta aggravation.</p>
<p>During the monsoon season, digestive herbs like triphala and ginger help combat sluggish digestion. Spring calls for bitter herbs like neem and turmeric to support natural detoxification as the body sheds winter accumulation.</p>
<div class="article-meta">
<span><i class="far fa-clock"></i>7 min read</span>
<span><i class="far fa-folder"></i>Seasonal</span>
</div>
</div>
</article>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="contact">
<div class="container">
<div class="section-header">
<h2>Get Herbal Guidance</h2>
<p>Consult with our experts to find the right herbs for your constitution</p>
</div>
<div class="contact-wrapper">
<div class="contact-info">
<h3>Contact Information</h3>
<p>Our herbal specialists can guide you in selecting the right herbs, dosages, and preparations tailored to your unique needs and health goals.</p>
<div class="contact-details">
<div class="contact-item">
<i class="fas fa-map-marker-alt"></i>
<div class="contact-item-content">
<h4>Location</h4>
<p>123 Wellness Street<br>Health District, City 12345</p>
</div>
</div>
<div class="contact-item">
<i class="fas fa-phone"></i>
<div class="contact-item-content">
<h4>Phone</h4>
<p>+1 (555) 123-4567</p>
</div>
</div>
<div class="contact-item">
<i class="fas fa-envelope"></i>
<div class="contact-item-content">
<h4>Email</h4>
<p>info@herbalremedies.com</p>
</div>
</div>
<div class="contact-item">
<i class="fas fa-clock"></i>
<div class="contact-item-content">
<h4>Hours</h4>
<p>Monday - Friday: 9:00 AM - 6:00 PM<br>Saturday: 10:00 AM - 4:00 PM</p>
</div>
</div>
</div>
</div>
<div class="contact-form">
<form id="enquiryForm">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" name="phone">
</div>
<div class="form-group">
<label for="message">Your Message</label>
<textarea id="message" name="message" required></textarea>
</div>
<button type="submit" class="submit-btn">Send Enquiry</button>
</form>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h3>Herbal Remedies</h3>
<p>Bringing the healing power of Ayurvedic herbs to modern wellness through education, guidance, and natural solutions.</p>
</div>
<div class="footer-section">
<h3>Quick Links</h3>
<ul class="footer-links">
<li><a href="#about">About Herbs</a></li>
<li><a href="#herbs">Herb Directory</a></li>
<li><a href="#knowledge">Knowledge Base</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Resources</h3>
<ul class="footer-links">
<li><a href="#">Herb Safety Guide</a></li>
<li><a href="#">Preparation Methods</a></li>
<li><a href="#">Seasonal Protocols</a></li>
<li><a href="#">FAQ</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Legal</h3>
<ul class="footer-links">
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Service</a></li>
<li><a href="#">Disclaimer</a></li>
<li><a href="#">Professional Standards</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>© 2026 Herbal Remedies Center. All rights reserved. This website is for informational purposes only and does not constitute medical advice.</p>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
const mobileToggle = document.querySelector('.mobile-toggle');
const navMenu = document.querySelector('.nav-menu');
mobileToggle.addEventListener('click', () => {
navMenu.classList.toggle('active');
});
// Smooth scrolling for navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
navMenu.classList.remove('active');
}
});
});
// Form submission handler
const form = document.getElementById('enquiryForm');
form.addEventListener('submit', (e) => {
e.preventDefault();
const formData = new FormData(form);
const data = Object.fromEntries(formData);
console.log('Form submitted:', data);
alert('Thank you for your enquiry. We will get back to you within 24 hours.');
form.reset();
});
// Add scroll effect to navbar
let lastScroll = 0;
const navbar = document.querySelector('.navbar');
window.addEventListener('scroll', () => {
const currentScroll = window.pageYOffset;
if (currentScroll > 100) {
navbar.style.boxShadow = '0 2px 20px rgba(0,0,0,0.1)';
} else {
navbar.style.boxShadow = '0 2px 10px rgba(0,0,0,0.05)';
}
lastScroll = currentScroll;
});
</script>
</body>
</html>