/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #2D3B2E;       /* Archival Forest Green */
    --primary-light: #4A5D4C;      /* Soft Sage Accent */
    --primary-dark: #1E271F;       /* Deep Charcoal Green */
    --accent-color: #C59B27;       /* Antique Gold */
    --accent-hover: #AA821C;       /* Darker Antique Gold */
    
    --text-color: #2C3530;         /* Charcoal body text */
    --text-light: #5A665F;         /* Muted gray-green text */
    --text-on-dark: #FAF8F5;       /* Warm light text for dark backgrounds */
    
    --bg-light: #FAF8F5;           /* Soft Parchment Cream */
    --bg-muted: #F3EFE9;           /* Sand / Light Stone */
    --bg-dark: #1E241F;            /* Charcoal Green for AIM section */
    --bg-dark-accent: #252D26;     /* Secondary dark */
    --border-color: #E2DBD0;       /* Fine parchment border */
    
    /* Layout Dimensions */
    --sidebar-width: 300px;
    
    /* Typography */
    --font-headings: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-nav: 'Outfit', sans-serif;
    
    /* Effects & Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --box-shadow: 0 8px 30px rgba(44, 53, 48, 0.05);
    --box-shadow-hover: 0 15px 40px rgba(44, 53, 48, 0.12);
    --border-radius: 6px;
    --border-radius-lg: 12px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

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

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

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

/* ==========================================================================
   NAVIGATION: SIDEBAR (DESKTOP)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem 2rem 2rem;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 3.5rem;
}

.brand-logo-img {
    max-width: 190px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.brand-logo-img:hover {
    transform: scale(1.03);
}

/* Sidebar Menu Links */
.sidebar-nav {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    font-family: var(--font-nav);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    margin-right: 12px;
    opacity: 0;
    transform: scale(0.2);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-muted);
    padding-left: 1.2rem;
}

.nav-link:hover .nav-dot {
    opacity: 0.5;
    transform: scale(1);
}

/* Active Nav State (ScrollSpy) */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: var(--bg-muted);
    padding-left: 1.2rem;
}

.nav-link.active .nav-dot {
    opacity: 1;
    transform: scale(1.5);
}

/* Sidebar Footer & Contacts */
.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar-footer .location,
.sidebar-footer .service-area {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-footer .location i {
    color: var(--accent-color);
}

.sidebar-footer .social-links {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

.sidebar-footer .social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-muted);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.sidebar-footer .social-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.sidebar-footer .copyright {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ==========================================================================
   MOBILE HEADER & OVERLAYS
   ========================================================================== */
.mobile-header {
    display: none; /* Hidden on Desktop */
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 36, 27, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   MAIN CONTENT CONTAINER
   ========================================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    width: calc(100% - var(--sidebar-width));
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    text-align: center;
    color: #ffffff;
}

.hero-container {
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-family: var(--font-nav);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0 auto 2rem auto;
}

.hero-subtext {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #f0f0f0;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.25rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-down:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* ==========================================================================
   COMMON COMPONENTS: BUTTONS & SECTIONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-nav);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.03em;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Section Common Layout */
.section {
    padding: 6.5rem 5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

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

.bg-light {
    background-color: var(--bg-muted);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-light {
    color: var(--text-on-dark);
}

.section-subtitle {
    display: block;
    font-family: var(--font-nav);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 0.8rem;
}

.section-intro {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--primary-light);
    margin-bottom: 3.5rem;
    font-style: italic;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Shadow Effect */
.shadow-effect {
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
}

.shadow-effect:hover {
    box-shadow: var(--box-shadow-hover);
}

/* ==========================================================================
   ABOUT SECTION SPECIFICS
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.about-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.about-card p {
    margin-bottom: 1rem;
}

.about-card p:last-of-type {
    margin-bottom: 0;
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

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

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    z-index: 2;
    position: relative;
}

.image-accent-border {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    z-index: 1;
    pointer-events: none;
}

/* Team Section */
.team-section {
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.team-info .lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.team-meta-card {
    background-color: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.team-meta-card .meta-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.team-meta-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.team-meta-card .meta-role {
    font-family: var(--font-nav);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.team-meta-card .meta-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0 auto 1.5rem auto;
    width: 60%;
}

.meta-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.meta-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
}

.meta-list li i {
    color: var(--primary-light);
}

/* ==========================================================================
   SERVICES SECTION SPECIFICS (TABS & GRID)
   ========================================================================== */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-nav);
    font-size: 1.1rem;
    font-weight: 550;
    color: var(--text-light);
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1.3rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab contents */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.2rem 1.8rem;
    transition: var(--transition-smooth);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    width: 50px;
    height: 50px;
    background-color: var(--bg-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==========================================================================
   OUR APPROACH TIMELINE
   ========================================================================== */
.approach-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.approach-step {
    position: relative;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.approach-step:hover {
    border-top-color: var(--accent-color);
}

.step-number {
    font-family: var(--font-nav);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.approach-step:hover .step-number {
    transform: translateY(-3px);
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

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

.approach-quote {
    background-color: var(--bg-muted);
    border-left: 4px solid var(--accent-color);
    padding: 3rem 4rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    text-align: center;
}

.quote-icon {
    font-size: 2.2rem;
    color: var(--border-color);
    margin-bottom: 0.8rem;
}

.approach-quote blockquote {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.5;
}

/* ==========================================================================
   ARCHIVISTS IN MISSION (AIM) SECTION (DARK)
   ========================================================================== */
#aim {
    background-color: var(--bg-dark);
}

.aim-header {
    text-align: center;
    margin-bottom: 4rem;
}

.aim-badge {
    display: inline-block;
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}

.aim-tagline {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: #e0e0e0;
    font-style: italic;
    margin-top: -1rem;
}

#aim .section-title {
    color: #ffffff;
}

#aim .section-title::after {
    margin: 0.8rem auto 0 auto;
}

/* AIM Grid */
.aim-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.aim-text-container {
    color: var(--text-on-dark);
}

.aim-text-container .lead-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.aim-text-container p {
    font-size: 0.98rem;
    color: #d8deda;
    margin-bottom: 1.2rem;
}

.aim-text-container strong {
    color: var(--accent-color);
}

/* Image Montage */
.aim-visual {
    position: relative;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aim-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.aim-img-top,
.aim-img-bottom {
    position: absolute;
    width: 75%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 3px solid var(--bg-dark-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.aim-img-top {
    top: 20px;
    left: 10px;
    z-index: 2;
}

.aim-img-bottom {
    bottom: 20px;
    right: 10px;
    z-index: 1;
}

.aim-visual:hover .aim-img-top {
    transform: translate(-10px, -10px) scale(1.02);
    border-color: var(--accent-color);
    z-index: 1;
}

.aim-visual:hover .aim-img-bottom {
    transform: translate(10px, 10px) scale(1.02);
    border-color: var(--accent-color);
    z-index: 2;
}

/* Services & Approach Grid inside AIM */
.aim-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.aim-services-box,
.aim-approach-box {
    background-color: var(--bg-dark-accent);
    padding: 3.5rem 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.aim-services-box h3,
.aim-approach-box h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.aim-services-box h3 i,
.aim-approach-box h3 i {
    color: var(--accent-color);
}

.aim-services-box p,
.aim-approach-box p {
    font-size: 0.95rem;
    color: #cfd8d0;
    margin-bottom: 1.5rem;
}

.aim-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.aim-list li {
    font-size: 0.9rem;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bullet-check {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    margin-top: 7px;
    flex-shrink: 0;
}

.focus-text {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    font-weight: 500;
    color: #ffffff !important;
}

/* ==========================================================================
   FAQS SECTION (ACCORDION & SEARCH)
   ========================================================================== */
.faq-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

.faq-search-wrapper input {
    width: 100%;
    padding: 1.1rem 3rem 1.1rem 3.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    transition: var(--transition-smooth);
    background-color: #ffffff;
}

.faq-search-wrapper input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(45, 59, 46, 0.08);
}

.faq-search-wrapper .search-icon {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-clear-btn {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-clear-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.search-clear-btn:hover {
    color: var(--primary-color);
}

/* FAQ Accordion */
.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--box-shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-arrow {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-answer-content {
    padding: 0 2rem 1.8rem 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.faq-no-results i {
    font-size: 2.5rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border-top: 3px solid var(--accent-color);
}

.quote-bubble {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.author-details h5 {
    font-family: var(--font-nav);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.author-details p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.bg-light-accent {
    background-color: #FAF8F5; /* Matches paper parchment */
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
    align-items: flex-start;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.contact-info-panel > p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-muted);
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-text span {
    display: block;
    font-family: var(--font-nav);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.detail-text p, 
.detail-text a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-disclaimer {
    display: flex;
    gap: 1rem;
    background-color: var(--bg-muted);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-light);
}

.contact-disclaimer i {
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.contact-disclaimer p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Contact Form Panel */
.contact-form-panel {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-nav);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #d00000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a8a3;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(45, 59, 46, 0.05);
}

/* Form Error States */
.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #d00000;
    background-color: #fff8f8;
}

.error-msg {
    display: none;
    font-size: 0.75rem;
    color: #d00000;
    margin-top: 0.4rem;
}

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

/* Submit Button & Spinner */
.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-submit:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 59, 46, 0.15);
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

/* Form Success Overlay */
.form-success-message {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.form-success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-success-message p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-8px) translateX(-50%);
    }
    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE LAYOUTS & MEDIA QUERIES
   ========================================================================== */

/* 1. Large Screen Adjustments (Desktop wide) */
@media (min-width: 1400px) {
    .container {
        max-width: 1100px;
    }
    .main-content {
        margin-left: 320px;
        width: calc(100% - 320px);
    }
    .sidebar {
        width: 320px;
    }
}

/* 2. Tablets & Small Desktops (Laptop viewports) */
@media (max-width: 1024px) {
    .section {
        padding: 5rem 3rem;
    }
    
    .about-grid, 
    .team-grid, 
    .contact-grid {
        gap: 3rem;
    }
    
    .aim-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .aim-visual {
        height: 380px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .aim-img-top, 
    .aim-img-bottom {
        height: 220px;
    }
    
    .aim-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 3. Small Tablets & Phones (Responsive Sidebar Transition) */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    /* Show Mobile Header */
    .mobile-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-color);
        padding: 0.8rem 1.5rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 101;
    }
    
    .mobile-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .brand-logo-img-mobile {
        max-height: 38px;
        width: auto;
        display: block;
    }
    
    /* Hamburger Menu Icon */
    .menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .hamburger {
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--primary-color);
        position: relative;
        transition: var(--transition-fast);
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: var(--primary-color);
        left: 0;
        transition: var(--transition-fast);
    }
    
    .hamburger::before {
        top: -6px;
    }
    
    .hamburger::after {
        top: 6px;
    }
    
    /* Hamburger Toggle States */
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    /* Convert Sidebar into Drawer */
    .sidebar {
        position: fixed;
        top: 60px; /* Below mobile header */
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background-color: #ffffff;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
        transition: var(--transition-smooth);
        padding: 2rem 1.5rem;
        z-index: 100;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-brand {
        display: none; /* Already shown in mobile-header */
    }
    
    /* Main Content Offset */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 60px; /* Offset for mobile header */
    }
    
    /* Hero Adjustments */
    .hero {
        height: calc(100vh - 60px);
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.3rem;
    }
    
    .hero-subtext {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-ctas .btn {
        width: 100%;
        max-width: 260px;
    }
    
    /* Section paddings for mobile */
    .section {
        padding: 4rem 1.5rem;
    }
    
    /* Grids to single column */
    .about-grid, 
    .team-grid, 
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        height: 300px;
    }
    
    .image-accent-border {
        top: 10px;
        left: 10px;
    }
    
    .services-tabs {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }
    
    .tab-btn::after {
        display: none;
    }
    
    .tab-btn.active {
        background-color: var(--primary-color);
        color: #ffffff;
        border-color: var(--primary-color);
    }
    
    .approach-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .approach-step {
        border-top: none;
        border-left: 2px solid var(--border-color);
        padding-top: 0;
        padding-left: 1.5rem;
    }
    
    .approach-step:hover {
        border-left-color: var(--accent-color);
    }
    
    .approach-quote {
        padding: 2rem;
    }
    
    .approach-quote blockquote {
        font-size: 1.25rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .faq-answer-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
