/* ==========================================================================
   Samar Serviços — estilos
   ========================================================================== */

:root {
    --brand: #b8161b;
    --brand-dark: #93100f;
    --mustard: #c99a2e;
    --mustard-light: #e2bb5c;
    --mustard-ink: #8a6612;
    --ink: #1d1b18;
    --ink-soft: #55504a;
    --line: #e4ddcf;
    --paper: #faf8f3;
    --tint: #f2ede3;
    --dark: #1a1816;
    --dark-2: #24211e;
    --on-dark: #f4efe6;
    --on-dark-soft: #b5ada0;
    --line-dark: rgba(244, 239, 230, .12);
    --whatsapp: #1fa855;

    --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(80px, 11vw, 144px);
    --radius: 2px;
    --header-h: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

h1,
h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 em,
h2 em {
    font-style: italic;
    color: var(--mustard-ink);
}

h2 {
    font-size: clamp(2.375rem, 4.8vw, 3.625rem);
}

h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--mustard);
    outline-offset: 3px;
}

/* Botões
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    transition: background-color .25s, border-color .25s, color .25s;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.btn-ghost:hover {
    border-color: var(--mustard-light);
    color: var(--mustard-light);
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-sm {
    min-height: 44px;
    padding: 0 20px;
    font-size: .875rem;
}

.btn svg {
    flex: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--mustard-ink);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--mustard);
}

.eyebrow-light {
    color: var(--mustard-light);
}

/* Cabeçalho
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color .25s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand img {
    width: auto;
    height: 44px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-nav ul {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul a {
    position: relative;
    padding: 6px 0;
    color: var(--ink-soft);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    transition: color .25s;
}

.site-nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--mustard);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.site-nav ul a:hover {
    color: var(--ink);
}

.site-nav ul a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .nav-toggle {
        position: relative;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-right: -10px;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .nav-toggle-bar,
    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--ink);
        transition: transform .25s, opacity .25s;
    }

    .nav-toggle-bar {
        position: relative;
    }

    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle-bar::before {
        top: -7px;
    }

    .nav-toggle-bar::after {
        top: 7px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding: 16px var(--gutter) 40px;
        background: var(--paper);
        border-top: 1px solid var(--line);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav ul a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
        font-family: var(--font-serif);
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 1.2;
    }

    .site-nav ul a::after {
        display: none;
    }

    .site-nav .btn {
        min-height: 54px;
    }
}

/* Hero
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(calc(100svh - var(--header-h)), 780px);
    padding: 120px 0 clamp(56px, 8vw, 96px);
    color: #fff;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--dark);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 40%;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(22, 20, 17, .94) 0%, rgba(22, 20, 17, .6) 45%, rgba(22, 20, 17, .2) 100%),
        linear-gradient(to right, rgba(22, 20, 17, .6), transparent 70%);
}

.hero h1 {
    max-width: 16ch;
    font-size: clamp(2.875rem, 6.6vw, 5.5rem);
    line-height: .98;
}

.hero h1 em {
    color: var(--mustard-light);
}

.hero .lead {
    max-width: 54ch;
    margin: 28px 0 40px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Seções
   ========================================================================== */

.section {
    padding-block: var(--section);
}

.section-tint {
    background: var(--tint);
}

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

.section-dark p {
    color: var(--on-dark-soft);
}

.section-dark h2 em {
    color: var(--mustard-light);
}

.section-head {
    max-width: 700px;
    margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head h2 {
    margin-bottom: 20px;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    max-width: none;
}

.section-head-row h2 {
    margin-bottom: 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 112px);
    align-items: start;
}

.split h2 {
    margin-bottom: 24px;
}

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

/* Serviços */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.service {
    position: relative;
    padding: 40px 36px 44px 0;
    border-bottom: 1px solid var(--line);
}

.service:not(:nth-child(3n + 1)) {
    padding-left: 36px;
    border-left: 1px solid var(--line);
}

.service::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 0;
    height: 1px;
    background: var(--mustard);
    transition: width .5s ease;
}

.service:hover::before {
    width: 100%;
}

.service-num {
    display: block;
    margin-bottom: 28px;
    color: var(--mustard);
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    line-height: 1;
}

.service h3 {
    margin-bottom: 10px;
    font-size: 1.1875rem;
}

.service p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

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

    .service:not(:nth-child(3n + 1)) {
        padding-left: 0;
        border-left: 0;
    }

    .service:nth-child(2n) {
        padding-left: 32px;
        border-left: 1px solid var(--line);
    }
}

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

    .service,
    .service:nth-child(2n) {
        padding: 28px 0 32px;
        border-left: 0;
    }

    .service-num {
        margin-bottom: 14px;
    }
}

/* Especialidades */

.trades {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-dark);
}

.trades li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
    font-size: 1rem;
}

.trades li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    background: var(--mustard);
    transform: rotate(45deg);
}

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

/* Processo */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    counter-increment: step;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    background: linear-gradient(var(--mustard), var(--mustard)) 0 -1px / 48px 1px no-repeat;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 22px;
    color: var(--mustard);
    font-family: var(--font-serif);
    font-size: 3.25rem;
    font-style: italic;
    line-height: 1;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

@media (max-width: 960px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
    }
}

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

/* Obras */

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--mustard);
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}

.link-arrow svg {
    color: var(--mustard-ink);
    transition: transform .25s;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

.gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

.gallery-item-wide {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

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

.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 56px 24px 20px;
    background: linear-gradient(to top, rgba(22, 20, 17, .85), transparent);
    color: rgba(255, 255, 255, .78);
    font-size: .875rem;
    letter-spacing: .02em;
}

.gallery-item figcaption strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.1;
}

@media (max-width: 760px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .gallery-item,
    .gallery-item-wide {
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }
}

/* Sobre */

.split-about {
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
}

.about-year {
    position: relative;
    padding-bottom: 28px;
    color: var(--mustard);
    font-family: var(--font-serif);
    font-size: clamp(6rem, 16vw, 12.5rem);
    font-style: italic;
    line-height: .85;
    letter-spacing: -0.02em;
}

.about-year::after {
    content: "desde";
    position: absolute;
    left: .1em;
    top: -1.6em;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: .75rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.split-about p {
    color: var(--ink-soft);
    font-size: 1.125rem;
}

@media (max-width: 860px) {
    .split-about {
        grid-template-columns: 1fr;
    }

    .about-year {
        display: none;
    }
}

/* Contato */

.contact .btn {
    margin-top: 16px;
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
}

.contact-list li:first-child {
    padding-top: 0;
}

.contact-list svg {
    flex: none;
    margin-top: 2px;
    color: var(--mustard-light);
}

.contact-label {
    display: block;
    margin-bottom: 6px;
    color: var(--on-dark-soft);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.contact-list a {
    text-decoration-color: rgba(226, 187, 92, .45);
    text-underline-offset: 4px;
    transition: color .2s, text-decoration-color .2s;
}

.contact-list a:hover {
    color: var(--mustard-light);
    text-decoration-color: currentColor;
}

/* Rodapé
   ========================================================================== */

.site-footer {
    padding: 56px 0;
    background: #131210;
    border-top: 1px solid var(--mustard);
    color: var(--on-dark-soft);
    font-size: .875rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 56px;
}

.footer-inner img {
    width: auto;
    height: 40px;
}

.footer-inner p {
    margin: 0;
}

.footer-copy {
    margin-left: auto !important;
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-copy {
        margin-left: 0 !important;
    }
}

/* WhatsApp flutuante
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: none;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

@media (max-width: 900px) {
    .whatsapp-float {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
