/*
Theme Name: Birrly
Theme URI: https://birrly.com
Author: Birrly Team
Author URI: https://birrly.com
Description: Custom WordPress theme for Birrly digital payment system
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: birrly
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Base Styles */
:root {
    --primary-color: #497787;
    --secondary-color: #475061;
    --dark-color: #282934;
    --light-color: #BCC3CC;
    --white-color: #ffffff;
    --black-color: #000000;
    --gray-color: #f5f5f5;
    --border-color: #e1e1e1;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* Language Switching */
.am-text {
    display: none;
}

body.amharic .en-text {
    display: none;
}

body.amharic .am-text {
    display: inline-block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 1rem 2.5rem;
    font-size: 1.6rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.8rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu-container {
    margin-right: 2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    transition: all 0.3s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

.menu-toggle.active .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    margin-right: 2rem;
}

#primary-menu li:last-child {
    margin-right: 0;
}

#primary-menu a {
    color: var(--white-color);
    font-weight: 500;
    font-size: 1.6rem;
    padding: 0.5rem 0;
    position: relative;
}

#primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#primary-menu a:hover::after,
#primary-menu .current-menu-item a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.language-switcher {
    display: flex;
    margin-right: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.auth-buttons {
    display: flex;
}

.auth-buttons .btn {
    margin-left: 1rem;
}

/* Hero Section */
.hero-section {
    padding: 12rem 0 6rem;
    background-color: var(--white-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 4rem;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.hero-description {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    background-color: var(--gray-color);
}

.section-title {
    margin-bottom: 5rem;
}

.text-center {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background-color: var(--white-color);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 2rem;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

.feature-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.feature-description {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 8rem 0;
    background-color: var(--white-color);
}

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

.step {
    display: flex;
    margin-bottom: 5rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 30px;
    width: 2px;
    height: calc(100% + 5rem);
    background-color: var(--light-color);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-right: 3rem;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    background-color: var(--gray-color);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.testimonial {
    background-color: var(--white-color);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: calc(33.333% - 2rem);
    min-width: 300px;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.author-title {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background-color: var(--white-color);
}

.cta-description {
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.signup-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.signup-form .form-group {
    display: flex;
}

.form-control {
    flex: 1;
    height: 5rem;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem 0 0 0.5rem;
}

.signup-form .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    height: 5rem;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    background-color: var(--gray-color);
}

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

.faq-item {
    background-color: var(--white-color);
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    padding-right: 2rem;
}

.faq-toggle {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 1000px;
}

/* Final CTA Section */
.final-cta-section {
    padding: 8rem 0;
    background-color: var(--primary-color);
}

.final-cta-section .section-title {
    color: var(--white-color);
}

.final-cta-button {
    margin-top: 3rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 6rem 0 3rem;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-widget {
    width: calc(20% - 2rem);
    margin-bottom: 3rem;
}

.footer-widget:first-child {
    width: calc(40% - 2rem);
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-description {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-widget-title {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 1rem;
}

.footer-menu a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 1.4rem;
}

.app-links {
    display: flex;
}

.app-link {
    margin-left: 1.5rem;
}

.app-link img {
    height: 40px;
    width: auto;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widget {
        width: calc(33.333% - 2rem);
    }
    
    .footer-widget:first-child {
        width: 100%;
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-container {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .primary-menu-container.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    #primary-menu {
        flex-direction: column;
    }
    
    #primary-menu li {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        width: 100%;
    }
    
    .footer-widget {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 576px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .language-switcher {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .auth-buttons .btn {
        margin-left: 0;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .signup-form .form-group {
        flex-direction: column;
    }
    
    .form-control {
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .signup-form .btn {
        border-radius: 0.5rem;
        width: 100%;
    }
    
    .footer-widget {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .copyright {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .app-links {
        justify-content: center;
    }
    
    .app-link {
        margin: 0 0.75rem;
    }
}

/* WordPress Specific Styles */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    margin: 0.8rem 0;
    font-size: 1.4rem;
    font-style: italic;
    text-align: center;
}

.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 0.5rem;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
    font-size: 1.4rem;
}

/* Animation Classes */
.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Message */
.form-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}
