
:root {
  --ink: #171717;
  --ink-soft: #292929;
  --paper: #f5f3ef;
  --white: #fff;
  --red: #e21d2f;
  --red-dark: #b90f1f;
  --muted: #6c6b68;
  --line: rgba(23, 23, 23, .12);
  --container: min(1160px, calc(100% - 40px));
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--red); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 100px; background: rgba(16, 16, 16, .97); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 210px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #fff; text-decoration: none; font-size: .93rem; font-weight: 700; }
.main-nav a:not(.nav-cta):hover { color: var(--red); }
.nav-cta { padding: 11px 18px; color: #fff; background: var(--red); border-radius: 999px; }
.nav-cta:hover { background: var(--red-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: #fff; transition: .25s; }

.hero { position: relative; min-height: 780px; display: grid; align-items: center; overflow: hidden; color: #fff; background: #151515; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 8, .7) 0%, rgba(8, 8, 8, .42) 35%, rgba(8, 8, 8, .08) 66%, rgba(8, 8, 8, 0) 100%), url("assets/hero-portao-esquadriart.webp") center/cover no-repeat; transform: scale(1.01); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; }
.eyebrow { margin: 0 0 15px; color: var(--red); font-size: .79rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .97; letter-spacing: -.06em; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.82); }
.hero-content > p:not(.eyebrow) { max-width: 630px; margin: 28px 0; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 23px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); }

.section { padding: 112px 0; }
.about-grid, .quote-grid, .contact-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(50px, 8vw, 105px); }
.about-photo { position: relative; }
.about-photo > img { width: 100%; height: 540px; object-fit: cover; object-position: center 48%; border-radius: var(--radius); box-shadow: var(--shadow); }
.experience-badge { position: absolute; right: -20px; bottom: -28px; display: grid; width: 128px; aspect-ratio: 1; place-content: center; color: #fff; background: var(--red); border: 8px solid var(--paper); border-radius: 50%; font-size: 1.4rem; text-align: center; box-shadow: var(--shadow); }
.experience-badge strong { display: block; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.section-copy h2, .section-heading h2 { margin: 0 0 22px; font-size: clamp(2.25rem, 4.8vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; }
.section-copy > p:not(.eyebrow), .section-heading > p:not(.eyebrow) { color: var(--muted); }
.text-link { display: inline-block; margin-top: 13px; color: var(--red); font-weight: 850; text-decoration: none; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading > p:not(.eyebrow) { max-width: 650px; }

.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 280px; padding: 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-icon { width: 48px; height: 48px; color: var(--red); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 38px 0 12px; font-size: 1.45rem; line-height: 1.15; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-card-cta { color: #fff; background: var(--red); }
.service-card-cta .service-icon { color: #fff; }
.service-card-cta p { color: rgba(255,255,255,.76); }
.service-card-cta a { display: inline-block; margin-top: 8px; font-weight: 850; }

.light h2, .light p:not(.eyebrow) { color: #fff; }
.google-rating { padding: 34px 0; color: var(--ink); background: #fff; border-top: 1px solid #e7e4de; border-bottom: 1px solid #e7e4de; }
.rating-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.rating-stars { color: #f5b301; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: 4px; line-height: 1; text-shadow: 0 1px 0 #d89400; }
.rating-inner strong { display: block; font-size: 1.35rem; }
.rating-inner span { color: var(--muted); }
.rating-inner a { color: var(--ink); font-weight: 850; text-decoration-color: var(--red); text-underline-offset: 5px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 225px; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: #ddd; cursor: zoom-in; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item::after { content: "+"; position: absolute; right: 15px; bottom: 15px; display: grid; width: 40px; aspect-ratio: 1; place-items: center; color: #fff; background: rgba(226,29,47,.9); border-radius: 50%; font-size: 1.35rem; opacity: 0; transform: translateY(8px); transition: .25s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-item-more::after { content: "+1"; opacity: 1; transform: none; font-size: .95rem; font-weight: 850; }
.gallery-item-extra { display: none; }

.quote { color: #fff; background: linear-gradient(135deg, #171717, #2b2b2b); }
.quote-grid { align-items: start; }
.contact-shortcuts { display: grid; gap: 10px; margin-top: 32px; }
.contact-shortcuts a { width: fit-content; text-decoration: none; }
.contact-shortcuts small { display: block; color: rgba(255,255,255,.52); }
.contact-shortcuts strong { color: #fff; overflow-wrap: anywhere; }
.quote-form { display: grid; gap: 18px; padding: 36px; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 7px; font-size: .82rem; font-weight: 800; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d7d5d0; border-radius: 9px; background: #fafafa; outline: 0; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,29,47,.12); }
.quote-form textarea { resize: vertical; }
.button-whatsapp { color: #fff; background: #168b4f; }
.button-whatsapp:hover { background: #0f6d3d; }
.form-note { margin: -5px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }

.contact { background: #fff; }
.contact-grid { align-items: stretch; }
address { font-style: normal; }
.contact-details { display: grid; gap: 24px; margin-top: 30px; }
.contact-detail { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 11px; align-items: start; }
.contact-detail-icon { display: grid; width: 26px; height: 26px; place-items: center; color: var(--red); }
.contact-detail-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail > div { display: grid; gap: 4px; min-width: 0; }
.contact-detail strong { color: var(--ink); font-size: .95rem; }
.contact-detail > div > span, .contact-detail a { color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.contact-detail a { width: fit-content; text-decoration: none; transition: color .2s; }
.contact-detail a:hover { color: var(--red); }
.map-card { min-height: 470px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card iframe { width: 100%; height: 100%; min-height: 470px; }

.site-footer { padding: 72px 0 0; color: #fff; background: #101010; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1.6fr 1.05fr .75fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { width: 225px; height: auto; }
.footer-brand > p { max-width: 310px; margin: 22px 0; color: rgba(255,255,255,.62); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; width: 42px; aspect-ratio: 1; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.footer-social a:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.footer-social svg rect, .footer-social svg circle { fill: none; }
.footer-social .social-icon-whatsapp { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.footer-column h2 { margin: 4px 0 22px; color: #fff; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-title { display: flex; align-items: center; gap: 10px; }
.footer-title-icon { display: grid; width: 32px; aspect-ratio: 1; place-items: center; color: #fff; background: linear-gradient(135deg, var(--red), #a90f20); border-radius: 9px; box-shadow: 0 7px 18px rgba(226,29,47,.22); }
.footer-title-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-list, .footer-hours { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.footer-list li { display: grid; grid-template-columns: 22px 1fr; gap: 11px; color: rgba(255,255,255,.65); font-size: .87rem; }
.footer-list svg { width: 20px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-list a, .footer-nav a { color: rgba(255,255,255,.72); text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover, .footer-nav a:hover { color: #fff; }
.footer-hours li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; color: rgba(255,255,255,.55); font-size: .82rem; }
.footer-hours li > svg { width: 32px; height: 32px; padding: 7px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; }
.footer-hours li div { display: grid; gap: 2px; }
.footer-hours strong { color: #fff; font-size: .9rem; }
.footer-nav { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.footer-nav h2 { margin-bottom: 11px; }
.footer-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; margin-left: -9px; font-size: .86rem; border-radius: 8px; transition: color .2s, background .2s, transform .2s; }
.footer-nav a:hover { background: rgba(255,255,255,.065); transform: translateX(3px); }
.footer-nav a > svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 58px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { color: rgba(255,255,255,.48); font-size: .78rem; }
.footer-bottom a { color: rgba(255,255,255,.78); font-weight: 750; }

.whatsapp-float { position: fixed; z-index: 80; right: 22px; bottom: 22px; display: grid; width: 58px; aspect-ratio: 1; place-items: center; padding: 0; color: #fff; background: #168b4f; border-radius: 50%; box-shadow: 0 14px 35px rgba(0,0,0,.24); text-decoration: none; }
.whatsapp-float svg { width: 29px; fill: currentColor; }
.whatsapp-float:hover { background: #0f6d3d; transform: translateY(-2px); }
.lightbox { width: min(1120px, calc(100% - 24px)); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(4px); }
.lightbox-frame { position: relative; display: grid; place-items: center; min-height: 220px; }
.lightbox img { max-width: 100%; max-height: 84vh; margin: auto; border-radius: 9px; box-shadow: 0 20px 80px #000; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lightbox button { position: absolute; z-index: 2; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; transition: background .2s, transform .2s; }
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox-close { top: -46px; right: 0; width: 40px; height: 40px; background: rgba(0,0,0,.35); font-size: 1.55rem; }
.lightbox-nav { top: 50%; width: 50px; height: 74px; color: #fff; background: transparent; border: 0 !important; border-radius: 0 !important; transform: translateY(-50%); }
.lightbox-nav svg { width: 38px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 5px rgba(0,0,0,.9)); }
.lightbox .lightbox-nav:hover { color: var(--red); background: transparent; border-color: transparent; transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 14px; left: 50%; margin: 0; padding: 6px 12px; color: #fff; background: rgba(0,0,0,.68); border-radius: 999px; font-size: .78rem; font-weight: 800; transform: translateX(-50%); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { height: 88px; }
  .brand img { width: 160px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 88px 0 auto; display: grid; width: 100%; height: calc(100dvh - 88px); place-content: center; gap: 25px; background: rgba(16,16,16,.99); text-align: center; transform: translateX(100%); transition: transform .28s; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.2rem; }
  .nav-cta { justify-self: center; }
  .hero { min-height: 760px; }
  .hero-media { background-position: 66% center; }
  .about-grid, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo > img { height: clamp(300px, 55vw, 430px); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  :root { --container: min(100% - 28px, 1160px); }
  .section { padding: 78px 0; }
  .hero { min-height: 720px; }
  .hero-media { background-image: linear-gradient(90deg, rgba(8,8,8,.76), rgba(8,8,8,.38)), url("assets/hero-portao-esquadriart.webp"); }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
    .hero h1 span {
    color: #fff;
    -webkit-text-stroke: 0;
    text-shadow: 0 3px 18px rgba(0,0,0,.35);
  }
  .hero-content { padding-top: 75px; }
  .experience-badge { right: -4px; }
  .about-photo > img { height: 280px; }
  .lightbox-nav { width: 42px; height: 62px; }
  .lightbox-nav svg { width: 32px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .service-grid, .field-row { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 28px; }
  .gallery-grid { grid-auto-rows: 175px; }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .gallery-item.tall { grid-row: span 2; }
  .rating-inner { grid-template-columns: 1fr; justify-items: start; gap: 9px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .quote-form { padding: 24px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 56px; height: 56px; justify-content: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
