/* AOMAX — site stylesheet.
   Tokens and components come from the "Industry" design system (Claude Design
   handoff, five-hands-finishing-mockup/_ds/…/styles.css), trimmed to what this
   page uses, with the site's overrides (ground, surface, Bitter + Source Sans 3). */

/* ── Fonts (self-hosted; latin + latin-ext covers Romanian ș ț ă î â) ── */
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("assets/fonts/bitter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("assets/fonts/bitter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ── */
:root {
  --color-bg: #fafafb;
  --color-surface: #f1f1f3;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-accent-100: #eef6ff;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;

  --font-heading: "Bitter", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;

  --gutter: clamp(20px, 5vw, 72px);
  --section-gap: clamp(64px, 8vw, 112px);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; font-weight: 400;
  text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Blueprint frame: hairline box + "+" registration marks ── */
.blueprint { position: relative; border: 1px solid var(--color-divider); }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent;
  border: 1px solid var(--color-divider); border-radius: 0;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
}
.btn svg { display: block; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); }
.btn-primary, .btn-primary:hover { color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary, .btn-secondary:hover { color: var(--color-text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }

/* ── Forms ── */
.field > label, .field > legend {
  display: block; font-size: 12px; margin-bottom: 5px; padding: 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input {
  width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 15px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: #b3261e; }
textarea.input { min-height: 90px; resize: vertical; }
.field-error { font-size: 13px; color: #b3261e; margin-top: 4px; }

.seg-scroll { max-width: 100%; overflow-x: auto; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); }
.seg-opt {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* ── Cards ── */
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: transparent; border: 1px solid var(--color-divider);
}
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.25; margin: 4px 0 0; }
.card-body { margin: 0; font-size: 15px; opacity: 0.8; flex: 1; }
.card-meta { font-size: 13px; color: color-mix(in srgb, var(--color-text) 50%, transparent); }

/* ── Header / navigation ── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-bg); }
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); border-bottom: 1px solid var(--color-divider);
}
.nav a:not(.btn) { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:not(.btn):hover { color: var(--color-accent); }
.nav .btn-secondary { gap: 8px; }
.brand {
  margin-right: auto; display: flex; align-items: center; gap: 2px;
  font-family: var(--font-heading); font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em; color: var(--color-text); text-decoration: none;
}
.nav a.brand { font-size: 22px; }
.nav a.brand:hover { color: var(--color-text); }
.brand-mark {
  display: inline-grid; place-items: center; height: 32px; padding: 0 7px;
  background: var(--color-accent-700); color: var(--color-bg);
  font-size: 17px; letter-spacing: 0.04em;
}
.brand-word { padding-left: 4px; }
.nav-links { display: contents; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: flex; flex-direction: column; padding: 8px 20px 20px;
  background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--font-heading); font-weight: 600; font-size: 26px;
  color: var(--color-text); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--color-divider);
}

/* ── Layout ── */
main { max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section-gap); scroll-margin-top: 80px; }
.eyebrow {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent-700); margin-bottom: 12px;
}
.rule { height: 1px; background: var(--color-divider); margin-bottom: 24px; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; margin: 0; }
.muted-82 { color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.muted-80 { color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.muted-78 { color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.muted-72 { color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.muted-70 { color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* Photo frames */
.photo { aspect-ratio: 4 / 3; background: var(--color-accent-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.photo-portrait { aspect-ratio: 4 / 5; }
.photo-tag {
  position: absolute; z-index: 2; background: var(--color-bg);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(36px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
}
.hero h1 { font-size: clamp(40px, 5.2vw, 74px); line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--color-accent-700); }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; max-width: 46ch; margin-top: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero figcaption {
  left: 0; bottom: 0; padding: 8px 14px; font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  border-top: 1px solid var(--color-divider); border-right: 1px solid var(--color-divider);
}

/* Promises strip */
.promises {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
  list-style: none; margin: 0; padding: 0;
}
.promises li { padding: 20px 20px 20px 0; display: flex; gap: 12px; align-items: flex-start; }
.promises svg { flex: none; margin-top: 3px; }
.promise-title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.2; }
.promise-text { font-size: 14px; margin-top: 4px; }

/* Services */
.services .h2 { margin-bottom: 40px; max-width: 20ch; }
.grid-services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px;
}

/* Work */
.work-head {
  display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end;
  justify-content: space-between; margin-bottom: 40px;
}
.work-head .h2 { max-width: 18ch; }
.work-filter { border: 0; margin: 0; padding: 0; min-width: 0; }
.grid-work {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 40px 32px; list-style: none; margin: 0; padding: 0;
}
.project { display: flex; flex-direction: column; gap: 14px; }
.project .photo-tag {
  top: 0; left: 0; padding: 5px 10px; font-size: 12px; color: var(--color-accent-700);
  border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
}
.project h3 { font-size: 22px; line-height: 1.2; margin: 0; }
.project p { margin-top: 6px; font-size: 15px; }
.project-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; }

/* Filter without script: hide projects outside the checked category. */
#work:has(#f-zugraveli:checked) .project:not([data-cat="zugraveli"]),
#work:has(#f-tencuieli:checked) .project:not([data-cat="tencuieli"]),
#work:has(#f-faianta:checked) .project:not([data-cat="faianta"]),
#work:has(#f-parchet:checked) .project:not([data-cat="parchet"]) { display: none; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.steps li {
  padding: 28px 24px; margin: 0 -1px -1px 0;
  border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
}
.step-n { font-family: var(--font-heading); font-weight: 600; font-size: 44px; line-height: 1; color: var(--color-accent); }
.step-title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin-top: 16px; }
.steps p { margin-top: 8px; font-size: 15px; }

/* Team */
.team-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px 48px; margin-bottom: 40px; align-items: end;
}
.team-head p { font-size: 16px; max-width: 52ch; }
.grid-team {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 32px 24px; max-width: 720px; list-style: none; margin: 0; padding: 0;
}
.person { display: flex; flex-direction: column; gap: 12px; }
.person-name { font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.15; }
.person-role { font-size: 14px; font-weight: 500; color: var(--color-accent-700); margin-top: 2px; }
.person-years { font-size: 13px; margin-top: 4px; }

/* Quotes */
.quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px;
}
.quotes figure { border-top: 1px solid var(--color-divider); padding-top: 24px; }
.quotes blockquote {
  margin: 0; font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25;
}
.quotes figcaption { margin-top: 16px; font-size: 14px; }

/* Contact */
.contact { padding-bottom: clamp(64px, 8vw, 104px); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px 72px; align-items: start;
}
.contact-lead { margin-top: 16px; font-size: 16px; max-width: 44ch; }
.contact-list { display: flex; flex-direction: column; margin: 32px 0 0; border-top: 1px solid var(--color-divider); }
.contact-phone {
  display: flex; align-items: center; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--color-divider); text-decoration: none; color: var(--color-text);
}
.contact-phone:hover { color: var(--color-accent-700); }
.contact-phone span { font-family: var(--font-heading); font-weight: 600; font-size: 32px; }
.contact-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--color-divider); font-size: 15px;
}
.contact-row dt {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); padding-top: 2px;
}
.contact-row dd { margin: 0; }
.contact-rows { margin: 0; }
.form-card { padding: clamp(20px, 3vw, 32px); gap: 18px; }
.form-card form { display: flex; flex-direction: column; gap: 18px; }
.form-card .btn-primary { width: 100%; }
.form-card .btn-primary:disabled { opacity: 0.45; cursor: progress; }
.form-note { font-size: 13px; }
.form-status { font-size: 14px; color: #b3261e; }
.form-status:empty { display: none; }
.sent { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
.sent[hidden], .form-card form[hidden] { display: none; }
.sent-title { font-family: var(--font-heading); font-weight: 600; font-size: 30px; text-transform: uppercase; }
.sent p { font-size: 15px; }
.sent .btn { align-self: flex-start; margin-top: 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-divider); padding: 28px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: 13px; color: color-mix(in srgb, var(--color-text) 70%, transparent);
  max-width: 1296px; margin: 0 auto;
}

/* Mobile call bar */
.call-bar { display: none; }

/* ── Mobile (design switches below 820px) ── */
@media (max-width: 819.98px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .call-bar {
    position: sticky; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--color-bg); border-top: 1px solid var(--color-divider);
  }
}
@media (min-width: 820px) {
  .mobile-menu { display: none !important; }
}
