/* ========================================
   FENIX PVS - Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #1e293b;
    --secondary-dark: #0f172a;
    --accent: #f59e0b;
    --background: #f8fafc;
    --foreground: #1e293b;
    --card: #ffffff;
    --muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --black: #000000;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

.text-accent {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--border);
}

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

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

.btn-white:hover {
    background-color: var(--background);
    border-color: var(--background);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-link:hover {
    color: var(--white);
}

.top-bar-right {
    color: rgba(255, 255, 255, 0.7);
    display: none;
}

@media (min-width: 768px) {
    .top-bar-right {
        display: block;
    }
    .top-bar {
        display: block;
        
    }
}

@media (min-width: 430px) {
    .top-bar-right {
        display: block;
    }
    .top-bar {
        display: block;
        
    }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    background-color: var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: var(--radius);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo-accent {
    color: var(--primary);
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

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

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: inline-flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem;
}

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

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: var(--background);
    color: var(--primary);
}

.mobile-cta {
    margin-top: 1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    display: grid;
    gap: 3rem;
    color: var(--white);
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-locations {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-locations {
        grid-template-columns: 1fr 1fr;
    }
}

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-card svg {
    flex-shrink: 0;
    color: var(--primary);
}

.location-card strong {
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-badge-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-title-light {
    color: var(--white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-red {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--primary);
}

.service-icon-orange {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.service-icon-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.service-icon-green {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.service-icon-dark {
    background-color: rgba(30, 41, 59, 0.1);
    color: var(--secondary);
}

.service-icon-yellow {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.service-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background-color: var(--background);
}

.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-content .section-badge,
.about-content .section-title {
    text-align: left;
}

.about-text {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.about-feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

.about-locations {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.location-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.location-box-header svg {
    color: var(--primary);
}

.location-box-header h3 {
    font-size: 1.25rem;
}

.location-address {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.location-info {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.why-us-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-us-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.why-us-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.why-us-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}

.why-us-title {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.why-us-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
}

.cta-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-form-wrapper {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background-color: var(--secondary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.contact-info-title {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.contact-item a,
.contact-item span {
    color: var(--white);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-locations {
    display: grid;
    gap: 1rem;
}

.contact-location {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-location h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-location p {
    color: var(--muted);
    font-size: 0.875rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--secondary-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo .logo-placeholder {
    background-color: var(--white);
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-contact a {
    color: var(--white);
}

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

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

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

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

/* ========================================
   UTILITIES
   ======================================== */
@media (max-width: 639px) {
    .top-bar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
