/* ==========================================================================
   HISPAX THEME - ADDITIONAL STYLES
   ========================================================================== */

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */

.stats-section {
    background-color: var(--light-gray);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: var(--font-medium);
}

/* ==========================================================================
   TECHNOLOGY SECTION
   ========================================================================== */

.technology-section {
    background-color: var(--light-gray);
}

.technology-header {
    text-align: center;
    margin-bottom: 4rem;
}

.technology-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.technology-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.technology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.tech-item h3 {
    color: var(--primary-teal);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tech-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.tech-center {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: var(--white);
}

.tech-center h3 {
    color: var(--white);
    font-size: 2rem;
}

.tech-center p {
    color: rgba(255, 255, 255, 0.9);
}

.tech-image {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
}

.tech-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background-color: var(--primary-teal);
    color: var(--white);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.cta-image {
    flex: 1;
}

.cta-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.cta-steps li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.125rem;
}

.cta-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: var(--font-bold);
    font-size: 1.25rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
    background-color: var(--light-gray);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.testimonials-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.author-name {
    font-weight: var(--font-semibold);
    color: var(--text-dark);
}

.author-location {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */

.blog-section {
    background-color: var(--white);
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-title {
    font-size: 2.5rem;
    color: var(--text-dark);
}

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

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-post-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--primary-teal);
}

.blog-excerpt {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    background-color: var(--light-gray);
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-title {
    font-size: 2.5rem;
    color: var(--text-dark);
}

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

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

.faq-item:nth-child(1) { border-left: 4px solid var(--primary-purple); }
.faq-item:nth-child(2) { border-left: 4px solid var(--primary-pink); }
.faq-item:nth-child(3) { border-left: 4px solid var(--primary-orange); }
.faq-item:nth-child(4) { border-left: 4px solid var(--text-gray); }

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-teal);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

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

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

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta-section {
    background-color: var(--primary-teal);
    color: var(--white);
}

.final-cta-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.final-cta-image {
    flex: 1;
}

.final-cta-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

.final-cta-text {
    flex: 1;
}

.final-cta-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
    background-color: var(--white);
    border-top: 1px solid #E5E7EB;
}

.footer-main {
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-brand .footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-tagline h4 {
    color: var(--primary-teal);
    font-size: 1rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.footer-description p {
    color: var(--text-gray);
    line-height: 1.6;
}

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

.footer-menu li,
.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-menu a,
.footer-links-list a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover,
.footer-links-list a:hover {
    color: var(--primary-teal);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: var(--light-gray);
    padding: 1.5rem 0;
    border-top: 1px solid #E5E7EB;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: var(--text-gray);
    margin: 0;
}

.legal-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

.legal-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-teal);
}

.legal-link.terms { color: var(--primary-orange); }
.legal-link.privacy { color: var(--primary-purple); }
.legal-link.cookies { color: var(--primary-teal); }

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-teal);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE MENU STYLES
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   SCREEN READER TEXT
   ========================================================================== */

.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;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

