/* 
 * Fixealo Institutional Website Styles
 * Based on provided screenshots (Warm Orange / Charcoal Grey)
 */

:root {
    /* Brand Colors extracted from images */
    --color-primary: #FF7A32;
    /* Warm Orange */
    --color-primary-light: #E95E17;
    /* Deep Orange */
    --color-accent: #33CFCF;
    /* Turquoise Soft */
    --color-accent-hover: #29b0b0;

    /* Text Colors */
    --text-main: #2B2B2B;
    /* Charcoal Grey */
    --text-muted: #6e6e73;
    --text-light: #ffffff;

    /* Backgrounds */
    --bg-body: #F4F4F4;
    /* Smoke Grey */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light) !important;
    /* Force white text */
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 37, 88, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--text-light) !important;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Phone Mockup CSS Only */
.hero-image {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 4px solid #333;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.phone-screen {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: var(--color-primary);
    color: white;
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.mockup-map {
    flex: 1;
    background-color: #e5e9f0;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.map-pin {
    position: absolute;
    font-size: 2rem;
    color: var(--color-primary);
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

.pin-1 {
    top: 30%;
    left: 40%;
}

.pin-2 {
    top: 60%;
    left: 70%;
    color: var(--color-accent);
}

.mockup-card {
    background: white;
    margin: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    background-image: url('https://i.pravatar.cc/150?img=11');
    /* Placeholder avatar */
    background-size: cover;
}

.card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.card-info p {
    font-size: 0.8rem;
    color: #666;
}

.stars {
    color: gold;
    font-size: 0.8rem;
}

.btn-xs {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-left: auto;
}

/* Features Section */
.features {
    background: #fff;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-body);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: white;
    border-color: #eee;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.icon-search {
    background: rgba(0, 194, 203, 0.1);
    color: var(--color-accent);
}

.icon-shield {
    background: rgba(10, 37, 88, 0.1);
    color: var(--color-primary);
}

.icon-chat {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.icon-stats {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    background-color: var(--color-primary);
    padding: 60px 0;
    color: white;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f8f9fa;
}

.accordion-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.accordion-header i {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* Adjust as needed */
    padding: 0 20px 20px;
    opacity: 1;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3a82 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.store-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.store-btn i {
    font-size: 2rem;
}

.store-btn div {
    display: flex;
    flex-direction: column;
}

.store-btn span {
    font-size: 0.7rem;
}

.store-btn strong {
    font-size: 1.1rem;
    line-height: 1;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 10px;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for now, requires JS for toggle */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}