:root {
  --orange: #ff6812;
  --ink: #0f1012;
  --ink-2: #1a1c1f;
  --cream: #f7f5f0;
  --white: #fff;
  --muted: #6f6f6f;
  --line: #e2ded6;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0,0,0,.16);
  --container: min(1280px, calc(100% - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.5; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
section[id], main[id] { scroll-margin-top: 112px; }
.skip-link { position:fixed; left:16px; top:14px; z-index:999; background:#fff; color:var(--ink); font-weight:800; padding:10px 14px; border-radius:10px; transform:translateY(-160%); transition:transform .18s; box-shadow:var(--shadow); }
.skip-link:focus { transform:translateY(0); }


.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,8,10,.97); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.nav-wrap { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 270px; }
.brand img { width: 62px; height: 62px; object-fit: cover; border-radius: 5px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 22px; letter-spacing: .04em; }
.brand-copy b { font-size: 15px; letter-spacing: .08em; }
.brand-copy small { margin-top: 6px; color: var(--orange); font-weight: 700; }
.primary-nav { margin-left: auto; display: flex; gap: 32px; align-items: center; font-weight: 650; font-size: 15px; }
.primary-nav a { padding: 14px 0; position: relative; }
.primary-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:7px; height:2px; background:var(--orange); transition:.22s; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right:0; }
.call-btn { display: grid; padding: 11px 19px; border-radius: 18px; background: var(--orange); line-height: 1.1; }
.call-btn span { font-size: 12px; opacity: .9; }
.call-btn strong { font-size: 15px; margin-top: 4px; white-space: nowrap; }
.menu-toggle { display:none; width:48px; height:48px; background:transparent; border:0; padding:9px; }
.menu-toggle span { display:block; height:3px; background:#fff; margin:6px 0; border-radius:99px; }

.hero { min-height: 720px; position: relative; color:#fff; overflow:hidden; display:flex; align-items:stretch; }
.hero-bg, .contact-bg { position:absolute; inset:0; background: center / cover no-repeat url("assets/images/hero.webp"); }
.hero-shade { position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.12) 100%); }
.hero-content { position:relative; z-index:2; padding: 110px 0 190px; align-self:center; }
.eyebrow { margin:0 0 16px; color:var(--orange); font-size: 13px; font-weight: 850; letter-spacing:.12em; text-transform:uppercase; }
.hero h1 { margin:0; font-size: clamp(56px, 6vw, 86px); line-height:.95; letter-spacing:-.04em; }
.hero h1 span { color:var(--orange); }
.hero-specialties { max-width:850px; margin:28px 0 0; font-size: clamp(18px, 2vw, 26px); font-weight: 760; }
.hero-specialties i { color:var(--orange); font-style:normal; margin:0 6px; }
.hero-sub { font-size:18px; color:rgba(255,255,255,.85); }
.hero-actions { display:flex; gap:16px; margin-top:35px; }
.btn { min-height:56px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:0 24px; border-radius:16px; border:2px solid transparent; font-weight:800; text-transform:uppercase; font-size:14px; letter-spacing:.02em; }
.btn-primary { background:var(--orange); color:#fff; }
.btn-primary:hover { filter:brightness(1.05); transform:translateY(-1px); }
.btn-outline { border-color:#fff; color:#fff; background:rgba(0,0,0,.1); }
.proof-strip { position:absolute; left:0; right:0; bottom:0; z-index:3; background:rgba(8,9,11,.96); }
.proof-grid { min-height:110px; display:grid; grid-template-columns:repeat(4,1fr); gap:1px; }
.proof-grid > div { display:grid; align-content:center; padding:18px 20px; border-left:1px solid rgba(255,255,255,.08); }
.proof-grid strong { color:var(--orange); font-size:18px; }
.proof-grid span { color:#ddd; text-transform:uppercase; font-size:11px; letter-spacing:.07em; }

.section { padding: 84px 0; }
.section-light { background:#fff; }
.section-dark { background:var(--ink); color:#fff; }
.section h2 { margin:0; font-size:clamp(38px,4vw,56px); letter-spacing:-.03em; line-height:1; }
.section-lead { max-width:980px; color:var(--muted); font-size:17px; margin:18px 0 0; }
.dark-lead { color:#bdbdbd; }

.service-grid { margin-top:52px; display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
.service-card { min-width:0; }
.image-button { position:relative; width:100%; height:310px; padding:0; border:0; background:#ddd; border-radius:18px; overflow:hidden; }
.image-button img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.image-button:hover img { transform:scale(1.025); }
.number-badge, .project-tag { position:absolute; top:13px; left:13px; background:var(--orange); color:#fff; font-size:11px; font-weight:900; padding:7px 12px; border-radius:10px; text-transform:uppercase; }
.service-card h3 { margin:20px 0 4px; font-size:17px; line-height:1.2; }
.service-card p { margin:0 0 12px; color:var(--muted); font-size:13px; }
.text-link { border:0; padding:5px 0; background:transparent; color:var(--orange); font-weight:850; text-transform:uppercase; font-size:12px; letter-spacing:.04em; }
.text-link span { transition: transform .2s; display:inline-block; }
.text-link:hover span { transform:translateX(4px); }
.service-note { margin-top:60px; background:#f0ede7; border-radius:14px; padding:18px 22px; font-weight:760; }

.featured-layout { margin-top:52px; display:grid; grid-template-columns:2fr 1fr; gap:22px; }
.media-card { position:relative; padding:0; border:0; border-radius:20px; overflow:hidden; background:#222; color:#fff; text-align:left; min-height:240px; }
.media-card img { width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.media-card:hover img { transform:scale(1.02); }
.feature-main { min-height:500px; }
.feature-side { display:grid; grid-template-rows:1fr 1fr; gap:22px; }
.media-overlay { position:absolute; inset:auto 0 0; display:grid; gap:6px; padding:26px; background:linear-gradient(0deg,rgba(0,0,0,.92),rgba(0,0,0,.05)); }
.media-overlay strong { font-size:24px; }
.media-overlay small { color:#d1d1d1; }
.media-overlay b { color:var(--orange); text-transform:uppercase; font-size:12px; }
.media-overlay.compact { padding:18px; }
.media-overlay.compact strong { font-size:18px; }
.project-grid { margin-top:22px; display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.project-card { position:relative; min-height:280px; padding:0; border:0; background:#222; border-radius:17px; overflow:hidden; color:#fff; text-align:left; }
.project-card img { width:100%; height:100%; object-fit:cover; }
.project-copy { position:absolute; inset:auto 0 0; padding:18px; display:grid; gap:4px; background:linear-gradient(0deg,rgba(0,0,0,.95),rgba(0,0,0,.08)); }
.project-copy strong { font-size:17px; }
.project-copy small { color:#d1d1d1; }
.projects-action { margin-top:45px; }
.text-link-light { color:var(--orange); }

.process-section { background:#fff; }
.process-grid { margin-top:48px; display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.process-grid figure { margin:0; position:relative; height:320px; border-radius:16px; overflow:hidden; }
.process-grid img { width:100%; height:100%; object-fit:cover; }
.process-grid figcaption { position:absolute; top:14px; left:14px; padding:7px 12px; border-radius:10px; background:var(--orange); color:#fff; font-size:11px; text-transform:uppercase; font-weight:900; }
.process-points { margin-top:28px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.process-points > div, .trust-grid > div { border-radius:15px; background:var(--cream); padding:18px; display:grid; gap:6px; }
.process-points strong, .trust-grid strong { color:var(--orange); text-transform:uppercase; font-size:12px; }
.process-points span, .trust-grid span { font-size:13px; }

.about-section { background:var(--cream); }
.about-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:68px; align-items:center; }
.about-copy h2 { margin:0 0 28px; font-size:clamp(40px,4vw,56px); letter-spacing:-.03em; }
.about-copy p { font-size:17px; margin:0 0 18px; max-width:670px; }
.about-copy .btn { margin-top:18px; }
.about-collage { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.about-collage img { width:100%; height:230px; object-fit:cover; border-radius:18px; }
.trust-section { background:#fff; }
.trust-grid { margin-top:36px; display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }

.contact-section { position:relative; color:#fff; padding:82px 0; overflow:hidden; }
.contact-bg { background-image:url("assets/images/pergola_main.webp"); }
.contact-shade { position:absolute; inset:0; background:rgba(5,6,8,.7); }
.contact-content { position:relative; z-index:2; }
.contact-intro h2 { margin:0; font-size:clamp(44px,5vw,66px); letter-spacing:-.04em; }
.contact-intro p:last-child { color:#ddd; font-size:17px; }
.contact-layout { margin-top:40px; display:grid; grid-template-columns:.8fr 1.2fr; gap:24px; align-items:start; }
.contact-card { background:rgba(15,16,18,.96); border-radius:20px; padding:28px; box-shadow:var(--shadow); }
dl { margin:0; }
dl > div { display:grid; grid-template-columns:120px 1fr; gap:16px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.08); }
dt { color:var(--orange); font-size:12px; font-weight:850; text-transform:uppercase; }
dd { margin:0; }
.social-row { margin-top:22px; display:flex; gap:10px; flex-wrap:wrap; }
.social-row a { border:1px solid rgba(255,255,255,.35); border-radius:12px; padding:8px 12px; font-size:12px; }
.estimate-form { background:#faf9f6; color:var(--ink); border-radius:20px; padding:30px; box-shadow:var(--shadow); }
.estimate-form h3 { margin:0 0 20px; font-size:28px; }
.estimate-form label { display:grid; gap:7px; color:var(--muted); font-size:13px; margin-bottom:15px; }
.estimate-form input, .estimate-form textarea, .estimate-form select { width:100%; border:0; border-bottom:2px solid var(--line); background:transparent; border-radius:0; padding:9px 0; outline:none; color:var(--ink); }
.estimate-form input:focus, .estimate-form textarea:focus, .estimate-form select:focus { border-color:var(--orange); }
.estimate-form .btn { border:0; margin-top:4px; }
.form-note { color:var(--muted); font-size:12px; margin:12px 0 0; }

.site-footer { padding:55px 0 24px; background:#07080a; color:#c9c9c9; }
.footer-grid { display:grid; grid-template-columns:1.6fr .7fr 1fr; gap:60px; }
.footer-brand { color:#fff; font-size:28px; font-weight:900; }
.footer-brand span { color:var(--orange); font-size:16px; margin-left:8px; }
.footer-slogan { color:var(--orange); font-weight:800; }
.footer-grid h3 { color:var(--orange); text-transform:uppercase; font-size:12px; }
.footer-grid > div:nth-child(n+2) { display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.footer-grid button { color:#c9c9c9; background:transparent; border:0; padding:0; }
.footer-grid a:hover, .footer-grid button:hover { color:#fff; }
.footer-bottom { border-top:1px solid #1f2023; margin-top:35px; padding-top:22px; font-size:11px; color:#7f7f7f; }

.gallery-modal { position:fixed; inset:0; z-index:100; display:none; }
.gallery-modal.is-open { display:block; }
.gallery-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.78); backdrop-filter:blur(5px); }
.gallery-dialog { position:relative; z-index:2; width:min(1100px,calc(100% - 34px)); max-height:92vh; overflow:auto; margin:4vh auto; background:#111214; color:#fff; border-radius:22px; padding:28px; box-shadow:0 30px 100px rgba(0,0,0,.6); }
.gallery-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.gallery-header h2 { margin:0; font-size:36px; }
.gallery-close { background:#24262a; color:#fff; width:48px; height:48px; border-radius:50%; border:0; font-size:30px; line-height:1; }
.gallery-main { margin-top:22px; min-height:500px; display:grid; place-items:center; background:#060708; border-radius:16px; overflow:hidden; }
.gallery-main img, .gallery-main video { width:100%; max-height:68vh; object-fit:contain; }
.gallery-caption { color:#c9c9c9; margin-top:14px; min-height:24px; }
.gallery-controls { display:flex; justify-content:center; align-items:center; gap:25px; margin:16px 0; }
.gallery-controls button { width:50px; height:42px; border:1px solid #444; background:#1b1d20; color:#fff; border-radius:12px; }
.gallery-thumbs { display:flex; gap:10px; overflow:auto; padding-bottom:7px; }
.gallery-thumbs button { flex:0 0 100px; height:72px; padding:0; border:2px solid transparent; border-radius:10px; overflow:hidden; background:#222; opacity:.7; }
.gallery-thumbs button.active { border-color:var(--orange); opacity:1; }
.gallery-thumbs img { width:100%; height:100%; object-fit:cover; }
.gallery-thumb-video { width:100%; height:100%; display:grid; place-items:center; background:#23252a; color:var(--orange); font-weight:900; }
body.modal-open { overflow:hidden; }

@media (max-width: 1050px) {
  .primary-nav { gap:18px; }
  .call-btn { display:none; }
  .service-grid { grid-template-columns:repeat(3,1fr); }
  .service-card:nth-child(n+4) { grid-column:auto; }
  .trust-grid { grid-template-columns:repeat(3,1fr); }
  .project-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 32px, 640px); }
  .site-header { position:sticky; }
  .nav-wrap { min-height:76px; gap:12px; }
  .brand { min-width:0; }
  .brand img { width:48px; height:48px; }
  .brand-copy strong { font-size:16px; }
  .brand-copy b { font-size:12px; }
  .brand-copy small { font-size:9px; }
  .menu-toggle { display:block; margin-left:auto; }
  .primary-nav { display:none; position:absolute; top:76px; left:0; right:0; margin:0; background:#0a0b0d; padding:14px 22px 22px; flex-direction:column; align-items:stretch; gap:2px; border-top:1px solid #222; }
  .primary-nav.is-open { display:flex; }
  .primary-nav a { padding:13px 4px; border-bottom:1px solid #1b1c1e; }

  .hero { min-height:780px; }
  .hero-shade { background:linear-gradient(180deg,rgba(0,0,0,.73),rgba(0,0,0,.37) 55%,rgba(0,0,0,.55)); }
  .hero-content { padding:72px 0 250px; }
  .hero h1 { font-size:clamp(52px,15vw,76px); }
  .hero-specialties { font-size:17px; line-height:1.5; }
  .hero-sub { font-size:16px; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .proof-grid { grid-template-columns:1fr 1fr; min-height:178px; }
  .proof-grid > div { min-height:89px; padding:12px 14px; }

  .section { padding:64px 0; }
  .section h2 { font-size:42px; }
  .service-grid { grid-template-columns:1fr; gap:34px; }
  .image-button { height:320px; }
  .service-card h3 { font-size:21px; }
  .service-note { margin-top:40px; }

  .featured-layout { grid-template-columns:1fr; }
  .feature-main { min-height:390px; }
  .feature-side { grid-template-rows:none; grid-template-columns:1fr; }
  .feature-side .media-card { min-height:260px; }
  .project-grid { grid-template-columns:1fr; }
  .project-card { min-height:290px; }

  .process-grid { grid-template-columns:1fr; }
  .process-grid figure { height:300px; }
  .process-points { grid-template-columns:1fr; }
  .about-collage { gap:10px; }
  .about-collage img { height:180px; }
  .trust-grid { grid-template-columns:1fr; }

  .contact-section { padding:65px 0; }
  .contact-layout { grid-template-columns:1fr; }
  dl > div { grid-template-columns:110px 1fr; }
  .estimate-form { padding:24px; }
  .footer-grid { grid-template-columns:1fr; gap:30px; }

  .gallery-dialog { padding:18px; margin:2vh auto; max-height:96vh; }
  .gallery-main { min-height:280px; }
  .gallery-header h2 { font-size:28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}

/* Production polish */
.form-help { margin:-6px 0 4px; color:var(--muted); font-size:14px; }
.form-split { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.optional { color:var(--muted); font-size:12px; font-weight:500; text-transform:none; }
.form-actions { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.form-whatsapp { color:var(--orange); font-weight:800; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.estimate-form input:invalid:not(:placeholder-shown), .estimate-form textarea:invalid:not(:placeholder-shown) { border-color:#b42318; }
.estimate-form .field-error { color:#b42318; font-size:12px; margin-top:4px; }
@media (max-width: 680px) { .form-split { grid-template-columns:1fr; } }


/* Production form + legal footer */
.form-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-legal {
  display: inline-flex;
  gap: 1rem;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
}
.footer-legal a:hover, .footer-legal a:focus-visible {
  color: #ff6812;
}
.legal-page {
  min-height: 70vh;
  padding: 5rem 0;
}
.legal-page h1 {
  margin-bottom: 1rem;
}
.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: .6rem;
}
.legal-page p, .legal-page li {
  line-height: 1.75;
}
.legal-page .legal-card {
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
}
.thank-you-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.thank-you-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .footer-bottom { align-items: flex-start; }
  .footer-legal { width: 100%; }
}
