:root {
  --bg: #0d1417;
  --bg-soft: #141d21;
  --panel: #192327;
  --panel-light: #f5f1ea;
  --text: #f5f3ef;
  --muted: #a9afb0;
  --ink: #172024;
  --copper: #d49568;
  --copper-dark: #b9784e;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(18,27,31,.15);
  --success: #55c48b;
  --danger: #dd6b68;
  --radius: 8px;
  --container: 1440px;
  color-scheme: dark;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-name { font-family: Inter, 'Segoe UI', Arial, sans-serif; }
.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; }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.narrow-container { width: min(calc(100% - 40px), 820px); }
.section { padding: 92px 0; }
.eyebrow { margin: 0 0 18px; color: var(--copper); font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.section-rule { display: block; width: 38px; height: 2px; margin-bottom: 20px; background: var(--copper); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); }
.button--copper { background: var(--copper); color: #1a1512; }
.button--copper:hover { background: #e0a377; }
.button--outline { border-color: rgba(255,255,255,.34); background: transparent; color: var(--text); }
.button--outline:hover, .button--outline-light:hover { border-color: var(--copper); color: var(--copper); }
.button--outline-light { margin-top: 28px; border-color: rgba(255,255,255,.25); color: var(--text); }
.button--large { min-height: 58px; padding: 0 34px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.text-link { color: var(--copper); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.site-header { position: relative; z-index: 20; background: #0d1417; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 88px; align-items: center; gap: 28px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.brand-mark { position: relative; display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid var(--copper); color: var(--copper); transform: rotate(45deg); }
.brand-mark::after { content: ''; position: absolute; inset: 7px; border: 1px solid currentColor; }
.brand-mark span { font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: .72rem; font-weight: 600; transform: rotate(-45deg); }
.brand-name { font-size: .84rem; font-weight: 500; letter-spacing: .19em; white-space: nowrap; }
.brand-name strong { color: var(--muted); font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); margin-left: auto; }
.main-nav a { position: relative; color: #d8dbda; font-size: .84rem; }
.main-nav a::after { content: ''; position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: var(--copper); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switcher { display: flex; align-items: center; gap: 5px; margin-right: 2px; font-size: .68rem; letter-spacing: .08em; }
.language-link { color: #838d8f; }
.language-link--active { color: var(--copper); }
.language-divider { color: #596164; }
.header-actions .button { min-height: 44px; padding-inline: 18px; font-size: .68rem; }
.nav-toggle { display: none; width: 46px; height: 44px; margin-left: auto; padding: 11px; border: 1px solid var(--line); background: transparent; color: var(--text); }
.nav-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.hero-section { position: relative; min-height: 650px; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,11,13,.95) 0%, rgba(6,11,13,.78) 32%, rgba(6,11,13,.32) 64%, rgba(6,11,13,.08) 100%), linear-gradient(0deg, rgba(7,12,14,.38), transparent 55%); }
.hero-content { position: relative; z-index: 2; display: flex; min-height: 650px; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 72px; }
.hero-content h1 { max-width: 850px; margin: 0 0 24px; font-size: clamp(3.1rem, 6vw, 6.5rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; text-transform: uppercase; }
.hero-content h1 span { display: block; color: var(--copper); }
.hero-text { max-width: 640px; margin-bottom: 34px; color: #d2d6d5; font-size: clamp(1rem, 1.3vw, 1.22rem); line-height: 1.7; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #111a1e; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { display: flex; min-height: 98px; align-items: center; gap: 18px; padding: 20px 28px; border-right: 1px solid var(--line); color: #d5d8d7; font-size: .9rem; }
.trust-grid > div:last-child { border-right: 0; }
.trust-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(212,149,104,.55); color: var(--copper); font-size: 1.25rem; }

.services-section { background: #10181b; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.035em; text-transform: uppercase; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.service-card { min-height: 310px; padding: 34px 28px; background: var(--bg-soft); transition: background .2s ease, transform .2s ease; }
.service-card:hover { position: relative; z-index: 1; background: #1b272b; transform: translateY(-4px); }
.service-number { color: var(--copper); font-size: .72rem; letter-spacing: .15em; }
.service-card h3 { margin: 72px 0 14px; font-size: 1.25rem; font-weight: 500; }
.service-card p { min-height: 76px; color: var(--muted); font-size: .92rem; }
.service-card a { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); color: var(--copper); font-size: .78rem; text-transform: uppercase; }

.projects-section { background: #0b1215; }
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.projects-grid--all { grid-template-columns: repeat(3, 1fr); }
.project-card { overflow: hidden; background: var(--panel); }
.project-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222e33; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card-body { display: flex; min-height: 98px; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.project-card-body span { color: var(--copper); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.project-card-body h3 { margin: 6px 0 0; font-size: 1rem; font-weight: 500; }
.project-card-body > a { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); color: var(--copper); }
.empty-public { display: grid; min-height: 240px; place-items: center; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.process-section { background: #121c20; }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 140px); }
.process-grid h2 { max-width: 540px; margin-bottom: 18px; font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; text-transform: uppercase; }
.process-grid > div > p:not(.eyebrow) { max-width: 580px; color: var(--muted); }
.process-grid ol { margin: 0; padding: 0; list-style: none; }
.process-grid li { display: grid; grid-template-columns: 62px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.process-grid li:last-child { border-bottom: 1px solid var(--line); }
.process-grid li > span { color: var(--copper); font-size: .78rem; }
.process-grid strong { font-family: Inter, 'Segoe UI', Arial, sans-serif; font-weight: 500; }
.process-grid li p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

.testimonial-section { background: var(--copper); color: #1c1714; text-align: center; }
.testimonial-section blockquote { max-width: 1050px; margin: 0 auto 24px; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: clamp(1.7rem, 3.2vw, 3.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.3; }
.testimonial-section p { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.quote-section { background: var(--panel-light); color: var(--ink); }
.quote-section--compact { padding-top: 100px; }
.quote-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 8vw, 120px); }
.quote-grid > div h2 { max-width: 470px; margin-bottom: 20px; font-size: clamp(2.4rem, 4vw, 4.3rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.06; text-transform: uppercase; }
.quote-grid > div > p:not(.eyebrow) { color: #596369; }
.quote-grid ul { margin: 28px 0 0; padding: 0; list-style: none; }
.quote-grid li { padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.quote-grid li::before { content: '✓'; margin-right: 12px; color: var(--copper-dark); }
.quote-form { padding: 34px; background: #fff; box-shadow: 0 22px 80px rgba(20,31,35,.1); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 26px; }
.form-span { grid-column: 1 / -1; }
label > span { display: block; margin-bottom: 8px; color: inherit; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid #cad0d1; border-radius: 2px; background: #fdfdfc; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input, select { min-height: 50px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--copper-dark); box-shadow: 0 0 0 3px rgba(212,149,104,.18); }
.file-field { padding: 18px; border: 1px dashed #b9c1c3; }
.file-field input { min-height: auto; padding: 0; border: 0; background: transparent; }
.file-field small { display: block; margin-top: 10px; color: #687276; }

.page-hero { padding: 105px 0 92px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 10%, rgba(212,149,104,.13), transparent 28%), #10191d; }
.page-hero--small { padding-bottom: 60px; }
.page-hero h1 { max-width: 1000px; margin: 0 0 24px; font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; text-transform: uppercase; }
.page-hero p:last-child { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.detailed-services { display: grid; }
.detailed-services article { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.detailed-services article:last-child { border-bottom: 1px solid var(--line); }
.detailed-services article > span { color: var(--copper); font-size: .8rem; }
.detailed-services h2 { font-size: clamp(1.9rem, 3.3vw, 3.3rem); font-weight: 400; letter-spacing: -.035em; }
.detailed-services p { max-width: 760px; color: var(--muted); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.values-grid article { min-height: 330px; padding: 34px; background: var(--bg-soft); }
.values-grid article > span { color: var(--copper); }
.values-grid h2 { margin-top: 90px; font-size: 1.4rem; font-weight: 500; }
.values-grid p { color: var(--muted); }

.project-detail-hero { position: relative; display: flex; min-height: 650px; align-items: flex-end; overflow: hidden; }
.project-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-detail-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,11,13,.94), rgba(6,11,13,.1) 72%); }
.project-detail-hero .container { position: relative; z-index: 2; padding-bottom: 64px; }
.project-detail-hero h1 { margin-bottom: 14px; font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 400; letter-spacing: -.05em; text-transform: uppercase; }
.project-detail-hero .container > p:last-child { max-width: 750px; color: #d5d8d8; font-size: 1.1rem; }
.project-story { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.project-story h2 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; line-height: 1.1; }
.project-story > div:last-child { color: var(--muted); font-size: 1.05rem; }
.project-date { color: var(--copper); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.before-after-section { background: var(--bg-soft); }
.before-after-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.before-after { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #243034; }
.before-after > img, .before-layer img { width: 100%; height: 100%; object-fit: cover; }
.before-layer { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; }
.before-layer img { width: calc(100vw - 64px); max-width: var(--container); }
.before-after input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.before-after::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; pointer-events: none; }
.ba-label { position: absolute; top: 18px; z-index: 2; padding: 7px 10px; background: rgba(8,14,17,.8); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba-label--before { left: 18px; }.ba-label--after { right: 18px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.auth-page { min-height: calc(100vh - 89px); padding: 70px 20px; background: radial-gradient(circle at 80% 10%, rgba(212,149,104,.15), transparent 32%), #10191d; }
.auth-panel { display: grid; grid-template-columns: .9fr 1.1fr; width: min(100%, 980px); margin: auto; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.auth-panel > div { padding: 54px; background: linear-gradient(145deg, rgba(212,149,104,.12), transparent 55%); }
.auth-panel > div .eyebrow { margin-top: 100px; }
.auth-panel h1 { font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.04em; }
.auth-panel > div > p:last-child { color: var(--muted); }
.auth-panel form { padding: 54px; background: #f7f4ee; color: var(--ink); }
.auth-panel form label { display: block; margin-bottom: 18px; }
.auth-panel form .button { width: 100%; margin-top: 6px; }
.auth-switch { margin: 20px 0 0; color: #687276; font-size: .9rem; text-align: center; }
.auth-switch a { color: var(--copper-dark); font-weight: 600; }
.form-error { margin-bottom: 20px; padding: 13px 15px; border-left: 3px solid var(--danger); background: rgba(221,107,104,.12); color: #8d3634; }
.message-page { display: grid; min-height: 70vh; place-items: center; padding: 60px 20px; text-align: center; }
.message-page section { max-width: 680px; }
.message-page .brand-mark { margin: 0 auto 32px; }
.message-page h1 { font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.05em; }
.message-page p { margin-bottom: 28px; color: var(--muted); }

.portal-page { min-height: calc(100vh - 89px); padding: 62px 0 90px; background: #eef1f1; color: var(--ink); }
.portal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.portal-heading h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.04em; }
.portal-heading .button--outline { border-color: #adb7ba; color: var(--ink); }
.portal-grid { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.portal-nav { display: grid; padding: 10px; background: #fff; box-shadow: 0 14px 50px rgba(20,33,38,.07); }
.portal-nav a { padding: 13px 14px; border-left: 2px solid transparent; color: #5a666a; font-size: .9rem; }
.portal-nav a:hover, .portal-nav a.is-active { border-left-color: var(--copper-dark); background: #f4efe9; color: var(--ink); }
.portal-content { display: grid; gap: 22px; }
.portal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portal-summary article, .portal-section, .invoice-sheet { padding: 28px; background: #fff; box-shadow: 0 14px 50px rgba(20,33,38,.06); }
.portal-summary span { display: block; font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 2.6rem; }
.portal-summary p { margin: 3px 0 0; color: #687478; font-size: .83rem; }
.portal-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.portal-section-title h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.portal-list, .document-list, .invoice-list { display: grid; }
.portal-list article, .document-list a, .invoice-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid #e1e5e5; }
.portal-list h3 { margin: 8px 0 2px; font-size: 1rem; }
.portal-list p { margin: 0; color: #687478; font-size: .86rem; }
.document-list a > span:first-child { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; background: #f2ece5; color: var(--copper-dark); }
.document-list a > div { flex: 1; }
.document-list strong, .document-list small { display: block; }
.document-list small, .invoice-list small { color: #748085; }
.invoice-list a > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; }
.invoice-list small { grid-column: 2; }
.invoice-list b { font-size: 1rem; }
.portal-upload { display: flex; align-items: end; gap: 14px; margin-bottom: 20px; padding: 18px; background: #f6f3ee; }
.portal-upload label { flex: 1; }
.portal-upload input { min-height: auto; padding: 0; border: 0; background: transparent; }
.empty-state { padding: 24px 0; color: #748085; }
.status { display: inline-flex; width: max-content; padding: 4px 8px; border-radius: 999px; background: #e9edef; color: #5e686d; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.status--paid, .status--completed, .status--accepted, .status--active { background: #dff3e8; color: #277851; }
.status--unpaid, .status--quoted, .status--in_progress { background: #fff0d8; color: #94601a; }
.status--overdue, .status--blocked, .status--cancelled { background: #f8dede; color: #963c39; }
.status--new { background: #dfeaff; color: #315fa2; }
.back-link { display: inline-block; margin-bottom: 20px; color: #677478; }
.invoice-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.invoice-page-actions .back-link { margin-bottom: 0; }
.invoice-print { border-color: #adb7ba; color: var(--ink); }
.invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e0e5e5; }
.invoice-head h1 { margin: 0; font-size: 2.2rem; font-weight: 400; }
.invoice-sheet dl { margin: 28px 0; }
.invoice-sheet dl > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid #e9ecec; }
.invoice-sheet dt { color: #6d797d; }.invoice-sheet dd { margin: 0; }
.invoice-total { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 1.1rem; }
.invoice-total strong { font-size: 2rem; }
.invoice-sheet form { display: grid; gap: 10px; }
.invoice-sheet form small { color: #6d797d; }
.payment-success { padding: 18px; background: #dff3e8; color: #277851; }

.site-footer { padding: 70px 0 24px; border-top: 1px solid var(--line); background: #091013; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; }
.footer-brand { margin-bottom: 14px; font-family: Inter, 'Segoe UI', Arial, sans-serif; letter-spacing: .14em; }
.footer-grid p { max-width: 390px; color: var(--muted); font-size: .9rem; }
.footer-grid h3 { margin-bottom: 16px; color: var(--copper); font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid a { display: block; margin-bottom: 9px; color: #c5cbca; font-size: .84rem; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); color: #687174; font-size: .72rem; }
.whatsapp-button { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 0 19px; border-radius: 999px; background: #25d366; color: #072a16; box-shadow: 0 18px 50px rgba(0,0,0,.28); font-size: .8rem; font-weight: 600; }
.whatsapp-button > span:first-child { font-size: 1.35rem; }
.flash { position: relative; z-index: 50; padding: 12px 0; background: #dff3e8; color: #277851; }
.flash--error { background: #f8dede; color: #963c39; }

@media (max-width: 1180px) {
  .header-quote, .brand-name strong { display: none; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 270px; }
  .projects-grid--all { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section { padding: 70px 0; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 89px 0 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 30px 24px; background: #0d1417; }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .header-actions { margin-left: 0; }
  .header-actions .button { display: none; }
  .hero-section, .hero-content { min-height: 600px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(6,11,13,.94), rgba(6,11,13,.42)), linear-gradient(0deg, rgba(6,11,13,.65), transparent); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-grid, .quote-grid, .project-story, .auth-panel { grid-template-columns: 1fr; }
  .quote-grid { gap: 40px; }
  .auth-panel > div .eyebrow { margin-top: 55px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-nav { grid-template-columns: repeat(4, 1fr); }
  .portal-nav a { border-bottom: 2px solid transparent; border-left: 0; text-align: center; }
  .portal-nav a:hover, .portal-nav a.is-active { border-bottom-color: var(--copper-dark); border-left-color: transparent; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 76px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: .7rem; letter-spacing: .12em; }
  .language-switcher { display: none; }
  .main-nav { inset-block-start: 77px; }
  .hero-section, .hero-content { min-height: 580px; }
  .hero-content h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .hero-text { font-size: .96rem; }
  .button--large { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); }
  .services-grid, .projects-grid, .projects-grid--all, .values-grid, .before-after-grid, .project-gallery { grid-template-columns: 1fr; }
  .service-card { min-height: 245px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span { grid-column: auto; }
  .quote-form, .auth-panel form, .auth-panel > div { padding: 28px 20px; }
  .detailed-services article { grid-template-columns: 46px 1fr; gap: 16px; }
  .portal-heading { align-items: flex-start; flex-direction: column; }
  .portal-nav { grid-template-columns: repeat(2, 1fr); }
  .portal-summary { grid-template-columns: 1fr; }
  .portal-upload { align-items: stretch; flex-direction: column; }
  .invoice-sheet dl > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .whatsapp-button { right: 14px; bottom: 14px; width: 54px; padding: 0; justify-content: center; }
  .whatsapp-label { display: none; }
}

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

@media print {
  .site-header, .site-footer, .whatsapp-button, .invoice-page-actions, .invoice-sheet form { display: none !important; }
  .portal-page { min-height: 0; padding: 0; background: #fff; }
  .invoice-sheet { box-shadow: none; }
}
