/* ARX Design Group — main stylesheet
   Colours are taken from the logo: burgundy #7A2A26, charcoal #3C3C3B */

:root {
  --brand: #7a2a26;
  --brand-dark: #5e1f1c;
  --brand-light: #f5ecea;
  --ink: #3c3c3b;
  --ink-deep: #1f1f1e;
  --text: #333332;
  --muted: #6e6e6b;
  --line: #e4e2df;
  --bg: #ffffff;
  --bg-soft: #f6f4f2;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(31, 31, 30, .06), 0 10px 30px rgba(31, 31, 30, .08);
  --wrap: 1200px;
  --header-h: 84px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink-deep); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 300; }
h3 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-deep); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 128px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--ink);
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.main-nav .nav-cta a { background: var(--brand); color: #fff; border: 0; margin-left: 10px; padding: 11px 20px; }
.main-nav .nav-cta a:hover { background: var(--brand-dark); color: #fff; }
.main-nav .nav-cta a[aria-current="page"] { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .brand img { width: 104px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .main-nav .nav-cta a { margin: 12px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  color: #fff; background: var(--ink-deep); overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides li.active { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 19, .25) 0%, rgba(20, 20, 19, .2) 40%, rgba(20, 20, 19, .78) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: 1.15rem; max-width: 620px; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-dots { display: flex; gap: 10px; margin-top: 44px; }
.hero-dots button {
  width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: #fff; }

.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: rgba(255, 255, 255, .85); }
.eyebrow::before {
  content: ""; display: inline-block; width: 34px; height: 1px; background: currentColor;
  vertical-align: middle; margin-right: 12px;
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--ink-deep) center / cover no-repeat;
  padding: 120px 0 70px;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 19, .62); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: rgba(255, 255, 255, .85); max-width: 640px; margin: 16px 0 0; font-size: 1.08rem; }
.breadcrumb { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink-deep); color: #c9c7c3; }
.section-dark h2, .section-dark h3 { color: #fff; }
@media (max-width: 700px) { .section { padding: 70px 0; } }

.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #a9a7a3; }
.section-dark .eyebrow { color: #d4a29d; }
.section-dark .quote { color: #f2f0ed; border-left-color: #d4a29d; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
}
.split figure { margin: 0; }
.split figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; color: var(--brand); line-height: 1.1; }
.stat span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Service cards ---------- */
.service-card {
  position: relative; padding: 38px 30px 34px; background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s; text-decoration: none; color: inherit; display: block;
}
.service-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.service-card .num { display: block; font-size: .8rem; letter-spacing: .2em; color: var(--brand); margin-bottom: 26px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-card .icon { width: 44px; height: 44px; color: var(--brand); margin-bottom: 22px; }

/* ---------- Project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; gap: 18px; } }

.project-card {
  position: relative; display: block; overflow: hidden; background: var(--ink-deep);
  text-decoration: none; color: #fff; aspect-ratio: 3 / 2;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 19, 0) 40%, rgba(20, 20, 19, .82) 100%);
}
.project-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 1; }
.project-card .cat { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: 6px; }
.project-card h3 { color: #fff; margin: 0; font-size: 1rem; }
.project-card:hover img { transform: scale(1.05); }
.project-card:hover { color: #fff; }
.project-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  border-radius: var(--radius);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.filters .count { opacity: .55; margin-left: 4px; }
.project-card[hidden] { display: none; }

/* ---------- Project detail ---------- */
.project-facts { display: flex; flex-wrap: wrap; gap: 14px 46px; margin: 26px 0 0; padding: 0; list-style: none; }
.project-facts li { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.project-facts strong { display: block; color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: none; font-weight: 500; }

.project-intro { max-width: 760px; font-size: 1.08rem; color: var(--muted); margin-bottom: 44px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery a { display: block; overflow: hidden; background: var(--bg-soft); aspect-ratio: 3 / 2; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single a { aspect-ratio: auto; }
.gallery.single a:first-child { grid-column: auto; grid-row: auto; }
.gallery.single img { width: auto; height: auto; max-width: 100%; margin: 0 auto; }
.gallery.single a { background: none; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.project-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line);
}
.project-nav a { text-decoration: none; color: var(--ink); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.project-nav a:hover { color: var(--brand); }
.project-nav .next { text-align: right; }
.project-nav > a { min-width: 0; overflow-wrap: anywhere; }
.project-nav small { display: block; color: var(--muted); font-weight: 400; letter-spacing: .1em; }
.project-nav .all { text-align: center; }
@media (max-width: 600px) {
  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav .all { grid-column: 1 / -1; order: 3; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 15, 14, .95);
  display: flex; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox button svg { width: 32px; height: 32px; display: block; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .85rem; letter-spacing: .12em; }
@media (max-width: 600px) {
  .lightbox { padding: 60px 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 4px; transform: none; }
}

/* ---------- Feature list / brands ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--brand);
}

.brand-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.brand-row span {
  padding: 10px 18px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: #fff;
}

.quote {
  margin: 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--brand);
  font-size: 1.2rem; font-weight: 300; color: var(--ink-deep); line-height: 1.6;
}

/* ---------- Service rows ---------- */
.service-row { padding: 90px 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.service-row:last-of-type { border-bottom: 0; }
.service-row .num { font-size: 4rem; font-weight: 200; color: var(--brand); line-height: 1; display: block; margin-bottom: 16px; }
@media (max-width: 700px) { .service-row { padding: 60px 0; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
@media (max-width: 760px) { .cta-band .wrap { flex-direction: column; align-items: flex-start; } }

/* ---------- Offices ---------- */
.office { background: #fff; border: 1px solid var(--line); padding: 34px 30px; height: 100%; }
.office h3 { margin-bottom: 4px; }
.office .country { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 16px; }
.office ul { list-style: none; padding: 0; margin: 0; }
.office li { margin-bottom: 4px; }
.office a { text-decoration: none; color: var(--ink); }
.office a:hover { color: var(--brand); }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.contact-form { background: var(--bg-soft); padding: 40px; }
@media (max-width: 560px) { .contact-form { padding: 26px 18px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid #d6d3cf; border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.req { color: var(--brand); }
.field .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--text); margin: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
.form-status.ok { display: block; background: #e9f3ec; color: #24613a; }
.form-status.info { display: block; background: #f1efec; color: var(--ink); font-weight: 500; }
.form-status.err { display: block; background: var(--brand-light); color: var(--brand-dark); }
.contact-form button[disabled] { opacity: .65; cursor: progress; }
altcha-widget {
  display: block;
  --altcha-max-width: 100%;
  --altcha-border-radius: 4px;
  --altcha-color-border: #d6d3cf;
  --altcha-color-border-focus: var(--brand);
  --altcha-color-text: var(--text);
  --altcha-color-base: #fff;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #a3a19d; font-size: .95rem; }
.site-footer .wrap { padding-top: 70px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { width: 120px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d2d0cc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; font-weight: 500; margin-top: 2.2em; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 140px 0; }
.not-found .code { font-size: 7rem; font-weight: 200; color: var(--brand); line-height: 1; }

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