/* ArchaeoDomus — site styles
   Headings: Spectral. Body: Lexend. Built for readability:
   no italics or all capitals, left-aligned text, short line lengths,
   dark brown on cream, underlined links, visible focus. */

:root {
  --cream: #F1E9DC;
  --card: #F8F2E8;
  --sand: #E7DCCB;
  --line: #DCCDB6;
  --line-strong: #C2AF97;
  --ink: #2E231C;
  --body: #4F4238;
  --muted: #5E4F44;
  --rust: #8E3C1F;
  --rust-dark: #6E2E17;
  --oak: #3D2B21;
  --oak-line: #54402F;
  --green: #2E3A36;
  --light: #F1EADD;
  --light-muted: #DCD4C5;
  --orange: #F2A25C;
  --on-dark: #F7F0E5;
  --radius: 10px;
  --wrap: 1240px;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Lexend", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: inherit; }
h1 { font-weight: 500; font-size: clamp(42px, 6vw, 80px); line-height: 1.08; }
h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
p { margin: 0; }
p + p { margin-top: 1em; }
em, i { font-style: normal; }

a { color: var(--rust); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.measure { max-width: 640px; }
.muted { color: var(--muted); }
.body-text { color: var(--body); }
.small { font-size: 15px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--on-dark); color: var(--ink); padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-family: var(--sans); font-size: 17px; line-height: 1.3; padding: 14px 24px; border-radius: 6px; border: 0; cursor: pointer; }
.btn-primary { background: var(--rust); color: #F7EFE3; }
.btn-primary:hover { background: var(--rust-dark); color: #F7EFE3; }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #F5B47A; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn svg { width: 20px; height: 20px; }

.pill { display: inline-block; font-size: 14px; font-weight: 600; color: #F7EFE3; background: var(--rust); padding: 5px 14px; border-radius: 999px; line-height: 1.4; }
.label { font-size: 15px; font-weight: 600; color: var(--muted); }
.label-rust { font-size: 15px; font-weight: 600; color: var(--rust); }

/* Header */
.site-header { background: var(--oak); color: var(--on-dark); }
.site-header.over-hero { background: transparent; position: absolute; left: 0; right: 0; top: 0; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0; }
.brand b { color: var(--orange); font-weight: 600; }
.nav-toggle { display: none; background: transparent; color: var(--on-dark); border: 1.5px solid rgba(247,240,229,.6); border-radius: 6px; padding: 9px 14px; font: 600 15px var(--sans); cursor: pointer; align-items: center; gap: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--on-dark); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; color: var(--on-dark); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); }
.site-nav .nav-cta { background: var(--orange); color: var(--ink); padding: 11px 20px; border-radius: 6px; font-weight: 600; }
.site-nav .nav-cta:hover { background: #F5B47A; color: var(--ink); text-decoration: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; padding-bottom: 8px; }
  .site-nav li a { display: block; padding: 12px 0; border-top: 1px solid rgba(247,240,229,.18); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border-top: 0; }
  .site-header.over-hero { background: rgba(45,31,23,.92); }
  .no-js .site-nav { display: block; }
}

/* Home hero */
.hero { position: relative; min-height: 820px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark); background-color: #4A3528; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,31,23,.62), rgba(45,31,23,.25) 40%, rgba(45,31,23,.86)); }
.hero-content { position: relative; padding-top: 160px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { max-width: 940px; }
.hero h1 .accent { color: var(--orange); }
.hero p { max-width: 600px; font-size: 19px; color: #F0E6D6; }
@media (max-width: 860px) { .hero { min-height: 640px; } .hero-content { padding-top: 140px; } }

/* Page banner */
.banner { position: relative; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark); background: #4A3528; overflow: hidden; }
.banner-media { position: absolute; inset: 0; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.banner-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,31,23,.35), rgba(45,31,23,.86)); }
.banner .wrap { position: relative; padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.banner h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.1; max-width: 900px; }
.banner p { max-width: 640px; font-size: 19px; color: #F0E6D6; }
.banner.plain { background: var(--oak); min-height: 0; border-top: 1px solid var(--oak-line); }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: #F0E6D6; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: #F0E6D6; }

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.bg-sand { background: var(--sand); }
.bg-green { background: var(--green); color: var(--light); }
.bg-green .muted, .bg-green .body-text { color: var(--light-muted); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.center-head p { max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

/* Need bands (home) */
.need { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.need.reverse { flex-wrap: wrap-reverse; }
.need-media { flex: 1 1 480px; min-width: 0; }
.need-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
.need-text { flex: 1 1 460px; max-width: 580px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.need-text h3 { font-size: 38px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
@media (max-width: 640px) { .need-media img { height: 280px; } .need-text h3 { font-size: 30px; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips.center { justify-content: center; }
.chip { text-decoration: none; color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 8px 18px; font-size: 15px; background: transparent; font-family: var(--sans); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--green); border-color: var(--green); color: var(--light); }
.bg-green .chip { color: var(--light); border-color: #8FA39B; }
.bg-green .chip:hover { border-color: var(--light); }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid-3, .grid-cards { grid-template-columns: 1fr; } }
.project-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.project-card:hover { color: var(--ink); }
.project-card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }
.project-card img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.card-meta { font-size: 15px; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; }
.card-text { font-size: 16px; color: var(--body); }
.service-card { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service-card:hover { color: var(--ink); border-color: var(--line-strong); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card .inner { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.service-card .card-text { flex-grow: 1; }
.service-card .more { font-weight: 600; color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }

.callout { background: var(--card); border: 2px solid var(--rust); border-radius: var(--radius); padding: 36px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.callout .stack-sm { flex: 1 1 520px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }

/* Two column content */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.split-main { flex: 1 1 560px; max-width: 660px; display: flex; flex-direction: column; gap: 18px; }
.split-side { flex: 1 1 320px; }
.split-side .panel { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.split-side h2 { font-size: 26px; }
.tick-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.tick-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.facts { display: flex; flex-direction: column; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 15px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.steps .num { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--rust); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.stats strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; }
.stats span { color: var(--light-muted); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

.client-list { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 40px; }
.client-list li { padding: 12px 0; border-top: 1px solid var(--line); break-inside: avoid; }

/* CTA band */
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.cta-band .stack-sm { flex: 1 1 560px; }
.cta-band h2 { font-size: clamp(32px, 4vw, 42px); }
.cta-band a.phone { color: var(--orange); font-weight: 600; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=date], .field select, .field textarea {
  font: inherit; font-size: 17px; font-weight: 400; padding: 13px 14px; border: 1px solid #C9B89E; border-radius: 6px; background: #FFFBF4; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--rust); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #FFF6E2; border: 1px solid #E8C98A; border-radius: 8px; padding: 14px 18px; }
.notice.ok { background: #EEF5E6; border-color: #B9CFA2; }
.notice.err { background: #FBEAE4; border-color: #E2B3A3; }
.bg-green .contact-block span { color: #C9C2B4; font-size: 15px; display: block; }
.bg-green a { color: var(--orange); }

/* Prose (project and admin-written text) */
.prose { color: var(--body); }
.prose p + p { margin-top: 1em; }

/* Footer */
.site-footer { background: var(--oak); color: #E3D6C3; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--on-dark); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #E3D6C3; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .nounder a { text-decoration: none; }
.site-footer .nounder a:hover { text-decoration: underline; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--on-dark); }
.footer-brand b { color: var(--orange); font-weight: 600; }
.footer-base { border-top: 1px solid var(--oak-line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-top: 20px; padding-bottom: 36px; font-size: 14px; }

/* Admin */
.admin-bar { background: var(--green); color: var(--light); }
.admin-bar .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.admin-bar a, .admin-bar button { color: var(--light); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: 15px; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.thumb { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.thumb img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.status { font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; display: inline-block; }
.status.live { background: #E3EFD6; color: #2F4A18; }
.status.draft { background: #EEE5D6; color: var(--muted); }

/* Fixes: dark-band buttons keep their own text colour; compact header on phones */
.bg-green a.btn-orange, .bg-green a.btn-orange:hover { color: var(--ink); }
.bg-green a.btn-light { color: var(--ink); }
@media (max-width: 860px) {
  .header-inner { column-gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 22px; }
}
