/*
Theme Name: JTS Equipamentos
Theme URI: https://jtsequipamentos.com.br
Description: Custom theme for JTS Equipamentos based on provided design.
Author: Google DeepMind
Version: 1.0
Text Domain: jts-theme
*/

:root {
    --jts-dark: #19262C;
    --jts-navy: #213454;
    --jts-blue: #6591B5;
    --jts-steel: #9EB3C0;
    --jts-light: #DCE5ED;
    --jts-white: #FFFFFF;
    --jts-gold: #D4AF37;
    --font-main: "mae-variable", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-variant-ligatures: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-variation-settings: 'wght' 400;
    color: var(--jts-dark);
    background-color: var(--jts-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--jts-navy);
    color: var(--jts-white);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--jts-gold);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-variation-settings: 'wght' 600;
    line-height: 1.2;
}

.font-light {
    font-variation-settings: 'wght' 300;
}

.font-regular {
    font-variation-settings: 'wght' 400;
}

.font-semibold {
    font-variation-settings: 'wght' 600;
}

/* Navigation */
.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(25, 38, 44, 0.95);
    /* var(--jts-dark) with opacity */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--jts-dark) 0%, var(--jts-navy) 50%, var(--jts-blue) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    /* Account for fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(101, 145, 181, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(158, 179, 192, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--jts-white);
    font-variation-settings: 'wght' 300;
    letter-spacing: -0.02em;
}

.hero-title span {
    font-variation-settings: 'wght' 600;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--jts-steel);
    font-variation-settings: 'wght' 300;
}

.hero-product {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Differentials */
.differential-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--jts-steel);
    color: var(--jts-white);
    font-variation-settings: 'wght' 300;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s ease forwards;
}

.differential-item:nth-child(1) {
    animation-delay: 0.2s;
}

.differential-item:nth-child(2) {
    animation-delay: 0.4s;
}

.differential-item:nth-child(3) {
    animation-delay: 0.6s;
}

.differential-item:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CTA Buttons */
.btn-cta-primary {
    background: linear-gradient(135deg, var(--jts-gold) 0%, #B8962E 100%);
    color: var(--jts-dark);
    font-variation-settings: 'wght' 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    color: var(--jts-dark);
}

.btn-cta-primary:focus-visible {
    outline: 3px solid var(--jts-white);
    outline-offset: 3px;
}

.btn-cta-secondary {
    background: transparent;
    color: var(--jts-white);
    font-variation-settings: 'wght' 500;
    padding: 0.875rem 2rem;
    border: 2px solid var(--jts-steel);
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.btn-cta-secondary:focus-visible {
    outline: 3px solid var(--jts-gold);
    outline-offset: 3px;
}

/* Highlight Strip */
.highlight-strip {
    background: var(--jts-navy);
    padding: 1.5rem 0;
}

.highlight-strip p {
    color: var(--jts-white);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0;
}

.highlight-strip strong {
    color: var(--jts-gold);
    font-variation-settings: 'wght' 600;
    font-style: italic;
}

/* Video Section */
.video-section {
    background: var(--jts-light);
    padding: 4rem 0;
}

.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(25, 38, 44, 0.2);
    aspect-ratio: 16/9;
    background: var(--jts-dark);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Benefits Section */
.benefits-section {
    background: var(--jts-white);
    padding: 5rem 0;
}

.section-tag {
    display: inline-block;
    background: var(--jts-navy);
    color: var(--jts-gold);
    font-size: 0.75rem;
    font-variation-settings: 'wght' 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.features-section .section-tag {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--jts-gold);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--jts-dark);
    margin-bottom: 1rem;
}

.benefit-card {
    background: var(--jts-light);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--jts-blue);
    box-shadow: 0 15px 40px rgba(25, 38, 44, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--jts-navy) 0%, var(--jts-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--jts-white);
    stroke-width: 2;
    fill: none;
}

.benefit-title {
    font-size: 1.25rem;
    color: var(--jts-dark);
    margin-bottom: 0.75rem;
}

.benefit-text {
    color: var(--jts-navy);
    font-variation-settings: 'wght' 300;
    font-size: 0.9375rem;
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, var(--jts-dark) 0%, var(--jts-navy) 100%);
    padding: 5rem 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(25, 38, 44, 0) 0%, var(--jts-dark) 100%);
    pointer-events: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(158, 179, 192, 0.2);
}

.feature-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--jts-gold);
    color: var(--jts-dark);
    font-variation-settings: 'wght' 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-content h3 {
    color: var(--jts-white);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--jts-steel);
    font-variation-settings: 'wght' 300;
    font-size: 0.9375rem;
    margin: 0;
}

/* Social Proof */
.social-proof {
    background: var(--jts-light);
    padding: 5rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--jts-navy);
    font-variation-settings: 'wght' 600;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number span {
    color: var(--jts-gold);
}

.stat-label {
    color: var(--jts-blue);
    font-size: 0.875rem;
    font-variation-settings: 'wght' 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.testimonial-card {
    background: var(--jts-white);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(25, 38, 44, 0.08);
}

.testimonial-text {
    color: var(--jts-dark);
    font-size: 1rem;
    font-variation-settings: 'wght' 400;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jts-blue) 0%, var(--jts-navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jts-white);
    font-variation-settings: 'wght' 600;
    font-size: 1.25rem;
    overflow: hidden;
    /* Ensures image stays circular */
}

.author-name {
    color: var(--jts-dark);
    font-variation-settings: 'wght' 600;
    font-size: 0.9375rem;
}

.author-role {
    color: var(--jts-blue);
    font-size: 0.8125rem;
    font-variation-settings: 'wght' 400;
}

/* FAQ Section */
.faq-section {
    background: var(--jts-white);
    padding: 5rem 0;
}

.faq-item {
    border: 1px solid var(--jts-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--jts-blue);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-family: var(--font-main);
    font-variation-settings: 'wght' 500;
    font-size: 1rem;
    color: var(--jts-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

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

.faq-question:focus-visible {
    outline: 3px solid var(--jts-blue);
    outline-offset: -3px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--jts-navy);
    font-variation-settings: 'wght' 300;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--jts-navy) 0%, var(--jts-dark) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(101, 145, 181, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.final-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--jts-white);
    margin-bottom: 1rem;
}

.final-cta-text {
    color: var(--jts-steel);
    font-size: 1.125rem;
    font-variation-settings: 'wght' 300;
    margin-bottom: 2rem;
}

.btn-cta-large {
    background: linear-gradient(135deg, var(--jts-gold) 0%, #B8962E 100%);
    color: var(--jts-dark);
    font-variation-settings: 'wght' 600;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.4);
}

.btn-cta-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.6);
    color: var(--jts-dark);
}

.btn-cta-large:focus-visible {
    outline: 3px solid var(--jts-white);
    outline-offset: 3px;
}

/* Footer */
.footer {
    background: var(--jts-dark);
    padding: 3rem 0 1.5rem;
}

.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--jts-steel);
    font-size: 0.875rem;
    font-variation-settings: 'wght' 300;
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: var(--jts-white);
    text-decoration: none;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--jts-gold);
}

.footer-contact a:focus-visible {
    outline: 2px solid var(--jts-gold);
    outline-offset: 2px;
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--jts-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--jts-gold);
}

.social-link:focus-visible {
    outline: 3px solid var(--jts-gold);
    outline-offset: 3px;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--jts-white);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--jts-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(158, 179, 192, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.copyright {
    color: var(--jts-steel);
    font-size: 0.8125rem;
    font-variation-settings: 'wght' 300;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-product {
        max-width: 300px;
        margin: 2rem auto 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        text-align: center;
    }

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

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

    .hero-cta-wrapper {
        text-align: center;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid var(--jts-blue);
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}