/* ================================================
   PROWARE - CSS Design System
   ================================================ */

/* CSS Variables */
:root {
    --background: hsl(220, 20%, 6%);
    --foreground: hsl(210, 20%, 95%);
    --card: hsl(220, 18%, 10%);
    --card-foreground: hsl(210, 20%, 95%);
    --primary: hsl(160, 70%, 45%);
    --primary-foreground: hsl(220, 20%, 6%);
    --secondary: hsl(220, 15%, 15%);
    --secondary-foreground: hsl(210, 20%, 95%);
    --muted: hsl(220, 15%, 18%);
    --muted-foreground: hsl(210, 10%, 60%);
    --border: hsl(220, 15%, 20%);
    --glow: hsl(160, 80%, 50%);
    --green: hsl(142, 69%, 58%);
    --whatsapp: hsl(142, 70%, 49%);
    --destructive: hsl(0, 84%, 60%);
    --radius: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container-full {
    width: 100%;
    padding: 0 1.5rem;
}

/* Text Utilities */
.text-justify {
    text-align: justify;
}

.text-foreground {
    color: var(--foreground);
}

.text-primary {
    color: var(--primary);
    font-weight: 600;
}

.text-green {
    color: var(--green);
}

.text-gradient {
    background: linear-gradient(to right, hsl(142, 69%, 58%), hsl(174, 72%, 56%), hsl(187, 85%, 53%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 30px hsla(160, 80%, 50%, 0.5);
}

.glow-box {
    box-shadow: 0 0 40px -10px hsla(160, 80%, 50%, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(220, 20%, 6%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(220, 15%, 20%, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nav {
        gap: 1rem;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
    background-color: hsla(220, 15%, 20%, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: hsla(160, 70%, 40%, 1);
    box-shadow: 0 0 40px -10px hsla(160, 80%, 50%, 0.4);
}

.btn-whatsapp {
    background-color: hsl(142, 70%, 49%);
    color: white;
}

.btn-whatsapp:hover {
    background-color: hsl(142, 70%, 44%);
}

.whatsapp-text {
    display: none;
}

@media (min-width: 640px) {
    .whatsapp-text {
        display: inline;
    }
}

/* Fixed Logo */
.fixed-logo {
    position: absolute;
    top: 4rem;
    left: 1rem;
    z-index: 40;
    height: 5rem;
    width: 5rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .fixed-logo {
        height: 5rem;
        width: 5rem;
    }
}

@media (min-width: 768px) {
    .fixed-logo {
        height: 9rem;
        width: 9rem;
    }
}

@media (min-width: 1024px) {
    .fixed-logo {
        height: 11rem;
        width: 11rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 9rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

@media (min-width: 640px) {
    .hero {
        padding-top: 12rem;
    }
}

@media (min-width: 768px) {
    .hero {
        padding-top: 15rem;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        hsla(220, 20%, 6%, 0.8), 
        hsla(220, 20%, 6%, 0.7), 
        hsl(220, 20%, 6%)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-inner {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsla(160, 70%, 45%, 0.3);
    background-color: hsla(160, 70%, 45%, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--primary);
    margin: 0 auto;
}

.badge-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

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

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.8;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--background);
}

@media (min-width: 768px) {
    .about-section {
        padding: 8rem 0;
    }
}

.about-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

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

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .about-text {
        font-size: 1.125rem;
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: hsla(220, 18%, 10%, 0.3);
}

@media (min-width: 768px) {
    .services-section {
        padding: 8rem 0;
    }
}

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

.section-subtitle {
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

@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: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: hsla(160, 70%, 45%, 0.5);
    transform: translateY(-4px);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsla(160, 70%, 45%, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

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

/* Footer Section */
.footer-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .footer-section {
        padding: 8rem 0;
    }
}

.footer-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(160, 70%, 45%, 0.05), transparent);
}

.footer-content {
    position: relative;
    text-align: center;
}

.footer-inner {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-inner h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .footer-inner h2 {
        font-size: 1.875rem;
    }
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .tagline {
        font-size: 1.5rem;
    }
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid hsla(220, 15%, 20%, 0.5);
}

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

/* ================================================
   PAGE STYLES (Estrutura, Serviços, Contato)
   ================================================ */

/* Page Background */
.page-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: hsla(220, 20%, 6%, 0.85);
}

/* Page Main */
.page-main {
    position: relative;
    z-index: 10;
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
    .page-title {
        font-size: 2.25rem;
    }
}

/* Content Card */
.content-card {
    background-color: hsla(220, 18%, 10%, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid hsla(220, 15%, 20%, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .content-card {
        padding: 3rem;
    }
}

.content-card p {
    font-size: 1.125rem;
    color: hsla(210, 20%, 95%, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .content-card p {
        font-size: 1.25rem;
    }
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* Features Grid (Estrutura) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: hsla(220, 18%, 10%, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid hsla(220, 15%, 20%, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: hsla(160, 70%, 45%, 0.5);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsla(160, 70%, 45%, 0.2);
    border-radius: 50%;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Equipment Grid */
.equipment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .equipment-grid {
        flex-wrap: nowrap;
    }
}

.equipment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equipment-item img {
    height: auto;
    max-height: 12rem;
    object-fit: contain;
}

.equipment-item p {
    font-size: 0.75rem;
    color: white;
    margin-top: 0.5rem;
}

/* Servicos Page */
.servicos-page .page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.servicos-page .page-description {
    font-size: 1.125rem;
    color: var(--foreground);
    max-width: 56rem;
    margin: 0 auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .servicos-page .page-description {
        font-size: 1.25rem;
    }
}

.servicos-page .section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .servicos-page .section-subtitle {
        font-size: 2.25rem;
    }
}

.servicos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

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

.servico-card {
    background-color: hsla(220, 18%, 10%, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid hsla(220, 15%, 20%, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.servico-card:hover {
    border-color: hsla(160, 70%, 45%, 0.5);
    background-color: hsla(220, 18%, 10%, 0.7);
}

.servico-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.servico-bullet {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.servico-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.servico-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ================================================
   CONTATO PAGE
   ================================================ */

.contato-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contato-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-color: hsla(220, 20%, 6%, 0.8);
    backdrop-filter: blur(4px);
}

.contato-main {
    position: relative;
    z-index: 10;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.contato-container {
    max-width: 42rem;
}

.contato-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

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

.contato-subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: hsla(142, 70%, 45%, 0.1);
    border: 1px solid hsla(142, 70%, 45%, 0.3);
    color: var(--green);
}

.alert-error {
    background-color: hsla(0, 84%, 60%, 0.1);
    border: 1px solid hsla(0, 84%, 60%, 0.3);
    color: var(--destructive);
}

/* Form */
.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.required {
    color: var(--destructive);
}

.form-group input,
.form-group textarea {
    background-color: hsla(220, 20%, 6%, 0.5);
    border: 1px solid hsla(220, 15%, 20%, 0.5);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--foreground);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.form-group textarea {
    resize: none;
}

.char-count {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: right;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px dashed hsla(220, 15%, 20%, 0.5);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--muted-foreground);
    transition: border-color 0.2s;
}

.file-label:hover {
    border-color: hsla(160, 70%, 45%, 0.5);
}

/* Submit Button */
.btn-submit {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-submit:hover {
    background-color: hsla(160, 70%, 40%, 1);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
