/* Font import moved to HTML for SRI implementation */

:root {
    --primary-dark: #000000;
    --secondary-dark: #000000;
    --primary-light: #f0eee6;
    --accent: #000000;
    --accent-dark: #000000;
    --text-dark: #000000;
    --text-gray: #000000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Crimson Text", "Tiempos Headline Regular", Georgia, "Times New Roman", serif;
    background-color: #f0eee6;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-section {
    padding-top: 200px;
}

/* Match Resources page exact spacing for Privacy, Contact, and About pages */
.privacy-policy.page-section,
.cta.page-section,
.about.page-section {
    padding: 100px 0; /* Exactly match .resources class padding */
}

/* Reduce top spacing for resource sub-pages only */
#legal-insights.page-section,
#regulatory-updates.page-section {
    padding-top: 100px;
}

/* Founder Section Centered Design */
.founder-profile-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 60px 20px;
}

.founder-info-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.founder-info-centered h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.founder-info-centered .founder-title {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 400;
}

.founder-info-centered .founder-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.founder-expertise-centered h4 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: 600;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.expertise-item {
    background: var(--primary-light);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    text-align: center;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Responsive design for founder section */
@media (max-width: 768px) {
    .founder-info-centered {
        padding: 40px 25px;
        margin: 0 10px;
    }
    
    .founder-info-centered h3 {
        font-size: 2rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .expertise-item {
        padding: 15px 20px;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(240, 238, 230, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1002;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-block;
    align-items: center;
    font-family: "Tiempos Headline Regular", sans-serif;
    position: relative;
}

.logo span {
    color: var(--accent);
}

/* Logo animation - full text */
.logo-full {
    display: inline;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Logo animation - abbreviated text (initially hidden) */
.logo-short {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 700;
    color: var(--text-dark);
}

/* Scrolled state - show abbreviated logo */
header.scrolled .logo-full {
    opacity: 0;
    transform: scale(0.8);
}

header.scrolled .logo-short {
    opacity: 1;
    transform: scale(1);
}

/* CSS Scroll-Driven Animation (for modern browsers) */
@supports (animation-timeline: scroll()) {
    .logo-full {
        animation: logo-fade-out linear forwards;
        animation-timeline: scroll();
        animation-range: 0vh 20vh;
    }

    .logo-short {
        animation: logo-fade-in linear forwards;
        animation-timeline: scroll();
        animation-range: 0vh 20vh;
    }

    @keyframes logo-fade-out {
        0% {
            opacity: 1;
            transform: scale(1);
        }
        100% {
            opacity: 0;
            transform: scale(0.8);
        }
    }

    @keyframes logo-fade-in {
        0% {
            opacity: 0;
            transform: scale(0.8);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Navigation */
.nav-menu {
    transition: all 0.3s ease;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: var(--accent);
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-menu a.selected {
    color: var(--accent);
    background-color: rgba(0, 0, 0, 0.08);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.selected::after {
    transform: scaleX(1);
}

.about-illustration {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-illustration:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
    width: 100%;
    max-width: 350px;
    height: 250px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    text-align: center;
    padding: 20px;
}

.about-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.about-text-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text-centered h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.about-text-centered p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text-centered .btn {
    margin-top: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

nav a:hover, nav a.selected {
    color: var(--accent);
    text-decoration: underline;
}

.contact-btn {
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background-color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Keyframe animations for hero content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background-color: var(--accent);
    color: white;
    border: none;
}

.btn.primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-gray);
}

.btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--text-dark);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #f0eee6;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f0eee6;
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* SVG Icon System */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    transition: transform 0.3s ease, stroke-width 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.15) rotate(5deg);
    stroke-width: 2.5;
}

/* Resource Icon System */
.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.resource-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    transition: transform 0.3s ease, stroke-width 0.3s ease;
}

.resource-card:hover .resource-icon svg {
    transform: scale(1.15) rotate(-5deg);
    stroke-width: 2.5;
}

.service-card h3 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #000000;
    margin-bottom: 20px;
}

/* Ensure all Services page text is black */
.services .section-header p,
.services p,
.how-we-work p,
.how-we-work .section-header p,
.step p,
.cta p {
    color: #000000 !important;
}

/* Override any inherited gray text colors on Services pages */
body .services *,
body .how-we-work *,
body .step *,
body .service-card * {
    color: #000000 !important;
}

/* Ensure all service subpage text is black */
.service-detail p,
.service-content p,
.service-overview p,
.service-benefits p,
.benefit-item p,
.service-tagline,
.service-process p,
.deliverables p,
.timeline-item p,
.faq-content p {
    color: #000000 !important;
}

/* Universal override for all service subpages */
body .service-detail *,
body .service-content *,
body .service-overview *,
body .service-benefits *,
body .benefit-item *,
body .service-process *,
body .deliverables *,
body .timeline-item *,
body .faq-content * {
    color: #000000 !important;
}

.service-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 10px;
}

.service-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #f0eee6;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #f0eee6;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vision & Mission Side-by-Side Section */
.vision-mission-section {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.vision-card,
.mission-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
}

.vision-card h2,
.mission-card h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 600;
}

.vision-card p,
.mission-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

/* Responsive design for vision-mission */
@media (max-width: 968px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vision-card,
    .mission-card {
        padding: 30px;
    }
    
    .vision-card h2,
    .mission-card h2 {
        font-size: 1.8rem;
    }
}

.our-team {
    padding: 100px 0;
}

.our-team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.team-member p {
    color: var(--text-gray);
}

/* How We Work Section */
.how-we-work {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step {
    padding: 30px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--primary-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    font-weight: 600;
}

/* Featured Guide Section */
.featured-guide {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.featured-guide-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.featured-guide-text {
    flex: 1;
}

.featured-guide-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.featured-guide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.featured-guide-image {
    flex: 1;
}

.featured-guide-image img {
    width: 100%;
    border-radius: 12px;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: #e5e3d9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.newsletter-form input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Contact Info Section */
.contact-info {
    padding: 100px 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Two Column Layout for Info Sections */
.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.info-column {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .info-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.contact-card {
    text-align: center;
    padding: 30px;
    background: var(--primary-light);
    border-radius: 12px;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
}

/* Resources Section */
.resources {
    padding: 100px 0;
    background-color: #f0eee6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: #f0eee6;
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.resource-card h3 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.resource-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--accent-dark);
    gap: 10px;
}

/* CTA Section */
.cta {
    padding: 100px 0; /* Match Resources page padding */
    background-color: #f0eee6;
    text-align: center;
    color: #000000;
}

.cta h2 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta .btn {
    background-color: white;
    color: #000000;
    border: 1px solid #000000;
}

.cta .btn:hover {
    background-color: #f0eee6;
    transform: translateY(-2px);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.faq-section {
    text-align: center;
}

.faq-section h3 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #000000;
    text-align: center;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h4 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    transition: var(--transition);
    user-select: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-section {
    text-align: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive design for FAQ and contact form */
@media (max-width: 768px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .faq-section h3 {
        font-size: 1.8rem;
    }
    
    .faq-question h4 {
        font-size: 0.9rem;
    }
    
    #contact-form {
        max-width: 100%;
    }
}

.linkedin-logo {
    width: 64px;
    height: 64px;
    vertical-align: middle;
    margin-right: 6px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: "Tiempos Headline Regular", sans-serif;
}

#contact-form button {
    width: 100%;
}

/* Enhanced Contact Page Styles */
.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.consultation-section {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin: 0;
    text-align: center;
    height: 100%;
}

.consultation-section h3 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.consultation-benefits {
    list-style: none;
    margin: 20px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.consultation-benefits li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.privacy-notice {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 0;
    text-align: center;
    height: 100%;
}

.privacy-notice h3 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.privacy-notice a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: "Crimson Text", "Tiempos Headline Regular", Georgia, serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: left;
}

.form-status[hidden] {
    display: none;
}

.form-status p + p {
    margin-top: 8px;
}

.form-status a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.form-status-success {
    background-color: #eef8ef;
    border-color: #4f7a52;
    color: #1f3b22;
}

.form-status-error {
    background-color: #fff0ee;
    border-color: #8c3f34;
    color: #5d2119;
}

.form-status-info {
    background-color: #eef4fb;
    border-color: #34577a;
    color: #1f3550;
}

/* Privacy Policy Styles */
.privacy-policy {
    padding: 100px 0; /* Match Resources page padding */
}

/* Consistent heading sizes across all major sections */
.privacy-policy .section-header h1 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 2.5rem; /* Match other section headers */
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}


.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.privacy-section h3 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: var(--text-dark);
}

.privacy-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.privacy-section li {
    margin-bottom: 8px;
}

.last-updated {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.contact-details {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details strong {
    font-weight: 600;
}

/* Our Founder Section */
.our-founder {
    padding: 80px 0;
    background-color: white;
}

.founder-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.founder-image {
    text-align: center;
}

.founder-info h3 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.founder-title {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.founder-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.founder-expertise h4 {
    font-family: "Tiempos Headline Regular", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.founder-expertise ul {
    list-style: none;
    padding-left: 0;
}

.founder-expertise li {
    padding: 8px 0;
    font-size: 1rem;
    position: relative;
    padding-left: 25px;
}

.founder-expertise li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
}

@media (max-width: 768px) {
    .founder-profile {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .founder-image svg {
        max-width: 200px;
    }
}

/* Footer */
footer {
    background-color: #f0eee6;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    font-family: "Tiempos Headline Regular", sans-serif;
    color: var(--text-dark);
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent);
}

.footer-description {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: "Tiempos Headline Regular", sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Mobile Optimizations and Touch Targets - Preserve original design */
.btn, button, .service-link, .resource-link {
    min-height: 44px;
    touch-action: manipulation;
}

/* Only add flex properties if not already present */
@media (max-width: 768px) {
    .btn, button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.faq-question {
    min-height: 60px;
    cursor: pointer;
}

.faq-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================= */
/*      RESPONSIVE DESIGN    */
/* ========================= */

/* Large displays (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .services-grid,
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .cta-content {
        gap: 80px;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Ultra-wide displays (1600px and above) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .services-grid,
    .resources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .cta-content {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Header - Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide desktop navigation on mobile and show as overlay when active */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-light);
        padding: 100px 20px 40px; /* Top padding to avoid header overlap on all pages */
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1001; /* Lower than header to prevent X button from being hidden */
    }
    
    .nav-menu.active {
        display: block;
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 16px 20px;
        text-align: left;
        font-size: 1.1rem;
        border-radius: 8px;
        justify-content: flex-start;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* Fix header overlap on mobile while maintaining consistent spacing */
    .page-section {
        padding-top: 120px; /* Increased from 100px to ensure no overlap */
    }
    
    .hero {
        padding: 100px 0 60px; /* Match consistent mobile spacing */
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Resources Grid */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* About Content */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    /* Typography adjustments */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .cta h2 {
        font-size: 2.5rem;
    }
    
    .faq-section h3 {
        font-size: 1.6rem;
    }
    
    /* Spacing optimizations */
    .page-section {
        padding-top: 100px; /* Increased from 80px to ensure no overlap */
    }
    
    .hero {
        padding: 100px 0 40px; /* Match consistent mobile spacing */
    }
    
    .services, .resources, .about, .cta {
        padding: 40px 0;
    }
    
    /* Keep About, Services, and Resources sections consistent */
    .about.page-section,
    .services.page-section,
    .resources.page-section {
        padding: 100px 0 !important;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Service and resource cards */
    .service-card, .resource-card {
        padding: 20px;
    }
    
    .service-card h3, .resource-card h3 {
        font-size: 1.3rem;
    }
    
    /* FAQ optimizations */
    .faq-question {
        padding: 16px;
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .faq-answer {
        padding: 0 16px 16px;
    }
    
    /* Contact form */
    #contact-form {
        gap: 12px;
    }
    
    #contact-form input,
    #contact-form textarea,
    #contact-form select {
        padding: 14px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Small mobile phones (320px and below) */
@media (max-width: 320px) {
    /* Further typography reductions */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .cta h2 {
        font-size: 2.5rem;
    }
    
    /* Tighter spacing */
    .page-section {
        padding-top: 90px; /* Increased from 70px to ensure no overlap */
    }
    
    .hero {
        padding: 100px 0 30px; /* Match consistent mobile spacing */
    }
    
    .services, .resources, .about, .cta {
        padding: 30px 0;
    }
    
    /* Keep About, Services, and Resources sections consistent */
    .about.page-section,
    .services.page-section,
    .resources.page-section {
        padding: 100px 0 !important;
    }
    
    .service-card, .resource-card {
        padding: 16px;
    }
    
    .service-card h3, .resource-card h3 {
        font-size: 1.2rem;
    }
    
    /* Navigation adjustments */
    .nav-menu {
        padding: 100px 15px 30px; /* Consistent with main mobile padding */
    }
    
    .nav-menu a {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    /* Form optimizations */
    .faq-question {
        padding: 12px;
    }
    
    .faq-question h4 {
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 12px 12px;
    }
    
    #contact-form input,
    #contact-form textarea,
    #contact-form select {
        padding: 12px 10px;
    }
}

/* ========================= */
/*    ORIENTATION SPECIFIC   */
/* ========================= */

/* Landscape mobile phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 30px; /* Match consistent mobile spacing */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        padding: 100px 20px 30px; /* Consistent with main mobile padding */
    }
    
    .nav-menu ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .services, .resources, .about, .cta {
        padding: 30px 0;
    }
    
    /* Keep About, Services, and Resources sections consistent */
    .about.page-section,
    .services.page-section,
    .resources.page-section {
        padding: 100px 0 !important;
    }
    
    .header-container {
        padding: 10px 20px;
    }
}

/* iPad and large tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-menu ul {
        gap: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cta-content {
        gap: 50px;
    }
}

/* ========================= */
/*      PRINT STYLES         */
/* ========================= */

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    header,
    .mobile-menu-btn,
    .nav-menu,
    .hero-btns,
    .btn,
    .service-link,
    .resource-link,
    #contact-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero h1 {
        font-size: 24pt;
        margin-bottom: 20pt;
    }
    
    .section-header h2 {
        font-size: 18pt;
        margin: 20pt 0 10pt;
    }
    
    .service-card,
    .resource-card,
    .faq-item {
        border: 1px solid #ccc;
        margin-bottom: 10pt;
        page-break-inside: avoid;
    }
    
    .faq-answer {
        display: block !important;
    }
    
    .footer {
        margin-top: 30pt;
        padding-top: 20pt;
        border-top: 1px solid #ccc;
    }
}

/* ========================= */
/*     ACCESSIBILITY MEDIA   */
/* ========================= */

/* High contrast mode removed to preserve original design */

/* Large text preference */
@media (prefers-reduced-data: reduce) {
    /* Reduce background images and effects for data saving */
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Touch device specific optimizations */
.touch-device .btn:hover,
.touch-device .service-link:hover,
.touch-device .resource-link:hover {
    transform: none; /* Disable hover transforms on touch devices */
}

.touch-device .btn:active,
.touch-device .service-link:active,
.touch-device .resource-link:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Header scroll state */
header.scrolled {
    background-color: rgba(240, 238, 230, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================= */
/*     ENHANCED ANIMATIONS    */
/* ========================= */

/* Staggered card animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Enhanced card animations with stagger effect */
.service-card,
.resource-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }
.resource-card:nth-child(4) { animation-delay: 0.4s; }
.resource-card:nth-child(5) { animation-delay: 0.5s; }
.resource-card:nth-child(6) { animation-delay: 0.6s; }

.team-member {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced card hover effects with depth */
.service-card,
.resource-card {
    position: relative;
    overflow: hidden;
}

.service-card::before,
.resource-card::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 ease;
}

.service-card:hover::before,
.resource-card:hover::before {
    left: 100%;
}

.service-card:hover,
.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Enhanced button animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn.primary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn.secondary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* ========================= */
/*  TABLE OF CONTENTS STYLES */
/* ========================= */

/* Article Layout with TOC */
.article-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.toc-sidebar {
    width: 300px;
    flex-shrink: 0;
    order: 1;
}
.article-main {
    flex: 1;
    min-width: 0;
    order: 2;
}
.related-sidebar {
    width: 300px;
    flex-shrink: 0;
    order: 3;
}

.table-of-contents {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.toc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Debug: Add border to see TOC containers */
.toc-sidebar {
    border: 2px solid red !important;
    background: yellow !important;
}
.toc-header-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.table-of-contents h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    flex: 1;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-item {
    margin-bottom: 0.5rem;
}
.toc-link {
    display: block;
    padding: 0.4rem 0.8rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}
.toc-link:hover {
    background-color: #f5f5f5;
    color: #000;
}
.toc-link.active {
    background-color: #000;
    color: white;
}
.toc-number {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #666;
}
.toc-link.active .toc-number {
    color: white;
}

/* TOC Scroll Animation Indicator */
.toc-scroll-indicator {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    background-image: url('../images/2025-10-29 09_35_18-Factory - resources - Visual Studio Code.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.toc-link.active .toc-scroll-indicator {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* TOC Animated Progress Line */
.toc-progress-container {
    position: absolute;
    top: 60px;
    bottom: 20px;
    left: 20px;
    width: 2px;
    pointer-events: none;
    z-index: 1;
}

.toc-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000 0%, #666 100%);
    opacity: 0.3;
    transition: all 0.3s ease;
    transform-origin: top;
}

.toc-progress-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive Design for Article Layout */
@media (max-width: 1200px) {
    .toc-sidebar,
    .related-sidebar {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .toc-sidebar,
    .related-sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
    }
    .toc-sidebar,
    .related-sidebar {
        width: 100%;
    }
    .toc-sidebar {
        order: 2;
    }
    .article-main {
        order: 1;
    }
    .related-sidebar {
        order: 3;
    }
    .table-of-contents {
        position: static;
        max-height: none;
    }
}

/* ========================= */
/*   MODERN VISUAL EFFECTS   */
/* ========================= */

/* Enhanced section backgrounds with gradients */
.hero {
    background: linear-gradient(135deg, #f0eee6 0%, #faf9f7 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Glass-morphism effect for cards */
.service-card,
.resource-card,
.testimonial-card,
.vision-card,
.mission-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Enhanced shadow system */
.service-card,
.resource-card,
.vision-card,
.mission-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.update-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--accent);
}

/* Enhanced founder info card */
.founder-info-centered {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Enhanced expertise items */
.expertise-item {
    background: rgba(240, 238, 230, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Enhanced contact card */
.contact-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced header with glass-morphism */
header {
    background-color: rgba(240, 238, 230, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Enhanced FAQ items */
.faq-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ========================= */
/*   SCROLL ANIMATIONS       */
/* ========================= */

/* Scroll-triggered animations for hero content */
@keyframes slideInUpHero {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced input focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--accent);
    transition: all 0.3s ease;
}

/* Enhanced image hover effects */
.about-illustration:hover,
.about-image img:hover {
    transform: scale(1.03) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Section transition animations */
.page-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced transition for all interactive elements */
a, button, .btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth nav link animations */
.nav-menu a {
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced section headers */
.section-header {
    animation: slideInUp 0.8s ease-out;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    animation: expandWidth 0.8s ease-out 0.3s forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Enhanced consultation section */
.consultation-section,
.privacy-notice {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.consultation-section:hover,
.privacy-notice:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

.nav-menu,
.mobile-menu-btn {
    will-change: transform;
}

.hamburger-line {
    will-change: transform, opacity;
}

/* Advanced Micro-Interactions */

/* Ripple effect on interactive elements */
.service-link,
.resource-link,
.contact-btn {
    position: relative;
    overflow: hidden;
}

.service-link::before,
.resource-link::before,
.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.service-link:hover::before,
.resource-link:hover::before,
.contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Form input animations */
.form-group input,
.form-group textarea,
.form-group select {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
    transform: translateY(-2px);
}

/* Enhanced section backgrounds with subtle patterns */
.services {
    background: linear-gradient(135deg, #f0eee6 0%, #faf9f7 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.resources {
    background: linear-gradient(135deg, #f0eee6 0%, #faf9f7 100%);
    position: relative;
    overflow: hidden;
}

.resources::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Enhanced How We Work section */
.how-we-work {
    background: linear-gradient(135deg, #f0eee6 0%, #faf9f7 100%);
    position: relative;
}

.step {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.step:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    animation: slideInUp 0.6s ease-out;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotateZ(5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Enhanced testimonial cards */
.testimonial-card {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 0.4;
    transform: scale(1.2);
}

/* Enhanced vision/mission cards */
.vision-card,
.mission-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.vision-card { animation-delay: 0.1s; }
.mission-card { animation-delay: 0.2s; }

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Enhanced team member cards */
.team-member {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-member:hover {
    transform: translateY(-8px);
}

.team-member img {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced featured guide section */
.featured-guide {
    background: linear-gradient(135deg, #f0eee6 0%, #faf9f7 100%);
    position: relative;
    overflow: hidden;
}

.featured-guide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* Enhanced newsletter section */
.newsletter {
    background: linear-gradient(135deg, #e5e3d9 0%, #ede9e0 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Enhanced contact info cards */
.contact-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-card .contact-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotateZ(-10deg);
    color: var(--accent);
}

/* Enhanced CTA section */
.cta {
    background: linear-gradient(135deg, #f0eee6 0%, #faf9f7 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Enhanced back link animation */
.back-link {
    position: relative;
    transition: all 0.3s ease;
}

.back-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.back-link:hover::after {
    width: 100%;
}

/* Update item enhanced animations */
.update-item {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
}

.update-item:nth-child(1) { animation-delay: 0.1s; }
.update-item:nth-child(2) { animation-delay: 0.2s; }
.update-item:nth-child(3) { animation-delay: 0.3s; }
.update-item:nth-child(4) { animation-delay: 0.4s; }

.update-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Enhanced badge animations */
.announcement-badge,
.insight-badge,
.event-badge {
    transition: all 0.3s ease;
    display: inline-block;
}

.update-item:hover .announcement-badge,
.update-item:hover .insight-badge,
.update-item:hover .event-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus improvements for keyboard navigation */
.mobile-menu-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-menu a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Dark mode removed to preserve original design */

/* Tiempos Headline font simulation */
@font-face {
    font-family: 'Tiempos Headline Regular';
    src: local('Georgia');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3, h4, .logo, .footer-logo, .footer-heading {
    font-family: "Tiempos Headline Regular", sans-serif;
}

/* Resource Pages Styles */
.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.back-link:hover {
    border-bottom-color: var(--accent);
}

.updates-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.update-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.update-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.update-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.announcement-badge, .insight-badge, .event-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.announcement-badge {
    background-color: #e3f2fd;
    color: var(--text-dark);
}

.insight-badge {
    background-color: #f3e5f5;
    color: var(--text-dark);
}

.event-badge {
    background-color: #e8f5e8;
    color: var(--text-dark);
}

.update-item h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
}

.update-item p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.insight-author {
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: var(--primary-light);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Event-specific styles */
.event-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.event-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.event-details div {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.event-details div:last-child {
    margin-bottom: 0;
}

.event-register-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.event-register-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* Responsive updates grid */
@media (max-width: 768px) {
    .update-item {
        padding: 20px;
    }
    
    .event-details {
        padding: 12px;
    }
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
