/* 
   Houtbed - Marcenaria Rústica Sofisticada
   Design System & Styling
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #12110f;
    --bg-secondary: #1c1a17;
    --bg-tertiary: #272320;
    --primary: #8b5a2b;
    --primary-light: #ab794b;
    --secondary: #d4a373;
    --accent: #eae2b7;
    --text-main: #f8f7f5;
    --text-muted: #aaa49e;
    --text-light: #ffffff;
    --border-color: rgba(139, 90, 43, 0.15);
    --border-glow: rgba(212, 163, 115, 0.3);
    --glass-bg: rgba(18, 17, 15, 0.85);
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Typography & Utility classes */
h1, h2, h3, h4, .serif-font {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.section-padding {
    padding: 120px 8% 100px 8%;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 5% 60px 5%;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 60px 5% 50px 5%;
    }
}

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

.text-center {
    text-align: center;
}

.section-title-wrapper {
    margin-bottom: 70px;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title-wrapper {
        margin-bottom: 45px;
    }
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
}

/* Glassmorphism Header */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    padding: 20px 6%;
}

header.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 6%;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    header.site-header {
        padding: 14px 5%;
    }
    header.site-header.scrolled {
        padding: 10px 5%;
    }
}

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

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

/* Logomarca: branca pura sobre fundo escuro — padrão profissional */
/* A imagem tem muito espaço em branco ao redor — precisa de altura generosa + margem negativa */
.logo-img {
    height: 120px;
    width: auto;
    margin: -25px 0;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

.logo-img:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* Versão footer: maior para dar presença no rodapé */
.logo-img--footer {
    height: 150px;
    margin: -30px 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Mobile: logo menor para não dominar o header */
@media (max-width: 768px) {
    .logo-img {
        height: 100px;
        margin: -20px 0;
    }
    .logo-img--footer {
        height: 130px;
        margin: -25px 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 90px;
        margin: -18px 0;
    }
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

nav.main-nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

nav.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: var(--transition-smooth);
}

nav.main-nav ul li a:hover {
    color: var(--text-light);
}

nav.main-nav ul li a:hover::after {
    width: 100%;
}

.nav-cta {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.85rem !important;
    color: var(--secondary) !important;
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--primary) !important;
    color: var(--text-light) !important;
    border-color: var(--primary) !important;
}

.nav-cta::after {
    display: none !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
        /* Área de toque mínima de 44px para iOS */
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    nav.main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* 100dvh para evitar bug de altura no Safari iOS */
        width: 85%;
        height: 100dvh;
        background: var(--bg-secondary);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--border-color);
        /* Scroll caso o menu seja muito alto em telas pequenas */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    nav.main-nav.active {
        right: 0;
    }
    nav.main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 40px 20px;
    }
    nav.main-nav ul li a {
        font-size: 1.3rem;
        /* Área de toque generosa */
        display: block;
        padding: 10px 20px;
    }
    .nav-cta {
        padding: 14px 28px !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    /* 100svh respeita a barra de endereço retrátil do Safari/iOS */
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 17, 15, 0.4) 0%, rgba(18, 17, 15, 0.95) 100%);
    z-index: 2;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.65) contrast(1.1);
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate ease-in-out;
}

@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    margin-top: 50px;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--secondary);
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease;
}

.hero-title {
    font-size: 4.8rem;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1.5s ease;
}

.hero-title strong {
    font-weight: 600;
    color: var(--text-light);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 300;
    line-height: 1.7;
    animation: fadeInUp 1.8s ease;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 2.1s ease;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-content {
        padding: 0 5%;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.2);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section: Manifesto */
.manifesto {
    background: var(--bg-primary);
    position: relative;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.manifesto-text {
    max-width: 600px;
}

.manifesto-quote {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 25px;
}

.manifesto-para {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.manifesto-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 576px) {
    .manifesto-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.highlight-item h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.manifesto-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.manifesto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.manifesto-image-wrapper:hover .manifesto-img {
    transform: scale(1.05);
}

.image-overlay-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(18, 17, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 4px;
    text-align: center;
}

.image-overlay-card h5 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.image-overlay-card p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
}

/* Section: Sugestões / Conceitos */
.suggestions {
    background: var(--bg-secondary);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
}

.suggestion-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.suggestion-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 30px rgba(212, 163, 115, 0.05);
}

.suggestion-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.suggestion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.suggestion-card:hover .suggestion-img {
    transform: scale(1.08);
}

.suggestion-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--text-light);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
}

.suggestion-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-card h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.suggestion-card:hover h3 {
    color: var(--secondary);
}

.suggestion-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.suggestion-features {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-features li i {
    color: var(--secondary);
    font-size: 0.75rem;
}

/* Section: Portfólio (Dinâmico / Trabalhos Feitos) */
.portfolio {
    background: var(--bg-primary);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Portfólio: aspect-ratio mais alto no mobile para mostrar mais da imagem */
@media (max-width: 576px) {
    .portfolio-item {
        aspect-ratio: 4/3;
    }
    .portfolio-item-info {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .portfolio-item-info h4 {
        font-size: 1.4rem;
    }
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 17, 15, 0.95) 0%, rgba(18, 17, 15, 0.4) 50%, rgba(18, 17, 15, 0) 100%);
    opacity: 0.85;
    transition: var(--transition-smooth);
    z-index: 2;
}

.portfolio-item-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.portfolio-item-info h4 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.portfolio-item-info p {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 0.95;
}

.portfolio-item:hover .portfolio-item-info {
    transform: translateY(0);
}

/* Empty portfolio warning */
.empty-gallery-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.empty-gallery-msg i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.empty-gallery-msg h4 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.empty-gallery-msg p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Section: O Processo */
.process {
    background: var(--bg-secondary);
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

@media (max-width: 768px) {
    .process-timeline::after {
        left: 31px;
    }
}

.process-step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.process-step::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-secondary);
    border: 3px solid var(--secondary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .process-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .process-step::after {
        left: 23px;
        top: 25px;
    }
}

.process-step.left {
    left: 0;
}

.process-step.right {
    left: 50%;
}

.process-step.right::after {
    left: -8px;
}

@media (max-width: 768px) {
    .process-step.right {
        left: 0;
    }
    .process-step.right::after {
        left: 23px;
    }
}

.process-card {
    padding: 30px;
    background: var(--bg-tertiary);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.process-step:hover::after {
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.process-card:hover {
    border-color: var(--border-glow);
}

.step-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.7;
}

.process-card h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Section: Contato */
.contact {
    background: var(--bg-primary);
}

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

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.contact-info h3 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.3rem;
    color: var(--secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.detail-text h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.detail-text p, .detail-text a {
    font-size: 1.1rem;
    color: var(--text-light);
}

.detail-text a:hover {
    color: var(--secondary);
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 50px;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    .contact-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 24px 16px;
        border-radius: 6px;
    }
}

.contact-form h4 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-form-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

@media (max-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Inputs maiores para toque confortável no iPhone */
@media (max-width: 768px) {
    .form-control {
        padding: 14px 16px;
        font-size: 1rem; /* >= 16px evita zoom automático do Safari */
        border-radius: 6px;
    }
    textarea.form-control {
        min-height: 100px;
    }
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 18px;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--border-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer.site-footer {
    background: #0d0c0b;
    border-top: 1px solid var(--border-color);
    padding: 80px 8% 40px 8%;
    /* Safe area para iPhones com notch/Dynamic Island na orientação landscape */
    padding-left: max(8%, env(safe-area-inset-left));
    padding-right: max(8%, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    footer.site-footer {
        padding: 60px 5% 30px 5%;
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-logo-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

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

.social-links a {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        font-size: 0.8rem;
    }
    .footer-bottom-links {
        gap: 20px;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* Lightbox Modal (For Zooming Images) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 9, 8, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
}

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

.lightbox-content {
    max-width: 95%;
    max-height: 90%;
    position: relative;
    width: 100%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    /* Área de toque mínima 44px iOS */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.lightbox-caption {
    color: var(--text-light);
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-top: 15px;
    padding: 0 10px;
}

/* Execution Section Styles */
.execution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.execution-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.execution-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.execution-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: rgba(212, 175, 55, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.execution-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.execution-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .execution-card {
        padding: 30px 20px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: calc(30px + env(safe-area-inset-bottom));
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 13px 16px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    max-width: 52px;
    overflow: hidden;
}

.whatsapp-float:hover {
    max-width: 260px;
    padding: 13px 22px;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.whatsapp-float-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.whatsapp-float:hover .whatsapp-float-label {
    opacity: 1;
}

    @media (max-width: 768px) {
    .whatsapp-float {
        max-width: 52px;
        padding: 13px 16px;
    }
    .whatsapp-float:hover {
        max-width: 52px;
    }
    .whatsapp-float-label {
        display: none;
    }
}

/* =============================================
   MOBILE TYPOGRAPHY — CORREÇÕES GLOBAIS
   Garante que nenhum texto estoure a tela
   em qualquer dispositivo móvel
   ============================================= */

/* Previne quebra de layout por palavras longas em qualquer heading */
h1, h2, h3, h4, h5, h6, p, a, li, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Garante que nenhum elemento filho estoure a largura do pai */
img, video, iframe, embed, object {
    max-width: 100%;
}

/* ---- Manifesto Quote: principal causador de overflow ---- */
@media (max-width: 768px) {
    .manifesto-quote {
        font-size: 1.65rem;
        padding-left: 18px;
    }
}

@media (max-width: 480px) {
    .manifesto-quote {
        font-size: 1.35rem;
        padding-left: 15px;
        line-height: 1.4;
    }
}

/* ---- Hero Subtitle: letter-spacing excessivo em telas estreitas ---- */
@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
}

/* ---- Contact Info H3 ---- */
@media (max-width: 480px) {
    .contact-info h3 {
        font-size: 1.5rem;
    }
}

/* ---- Execution Cards H3: sem breakpoint mobile anterior ---- */
@media (max-width: 768px) {
    .execution-card h3 {
        font-size: 1.35rem;
    }
}

/* ---- Portfolio Item Title ---- */
@media (max-width: 768px) {
    .portfolio-item-info h4 {
        font-size: 1.4rem;
    }
}

/* ---- Process Cards ---- */
@media (max-width: 480px) {
    .process-card h3 {
        font-size: 1.2rem;
    }
    .step-num {
        font-size: 2rem;
    }
}

/* ---- Suggestion Cards ---- */
@media (max-width: 480px) {
    .suggestion-card h3 {
        font-size: 1.35rem;
    }
}

/* ---- Contact Form Title ---- */
@media (max-width: 480px) {
    .contact-form h4 {
        font-size: 1.5rem;
    }
}
