/**
 * Reusable Component Styles
 * HVTRINDADE Consultoria - Professional Components
 */

/* ========================================
   BASE STYLES
   ======================================== */

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-bg-body);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-heading);
    margin-bottom: var(--space-3xl);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-3xl);
}

strong, b {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-heading);
}

em, i {
    font-style: italic;
}

blockquote {
    font-style: italic;
    position: relative;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--space-4xl);
    padding-right: var(--space-4xl);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border: var(--border-width-medium) solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: var(--border-width-medium) solid var(--color-primary);
    outline-offset: 2px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Button Variants */
.btn-primary {
    background-color: var(--color-cta);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-primary);
}

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

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-secondary:active {
    background-color: var(--color-primary-700);
}

/* Button Sizes */
.btn-primary-large,
.btn-secondary-large {
    padding: var(--space-3xl) var(--space-5xl);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
}

.btn-title {
    font-weight: var(--font-weight-semibold);
}

.btn-subtitle {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    opacity: 0.9;
}

/* Nav CTA Button - Removed, using regular nav-link style */

/* ========================================
   SECTION LABELS & TITLES
   ======================================== */

.section-label,
.section-label-white {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    color: var(--color-primary);
    margin-bottom: var(--space-2xl);
}

.section-label-white {
    color: var(--color-text-inverse);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-3xl);
}

.section-title-white {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-3xl);
}

.section-subtitle,
.section-subtitle-white {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6xl);
    max-width: var(--content-width-prose);
}

.section-subtitle-white {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background-color: var(--color-neutral-0);
    border: var(--border-width-thin) solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Service Cards */
.service-card {
    background-color: var(--color-neutral-0);
    padding: var(--space-5xl);
    border-radius: var(--radius-xl);
    border: var(--border-width-thin) solid var(--color-border-light);
    transition: all var(--transition-base);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-primary-200) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3xl);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--color-primary-200) 0%, var(--color-primary-300) 100%);
}

.service-icon i {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.service-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-snug);
}

.service-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-primary);
    margin: 0;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
}

.badge-primary {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-success {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

/* ========================================
   IMAGES
   ======================================== */

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-smooth);
}

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

/* ========================================
   ICONS
   ======================================== */

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

/* ========================================
   LISTS
   ======================================== */

.list-styled {
    list-style: disc;
    padding-left: var(--space-4xl);
}

.list-styled li {
    margin-bottom: var(--space-2xl);
    padding-left: var(--space-md);
}

/* ========================================
   HIGHLIGHTS
   ======================================== */

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    transition: all var(--transition-base);
}

.highlight-item:hover {
    transform: translateX(4px);
}

.highlight-icon {
    width: 24px;
    height: 24px;
    color: var(--color-success);
    flex-shrink: 0;
}

.highlight-item span {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-heading);
}

/* ========================================
   QUOTES
   ======================================== */

.quote-icon,
.quote-icon-large {
    color: var(--color-primary);
    flex-shrink: 0;
}

.quote-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-2xl);
}

.quote-icon-large {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3xl);
}

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

.back-to-top {
    position: fixed;
    bottom: var(--space-4xl);
    right: var(--space-4xl);
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-index-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-700);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top i {
    width: 24px;
    height: 24px;
}

/* ========================================
   HAMBURGER MENU ICON
   ======================================== */

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-heading);
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-heading);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
[data-animate] {
    opacity: 0;
}

[data-animate].animated {
    animation-duration: var(--duration-slow);
    animation-fill-mode: both;
    animation-timing-function: var(--ease-smooth);
}

[data-animate="fade-up"].animated {
    animation-name: fadeInUp;
}

[data-animate="fade-right"].animated {
    animation-name: fadeInRight;
}

[data-animate="fade-left"].animated {
    animation-name: fadeInLeft;
}

[data-animate="scale-in"].animated {
    animation-name: scaleIn;
}

/* ========================================
   UTILITIES
   ======================================== */

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

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hidden {
    display: none;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
