:root {
  --black: #090909;
  --black-2: #101010;
  --white: #f4f1eb;
  --paper: #f1eee8;
  --text: #22201d;
  --muted: #8d8981;
  --gold: #c9a05a;
  --gold-light: #e1c078;
  --line: rgba(201, 160, 90, .28);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: "Manrope", sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 80px)); margin: 0 auto; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--gold); z-index: 1000; }

.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 92px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 35px;
  padding: 0 48px; transition: .35s ease;
}
.site-header.scrolled { background: rgba(8,8,8,.94); backdrop-filter: blur(12px); height: 76px; border-bottom: 1px solid rgba(255,255,255,.08); }

.brand { display: flex; align-items: center; gap: 14px; min-width: 250px; }
.brand-mark { font-family: "Cormorant Garamond", serif; font-size: 48px; line-height: .8; color: var(--gold-light); letter-spacing: -4px; }
.brand-mark sup { font-size: 18px; vertical-align: top; letter-spacing: 0; margin-left: 2px; }
.brand-divider { width: 1px; height: 42px; background: var(--gold); opacity: .7; }
.brand-name { display: flex; flex-direction: column; }
.brand-name strong { font: 500 34px/0.9 "Cormorant Garamond", serif; letter-spacing: 1px; color: #e5c27e; }
.brand-name small, .footer-brand small { font-size: 7px; line-height: 1.45; letter-spacing: 3px; color: #b4a07c; margin-top: 8px; }

.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.desktop-nav a { color: #ddd8cf; transition: color .25s; }
.desktop-nav a:hover { color: var(--gold-light); }
.header-cta { border: 1px solid var(--gold); padding: 12px 18px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; transition: .25s; }
.header-cta:hover { background: var(--gold); color: var(--black); }
.header-cta span, .btn span { margin-left: 12px; }
.menu-toggle, .mobile-menu { display: none; }

.hero { min-height: 100vh; position: relative; display: flex; align-items: center; }
.hero-image { position: absolute; inset: 0; background-image: url("../images/projeto-painel-01.jpg"); background-size: cover; background-position: center 52%; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,4,4,.92) 0%, rgba(4,4,4,.62) 42%, rgba(4,4,4,.16) 100%), linear-gradient(0deg, rgba(4,4,4,.62), transparent 35%, rgba(4,4,4,.35)); }
.hero-content { position: relative; z-index: 2; width: min(760px, calc(100% - 80px)); margin-left: max(40px, calc((100% - 1240px) / 2)); padding-top: 80px; }
.eyebrow { font-size: 10px; letter-spacing: 3px; font-weight: 700; color: #8e8a83; margin-bottom: 20px; }
.eyebrow.gold { color: var(--gold); }
.hero h1, h2 { font: 500 clamp(52px, 6vw, 92px)/.91 "Cormorant Garamond", serif; letter-spacing: -2px; }
h2 { color: var(--text); font-size: clamp(48px, 5vw, 76px); }
h2 em, .hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 500; }
.hero h1 { color: #fff; max-width: 780px; }
.hero-text { max-width: 510px; color: #d4d0c9; font-size: 15px; margin: 28px 0 34px; }
.hero-actions { display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: .3s; }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: white; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.hero-bottom { position: absolute; z-index: 2; bottom: 32px; left: 48px; right: 48px; display: flex; align-items: center; gap: 16px; color: #aaa49b; font-size: 9px; letter-spacing: 2px; }
.hero-bottom .line { height: 1px; width: 90px; background: var(--gold); }

.section-dark { background: var(--black); }
.section-light { background: var(--paper); color: var(--text); }
.intro { padding: 150px 0 160px; }
.intro-grid { display: grid; grid-template-columns: 70px 1.25fr 1fr; gap: 30px; }
.section-number { color: var(--gold); font: 20px "Cormorant Garamond", serif; padding-top: 8px; }
.intro-title h2 { color: var(--white); }
.intro-copy { align-self: end; max-width: 450px; color: #aaa59d; font-size: 14px; }
.intro-copy p + p { margin-top: 20px; }
.text-link { display: inline-block; margin-top: 28px; color: var(--gold-light); text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.text-link span { margin-left: 12px; }

.services { padding: 140px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 70px; align-items: end; margin-bottom: 75px; }
.section-heading h2 { margin-top: 4px; }
.heading-description { max-width: 390px; color: #77736d; font-size: 13px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d7d2c8; }
.service-card { position: relative; min-height: 300px; padding: 32px 28px; border-right: 1px solid #d7d2c8; transition: .3s; }
.service-card:first-child { border-left: 1px solid #d7d2c8; }
.service-card:hover { background: #e8e4dc; transform: translateY(-6px); }
.service-number { color: var(--gold); font-size: 10px; letter-spacing: 2px; }
.service-icon { font-size: 36px; color: #a28a60; margin: 48px 0 18px; font-family: "Cormorant Garamond", serif; }
.service-card h3 { font: 600 28px "Cormorant Garamond", serif; margin-bottom: 10px; }
.service-card p { color: #7c7870; font-size: 12px; }

.projects { padding: 145px 0 100px; }
.projects-top { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 65px; }
.projects-top h2 { color: var(--white); }
.projects-top > p { max-width: 340px; color: #85817b; font-size: 12px; }
.project-gallery { position: relative; width: 100%; }
.carousel { position: relative; width: 100%; overflow: hidden; background: #161616; }
.carousel-track { display: flex; transition: transform .6s ease; touch-action: pan-y; will-change: transform; }
.carousel-slide { position: relative; min-width: 100%; height: 600px; margin: 0; overflow: hidden; background: #161616; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.carousel-slide:hover img { transform: scale(1.04); }
.carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 45%); pointer-events: none; }
.carousel-slide figcaption { position: absolute; z-index: 2; bottom: 28px; left: 28px; right: 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: end; }
.carousel-slide figcaption span { color: var(--gold); font-size: 10px; }
.carousel-slide figcaption strong { font: 500 31px "Cormorant Garamond", serif; }
.carousel-slide figcaption small { grid-column: 2; color: #bbb5ac; font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.38); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: .3s ease; display: grid; place-items: center; }
.carousel-btn:hover { background: rgba(201,160,90,.9); color: #090909; border-color: var(--gold); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }
.carousel-dots { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: .3s ease; }
.carousel-dot.active { width: 24px; border-radius: 10px; background: var(--gold-light); }
.project-note { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #8d8981; font-size: 9px; letter-spacing: 2px; }
.project-note a { color: var(--gold-light); }
.project-note a span { margin-left: 12px; }

.details { padding: 140px 0; }
.process-list { border-top: 1px solid #d7d2c8; }
.process-item { display: grid; grid-template-columns: 100px 1fr; gap: 35px; padding: 32px 0; border-bottom: 1px solid #d7d2c8; }
.process-item > span { color: var(--gold); font: 22px "Cormorant Garamond", serif; }
.process-item h3 { font: 600 30px "Cormorant Garamond", serif; margin-bottom: 5px; }
.process-item p { color: #77736d; font-size: 12px; max-width: 550px; }

.quote { min-height: 620px; position: relative; display: grid; place-items: center; overflow: hidden; }
.quote-bg { position: absolute; inset: 0; background: url("../images/projeto-painel-02.jpg") center/cover; filter: grayscale(.35); opacity: .36; }
.quote-bg::after { content: ""; position: absolute; inset: 0; background: rgba(5,5,5,.55); }
.quote-content { position: relative; z-index: 2; text-align: center; }
.quote-content h2 { color: white; font-size: clamp(58px, 7vw, 105px); }

.contact { padding: 145px 0 130px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.contact-copy h2 { color: white; margin-bottom: 25px; }
.contact-copy > p:not(.eyebrow) { color: #8d8981; font-size: 13px; max-width: 440px; }
.contact-info { display: flex; gap: 30px; margin-top: 35px; }
.contact-info a { color: var(--gold-light); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.contact-info span { margin-left: 10px; }
.contact-form { border-top: 1px solid rgba(255,255,255,.18); }
.contact-form label { display: block; padding: 20px 0 0; color: #9b968e; text-transform: uppercase; letter-spacing: 1.5px; font-size: 9px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 8px; border: 0; border-bottom: 1px solid rgba(255,255,255,.18); background: transparent; color: white; padding: 9px 0 13px; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form .btn { margin-top: 28px; }
.contact-form small { display: block; margin-top: 12px; color: #65615c; font-size: 9px; }

.footer { background: #050505; border-top: 1px solid rgba(255,255,255,.08); padding: 55px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 55px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand > div { display: flex; flex-direction: column; }
.footer-brand strong { font: 500 37px "Cormorant Garamond", serif; color: #e0bd76; }
.footer-top > p { color: #69655f; font: italic 18px "Cormorant Garamond", serif; text-align: right; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; color: #5f5b55; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.footer-bottom a { color: #a18c65; }

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

@media (max-width: 1000px) {
  .site-header { padding: 0 25px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; }
  .menu-toggle span { display: block; width: 28px; height: 1px; background: white; }
  .mobile-menu { position: fixed; z-index: 90; top: 76px; left: 0; width: 100%; background: rgba(8,8,8,.98); padding: 20px 25px 30px; flex-direction: column; gap: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-transform: uppercase; letter-spacing: 2px; font-size: 10px; color: #ccc; }
  .intro-grid { grid-template-columns: 45px 1fr; }
  .intro-copy { grid-column: 2; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(3) { border-left: 1px solid #d7d2c8; border-top: 1px solid #d7d2c8; }
  .service-card:nth-child(4) { border-top: 1px solid #d7d2c8; }
  .contact-grid { gap: 60px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 40px, 560px); }
  .brand { min-width: 0; }
  .brand-mark { font-size: 39px; }
  .brand-name strong { font-size: 28px; }
  .brand-name small { font-size: 5px; letter-spacing: 2px; }
  .brand-divider { height: 34px; }
  .hero-content { width: calc(100% - 40px); margin-left: 20px; padding-top: 90px; }
  .hero h1 { font-size: 58px; }
  .hero-text { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-bottom { left: 20px; right: 20px; bottom: 20px; }
  .intro, .services, .projects, .details, .contact { padding: 90px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 18px; }
  .section-number { display: none; }
  .intro-copy { grid-column: auto; }
  .section-heading, .projects-top { display: block; margin-bottom: 45px; }
  .heading-description, .projects-top > p { margin-top: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(3), .service-card:nth-child(4) { border-left: 1px solid #d7d2c8; border-top: 1px solid #d7d2c8; min-height: 245px; }
  .service-card:first-child { border-top: 0; }
  .service-icon { margin-top: 25px; }
  .project-gallery { width: 100%; }
  .carousel-slide { height: 430px; }
  .carousel-btn { width: 42px; height: 42px; font-size: 17px; }
  .carousel-btn.prev { left: 12px; }
  .carousel-btn.next { right: 12px; }
  .carousel-slide figcaption { left: 20px; bottom: 25px; }
  .carousel-slide figcaption strong { font-size: 25px; }
  .carousel-dots { bottom: 16px; }
  .process-item { grid-template-columns: 55px 1fr; gap: 15px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-top { display: block; }
  .footer-top > p { text-align: left; margin-top: 28px; }
  .footer-bottom { display: block; line-height: 2; }
  .footer-bottom a { display: block; margin-top: 8px; }
}


/* Project cards and modal */
.project-card { cursor: pointer; }
.project-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -4px; }
.project-card figcaption { grid-template-columns: auto 1fr; }
.project-caption-main { min-width: 0; }
.project-price {
  grid-column: 2;
  justify-self: start;
  margin-top: 7px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}
.project-open-hint {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 28px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.42);
  color: #eee8df;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0;
  transform: translateY(-6px);
  transition: .3s ease;
}
.project-open-hint span { margin-left: 7px; color: var(--gold-light); }
.project-card:hover .project-open-hint,
.project-card:focus-visible .project-open-hint { opacity: 1; transform: translateY(0); }

body.modal-open { overflow: hidden; }
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.project-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
}
.project-modal-content {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  padding: 34px;
  background: #111;
  border: 1px solid rgba(201,160,90,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.project-modal-content h3 {
  margin: -8px 0 22px;
  color: #fff;
  font: 500 clamp(34px, 4vw, 52px)/1 "Cormorant Garamond", serif;
}
.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: .25s ease;
}
.project-modal-close:hover { background: var(--gold); color: #111; border-color: var(--gold); }
.project-modal-gallery {
  position: relative;
  min-height: 300px;
  background: #080808;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-modal-gallery > img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}
.project-modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .25s ease;
}
.project-modal-btn:hover { background: var(--gold); color: #111; border-color: var(--gold); }
.project-modal-btn.prev { left: 18px; }
.project-modal-btn.next { right: 18px; }
.project-modal-counter {
  padding: 12px 0 10px;
  color: #77736d;
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
}
.project-modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 4px;
}
.project-modal-thumb {
  flex: 0 0 80px;
  height: 55px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  background: #080808;
  cursor: pointer;
  opacity: .55;
  transition: .25s ease;
}
.project-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-modal-thumb:hover,
.project-modal-thumb.active { opacity: 1; border-color: var(--gold); }

@media (max-width: 700px) {
  .project-price { font-size: 11px; }
  .project-open-hint { top: 18px; right: 18px; }
  .project-modal { padding: 12px; }
  .project-modal-content { padding: 24px 16px 18px; max-height: calc(100vh - 24px); }
  .project-modal-content h3 { padding-right: 45px; margin-top: 0; }
  .project-modal-gallery { min-height: 220px; }
  .project-modal-gallery > img { max-height: 52vh; }
  .project-modal-btn { width: 40px; height: 40px; }
}
