/* Essential Custom Styles - Keep only what's needed */

/* Mobile Hamburger Menu - Complex animations that are hard to replicate with Tailwind */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1F2937;
    border-radius: 3px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.open span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Legacy Navigation Styles - For pages not yet converted to Tailwind */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    color: #111827;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Typography for non-Tailwind pages */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: #1F2937;
    margin-top: 0;
}

h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.65rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #374151;
}

ul {
    list-style-position: inside;
    padding-left: 0;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: #3B82F6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Legacy Button Styles */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #3B82F6;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #F59E0B;
    color: #1F2937;
}

.btn-secondary:hover {
    background-color: #D97706;
    transform: translateY(-2px);
}

/* Legacy Header Styles */
.main-header, header {
    background-color: #FFFFFF;
    padding: 1rem 0;
    border-bottom: 1px solid #F3F4F6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container, header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo, nav .logo, .logo a {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: bold;
    color: #1F2937;
    text-decoration: none;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul, nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a, nav > ul > li > a {
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active,
nav > ul > li > a:hover, nav > ul > li > a.active {
    color: #3B82F6;
    font-weight: bold;
}

.cta-button {
    background-color: #F59E0B;
    color: #1F2937 !important;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
}

.cta-button:hover {
    background-color: #D97706;
    color: #1F2937 !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .main-header .container, header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .main-header, header {
        position: sticky;
        top: 0;
        z-index: 1003;
        background-color: #FFFFFF;
    }

    .main-nav {
        display: none;
    }
    
    .main-nav.open {
        display: block;
    }

    .main-nav ul, nav > ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        margin: 0;
        padding: 2rem 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex !important;
        opacity: 1;
    }
    
    .main-nav ul.open, nav > ul.open {
        transform: translateX(0);
    }
    
    .main-nav li, nav > ul > li {
        margin: 0.75rem 0;
        width: 80%;
        text-align: center;
    }
    
    .main-nav a, nav > ul > li > a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.25rem;
        width: 100%;
        color: #1F2937;
        text-decoration: none;
        border-bottom: 1px solid #F3F4F6;
        transition: color 0.3s ease;
    }

    .cta-button {
        display: inline-block !important;
        margin-top: 1rem;
        padding: 0.75rem 1.5rem !important;
        border-bottom: none !important;
        background-color: #F59E0B !important;
        color: #1F2937 !important;
        border-radius: 9999px;
    }
}

/* Legacy Page Sections */
.page-header {
    background-color: #F3F4F6;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 700px;
    margin: 0 auto;
}

.section {
    padding: 3rem 0;
    margin-bottom: 1rem;
}

.section-bg-gray, .section-alt {
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 3rem 1rem;
    box-sizing: border-box;
    margin: 1rem 0;
}

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

.section-title p {
    font-size: 1.125rem;
    color: #4B5563;
    max-width: 600px;
    margin: 0.5rem auto 0 auto;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.about-intro p {
    font-size: 1.125rem;
    color: #4B5563;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: flex-start;
}

.content-block {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.content-block h3 {
    color: #3B82F6;
    margin-top: 0;
}

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

.service-card-detailed {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-card-detailed h3 {
    color: #1F2937;
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-card-detailed p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-detailed .btn {
    align-self: flex-start;
}

.cta-section-footer {
    background-color: #3B82F6;
    color: #FFFFFF;
    padding: 4rem 0;
    text-align: center;
    margin-top: 3rem;
}

.cta-section-footer h2 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-section-footer p {
    color: #E5E7EB;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section-footer .btn {
    background-color: #FFFFFF;
    color: #3B82F6;
    font-weight: bold;
}

.cta-section-footer .btn:hover {
    background-color: #F3F4F6;
    transform: translateY(-2px);
}

/* Legacy Footer */
.main-footer, footer {
    background-color: #111827;
    color: #D1D5DB;
    padding: 3rem 0;
    text-align: center;
    margin-top: 2rem;
}

.main-footer .container, footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul, footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin: 0.5rem 1rem;
}

/* Founder bio section for about page */
.founder-bio-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.founder-image {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
}

.founder-bio-text h3 {
    color: #3B82F6;
    margin-bottom: 1rem;
}

.founder-bio-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4B5563;
}

@media (max-width: 768px) {
    .founder-bio-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
