/* ==========================================================================
   CSS Custom Properties (Standard Workspace Template: Poppins & Inter)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette matching Master Prime Logo */
    --color-primary: #030f26;       /* Deep dark navy matching logo background */
    --color-primary-light: #0b1a38; /* Mid twilight blue */
    --color-accent-gold: #cca227;      /* Vibrant gold from the logo P */
    --color-accent-gold-light: #f0d375;/* Lighter metallic gold */
    --color-accent-hover: #b08b1a;     /* Warm bronze gold */
    
    --color-background: #f8fafc;    /* Clean background */
    --color-surface: #ffffff;
    --color-text: #334155;          /* Slate text */
    --color-text-light: #64748b;    /* Light slate */
    --color-heading: #030f26;       /* Deep dark navy matching logo */
    --color-border: #e2e8f0;        /* Cool white border */
    
    /* WhatsApp Color */
    --color-whatsapp: #25d366;      
    --color-whatsapp-hover: #128c7e;

    /* Shadows & Glows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(3, 15, 38, 0.08), 0 8px 10px -6px rgba(3, 15, 38, 0.08);
    --shadow-xl: 0 20px 50px -10px rgba(3, 15, 38, 0.12);
    --shadow-gold-glow: 0 0 20px rgba(204, 162, 39, 0.25);

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Borders & Transitions */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--color-heading);
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-glow);
}

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

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-glow {
    position: relative;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--color-primary);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

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

.nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--color-accent-gold);
}

.btn-nav-cta {
    background-color: transparent;
    border: 1px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-nav-cta:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(3, 15, 38, 0.95) 0%, rgba(3, 15, 38, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=2070') center/cover;
    color: white;
    padding-top: 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(204, 162, 39, 0.15);
    border: 1px solid rgba(204, 162, 39, 0.3);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-gold-light);
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    color: white;
    font-weight: 800;
}

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

.hero-description {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.decorative-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: white;
    color: var(--color-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 5;
}

.decorative-card p {
    font-weight: 600;
    font-size: 0.9rem;
}

.icon-success {
    color: #10b981;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-gold);
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-gold);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--color-accent-gold);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xs);
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-image-side {
    flex: 1;
    position: relative;
}

.about-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-image-side::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent-gold);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-content-side {
    flex: 1;
}

.section-tag {
    color: var(--color-accent-gold);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.about-content-side h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.about-content-side p {
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.about-content-side .btn {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    background: rgba(204, 162, 39, 0.1);
    color: var(--color-accent-gold);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-top: 2px;
}

.contact-link:hover {
    color: var(--color-accent-gold);
    text-decoration: underline;
}

.company-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.company-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.company-card p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

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

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

.form-group label {
    font-weight: 600;
    color: var(--color-heading);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(204, 162, 39, 0.1);
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.small-icon {
    width: 14px;
    height: 14px;
}

.contact-form-wrapper button {
    background-color: var(--color-whatsapp);
    color: white;
}

.contact-form-wrapper button:hover {
    background-color: var(--color-whatsapp-hover);
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-brand .logo {
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

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

.footer-security p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.security-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-gold);
    font-weight: 600;
}

.security-email:hover {
    color: var(--color-accent-gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

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

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    z-index: 9999;
    transition: var(--transition);
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.cookie-content a {
    text-decoration: underline;
    font-weight: 500;
}

/* ==========================================================================
   Page Header (Termos e Privacidade)
   ========================================================================== */
.page-header {
    background-color: var(--color-primary-light);
    color: white;
    padding: var(--spacing-lg) 0;
    margin-top: 80px;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0;
}

.legal-content {
    padding: var(--spacing-lg) 0;
    background-color: white;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-text p, .legal-text ul {
    margin-bottom: 1.25rem;
    color: var(--color-text);
    font-size: 1rem;
}

.legal-text ul {
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-image-wrapper {
        display: none; /* Hide decorative image on medium/small viewports */
    }
    .about-wrapper {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Mobile navigation toggle can be added, otherwise hide */
    }
    section {
        padding: var(--spacing-lg) 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .about-content-side h2 {
        font-size: 2rem;
    }
    .contact-info h2 {
        font-size: 2rem;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}
