/* ============================================
   Kirti Ayurveda - Global Styles
   ============================================ */

/* CSS Variables - Green Theme */
:root {
    --primary-color: #2d7a4a;
    --primary-light: #4a9d63;
    --primary-dark: #1f5a35;
    --secondary-color: #5fb07d;
    --accent-color: #2d7a4a;
    --background-color: #ffffff;
    --foreground-color: #1a1a1a;
    --muted-color: #6b7280;
    --border-color: #e5e7eb;
    --light-bg: #f3f4f6;
    --light-green-bg: #f0f7f3;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 0.65rem;
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--foreground-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--foreground-color);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-text {
    display: none;
}

.logo-text h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary-color);
}

.logo-img {
    width: 3rem;     /* 28px - smallest */
    height: 3rem;    /* 28px */
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


.logo-text p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.nav {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground-color);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(to bottom, rgba(45, 122, 74, 0.1), var(--background-color));
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 8rem 0;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.hero-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}


@media (min-width: 768px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-text h2 {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-color);
}

.hero-description {
    font-size: 1rem;
    color: var(--foreground-color);
    line-height: 1.8;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(45, 122, 74, 0.2) 0%, rgba(45, 122, 74, 0.05) 100%);
    border: 2px solid rgba(45, 122, 74, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.image-placeholder svg {
    width: 6rem;
    height: 6rem;
    color: rgba(45, 122, 74, 0.4);
}

.image-placeholder p {
    font-size: 0.875rem;
    color: var(--muted-color);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================
   Section Styles
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-color);
    max-width: 42rem;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */

.about {
    width: 100%;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .about {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .about {
        padding: 8rem 0;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.about-card {
    padding: 2rem;
    border: 1px solid rgba(45, 122, 74, 0.2);
    border-radius: var(--radius);
    background-color: var(--background-color);
    transition: var(--transition);
}

.about-card:hover {
    border-color: rgba(45, 122, 74, 0.5);
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--foreground-color);
    line-height: 1.8;
}

/* ============================================
   Services Section
   ============================================ */

.services {
    width: 100%;
    padding: 3rem 0;
    background-color: var(--light-green-bg);
}

@media (min-width: 768px) {
    .services {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .services {
        padding: 8rem 0;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.service-card {
    padding: 2rem;
    border: 1px solid rgba(45, 122, 74, 0.3);
    border-radius: var(--radius);
    background-color: var(--background-color);
    transition: var(--transition);
}

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

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: rgba(45, 122, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--foreground-color);
    line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    width: 100%;
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: white;
}

@media (min-width: 768px) {
    .cta {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .cta {
        padding: 8rem 0;
    }
}

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

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    width: 100%;
    border-top: 1px solid var(--border-color);
    background-color: rgba(243, 244, 246, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 3rem 0;
    }
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--muted-color);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--muted-color);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--muted-color);
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-text h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        margin-bottom: 0.75rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .cta,
    .footer {
        display: none;
    }
}
