/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://arsicha.com/
 Description:  A GeneratePress child theme for Arsicha, a digital agency in Addis Ababa, Ethiopia.
 Author:       Arsicha
 Author URI:   https://arsicha.com/
 Template:     generatepress
 Version:      4.5.1
 Text Domain:  generatepress-child
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body, html {
    font-family: 'Inter', sans-serif;
    background-color: #222325;
    color: #ffffff;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 1rem;
    text-align: center;
    display: block !important;
}

/* Header and Logo Styles */
.site-header {
    background-color: #222325;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100% !important;
}
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-logo a:hover {
    color: #1DBF73 !important;
}
.site-logo .logo-icon {
    color: #1DBF73;
    transition: color 0.3s ease;
}
.site-logo .logo-icon:hover {
    color: #17A55F;
}
.nav-menu {
    display: none;
    gap: 1rem;
    align-items: center;
}
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #222325;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.nav-menu a {
    color: #D1D5DB !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}
.nav-menu a:hover,
.nav-menu a.current-menu-item {
    color: #1DBF73 !important;
}
.nav-menu.active a {
    color: #FFFFFF !important;
}
.nav-menu.active a:hover,
.nav-menu.active a.current-menu-item {
    color: #1DBF73 !important;
}
.get-quote-btn {
    background-color: #1DBF73 !important;
    color: #FFFFFF !important;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-height: 36px;
    display: inline-flex !important;
    align-items: center;
    visibility: visible !important;
}
.get-quote-btn:hover {
    background-color: #17A55F !important;
}
.menu-toggle {
    font-size: 1.25rem;
    color: #FFFFFF;
    cursor: pointer;
    display: block;
}

/* Hero Styles */
.hero {
    background: linear-gradient(135deg, #404145, #2D2E31);
    padding: 4rem 0;
    text-align: center;
    animation: fadeIn 1s ease-in;
    width: 100% !important;
}
.hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1rem;
    color: #D1D5DB;
    max-width: 896px;
    margin: 0 auto 2rem;
}
.hero .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.hero .cta-buttons a {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 200px;
    justify-content: center;
}
.hero .cta-buttons .primary {
    background-color: #1DBF73;
    color: #FFFFFF;
}
.hero .cta-buttons .primary:hover {
    background-color: #17A55F;
}
.hero .cta-buttons .secondary {
    border: 2px solid #1DBF73;
    color: #1DBF73;
}
.hero .cta-buttons .secondary:hover {
    background-color: #1DBF73;
    color: #FFFFFF;
}

/* Section Styles */
section {
    padding: 4rem 0;
    width: 100% !important;
    display: block !important;
}
section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}
.bg-dark { background-color: #222325; }
.bg-secondary { background-color: #404145; }

/* Why Ethiopia and Services */
.why-ethiopia .grid, .services .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.card {
    background: linear-gradient(145deg, #404145, #2D2E31);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}
.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.card p {
    color: #D1D5DB;
    font-size: 0.875rem;
}
.icon-container {
    background-color: #1DBF73;
    border-radius: 50%;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.icon-container svg {
    width: 2rem;
    height: 2rem;
    color: #FFFFFF;
}

/* Testimonials */
.testimonials .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.testimonial-card {
    background: linear-gradient(145deg, #404145, #2D2E31);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    min-width: 300px;
    scroll-snap-align: center;
}
.testimonial-card p {
    color: #D1D5DB;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.testimonial-card .author {
    color: #1DBF73;
    font-weight: 600;
    font-size: 0.875rem;
}

/* FAQ */
.faq .faq-list {
    max-width: 896px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.faq-item p {
    color: #D1D5DB;
    font-size: 0.875rem;
}

/* CTA */
.cta .form-container {
    max-width: 512px;
    margin: 0 auto;
}
.cta .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cta .wpcf7-form label {
    text-align: left;
    color: #D1D5DB;
    font-size: 0.875rem;
}
.cta input[type="text"],
.cta input[type="email"],
.cta textarea {
    background-color: #404145;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #FFFFFF;
    font-size: 0.875rem;
    width: 100%;
}
.cta input[type="text"]:focus,
.cta input[type="email"]:focus,
.cta textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #1DBF73;
}
.cta input[type="submit"] {
    background-color: #1DBF73;
    color: #FFFFFF;
    padding: 0.75rem;
    border-radius: 9999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 48px;
}
.cta input[type="submit"]:hover {
    background-color: #17A55F;
}
.cta textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #404145;
    padding: 2rem 0;
    text-align: center;
    width: 100% !important;
}
footer p {
    color: #D1D5DB;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
footer .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
footer a {
    color: #D1D5DB;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #FFFFFF;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Reset GeneratePress Defaults */
.site, .site-content, .inside-article, .entry-content {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
    flex: none !important;
}
.site-header, .site-footer {
    background: none !important;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .main-navigation {
        flex-wrap: nowrap;
        align-items: center;
    }
    .site-logo {
        flex: 1;
    }
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        visibility: visible !important;
    }
    .nav-menu.active {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #222325;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    .nav-menu a:not(.get-quote-btn) {
        display: none !important;
    }
    .nav-menu.active a:not(.get-quote-btn) {
        display: block !important;
        color: #FFFFFF !important;
    }
    .nav-menu.active a:not(.get-quote-btn):hover,
    .nav-menu.active a.current-menu-item {
        color: #1DBF73 !important;
    }
    .get-quote-btn {
        display: inline-flex !important;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-height: 32px;
        visibility: visible !important;
    }
    .menu-toggle {
        font-size: 1.25rem;
        margin-left: 0.5rem;
        color: #FFFFFF;
    }
}
@media (min-width: 640px) {
    .hero .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    .hero .cta-buttons a {
        width: auto;
        max-width: none;
    }
    .why-ethiopia .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials .grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media (min-width: 768px) {
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        visibility: visible !important;
    }
    .nav-menu a {
        display: block !important;
        color: #D1D5DB !important;
    }
    .nav-menu a:hover,
    .nav-menu a.current-menu-item {
        color: #1DBF73 !important;
    }
    .menu-toggle {
        display: none;
    }
    .hero {
        padding: 5rem 0;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1.125rem;
    }
}
@media (min-width: 1024px) {
    .container, main, section, .site-content {
        width: 100% !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .hero {
        padding: 6rem 0;
    }
    .hero h1 {
        font-size: 3.75rem;
    }
    .hero p {
        font-size: 1.25rem;
    }
    .why-ethiopia .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .card h3 {
        font-size: 1.25rem;
    }
    .card p {
        font-size: 0.875rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .card, .get-quote-btn, .hero .cta-buttons a, .wpcf7-form input[type="submit"], .fade-in {
        transition: none;
        animation: none;
    }
}