/* =============================================
   KRUN — Premium Stylesheet v2
   Referência: Luzen (Webflow)
   ============================================= */

:root {
    --green-dark: #2A3620;
    --green: #3B4A2F;
    --green-mid: #4D5F3D;
    --green-light: #8B9A7B;
    --cream: #E8E4DE;
    --cream-light: #F2F0ED;
    --warm-gray: #C8C3BB;
    --muted: #7A7670;
    --dark: #1A1A1A;
    --darker: #111111;
    --text: #2C2C2C;
    --white: #FAFAF8;

    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    --header-h: 80px;
    --max-w: 1280px;
    --px: 48px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-weight: 300; color: var(--text); background: var(--cream-light); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- CONTAINER ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 14px 28px; transition: all 0.35s ease; cursor: pointer; border: none;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--outline { border: 1px solid rgba(255,255,255,0.35); color: var(--white); background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--outline-light { border: 1px solid rgba(255,255,255,0.3); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--dark); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--darker); }
.btn--cream { background: var(--cream); color: var(--green-dark); }
.btn--cream:hover { background: var(--white); }
.btn--cream svg { transition: transform 0.3s ease; }
.btn--cream:hover svg { transform: translateX(4px); }

.text-link {
    font-size: 0.85rem; font-weight: 400; color: var(--green);
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.3s ease; margin-top: 12px;
}
.text-link:hover { gap: 10px; }

/* ---- SECTION NUMBERING (Luzen style) ---- */
.section-num {
    font-family: var(--font-heading); font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 400; color: var(--dark); opacity: 0.08; line-height: 0.9; display: block;
}
.section-num--right { text-align: right; }
.section-num--light { color: var(--white); opacity: 0.1; }

.section-tag {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); display: block; margin-top: 4px;
}
.section-tag--light { color: var(--warm-gray); }

.section-head {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
    align-items: start; margin-bottom: 60px;
}
.section-head--reverse { grid-template-columns: 1.5fr 0.5fr; }
.section-head__right--top { display: flex; flex-direction: column; align-items: flex-end; }
.section-intro {
    font-size: 0.92rem; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 480px;
}

/* ---- REVEAL ---- */
.reveal {
    opacity: 0; transform: translateY(35px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-line {
    display: block; opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-line.active { opacity: 1; transform: translateY(0); }

/* ---- HEADER ---- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
    z-index: 1000; transition: all 0.4s ease;
}
.header.scrolled {
    background: rgba(242, 240, 237, 0.95); backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.header__inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header__logo { height: 32px; display: flex; align-items: center; }
.header__logo img { height: 32px; width: auto; object-fit: contain; }
.logo-dark { display: none; }
.header.scrolled .logo-light { display: none; }
.header.scrolled .logo-dark { display: block; }

.header__nav { display: flex; gap: 36px; }
.header__link {
    font-size: 0.82rem; font-weight: 300; color: var(--white); letter-spacing: 0.03em;
    position: relative; transition: opacity 0.3s;
}
.header__link::after {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px;
    background: currentColor; transition: width 0.3s var(--ease);
}
.header__link:hover::after { width: 100%; }
.header.scrolled .header__link { color: var(--text); }

.header__cta {
    font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--white); border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 22px; transition: all 0.3s ease;
}
.header__cta:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.header.scrolled .header__cta { color: var(--text); border-color: var(--text); }
.header.scrolled .header__cta:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

.header__burger { display: none; flex-direction: column; gap: 6px; width: 26px; z-index: 1001; padding: 2px 0; }
.header__burger span { width: 100%; height: 1.5px; background: var(--white); transition: all 0.3s ease; display: block; }
.header.scrolled .header__burger span { background: var(--dark); }
.header__burger.active span { background: var(--white) !important; }
.header__burger.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.header__burger.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* ---- MOBILE MENU ---- */
.mobile-menu {
    position: fixed; inset: 0; background: var(--green-dark); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu__nav a {
    font-family: var(--font-heading); font-size: 2rem; color: var(--white);
    opacity: 0; transform: translateY(15px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.active .mobile-menu__nav a { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-menu__nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu__cta {
    font-family: var(--font-body) !important; font-size: 0.82rem !important;
    letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3); padding: 14px 30px; margin-top: 12px;
}

/* ==================== HERO (Luzen style) ==================== */
.hero {
    position: relative; width: 100%; min-height: 100vh; display: flex;
    flex-direction: column; justify-content: space-between; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    position: absolute; inset: 0;
}
.hero__bg-fallback {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 40%, var(--green-mid) 70%, var(--green-dark) 100%);
}
/* Image loaded → hide fallback */
.hero__bg-img[src]:not([src=""]) ~ .hero__bg-fallback { /* fallback always behind */ z-index: -1; }
.hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(42,54,32,0.6) 0%, rgba(42,54,32,0.3) 40%, rgba(42,54,32,0.65) 100%);
}
/* grain */
.hero__bg::after {
    content: ''; position: absolute; inset: 0; z-index: 2; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
}

.hero__content {
    position: relative; z-index: 3; max-width: var(--max-w);
    width: 100%; margin: 0 auto; padding: 0 var(--px);
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 100vh; color: var(--white);
}

.hero__top {
    padding-top: calc(var(--header-h) + 60px);
    display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}
.hero__tagline {
    font-size: 0.88rem; font-weight: 200; line-height: 1.7; color: var(--warm-gray);
    max-width: 440px;
}
.hero__cta-group { display: flex; gap: 12px; flex-shrink: 0; }

.hero__center {
    flex: 1; display: flex; align-items: center; padding: 40px 0;
}
.hero__title {
    font-family: var(--font-heading); font-weight: 400;
    font-size: clamp(3.2rem, 7.5vw, 6rem); line-height: 1.08; letter-spacing: -0.01em;
}
.hero__title--accent { font-style: italic; color: var(--green-light); }

.hero__bottom { padding-bottom: 48px; }
.hero__stats { display: flex; gap: 56px; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
    font-family: var(--font-heading); font-size: 2.8rem; font-weight: 400; line-height: 1; color: var(--white);
}
.hero__stat-label {
    font-size: 0.72rem; font-weight: 300; letter-spacing: 0.04em; color: var(--warm-gray); margin-top: 6px;
}

/* ==================== SOBRE ==================== */
.sobre { padding: 120px 0 100px; background: var(--cream-light); }

.sobre__headline {
    margin-bottom: 48px;
}
.sobre__headline h2 {
    font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 400; line-height: 1.15; color: var(--dark);
}
.sobre__headline em { font-style: italic; color: var(--green); }

.sobre__content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 64px;
}
.sobre__text-col p {
    font-size: 0.9rem; font-weight: 300; line-height: 1.8; color: var(--muted); margin-bottom: 16px;
}

.sobre__images {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.sobre__img-wrap {
    position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--green);
}
.sobre__img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.sobre__img-wrap:hover img { transform: scale(1.04); }
.img-caption {
    position: absolute; bottom: 16px; left: 16px;
    font-size: 0.72rem; font-weight: 300; color: var(--white); letter-spacing: 0.05em;
    background: rgba(0,0,0,0.25); backdrop-filter: blur(6px); padding: 5px 12px;
}

/* ==================== NUMEROS ==================== */
.numeros { padding: 100px 0; background: var(--cream-light); border-top: 1px solid rgba(0,0,0,0.06); }
.numeros__title {
    font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400; line-height: 1.3; color: var(--dark);
}
.numeros__title em { font-style: italic; color: var(--green); }

.numeros__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    padding-top: 60px; border-top: 1px solid rgba(0,0,0,0.08); margin-top: 60px;
}
.numeros__item { text-align: left; }
.numeros__value {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 400; line-height: 1; color: var(--dark);
}
.numeros__plus {
    font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400; color: var(--green); vertical-align: super;
}
.numeros__desc {
    font-size: 0.78rem; font-weight: 300; line-height: 1.6; color: var(--muted); margin-top: 8px;
}

/* ==================== PROJETOS ==================== */
.projetos { padding: 120px 0; background: var(--cream-light); }
.projetos__title {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400; line-height: 1.15; color: var(--dark);
}
.projetos__title em { font-style: italic; color: var(--green); }

.projetos__intro {
    font-size: 0.9rem; font-weight: 300; line-height: 1.7; color: var(--muted);
    max-width: 520px; margin-bottom: 20px;
}
.projetos__btn { margin-bottom: 48px; }

.projetos__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.projetos__card { overflow: hidden; }
.projetos__card-link { display: block; }
.projetos__card-img {
    position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-mid) 100%);
}
.projetos__card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
.projetos__card:hover .projetos__card-img img { transform: scale(1.06); }

.projetos__card-hover {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(42,54,32,0.5); opacity: 0; transition: opacity 0.35s ease;
}
.projetos__card-hover span {
    font-size: 0.75rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--white); border: 1px solid rgba(255,255,255,0.5); padding: 10px 22px;
}
.projetos__card:hover .projetos__card-hover { opacity: 1; }

.projetos__card-info {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px 16px 0;
}
.projetos__card-info h3 {
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--dark);
}
.projetos__card-arrow {
    font-size: 1rem; color: var(--muted); transition: transform 0.3s ease, color 0.3s ease;
}
.projetos__card:hover .projetos__card-arrow { transform: translateX(4px); color: var(--green); }

/* ==================== CTA SPLIT (Luzen style) ==================== */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
.cta-split__left, .cta-split__right {
    display: flex; flex-direction: column; justify-content: center;
    padding: 80px var(--px);
}
.cta-split__left {
    background: var(--darker);
    background-image: url('images/contato/cta-left.jpg');
    background-size: cover; background-position: center;
    position: relative; color: var(--white);
}
.cta-split__left::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(17,17,17,0.7);
}
.cta-split__left > * { position: relative; z-index: 1; }

.cta-split__right {
    background: var(--green-dark);
    background-image: url('images/contato/cta-right.jpg');
    background-size: cover; background-position: center;
    position: relative; color: var(--white);
}
.cta-split__right::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(42,54,32,0.75);
}
.cta-split__right > * { position: relative; z-index: 1; }

.cta-split__tag {
    font-size: 0.7rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--warm-gray); margin-bottom: 16px;
}
.cta-split h2 {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 28px;
}

/* ==================== CONTATO ==================== */
.contato { padding: 120px 0; background: var(--green-dark); color: var(--white); }
.contato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contato__title {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 20px; margin-top: 32px;
}
.contato__title em { font-style: italic; color: var(--green-light); }
.contato__desc {
    font-size: 0.92rem; font-weight: 200; line-height: 1.7; color: var(--warm-gray); margin-bottom: 36px;
}

.contato__info { display: flex; flex-direction: column; gap: 14px; }
.contato__info-link {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 300; color: var(--warm-gray); transition: color 0.3s;
}
.contato__info-link:hover { color: var(--white); }

/* Form */
.form { display: flex; flex-direction: column; gap: 22px; }
.form__field label {
    display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--warm-gray); margin-bottom: 8px;
}
.form__field input, .form__field textarea, .form__field select {
    width: 100%; padding: 13px 0; font-size: 0.92rem; font-weight: 300; color: var(--white);
    background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.12);
    outline: none; transition: border-color 0.3s; border-radius: 0; -webkit-appearance: none;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: rgba(255,255,255,0.22); }
.form__field input:focus, .form__field textarea:focus, .form__field select:focus { border-color: var(--green-light); }
.form__field select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8C3BB' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0 center;
}
.form__field select option { background: var(--green-dark); color: var(--white); }
.form__field textarea { resize: vertical; min-height: 90px; }

/* ==================== FOOTER ==================== */
.footer { padding: 56px 0 28px; background: var(--darker); color: var(--warm-gray); }
.footer__top {
    display: flex; justify-content: space-between; gap: 64px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__logo { height: 24px; opacity: 0.6; margin-bottom: 14px; }
.footer__brand p { font-size: 0.78rem; font-weight: 200; line-height: 1.6; color: var(--muted); }
.footer__cols { display: flex; gap: 56px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h4 {
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--white); margin-bottom: 6px;
}
.footer__col a { font-size: 0.8rem; font-weight: 300; color: var(--muted); transition: color 0.3s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
    display: flex; justify-content: space-between; padding-top: 20px;
    font-size: 0.7rem; font-weight: 300; color: var(--muted);
}
.footer__bottom a { color: var(--green-light); }
.footer__bottom a:hover { color: var(--white); }

/* ---- WHATSAPP ---- */
.whatsapp {
    position: fixed; bottom: 24px; right: 24px; width: 54px; height: 54px;
    background: #25D366; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 998; box-shadow: 0 4px 18px rgba(37,211,102,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.45); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    :root { --px: 32px; }
    .section-head { grid-template-columns: 1fr; gap: 20px; }
    .section-head--reverse { grid-template-columns: 1fr; }
    .section-head__right--top { align-items: flex-start; flex-direction: row; gap: 12px; }
    .numeros__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
    .projetos__grid { grid-template-columns: repeat(2, 1fr); }
    .contato__grid { grid-template-columns: 1fr; gap: 56px; }
    .footer__top { flex-direction: column; gap: 36px; }
    .cta-split { grid-template-columns: 1fr; }
    .cta-split__left, .cta-split__right { padding: 60px var(--px); min-height: 280px; }
}

@media (max-width: 768px) {
    :root { --px: 20px; --header-h: 64px; }
    .header__nav, .header__cta { display: none; }
    .header__burger { display: flex; }

    .hero__top { flex-direction: column; gap: 20px; padding-top: calc(var(--header-h) + 32px); }
    .hero__cta-group { flex-wrap: wrap; }
    .hero__title { font-size: clamp(2.4rem, 10vw, 3.8rem); }
    .hero__stats { gap: 32px; flex-wrap: wrap; }
    .hero__stat-num { font-size: 2rem; }

    .sobre { padding: 80px 0 64px; }
    .sobre__content { grid-template-columns: 1fr; gap: 0; }
    .sobre__images { grid-template-columns: 1fr; }

    .numeros { padding: 64px 0; }
    .numeros__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }

    .projetos { padding: 80px 0; }
    .projetos__grid { grid-template-columns: 1fr; gap: 24px; }

    .contato { padding: 80px 0; }

    .footer__cols { flex-direction: column; gap: 28px; }
    .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
    .hero__stats { gap: 24px; }
    .numeros__grid { grid-template-columns: 1fr; }
    .hero__cta-group .btn { width: 100%; justify-content: center; }
}
