/* ============================================
   Padronize Esquadrias - DESIGN PREMIUM
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Tema Elegante */
:root {
    /* Cores Principais */
    --primary: #0a1628;
    --primary-light: #1a2d4a;
    --secondary: #c9a962;
    --secondary-light: #e8d5a3;
    --accent: #00d4aa;
    --accent-glow: rgba(0, 212, 170, 0.3);
    
    /* Gradientes Premium */
    --gradient-gold: linear-gradient(135deg, #c9a962 0%, #f4e4b5 50%, #c9a962 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1d35 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-hero: linear-gradient(160deg, #0a1628 0%, #1a2d4a 40%, #0d2137 70%, #0a1628 100%);
    --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00a88a 100%);
    
    /* Neutros */
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.2);
    --shadow-gold: 0 8px 30px rgba(201, 169, 98, 0.3);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.2);
    
    /* Tipografia */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    
    /* Espaçamentos */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* Reset e Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--off-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Seleção de Texto */
::selection {
    background: var(--secondary);
    color: var(--primary);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2.5rem);
}

/* ============================================
   HEADER - Design Elegante
   ============================================ */
.header {
    background: var(--gradient-dark);
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.5;
}

.header .container {
    text-align: center;
}

.header .logo {
    text-decoration: none;
    color: var(--white);
    display: inline-block;
}

.header .logo h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: all 0.3s ease;
}

.header .logo:hover h1 {
    filter: brightness(1.2);
    transform: scale(1.02);
}

/* ============================================
   HERO SECTION - Visual Impactante
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 0;
    padding-top: 100px;
    overflow: hidden;
    background: var(--gradient-hero);
}

/* Padrão Geométrico de Fundo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 169, 98, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 212, 170, 0.05) 0%, transparent 30%);
    z-index: 1;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Linhas Decorativas */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(201, 169, 98, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(201, 169, 98, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg.webp') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
    filter: grayscale(30%);
}

/* Formas Decorativas Flutuantes */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero .container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 50%;
    animation: floatShape 15s ease-in-out infinite;
}

.hero .container::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 212, 170, 0.15);
    transform: rotate(45deg);
    animation: floatShape 12s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    padding: var(--space-md);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-gray);
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-ctas a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--gradient-gold);
    color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(201, 169, 98, 0.5);
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--secondary);
    color: var(--secondary-light);
    transform: translateY(-4px);
}

.cta-tertiary {
    background: var(--gradient-accent);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.cta-tertiary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.4);
}

.cta-urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.cta-urgent:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

/* ============================================
   WHATSAPP FLUTUANTE - Premium
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: whatsappPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0; }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: var(--space-xl) 0;
    background: var(--off-white);
    position: relative;
}

/* Padrão de fundo sutil */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 100% 0%, rgba(201, 169, 98, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   CONTENT SECTIONS - Cards Premium
   ============================================ */
.content-section {
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 98, 0.1);
}

/* Linha decorativa superior */
.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Elemento decorativo de canto */
.content-section::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.content-section:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 98, 0.3);
}

.content-section:hover::before {
    transform: scaleX(1);
}

.content-section:hover::after {
    transform: scale(1.5);
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section:hover h2::after {
    width: 120px;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.content-section p:last-of-type {
    margin-bottom: 0;
}

/* ============================================
   CTA SECTIONS - Botões Premium
   ============================================ */
.cta-section {
    text-align: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

.cta-content {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
    background: var(--primary);
}

.cta-content:hover::before {
    left: 100%;
}

.cta-content i {
    font-size: 1.1rem;
    color: var(--secondary);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    text-align: center;
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.map-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.map-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    height: 450px;
    transition: all 0.4s ease;
    border: 3px solid rgba(201, 169, 98, 0.2);
}

.map-container:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 60px rgba(10, 22, 40, 0.15);
    border-color: rgba(201, 169, 98, 0.4);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FOOTER - Design Elegante
   ============================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
    overflow: hidden;
}

/* Padrão decorativo */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
    text-align: center;
    justify-items: center;
}

.footer-info h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info > p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.85);
}

.contact-info p i {
    color: var(--secondary);
    width: 20px;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-light);
}

.contact-info a:hover::after {
    width: 100%;
}

.cities {
    font-style: normal;
    color: rgba(255,255,255,0.6);
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.95rem;
}

/* ============================================
   SITEMAP STYLES
   ============================================ */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.sitemap-category {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sitemap-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
}

.sitemap-category h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sitemap-category h2 i {
    color: var(--secondary);
}

.sitemap-category ul {
    list-style: none;
}

.sitemap-category li {
    margin-bottom: 0.5rem;
}

.sitemap-category a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.375rem 0;
    padding-left: 1rem;
    position: relative;
}

.sitemap-category a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--light-gray);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sitemap-category a:hover {
    color: var(--primary);
    padding-left: 1.5rem;
}

.sitemap-category a:hover::before {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.5);
}

.map-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    text-align: center;
}

.back-to-home {
    text-align: center;
    margin-top: var(--space-lg);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.btn-primary i {
    color: var(--secondary);
}

/* ============================================
   SCROLL TO TOP INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator a {
    color: var(--secondary);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}
