/* Tréma D'Umlaut Limited - Stylesheet */
/* Color Palette: #5F7161, #6D8B74, #EFEAD8, #D0C9C0 */
/* Enhanced with WCAG AA compliant contrast ratios */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Harmonized Brand Colors - Main Company */
    /* Base: Sophisticated sage green (#3d4a3f) */
    --primary-dark: #2a352c;        /* Shade: darker for high contrast */
    --primary-medium: #3d4a3f;      /* Base brand color */
    --primary-accent: #5a6e5c;      /* Tint: lighter sage */
    --primary-light: #f4f2ed;       /* Warm off-white background */
    --primary-neutral: #9da199;     /* Tone: muted sage gray */
    
    /* Enhanced Text Colors with Opacity */
    --text-dark: rgba(26, 26, 26, 0.95);      /* High opacity for primary text */
    --text-medium: rgba(74, 74, 74, 0.87);    /* Standard opacity for body text */
    --text-light: rgba(255, 255, 255, 0.98);  /* High opacity white */
    --text-secondary: rgba(74, 74, 74, 0.7);  /* Lower opacity for secondary text */
    
    /* Semantic Colors - High Contrast */
    --success-color: #2d5e3d;       /* Deep forest green */
    --info-color: #2a4858;          /* Deep teal-blue */
    --warning-color: #9d6e0f;       /* Deep amber */
    --error-color: #8b2e2e;         /* Deep red */
    
    --shadow: rgba(58, 74, 63, 0.15);
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-light);
}

p {
    color: var(--text-medium);
    line-height: 1.7;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.slogan {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--text-medium);
    font-size: 1.05em;
    letter-spacing: 0.3px;
}

.hero .slogan,
.page-hero .slogan {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    flex: 0 0 auto;
}

.logo h1 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.98);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    order: 3;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Large desktop screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .nav-links {
        gap: 2.5rem;
    }
    
    .nav-links a {
        padding: 0.6rem 1.2rem;
        font-size: 1.05rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1,
.page-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary,
.hero .btn-secondary,
.page-hero .btn-primary,
.page-hero .btn-secondary {
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-neutral) 100%);
    color: var(--primary-dark);
    border-color: var(--primary-neutral);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-neutral) 0%, var(--primary-accent) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-medium);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.98);
    border-color: var(--primary-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-light);
    color: #ffffff;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1.0);
}

/* Icon Spacing in Buttons */
.btn-primary i,
.btn-secondary i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(3px);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--text-light);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--primary-medium);
    font-weight: 600;
}

/* Subsidiaries Section */
.subsidiaries {
    padding: 5rem 0;
    background-color: var(--primary-light);
}

.subsidiaries h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.subsidiary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subsidiary-card {
    background-color: var(--text-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.subsidiary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subsidiary-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.subsidiary-card p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Values Section */
.values {
    padding: 5rem 0;
    background-color: var(--text-light);
}

.values h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--primary-medium);
}

.value-item h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.value-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background-color: var(--text-light);
}

.intro {
    margin-bottom: 4rem;
}

.intro h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Services Section */
.services-section {
    margin-bottom: 4rem;
}

.services-section h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

.features-section h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 10px;
    border-top: 3px solid var(--primary-medium);
}

.feature h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Tech Stack Section */
.tech-stack {
    margin-bottom: 4rem;
}

.tech-stack h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-category {
    background-color: var(--primary-neutral);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.tech-category h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.tech-category p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    margin-bottom: 4rem;
}

.process-section h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-medium);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Expertise/Disciplines Section */
.expertise-section,
.departments-section {
    margin-bottom: 4rem;
}

.expertise-section h2,
.departments-section h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.disciplines-grid,
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.discipline,
.department {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
}

.discipline h3,
.department h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.discipline p,
.department p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Facilities Section */
.facilities-section {
    margin-bottom: 4rem;
}

.facilities-section h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.facilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.facility {
    background-color: var(--primary-neutral);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-medium);
}

.facility h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.facility p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-section h2 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.hospital-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    background-color: var(--primary-medium);
    color: var(--text-light);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2420 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: 4rem 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-accent) 0%, 
        var(--primary-light) 50%, 
        var(--primary-accent) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    text-align: center;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-accent);
    border-radius: 2px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-section address {
    font-style: normal;
}

.footer-section address p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-section address i {
    color: var(--primary-accent);
    min-width: 20px;
}

.footer-section address a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-section address a:hover {
    color: #ffffff;
    border-bottom: 1px solid var(--primary-accent);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a::before {
    content: '▸';
    color: var(--primary-accent);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-section ul li a:hover::before {
    transform: translateX(3px);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.footer-bottom .slogan {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--primary-light);
    font-style: italic;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* Logo positioning */
    .logo {
        order: 1;
        flex: 1;
    }
    
    /* Search wrapper positioning */
    .search-wrapper {
        order: 2;
        margin: 0 1rem 0 auto;
    }
    
    /* Navigation links mobile styling */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        padding: 5rem 0 2rem 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        order: 4;
        flex-basis: 100%;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--primary-medium);
        border-radius: 0;
    }
    
    /* Logo */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Hero sections */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-hero {
        padding: 2.5rem 0;
    }
    
    .page-hero h1,
    .page-hero h2 {
        font-size: 2rem;
    }
    
    /* Grid layouts */
    .subsidiary-grid,
    .services-grid,
    .values-grid,
    .features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .card,
    .service-card,
    .stat-card {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-section address {
        text-align: center;
    }
    
    .footer-section address p {
        justify-content: center;
    }
    
    /* Search */
    .search-wrapper {
        margin: 1rem auto 1rem 0;
        width: auto;
        margin-left: auto;
    }
    
    #siteSearch {
        width: 200px;
        max-width: 200px;
    }
    
    #siteSearch:focus {
        width: 250px;
        max-width: 250px;
    }
    
    /* Buttons */
    .cta-button,
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Forms */
    form {
        padding: 1rem;
    }
    
    /* Tables */
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Tablet devices (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 1.5rem;
    }
    
    .subsidiary-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    /* Adjust navigation for tablets */
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.35rem;
    }
}

/* Medium tablets (max-width: 900px) */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Cards */
    .card,
    .service-card {
        padding: 1rem;
    }
    
    .card-icon i {
        font-size: 2.5rem;
    }
    
    /* Buttons */
    .cta-button,
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Content sections */
    .content-section {
        padding: 2rem 0;
    }
    
    /* Search */
    .search-container {
        flex-direction: column;
    }
    
    /* Icons */
    .season-icon {
        font-size: 1.5rem;
    }
    
    .tip-icon {
        font-size: 2.5rem;
    }
}

/* Large desktop screens (min-width: 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .subsidiary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero h2 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
}

/* Search Box Styles */
.search-wrapper {
    margin: 0 2rem;
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#siteSearch {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid var(--primary-neutral);
    border-radius: 25px;
    font-size: 0.95rem;
    width: 250px;
    transition: all 0.3s ease;
    background: white;
    line-height: 1.5;
}

#siteSearch:focus {
    outline: none;
    border-color: var(--primary-medium);
    width: 300px;
    box-shadow: 0 2px 8px var(--shadow);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.search-btn i {
    display: block;
    line-height: 1;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--primary-neutral);
    border-radius: 10px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 1000;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--primary-light);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    background: var(--primary-light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.no-results {
    text-align: center;
    color: var(--text-secondary);
    cursor: default;
}

.result-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    background: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

.search-result-item mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.web-search-item {
    color: var(--primary-dark);
    font-weight: 600;
}

.web-search-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

.web-search-item:hover {
    background: var(--primary-light);
    color: var(--secondary-dark);
}

/* Form Validation Styles */
input.error,
textarea.error,
select.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

button[type='submit']:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Font Awesome Icon Styles */
.card-icon i {
    font-size: 3rem;
    color: var(--primary-medium);
}

.seasonal-banner {
    background: var(--primary-light);
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.season-icon {
    font-size: 2rem;
    color: var(--primary-medium);
}

.season-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.crop-status {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.crop-item.available .crop-status {
    color: var(--success-color);
}

.crop-item.unavailable .crop-status {
    color: var(--primary-neutral);
}

.emergency-banner {
    background: linear-gradient(135deg, #dc3545 0%, #a02a37 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.emergency-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.emergency-btn {
    background: white;
    color: #dc3545;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-btn:hover {
    background: #f8f9fa;
}

.tip-icon {
    font-size: 3rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.health-tip-card {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
}
