/* ============================================
   Clavijero Theme - Custom Styles
   ============================================ */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors - Dark Blue */
    --primary: #07104C;
    --primary-foreground: #FAFAFA;
    
    /* Secondary Colors - Orange */
    --secondary: #F55E01;
    --secondary-foreground: #FAFAFA;
    
    /* Background & Text */
    --background: #FFFFFF;
    --foreground: #1E1E1E;
    
    /* Muted Colors */
    --muted: #F5F5F5;
    --muted-foreground: #6B7280;
    
    /* Borders */
    --border: #E5E7EB;
    
    /* Radius */
    --radius: 0.625rem;
    
    /* Fonts */
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-secondary {
    color: var(--secondary);
}

.text-white {
    color: #FFFFFF;
}

.text-center {
    text-align: center;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #0A1558;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 16, 76, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: #E05501;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 94, 1, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    height: 3rem;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo .logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    opacity: 0.8;
}

.nav-menu a:hover {
    color: var(--primary);
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    transition: all 0.3s ease;
}

.btn-cta {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, #F8F9FA, #F1F3F5);
    padding: 4rem 0 6rem;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 8rem 0 10rem;
    }
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.hero-description {
    max-width: 600px;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.stats-avatars {
    display: flex;
    gap: -0.5rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B7280;
    margin-left: -0.5rem;
}

.avatar:first-child {
    margin-left: 0;
}

.hero-image {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
}

@media (min-width: 1024px) {
    .hero-image {
        max-width: none;
    }
}

.hero-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #FFFFFF;
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        aspect-ratio: 4 / 3;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #F1F3F5;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    flex-shrink: 0;
}

.badge-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.badge-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================================
   Benefits Section
   ============================================ */

.benefits-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: #F8F9FA;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background-color: #FFFFFF;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #F1F3F5;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background-color: rgba(7, 16, 76, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary);
    color: #FFFFFF;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.benefit-description {
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    padding: 5rem 0;
    background-color: #F8F9FA;
}

.section-header-inline {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .section-header-inline {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-label {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #FFFFFF;
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background-color: #F1F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon-blue { color: #3B82F6; }
.service-icon-indigo { color: #6366F1; }
.service-icon-purple { color: #8B5CF6; }
.service-icon-red { color: #EF4444; }
.service-icon-pink { color: #EC4899; }
.service-icon-green { color: #10B981; }

.service-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--secondary);
    font-weight: 600;
    padding: 0;
    height: auto;
    font-size: 0.875rem;
}

.service-link:hover {
    color: #E05501;
}

.btn-desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .btn-desktop-only {
        display: inline-flex;
    }
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials-section {
    padding: 5rem 0;
    background-color: var(--primary);
    color: #FFFFFF;
    overflow: hidden;
}

.testimonials-section .section-title {
    color: #FFFFFF;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    color: #FFFFFF;
}

.author-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 5rem 0;
    background-color: #F8F9FA;
}

.cta-box {
    background-color: var(--primary);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 4rem;
    }
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 256px;
    height: 256px;
    background-color: rgba(245, 94, 1, 0.2);
    border-radius: 50%;
    filter: blur(64px);
    transform: translate(-50%, -50%);
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 256px;
    height: 256px;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    filter: blur(64px);
    transform: translate(50%, 50%);
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: #1E293B;
    color: #CBD5E1;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #CBD5E1;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #FFFFFF;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #CBD5E1;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item svg {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ============================================
   Responsive - Mobile Menu
   ============================================ */

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .btn-cta {
        display: none;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.mt-8 {
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
