/* ========================================
   FUNDIÇÃO LÍDER - CSS OTIMIZADO
   Site institucional profissional
   Desenvolvido por Mateus Teixeira
   Instagram: @theuska._
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #0c1929;
    --color-primary-dark: #060d14;
    --color-primary-light: #1a365d;
    --color-accent: #f97316;
    --color-accent-light: #fb923c;
    --color-accent-dark: #dc2626;
    --color-accent-soft: rgba(249, 115, 22, 0.1);
    --color-accent-shadow: rgba(249, 115, 22, 0.28);
    --color-text: #1a202c;
    --color-text-light: #4a5568;
    --color-text-title: var(--color-primary); /* For headings: primary in light mode, text-light in dark */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-border: #e2e8f0;
    --color-header-bg: rgba(255, 255, 255, 0.98);
    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --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 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Safe area for iPhone notch */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

/* Dark Theme Variables (OLED Absolute Black) */
[data-theme="dark"] {
    --color-primary: #121212;
    --color-primary-dark: #000000;
    --color-primary-light: #1c1c1e;
    --color-accent: #fb923c;
    --color-accent-light: #fed7aa;
    --color-accent-dark: #ef4444;
    --color-accent-soft: rgba(251, 146, 60, 0.14);
    --color-accent-shadow: rgba(251, 146, 60, 0.28);
    --color-text: #f3f4f6;
    --color-text-light: #9ca3af;
    --color-text-title: var(--color-text); /* White/light gray titles in dark mode */
    --color-bg: #000000;
    --color-bg-alt: #050505;
    --color-border: #262626;
    --color-header-bg: rgba(0, 0, 0, 0.95);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    /* iPhone safe areas */
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    /* Prevent pull-to-refresh on iOS */
    overscroll-behavior-y: none;
}

/* Improve touch targets for mobile */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

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

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px var(--color-accent-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--color-accent-shadow);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: #ffffff;
    color: var(--color-primary-dark);
    border-color: #ffffff;
}

.btn-light {
    background: #ffffff;
    color: #0c1929;
    border-color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #f8fafc;
    color: #060d14;
}

.btn-outline-light {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-header-bg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: background var(--transition), color var(--transition);
}

.theme-toggle:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Toggle icons visibility */
.theme-toggle .icon-sun {
    display: none;
}
.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text strong {
    color: var(--color-accent);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-title);
    background: var(--color-bg-alt);
}

.nav-link--cta {
    background: var(--color-accent);
    color: #ffffff !important;
}

.nav-link--cta:hover {
    background: var(--color-accent-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

/* ========================================
   HERO WITH VIDEO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    color: #ffffff;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../assets/hero-poster.svg") center / cover no-repeat;
}

.hero-video,
.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--color-primary-dark);
}

.hero-fallback {
    display: none;
}

html.no-hero-video .hero-video {
    display: none;
}

html.no-hero-video .hero-fallback {
    display: block;
}

/* Hide native video controls/overlays (Safari/iOS) */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 78%, rgba(220, 38, 38, 0.22), transparent 34%),
        linear-gradient(
            135deg,
            rgba(12, 25, 41, 0.58) 0%,
            rgba(6, 13, 20, 0.52) 46%,
            rgba(12, 25, 41, 0.48) 100%
        );
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
}

.hero .container {
    position: relative;
    z-index: 3;
    padding-top: 140px;
    padding-bottom: 100px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 28px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: #ffffff;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 400;
}

/* Hero keeps visual copy white; only the quote CTA uses the warm accent. */
.hero-actions .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: #ffffff;
    border-color: #fb923c;
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.32);
}

.hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%);
    border-color: #fed7aa;
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(249, 115, 22, 0.42);
    transform: translateY(-3px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #ffffff !important;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ISO Badge */
.iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
}

.iso-badge svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.hero .iso-badge svg {
    color: #ffffff;
}

.iso-badge span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.hero .iso-badge span {
    color: #ffffff; /* Keep ISO badge text white in Hero */
}

/* ========================================
   SECTIONS
   ======================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-light);
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

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

.feature-card {
    background: var(--color-bg);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

[data-theme="dark"] .feature-card:hover {
    border-color: rgba(251, 146, 60, 0.35);
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.12);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-soft);
    border-radius: var(--radius);
    margin-bottom: 24px;
    transition: all var(--transition);
}

[data-theme="dark"] .feature-icon {
    background: var(--color-accent-soft);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-accent);
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--color-accent);
}

.feature-card:hover .feature-icon svg {
    color: #ffffff;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 14px;
}

.feature-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ========================================
   ABOUT PREVIEW
   ======================================== */
.about-preview {
    padding: 100px 0;
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-preview-content .section-tag {
    margin-bottom: 12px;
}

.about-preview-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-preview-content p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.about-list {
    margin: 24px 0 32px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 500;
    color: var(--color-text);
}

.about-list svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.about-preview-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--color-bg);
}

.image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.8;
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 17px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #040810 100%);
    color: #ffffff;
    padding: 80px 0 0;
    padding-bottom: var(--safe-area-bottom);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-icon {
    width: 44px;
    height: 44px;
    color: var(--color-accent);
}

.footer-brand .logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-brand .logo-text {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 1;
}

.footer-desc {
    font-size: 15px;
    opacity: 0.75;
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 15px;
    opacity: 0.75;
    transition: all var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer-contact address p {
    display: flex;
    gap: 12px;
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 18px;
    line-height: 1.8;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--color-accent);
}

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

.footer-bottom {
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    margin: 0;
}

.footer-dev {
    font-size: 12px;
    opacity: 0.6;
}

.footer-dev a {
    color: var(--color-accent);
    opacity: 1;
    transition: opacity var(--transition);
}

.footer-dev a:hover {
    opacity: 0.8;
}

/* ========================================
   PAGE HEADER (Internal Pages)
   ======================================== */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.8;
}

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

.breadcrumb span {
    color: var(--color-accent);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 1.75rem;
    color: var(--color-text-title);
    margin: 48px 0 20px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.value-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--value-accent, var(--color-accent));
}

.value-card:nth-child(1) {
    --value-accent: #f97316;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.12), var(--color-bg-alt) 58%);
}

.value-card:nth-child(2) {
    --value-accent: #dc2626;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.1), var(--color-bg-alt) 58%);
}

.value-card:nth-child(3) {
    --value-accent: #1a365d;
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.12), var(--color-bg-alt) 58%);
}

[data-theme="dark"] .value-card:nth-child(3) {
    --value-accent: #fb923c;
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.1), var(--color-bg-alt) 58%);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--value-accent, var(--color-accent)) 45%, var(--color-border));
}

.value-card h3 {
    font-size: 18px;
    color: var(--value-accent, var(--color-accent));
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   SERVICES PAGE
   ======================================== */
.services-section {
    padding: 80px 0;
}

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

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary-dark);
}

.service-card h3 {
    font-size: 20px;
    color: var(--color-text-title);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card ul {
    margin-top: 16px;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text);
}

.service-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ========================================
   GALLERY PAGE
   ======================================== */
.gallery-section {
    padding: 80px 0;
}

.materials-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
    padding: 28px;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.materials-panel h3 {
    color: var(--color-text-title);
    font-size: 1.45rem;
    line-height: 1.25;
    margin: 8px 0 10px;
}

.materials-panel p {
    color: var(--color-text-light);
}

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.materials-list li {
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    border: 1px solid rgba(249, 115, 22, 0.24);
    color: var(--color-text);
    font-size: 0.86rem;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-grid--catalog {
    align-items: stretch;
}

.gallery-card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    cursor: default;
}

.gallery-card::before {
    display: none;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-card img {
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.gallery-card--wide img {
    aspect-ratio: 16 / 9;
}

.gallery-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 18px;
}

.gallery-card-body span {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

[data-theme="dark"] .gallery-card-body span {
    color: var(--color-accent-light);
}

.gallery-card-body h3 {
    color: var(--color-text-title);
    font-size: 1.05rem;
    line-height: 1.25;
}

.gallery-card-body p {
    color: var(--color-text-light);
    font-size: 0.94rem;
    line-height: 1.5;
}

.gallery-note {
    color: var(--color-text-light);
    font-size: 14px;
    font-style: italic;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: #ffffff;
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.gallery-placeholder span {
    font-size: 14px;
    opacity: 0.7;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.lightbox-img.zoomed {
    cursor: zoom-out;
    transform: scale(2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    max-width: 80%;
    text-align: center;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.contact-info h2 {
    font-size: 1.5rem;
    color: var(--color-text-title);
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.contact-item-content h4 {
    font-size: 15px;
    color: var(--color-text-title);
    margin-bottom: 4px;
}

.contact-item-content p,
.contact-item-content a {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

.contact-item-content a:hover {
    color: var(--color-accent);
}

.contact-form-wrapper {
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    font-size: 1.25rem;
    color: var(--color-text-title);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
}

/* Map */
.map-section {
    padding: 0 0 80px;
}

.section-header--compact {
    margin-bottom: 32px;
}

.map-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    min-height: 420px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-frame {
    position: relative;
    min-height: 420px;
    background: var(--color-primary-dark);
}

.map-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.08), transparent 42%),
        linear-gradient(to top, rgba(12, 25, 41, 0.08), transparent 34%);
    mix-blend-mode: multiply;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.88) contrast(1.04) brightness(1.02);
    transition: filter var(--transition);
}

[data-theme="dark"] .map-frame::after {
    background:
        linear-gradient(135deg, rgba(251, 146, 60, 0.16), transparent 44%),
        linear-gradient(to top, rgba(0, 0, 0, 0.24), transparent 42%);
    mix-blend-mode: screen;
}

[data-theme="dark"] .map-frame iframe {
    filter: grayscale(0.78) invert(0.88) hue-rotate(180deg) saturate(0.72) contrast(0.92) brightness(0.78);
}

.map-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    background:
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    border-left: 1px solid var(--color-border);
}

.map-info strong {
    color: var(--color-text-title);
    font-size: 1.05rem;
}

.map-info span {
    color: var(--color-text-light);
}

.map-info a {
    width: fit-content;
    margin-top: 10px;
    color: var(--color-accent-dark);
    font-weight: 800;
}

.map-info a:hover {
    color: var(--color-accent);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--color-text-light);
}

.map-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-preview-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-link {
        display: block;
        padding: 14px 20px;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero .container {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }
    
    .stat {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
    
    .stat-number {
        font-size: 2.5rem;
        min-width: 80px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .iso-badge {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .about-preview {
        padding: 60px 0;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .materials-panel,
    .map-container {
        grid-template-columns: 1fr;
    }

    .materials-panel {
        padding: 22px;
    }

    .map-container,
    .map-frame {
        min-height: auto;
    }

    .map-frame {
        aspect-ratio: 4 / 3;
    }

    .map-info {
        border-left: 0;
        border-top: 1px solid var(--color-border);
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .page-header {
        padding: 120px 0 48px;
    }
    
    .about-section,
    .services-section,
    .gallery-section,
    .contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 8px 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
        min-height: 48px; /* Touch target mínimo iOS */
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        gap: 28px;
        text-align: center;
    }
    
    .footer-desc {
        max-width: 100%;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 16px;
    }
    
    .footer-contact address p {
        justify-content: center;
        text-align: left;
    }
    
    .footer-bottom {
        padding: 20px 0;
        padding-bottom: calc(20px + var(--safe-area-bottom));
    }
}

/* iPhone SE e dispositivos muito pequenos */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.65rem;
    }
    
    .stat-number {
        font-size: 2rem;
        min-width: 60px;
    }
    
    .hero-badges {
        gap: 12px;
    }
}

/* Suporte a modo escuro do sistema */
@media (prefers-color-scheme: dark) {
    /* Mantém o design atual que já é escuro */
}

/* Reduzir animações para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Melhorias para telas de alta densidade (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .feature-icon svg,
    .service-icon svg {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations - handled by JS */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
