/* CA&BA Accountancy — stylesheet v2 */

:root {
  --ink: #232527;
  --ink-2: #2E3134;
  --muted: #5C5F63;
  --paper: #F5F5F3;
  --white: #FFFFFF;
  --line: #DCDDD8;
  --line-strong: #232527;
  --line-dark: rgba(255, 255, 255, .14);
  --orange: #E8912B;
  --rust: #AD5409;
  --rust-dark: #8F4407;
  --ok-bg: #EEF5EC;
  --ok-fg: #24502B;
  --err-bg: #FBEDEA;
  --err-fg: #7A2A1E;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --rail: calc(max(0px, (100% - var(--wrap)) / 2) + var(--gutter));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
::selection { background: rgba(232, 145, 43, .28); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { font-family: var(--display); font-stretch: 87.5%; font-weight: 700; line-height: 1.04; letter-spacing: -.015em; color: var(--ink); font-variant-numeric: tabular-nums; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; font-stretch: 100%; letter-spacing: -.005em; }
p { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: 18px; }
.link { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.link:hover { border-color: var(--rust); }
.arrow { font-family: var(--body); font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: .95rem; padding: 14px 24px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rust); color: var(--white); border-color: var(--rust); }
.btn-primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { border-color: rgba(255, 255, 255, .5); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 116px; gap: 24px; }
.top .logo img { height: 76px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { font-family: var(--display); font-stretch: 100%; font-weight: 500; font-size: .92rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav a:hover, .nav a.on { color: var(--ink); border-color: var(--orange); }
.top-right { display: flex; align-items: center; gap: 18px; }
.lang { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); padding: 6px 10px; border-radius: 3px; transition: color .2s ease, border-color .2s ease; }
.lang:hover { color: var(--rust); border-color: var(--rust); }
.top .btn { padding: 11px 18px; font-size: .88rem; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ledger margin rule ---------- */
.ruled { position: relative; }
.ruled::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--rail); width: 2px; background: var(--orange); }
.ruled--draw::before { transform-origin: top; animation: draw 1.1s var(--ease) .1s both; }
.ruled .wrap { padding-left: calc(var(--gutter) + 40px); }
.ruled--dark::before { opacity: .9; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.eyebrow { position: relative; padding-left: 38px; }
.eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; margin-top: -1px; width: 0; height: 2px; background: var(--orange); transition: width .6s var(--ease) .25s; }
.is-in .eyebrow::before, .hero .eyebrow::before, .page-head .eyebrow::before { width: 26px; }
.hero .eyebrow::before, .page-head .eyebrow::before { transition: none; }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- hero (home) ---------- */
.hero { padding: 88px 0 96px; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.6rem); max-width: 11em; animation: rise .7s ease .25s both; }
.hero h1 em { font-style: normal; color: var(--rust); }
.hero .lead { margin: 28px 0 36px; animation: rise .7s ease .4s both; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; animation: rise .7s ease .5s both; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font-family: var(--display); font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); animation: rise .7s ease .6s both; }
.facts li { display: flex; align-items: center; }
.facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-right: 12px; flex-shrink: 0; }

.sheet { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 22px 0 0; box-shadow: 0 30px 60px -30px rgba(35, 37, 39, .35); animation: rise .8s ease .35s both; }
.sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: 52px; width: 1.5px; background: var(--orange); opacity: .85; }
.sheet::after { content: ''; position: absolute; right: 0; bottom: 0; width: 38px; height: 38px; background: linear-gradient(225deg, var(--white) 0 50%, #d6d7d2 50%); box-shadow: -3px -3px 8px -3px rgba(0, 0, 0, .18); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 28px 14px 72px; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.sheet-tag { font-size: .66rem; color: var(--muted); letter-spacing: .14em; }
.sheet-rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; padding: 6px 28px 6px 72px; border-top: 1px solid var(--line); font-size: 1.02rem; opacity: 0; animation: rise .5s ease both; animation-delay: calc(.55s + var(--i) * 90ms); }
.sheet-rows .st { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); white-space: nowrap; }
.sheet-rows .st.pend { color: var(--muted); }
.sheet-rows .st::before { content: '\2713'; margin-right: 8px; }
.sheet-rows .st.pend::before { content: '\2026'; }
.sheet-total { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 28px 0 72px; border-top: 2px solid var(--ink); font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.25rem; opacity: 0; animation: rise .5s ease 1.1s both; }
.sheet-total .st { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.sheet figcaption { font-size: .85rem; color: var(--muted); padding: 12px 52px 16px 72px; font-style: italic; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding: 72px 0 56px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-head-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.page-head h1 { max-width: 12em; animation: rise .7s ease .2s both; }
.page-head .eyebrow { animation: rise .7s ease .1s both; }
.page-head .lead { margin: 0; animation: rise .7s ease .35s both; }
.crumbs { display: flex; gap: 10px; font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; animation: rise .7s ease .1s both; }
.crumbs a:hover { color: var(--rust); }
.crumbs span::before { content: '/'; margin-right: 10px; color: var(--line-strong); opacity: .4; }

/* ---------- sections ---------- */
.section { padding: 96px 0 104px; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--orange); }
.section--dark p { color: #D8D9D5; }
.section--dark .muted { color: #A9ACA8; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.sec-head .note { color: var(--muted); font-size: 1.05rem; max-width: 30em; justify-self: end; }
.section--dark .sec-head .note { color: #A9ACA8; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.two-col--center { align-items: center; }
.two-col h2 { max-width: 11em; }
.two-col .lead { margin-top: 24px; }

/* ---------- ledger rows ---------- */
.ledger li { border-top: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
.ledger a, .ledger .row { display: grid; grid-template-columns: minmax(240px, .9fr) 2fr auto; gap: 32px; align-items: baseline; padding: 30px 0; position: relative; }
.ledger .row { grid-template-columns: minmax(240px, .9fr) 2fr; }
.ledger a::before { content: ''; position: absolute; left: -40px; top: 0; bottom: 0; width: 2px; background: var(--rust); transform: scaleY(0); transform-origin: center; transition: transform .25s var(--ease); }
.ledger a:hover::before { transform: scaleY(1); }
.l-name { font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.65rem; letter-spacing: -.01em; transition: color .2s ease; }
.ledger a:hover .l-name { color: var(--rust); }
.l-desc { color: var(--muted); font-size: 1.02rem; max-width: 36em; }
.l-go { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); white-space: nowrap; transition: transform .25s var(--ease); display: inline-block; }
.ledger a:hover .l-go { transform: translateX(4px); }

/* ---------- definition list ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.dl-grid dt { font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; padding-top: 14px; border-top: 1px solid var(--ink); }
.dl-grid dd { color: var(--muted); font-size: .98rem; }
.section--dark .dl-grid dt { border-top-color: rgba(255, 255, 255, .5); }
.section--dark .dl-grid dd { color: #A9ACA8; }

/* ---------- cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.cards > .card { flex: 1 1 calc(33.333% - 16px); min-width: 260px; }
.cards--2 > .card { flex-basis: calc(50% - 12px); }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 30px 28px 28px 32px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease; }
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(35, 37, 39, .45); border-color: #cfd0cb; }
.card:hover::before, .card:focus-within::before { transform: scaleY(1); transform-origin: top; }
.card-kicker { font-family: var(--display); font-weight: 600; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card-kicker::after { content: ''; flex: 1; height: 1px; background: var(--line); transition: background-color .3s ease; }
.card:hover .card-kicker::after { background: var(--orange); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card--paper { background: var(--paper); }
.section--paper .card { background: var(--white); }
.section--dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .card:hover { border-color: rgba(255, 255, 255, .28); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8); }
.section--dark .card p { color: #A9ACA8; }
.section--dark .card-kicker::after { background: var(--line-dark); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 30px 24px 26px 0; border-top: 1px solid var(--line); transition: transform .35s var(--ease); }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--orange); transition: width .45s var(--ease); }
.step:hover::before { width: 100%; }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .98rem; }
.step:hover { transform: translateY(-3px); }

/* ---------- photo slot ---------- */
.photo-slot { aspect-ratio: 4 / 3; border: 1px solid var(--line-dark); border-radius: 3px; position: relative; display: grid; place-items: center; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.photo-slot::before { content: ''; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; background: var(--orange); opacity: .8; }
.photo-slot span { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #A9ACA8; background: var(--ink); padding: 8px 14px; border: 1px solid var(--line-dark); }
.photo-slot--light { border-color: var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); }
.photo-slot--light span { background: var(--white); color: var(--muted); border-color: var(--line); }
.photo-slot { overflow: hidden; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-slot:hover img { transform: scale(1.03); }

/* ---------- services page ---------- */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 72px; align-items: start; }
.svc-nav { position: sticky; top: 100px; }
.svc-nav-title { font-family: var(--display); font-weight: 600; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.svc-nav a { display: block; padding: 11px 0 11px 16px; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--muted); border-left: 2px solid transparent; margin-left: -2px; transition: color .2s ease, border-color .2s ease, padding-left .25s var(--ease); }
.svc-nav a:hover { color: var(--ink); }
.svc-nav a.on { color: var(--rust); border-left-color: var(--orange); padding-left: 22px; }
.svc { padding: 8px 0 72px; scroll-margin-top: 96px; }
.svc + .svc { border-top: 1px solid var(--line); padding-top: 64px; }
.svc-head { margin-bottom: 18px; }
.svc-head::before { content: ''; display: block; width: 56px; height: 3px; background: var(--orange); margin-bottom: 22px; }
.svc h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.svc .lead { font-size: 1.12rem; margin-bottom: 30px; }
.svc-list-title { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.svc-list { border-top: 1px solid var(--ink); }
.svc-list > div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left .25s var(--ease); }
.svc-list > div::before { content: ''; position: absolute; left: -40px; top: 0; bottom: 0; width: 2px; background: var(--rust); transform: scaleY(0); transition: transform .25s var(--ease); }
.svc-list > div:hover::before { transform: scaleY(1); }
.svc-list dt { font-family: var(--display); font-weight: 600; font-size: .98rem; }
.svc-list dd { color: var(--muted); font-size: .98rem; max-width: 48em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 36px; }
.form h2 { font-size: 1.6rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field label .req { color: var(--rust); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(173, 84, 9, .12); }
.textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 24px; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--rust); width: 16px; height: 16px; flex-shrink: 0; }
.check a { color: var(--rust); text-decoration: underline; }
.notice { padding: 14px 18px; border-radius: 3px; margin-bottom: 20px; font-size: .95rem; border: 1px solid transparent; }
.notice--ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #cfe3cc; }
.notice--err { background: var(--err-bg); color: var(--err-fg); border-color: #f0cfc8; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.contact-meta { font-size: 1.02rem; }
.contact-meta > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-meta > div:last-child { border-bottom: 1px solid var(--line); }
.contact-meta dt { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-meta dd a { color: var(--rust); font-weight: 600; }
.contact-meta dd a:hover { text-decoration: underline; }

/* ---------- legal ---------- */
.legal { padding: 64px 0 96px; }
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 76ch); gap: 80px; align-items: start; font-size: 1.05rem; }
.legal-nav a { font-weight: 500; }
.legal-body { min-width: 0; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--ink); scroll-margin-top: 96px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 1em; line-height: 1.7; max-width: none; }
.legal ul { list-style: none; padding-left: 0; margin: 8px 0 14px; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.legal ul li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--orange); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- cta ---------- */
.cta { padding: 96px 0; }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.cta h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 11em; }
.cta .lead { margin: 22px 0 28px; }

/* ---------- footer ---------- */
.foot { background-color: var(--paper); background-image: linear-gradient(rgba(35, 37, 39, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 37, 39, .05) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.foot .logo img { height: 96px; width: auto; margin-bottom: 16px; mix-blend-mode: multiply; }
.foot p strong { color: var(--ink); }
.foot p { color: var(--muted); max-width: 26em; }
.foot h4 { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.foot li { margin-bottom: 8px; }
.foot li a { color: var(--muted); transition: color .2s ease; }
.foot li a:hover { color: var(--rust); }
.foot li.muted { color: var(--muted); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(35, 37, 39, .18); color: var(--muted); font-size: .85rem; }
.foot-social { display: flex; gap: 14px; }
.foot-social a { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-social a:hover { color: var(--rust); }
.dev { display: inline-flex; align-items: center; }
.dev img { height: 40px; width: auto; opacity: .85; transition: opacity .2s ease, transform .3s var(--ease); }
.dev:hover img { transform: translateY(-2px); }
.dev:hover img { opacity: 1; }

/* ---------- cookie bar ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: #D8D9D5; border-top: 3px solid var(--orange); animation: rise .5s ease .6s both; transition: transform .35s var(--ease), opacity .35s ease; }
.cookie-bar.is-closed { transform: translateY(100%); opacity: 0; }
.cookie-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.cookie-bar p { font-size: .95rem; max-width: none; }
.cookie-bar a { color: var(--orange); text-decoration: underline; }
.cookie-bar .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar .btn { padding: 10px 20px; font-size: .88rem; flex-shrink: 0; }

/* ---------- animations ---------- */
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Mișcare redusă: fără deplasări, dar păstrăm apariția prin fade, ca pagina să nu fie complet statică. */
@media (prefers-reduced-motion: reduce) {
  .ruled--draw::before, .hero h1, .hero .lead, .actions, .facts, .sheet, .page-head h1, .page-head .eyebrow, .page-head .lead, .crumbs { animation: none !important; }
  .sheet-rows li, .sheet-total { animation-name: fade !important; }
  .reveal { transform: none; transition: opacity .6s ease; transition-delay: var(--d, 0s); }
  .card, .step, .btn, .ledger a .l-go, .svc-nav a { transition: none !important; }
  .card:hover, .step:hover { transform: none; }
  .eyebrow::before { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .two-col, .cta-grid, .contact-grid, .page-head-grid { grid-template-columns: 1fr; gap: 48px; }
  .page-head-grid { gap: 20px; }
  .sheet { max-width: 560px; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-head .note { justify-self: start; }
  .ledger a, .ledger .row { grid-template-columns: 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards > .card { flex-basis: calc(50% - 12px); }
  .svc-layout, .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .svc-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .svc-nav-title { display: none; }
  .svc-nav a { padding: 8px 0; border-left: 0; margin-left: 0; border-bottom: 2px solid transparent; }
  .svc-nav a.on { padding-left: 0; border-bottom-color: var(--orange); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .nav, .top .btn { display: none; }
  .burger { display: flex; }
  .top .wrap { height: 92px; }
  .top .logo img { height: 60px; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .3); }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav.open a.on, .nav.open a:hover { border-color: var(--line); color: var(--rust); }
  .ruled .wrap { padding-left: calc(var(--gutter) + 28px); }
  .hero { padding: 56px 0 64px; }
  .page-head { padding: 48px 0 40px; }
  .section, .cta { padding: 64px 0; }
  .dl-grid, .steps { grid-template-columns: 1fr; }
  .cards > .card, .cards--2 > .card { flex-basis: 100%; min-width: 0; }
  .facts { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sheet-rows li, .sheet-head, .sheet-total { padding-left: 60px; padding-right: 18px; }
  .sheet figcaption { padding-left: 60px; }
  .sheet::before { left: 44px; }
  .svc-list > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-meta > div { grid-template-columns: 1fr; gap: 4px; }
  .form { padding: 24px 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-bar .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}
