/* ==========================================================================
   PEREIRA E SANTOS CONSTRUTORA - DESIGN SYSTEM TOKENS
   ========================================================================== */

:root {
    /* Colors - Brand */
    --color-gold-300: #E3CD98;
    --color-gold-400: #D4B671;
    --color-gold-500: #C5A059; /* Primary Accent */
    --color-gold-600: #A88645;
    --color-gold-700: #886A32;

    /* Colors - Neutrals (Light Theme) */
    --color-surface-base: #FFFFFF;
    --color-surface-sunken: #F8F9FA;
    --color-surface-raised: #FFFFFF;
    --color-border-subtle: #E9ECEF;
    --color-border-default: #DEE2E6;
    --color-border-strong: #CED4DA;

    --color-text-heading: #1A1A1A;
    --color-text-body: #495057;
    --color-text-muted: #868E96;
    --color-text-inverse: #FFFFFF;

    /* Colors - Semantic */
    --color-success: #2B8A3E;
    --color-warning: #E67700;
    --color-error: #C92A2A;
    --color-info: #1864AB;

    /* Typography */
    --font-family-display: 'Playfair Display', serif;
    --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --spacing-1: 0.25rem;  /* 4px */
    --spacing-2: 0.5rem;   /* 8px */
    --spacing-3: 0.75rem;  /* 12px */
    --spacing-4: 1rem;     /* 16px */
    --spacing-5: 1.5rem;   /* 24px */
    --spacing-6: 2rem;     /* 32px */
    --spacing-8: 3rem;     /* 48px */
    --spacing-12: 4.5rem;  /* 72px */
    --spacing-16: 6rem;    /* 96px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 10px 25px -5px rgba(197, 160, 89, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-default: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 280px;
    --content-max-width: 1200px;
    --header-height: 150px;
}

[data-theme="dark"] {
    --color-surface-base: #121212;
    --color-surface-sunken: #0A0A0A;
    --color-surface-raised: #1A1A1A;
    --color-border-subtle: #2A2A2A;
    --color-border-default: #333333;
    --color-border-strong: #444444;

    --color-text-heading: #F8F9FA;
    --color-text-body: #CED4DA;
    --color-text-muted: #868E96;
    --color-text-inverse: #1A1A1A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--color-surface-base);
    color: var(--color-text-body);
    line-height: 1.6;
    transition: background-color var(--transition-default), color var(--transition-default);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    color: var(--color-text-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-3);
}

a {
    color: var(--color-text-heading);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-500);
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.ds-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.ds-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-surface-sunken);
    border-right: 1px solid var(--color-border-subtle);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: var(--spacing-6) var(--spacing-4);
    z-index: 100;
    transition: transform var(--transition-default);
}

.ds-sidebar::-webkit-scrollbar {
    width: 6px;
}
.ds-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--color-border-strong);
    border-radius: var(--radius-full);
}

.ds-brand {
    margin-bottom: var(--spacing-8);
}

.ds-brand h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-1);
    background: linear-gradient(135deg, var(--color-gold-400), var(--color-gold-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ds-brand p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ds-nav-group {
    margin-bottom: var(--spacing-6);
}

.ds-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-3);
    padding-left: var(--spacing-3);
}

.ds-nav-list li a {
    display: block;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.875rem;
    color: var(--color-text-body);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.ds-nav-list li a:hover {
    background-color: var(--color-border-subtle);
    color: var(--color-text-heading);
}

.ds-nav-list li a.active {
    background-color: var(--color-gold-500);
    color: var(--color-text-inverse);
}

/* Main Content */
.ds-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0 var(--spacing-8);
    position: relative;
}

.ds-content-wrapper {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding-bottom: var(--spacing-16);
}

/* Section Header */
.ds-section {
    padding-top: var(--spacing-16);
    margin-bottom: var(--spacing-12);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: var(--spacing-12);
}

.ds-section-header {
    margin-bottom: var(--spacing-8);
}

.ds-section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-2);
}

.ds-section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 800px;
}

/* Theme Toggle */
.ds-theme-toggle {
    position: fixed;
    top: var(--spacing-6);
    right: var(--spacing-6);
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--color-surface-raised);
    border: 1px solid var(--color-border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-heading);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.ds-theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold-500);
    color: var(--color-gold-500);
}

/* Component Preview Area */
.ds-preview {
    background-color: var(--color-surface-sunken);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-lg);
    padding: var(--spacing-8);
    margin-bottom: var(--spacing-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-4);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

/* Grid lines overlay for layout feel */
.ds-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--color-border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.ds-preview > * {
    z-index: 1;
}

.ds-preview.align-start {
    justify-content: flex-start;
    align-items: flex-start;
}

.ds-preview.stack {
    flex-direction: column;
    align-items: stretch;
}

/* Code Snippet */
.ds-code {
    background-color: #1A1A1A; /* Always dark for code */
    border-radius: var(--radius-md);
    padding: var(--spacing-4);
    position: relative;
    margin-bottom: var(--spacing-8);
}

.ds-code pre {
    font-family: var(--font-family-mono);
    color: #E9ECEF;
    font-size: 0.875rem;
    overflow-x: auto;
}

.ds-code-copy {
    position: absolute;
    top: var(--spacing-2);
    right: var(--spacing-2);
    padding: var(--spacing-1) var(--spacing-2);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.ds-code-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   COMPONENTS - BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-family-sans);
    border-radius: var(--radius-sm);
    transition: all var(--transition-default);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

/* Primary Button */
.btn-primary {
    background-color: var(--color-gold-500);
    color: #FFFFFF;
}

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

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    color: var(--color-text-heading);
    border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
    border-color: var(--color-text-heading);
    background-color: var(--color-text-heading);
    color: var(--color-surface-base);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--color-gold-500);
    border: 1px solid var(--color-gold-500);
}

.btn-outline:hover {
    background-color: var(--color-gold-500);
    color: #FFFFFF;
    box-shadow: var(--shadow-gold);
}

/* Ghost Button */
.btn-ghost {
    background-color: transparent;
    color: var(--color-text-body);
}

.btn-ghost:hover {
    background-color: var(--color-surface-raised);
    color: var(--color-gold-500);
}

/* Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

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

/* ==========================================================================
   COMPONENTS - CARDS
   ========================================================================== */
.card {
    background-color: var(--color-surface-raised);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-default);
    overflow: hidden;
    transition: all var(--transition-default);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-gold-500);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--color-surface-sunken);
}

.card-body {
    padding: var(--spacing-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--color-gold-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--spacing-2);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-3);
    font-family: var(--font-family-display);
}

.card-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-5);
    flex: 1;
}

.card-footer {
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Premium Card (Dark Variant) */
.card-premium {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border: 1px solid #333;
}

.card-premium .card-title {
    color: #FFFFFF;
}

.card-premium:hover {
    border-color: var(--color-gold-500);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   COMPONENTS - BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-gold {
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--color-gold-600);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.badge-dark {
    background-color: var(--color-text-heading);
    color: var(--color-surface-base);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-body);
}

/* ==========================================================================
   COMPONENTS - FORMS
   ========================================================================== */
.form-group {
    margin-bottom: var(--spacing-4);
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-2);
    color: var(--color-text-heading);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-body);
    background-color: var(--color-surface-base);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold-500);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-text {
    display: block;
    margin-top: var(--spacing-1);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   COMPONENTS - ALERTS
   ========================================================================== */
.alert {
    padding: var(--spacing-4) var(--spacing-5);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
    border-left: 4px solid transparent;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content h4 {
    margin-bottom: var(--spacing-1);
    font-size: 1rem;
    font-family: var(--font-family-sans);
}

.alert-content p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.alert-info {
    background-color: rgba(24, 100, 171, 0.05);
    border-color: var(--color-info);
    color: var(--color-info);
}

.alert-info h4 { color: var(--color-info); }

.alert-gold {
    background-color: rgba(197, 160, 89, 0.05);
    border-color: var(--color-gold-500);
    color: var(--color-gold-700);
}

.alert-gold h4 { color: var(--color-gold-700); }
[data-theme="dark"] .alert-gold { color: var(--color-gold-400); }
[data-theme="dark"] .alert-gold h4 { color: var(--color-gold-300); }

/* ==========================================================================
   COMPONENTS - TABLES
   ========================================================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.table th {
    background-color: var(--color-surface-sunken);
    font-weight: 600;
    color: var(--color-text-heading);
    padding: var(--spacing-3) var(--spacing-4);
    border-bottom: 1px solid var(--color-border-strong);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.table td {
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text-body);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: var(--color-surface-sunken);
}

/* ==========================================================================
   COMPONENTS - ACCORDION
   ========================================================================== */
.accordion {
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border-default);
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-4) var(--spacing-5);
    font-weight: 600;
    color: var(--color-text-heading);
    background-color: var(--color-surface-base);
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--color-surface-sunken);
}

.accordion-icon {
    transition: transform var(--transition-default);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-gold-500);
}

.accordion-item.active .accordion-header {
    color: var(--color-gold-500);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-default);
    background-color: var(--color-surface-base);
}

.accordion-content-inner {
    padding: 0 var(--spacing-5) var(--spacing-5);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.color-swatch {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-default);
    width: 100%;
}

.color-swatch-box {
    height: 100px;
    width: 100%;
}

.color-swatch-info {
    padding: var(--spacing-3);
    background-color: var(--color-surface-base);
}

.color-swatch-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-heading);
}

.color-swatch-hex {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-family-mono);
}

/* Typography Scale Display */
.type-specimen {
    padding: var(--spacing-6) 0;
    border-bottom: 1px solid var(--color-border-subtle);
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: baseline;
    gap: var(--spacing-4);
}

.type-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.type-meta {
    font-family: var(--font-family-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: right;
}

/* Grid System Display */
.grid-display {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.grid-col-demo {
    background-color: var(--color-surface-sunken);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Hero Section Specific */
.ds-hero-banner {
    position: relative;
    padding: var(--spacing-16) var(--spacing-8);
    background-color: #1A1A1A;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-8);
    color: white;
}

.ds-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.2), transparent 50%);
    pointer-events: none;
}

.ds-hero-banner h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: var(--spacing-4);
    position: relative;
    z-index: 1;
}

.ds-hero-banner p {
    color: #CED4DA;
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: var(--spacing-8);
    position: relative;
    z-index: 1;
}

/* Modal specific */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-default);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--color-surface-base);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: all var(--transition-default);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: var(--spacing-5) var(--spacing-6);
    border-bottom: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    margin: 0;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.modal-body {
    padding: var(--spacing-6);
    font-size: 0.875rem;
}

.modal-footer {
    padding: var(--spacing-4) var(--spacing-6);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: var(--spacing-6);
    right: var(--spacing-6);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.toast {
    background-color: var(--color-surface-raised);
    color: var(--color-text-heading);
    padding: var(--spacing-4) var(--spacing-5);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-gold-500);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    transform: translateX(120%);
    transition: transform var(--transition-default);
}

.toast.active {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .ds-sidebar {
        transform: translateX(-100%);
    }
    .ds-sidebar.open {
        transform: translateX(0);
    }
    .ds-main {
        margin-left: 0;
    }
    .type-specimen {
        grid-template-columns: 1fr;
        gap: var(--spacing-2);
    }
    .type-meta {
        text-align: left;
    }
}

/* ==========================================================================
   LANDING PAGE SPECIFIC STYLES
   ========================================================================== */

.lp-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.lp-header {
    height: var(--header-height);
    background-color: var(--color-surface-base);
    border-bottom: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.lp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-6);
}

.hero-landing {
    position: relative;
    padding-top: calc(var(--header-height) + var(--spacing-12));
    padding-bottom: var(--spacing-16);
    background-color: #1A1A1A;
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-align: center;
}

.hero-landing h1 {
    color: #FFFFFF;
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto var(--spacing-4);
}

.hero-landing p {
    font-size: 1.25rem;
    color: #E9ECEF;
    max-width: 800px;
    margin: 0 auto var(--spacing-8);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-6);
    flex-wrap: wrap;
    margin-top: var(--spacing-12);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: var(--spacing-6);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: 0.875rem;
    color: #FFFFFF;
}

.trust-badge svg {
    color: var(--color-gold-500);
}

.section-padding {
    padding: var(--spacing-16) 0;
}

.section-dark {
    background-color: var(--color-surface-sunken);
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Fixed CTA Mobile */
.mobile-cta-fixed {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-3);
    background-color: var(--color-surface-base);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.mobile-cta-fixed .btn {
    width: 100%;
}

@media (max-width: 768px) {
    :root {
        --header-height: 120px;
    }
    .mobile-cta-fixed {
        display: block;
    }
    body {
        padding-bottom: 80px;
    }
    .hero-landing h1 {
        font-size: 2.25rem;
    }
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-3);
    }
}

/* Logo custom styles */
.ds-logo-header {
    height: 112px;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .ds-logo-header {
        height: 136px;
    }
}

.ds-logo-footer {
    height: 96px;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .ds-logo-footer {
        height: 116px;
    }
}

/* Portfolio textual cards custom adjustments */
.portfolio-grid .card-body {
    padding: var(--spacing-5);
}
.portfolio-grid .card-text {
    margin-bottom: 0;
}

/* ==========================================================================
   COMPONENTS - IMAGE GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-4);
    margin-top: var(--spacing-8);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);
    border: 1px solid var(--color-border-subtle);
    background-color: var(--color-surface-sunken);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold-500);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-actions {
    display: none;
    text-align: center;
    margin-top: var(--spacing-6);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-default) ease;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform var(--transition-default) ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-gold-500);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-gold-500);
    border-color: var(--color-gold-500);
    color: #000;
}

/* Responsividade Galeria */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lightbox-prev {
        left: 20px;
    }
    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0; /* remove grid gap on mobile, let margins handle spacing */
    }
    
    .gallery-actions {
        display: block;
    }
    
    /* Mostrar apenas as 3 primeiras no mobile por padrão */
    .gallery-item.gallery-hidden {
        display: none;
    }
    
    @keyframes galleryFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(10px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .gallery-item.gallery-visible {
        display: block !important;
        margin-bottom: var(--spacing-4);
        animation: galleryFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@media (min-width: 769px) {
    .gallery-item.gallery-hidden {
        display: block !important;
    }
}
