/* CSS Custom Properties */
:root {
    --color-bg: #181818;
    --color-surface: #262626;
    --color-surface-light: #2a2a2a;
    --color-accent: #D2673B;
    --color-accent-gradient: linear-gradient(135deg, #ff6b35, #ff8c42);
    --color-text: #ffffff;
    --color-text-muted: #b0b0b0;
    --color-border: #333333;
    --color-error: #ff4444;
    --color-success: #44ff44;
    --button-primary-gradient-color: linear-gradient(24deg, #D2673B, #F0945B, #D2673B);

    --font-primary: 'Poppins', 'Inter', sans-serif;
    --font-size-base: 16px;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;

    --border-radius: 12px;
    --hero-border-radius: 19px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Hero-specific variables */
    --hero-image-width: 93%;
    --hero-section-height: 32.625rem;
    --hero-image-gradient: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(218, 91, 0, 0.301) 100%);
    --hero-image-corner-radius: 46px;
    --hero-icon-size: 3.5rem;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 30px;
}

p {
    color: var(--color-text-muted);
}

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

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Shared Button Styles */
.btn,
.primary-button,
.btn-primary-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

/* Standard Buttons */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Header */
.header {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    z-index: 1000;
}

.header .container {
    max-width: 93%;
    background: var(--color-surface);
    border-radius: var(--hero-border-radius);
    padding: 1.313rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 79px;
}

.logo,
.logo-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo {
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.5rem;
    height: 2.313rem;
}

.logo-footer {
    height: 3.313rem;
}

.nav,
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    gap: 1.813rem;
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
    transform-origin: center;
}

.nav-menu a {
    color: var(--color-text);
    transition: var(--transition);
    font-weight: 400;
}

.nav-menu a:hover {
    color: transparent;
    background: radial-gradient(circle at center, #e47f54 0%, #D56C3F 20% 70%, #6F3821 100%);
    background-clip: text;
    -webkit-background-clip: text;
}


/* --- Caton Section Styles --- */

.caton-section {
    background-color: var(--color-bg);
    padding: var(--spacing-xxl) 0;
    margin-top: var(--spacing-xxl);
}

.caton-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
}

/* Left Column */
.caton-content {
    flex: 1;
    max-width: 650px;
    display: flex;
    flex-direction: column;
}

.caton-logo {
    height: 70px;
    width: auto;
    align-self: flex-start;
    margin-bottom: var(--spacing-lg);
}

.caton-title {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.caton-title .dot {
    color: var(--color-accent);
}

.caton-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 95%;
}

/* Right Column */
.caton-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-xl);
}

/* Button Adjustments */
.caton-btn {
    min-width: 220px;
    font-weight: 400;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .caton-wrapper {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .caton-actions {
        width: 100%;
        flex-direction: row;
        /* Buttons side-by-side on mobile */
        padding-top: 0;
    }

    .caton-btn {
        flex: 1;
        /* Stretch to fill width */
    }

    .caton-title {
        font-size: 2.25rem;
    }
}

/* --- Caton Features Row --- */
.caton-features-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertically centers the list with the image */
    margin-top: 5rem;
    /* Large space between the title section and this list */
    gap: var(--spacing-xl);
}

.peplink-question {
    font-size: 30px;
    margin-top: var(--spacing-lg);
    color: var(--color-text);
}

.peplink-title {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--color-text);
    margin-top: 100px;
    margin-bottom: var(--spacing-md);
}

/* List Container */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    /* Space between list items */
    flex: 1;
    /* Takes up left half */
}

/* Individual Item */
.feature-item {
    display: flex;
    font-size: 20px;
    align-items: center;
    /* Aligns number box with text */
    gap: var(--spacing-md);
}

/* The Orange Number Box */
.feature-number {
    background: var(--color-accent-gradient);
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.5rem;
    /* Fixed square shape */
    width: 50px;
    height: 50px;
    min-width: 50px;
    /* Prevents shrinking */
    border-radius: 12px;
    /* Rounded corners like image */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(210, 103, 59, 0.2);
}

/* The Text */
.feature-item p {
    color: var(--color-text);
    /* White text */
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
    /* Remove default p margin */
}

/* Right Side Image */
.features-image-container {
    flex: 1;
    /* Takes up right half */
    display: flex;
    justify-content: flex-end;
    /* Aligns image to the right */
}

.features-img {
    max-width: 100%;
    height: auto;
    max-width: 800px;
}

/* Mobile Responsiveness for the new section */
@media (max-width: 900px) {
    .caton-features-row {
        flex-direction: column-reverse;
        /* Puts image on top, list on bottom? Or just column */
        margin-top: var(--spacing-xl);
    }

    .features-image-container {
        justify-content: center;
        margin-bottom: var(--spacing-lg);
    }
}

/* --- Caton Summary Section --- */
.caton-summary {
    margin-top: var(--spacing-xxl);
    /* Large gap from the illustration above */
    max-width: 900px;
    /* Limits width so lines don't get too long and hard to read */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligns content to the left */
    padding-bottom: var(--spacing-xl);
    /* Bottom padding before footer */
}

.summary-text {
    color: var(--color-text);
    /* Pure white, overriding the default muted p color */
    font-size: 1.125rem;
    /* Slightly larger for emphasis */
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    /* Space between text and button */
}

.summary-btn {
    margin-top: 70px;
    min-width: 160px;
    /* Consistent button sizing */
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 32px;
    /* Slightly taller/wider padding for a CTA */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .caton-summary {
        margin-top: 10px;
    }

    .summary-text {
        font-size: 1rem;
    }

    .summary-btn {
        width: 100%;
        /* Full width button on mobile */
    }
}

/* Footer Container */
.footer {
    background-color: #0d0d0d;
    padding: var(--spacing-xxl) 0 var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl);
    border-top: 1px solid #1a1a1a;
}

/* 3-Column Grid Layout */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    align-items: start;
    margin-bottom: var(--spacing-xxl);
}

/* Base Styles for Columns */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* --- Column 1: Brand/Address --- */
.brand-col {
    gap: var(--spacing-md);
    max-width: 320px;
}

.brand-col address {
    font-style: normal;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.brand-col address a {
    color: var(--color-text);
    text-decoration: none;
}

/* --- Column 2: Navigation (The Middle) --- */
.nav-col {
    justify-self: center;
}

.nav-col h3,
.social-col h3 {
    color: var(--color-accent);
    /* Orange */
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.nav-col ul {
    list-style: none;
}

.nav-col li {
    margin-bottom: 12px;
}

.nav-col a {
    color: var(--color-text);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* --- Column 3: Socials --- */
.social-col {
    padding-left: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Instagram Gradient */
.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Whatsapp Green */
.social-icon.whatsapp {
    background-color: #2cd46b;
}

/* Bottom Section */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.privacy-link {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .brand-col {
        max-width: 100%;
    }
}


.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
    margin-top: 80px;
}

/* IMAGEM */
.partnership-visual img {
    width: 100%;
    max-width: 420px;
}

/* TEXTO */
.partnership-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.partnership-content h2 span {
    color: #ff7a2f;
}

.partnership-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 20px;
    max-width: 520px;
}

/* BOTÃO */
.btn-partnership {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    background: linear-gradient(90deg,
            #D66F40 0%,
            #EB8A55 53%,
            #D2693A 100%);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
}

.btn-partnership:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* RESPONSIVO */
@media (max-width: 960px) {
    .partnership-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partnership-visual img {
        margin: 0 auto 40px;
    }

    .partnership-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.small-pixels-summary-text {
    margin-top: 70px;
    color: var(--color-text);
    font-size: 1.125rem;
    line-height: 1.6;
}

.system-features-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertically centers the list with the image */
    /* Large space between the title section and this list */
    gap: var(--spacing-xl);
}

/* MODAL BASE */
.pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

/* FUNDO ESCURO */
.pdf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* CONTEÚDO */
.pdf-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  height: 80vh;
  margin: auto;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* PDF */
.pdf-content iframe {
  width: 100%;
  height: 100%;
}

/* BOTÃO FECHAR */
.pdf-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ff7a2f;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}

/* ATIVO */
.pdf-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .pdf-content {
    width: 95%;
    height: 85vh;
  }
}
