/* RISE CONSTRUCTION — public site.
   Type: Noto Serif Display (headings) + IBM Plex Sans (text). Palette: ink, gold, cream.
   Layout groups related content through spacing, alignment and typography. */

:root {
  --ink: #292820;
  --ink-soft: #3b3930;
  --gold: #a9823e;
  --gold-light: #d5b56c;
  --gold-deep: #7a5c27;
  --cream: #faf8f3;
  --stone: #efeade;
  --rule: #d9d2c2;
  --rule-dark: #4a473c;
  --muted: #5f5c52;
  --muted-on-ink: #c9c4b4;
  --danger: #9b2c1f;

  --serif: 'Noto Serif Display', 'GFS Didot', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Type scale: each step is clearly larger than the one below it. */
  --t-display: clamp(2.5rem, 0.9rem + 6.6vw, 6.75rem);
  --t-h1: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); /* page titles never exceed the home headline */
  --t-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --t-h3: 1.3125rem; /* item titles: sans semibold */
  --t-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;

  /* Spacing scale. Three relationships must read as different:
     inside a group (--s1..--s3), between groups in a section (--s4, --s5), between sections (--s6). */
  --s1: 8px;                                   /* heading to its own text, label to field */
  --s2: 16px;
  --s3: 24px;                                  /* items inside a group */
  --s4: clamp(32px, 1.4rem + 1.3vw, 52px);     /* between items of a list */
  --s5: clamp(48px, 1.6rem + 3.6vw, 96px);     /* between groups: title to content, content to content */
  --s6: clamp(72px, 14px + 10.2vw, 168px);     /* between sections */

  --gutter: clamp(24px, 6vw, 72px);
  --header-h: 88px;

}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--ink); }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); font-weight: 400; line-height: 1.16; letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-size: var(--t-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0 0 1.2em; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- icons (Lucide, see src/views/icons.js): deep gold on light grounds, light gold on dark ---------- */
.icon { flex: none; width: 24px; height: 24px; color: var(--gold-deep); }
.band--ink .icon, .hero .icon, .site-footer .icon, .mbar .icon, .mobile-menu .icon { color: var(--gold-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 30px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--cream);
  font: 500 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--line-light { background: transparent; border-color: var(--muted-on-ink); color: var(--cream); }
.btn--line-light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--stone); border-color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #7c2217; border-color: #7c2217; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }

/* ---------- header and menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--rule); }
.header-in { display: flex; align-items: center; gap: 40px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.brand-rise { font: 500 1.75rem/1 var(--serif); letter-spacing: 0.14em; }
.brand-sub { font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; margin-top: 7px; color: var(--gold-deep); }

.menu { margin-left: auto; }
.menu-list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.menu-item { position: relative; }
.menu-link {
  display: flex; align-items: center; height: var(--header-h); padding: 0 18px;
  font-weight: 500; font-size: 0.96875rem; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent; transition: box-shadow 0.15s;
}
.menu-item:hover .menu-link, .menu-item:focus-within .menu-link, .menu-link[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); }
.menu-sub {
  position: absolute; top: 100%; left: 0; min-width: 288px; list-style: none; margin: 0; padding: 16px 0;
  background: var(--cream); border: 1px solid var(--rule); border-top: 0;
  box-shadow: 0 18px 30px -18px rgba(41, 40, 32, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s, transform 0.14s, visibility 0s 0.14s;
}
.menu-item:hover .menu-sub, .menu-item:focus-within .menu-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-sub a { display: block; padding: 11px 26px; font-size: var(--t-small); text-decoration: none; color: var(--ink-soft); }
.menu-sub a:hover, .menu-sub a:focus-visible { background: var(--stone); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 24px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone .icon { width: 20px; height: 20px; }
.header-cta[aria-current] { background: var(--gold-deep); border-color: var(--gold-deep); }

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  background: none; border: 1px solid var(--ink); border-radius: 2px; color: inherit; font: 500 0.9375rem var(--sans); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.2s; }
.menu-toggle-bars { position: relative; top: -3px; }
.menu-toggle-bars::before { content: ''; position: absolute; top: 6px; left: 0; }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink); color: var(--cream); padding-block: 16px 48px;
}
.mobile-group { padding-block: 24px; border-bottom: 1px solid var(--rule-dark); }
.mobile-top { display: block; font: 400 1.625rem/1.2 var(--serif); text-decoration: none; padding-block: 4px; }
.mobile-top[aria-current] { color: var(--gold-light); }
.mobile-group ul { list-style: none; margin: 10px 0 0; padding: 0; }
.mobile-group li a { display: block; padding: 10px 0; color: var(--muted-on-ink); text-decoration: none; }
.mobile-foot { display: grid; gap: 16px; padding-top: 32px; justify-items: start; }
.mobile-foot .btn { width: 100%; }
.mobile-phone, .mobile-mail, .footer-phone, .footer-mail, .call-line { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mobile-phone { font: 400 1.75rem var(--serif); font-variant-numeric: lining-nums; }
.mobile-mail { padding-block: 6px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--rule); border-radius: 2px; }
  .header-phone .icon { width: 22px; height: 22px; }
}
/* Keep the full desktop menu within the page gutters on smaller laptops. */
@media (min-width: 1021px) and (max-width: 1300px) {
  .header-in { gap: 20px; }
  .menu-link { padding: 0 9px; }
  .menu-list { gap: 4px; }
}
@media (max-width: 1020px) {
  .menu { display: none; }
  .header-actions { margin-left: auto; gap: 12px; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  .brand-rise { font-size: 1.5rem; }
}
@media (min-width: 1021px) { .mobile-menu { display: none !important; } }

/* ---------- bands and shared layouts ---------- */
.band { padding-block: var(--s6); }
/* Two sections on the same ground share one gap instead of adding two paddings. */
.band:not(.band--stone, .band--ink) + .band:not(.band--stone, .band--ink) { padding-top: 0; }
.band--tight { padding-block: var(--s4); }
.band--stone { background: var(--stone); }
.band--ink { background: var(--ink); color: var(--cream); }

/* Heading on the left, content on the right. */
.split { display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(56px, 8vw, 144px); align-items: start; }
  .split-side { position: sticky; top: calc(var(--header-h) + 40px); }
}
.split-side { display: grid; gap: var(--s3); justify-items: start; align-content: start; }
.split-side > * { margin: 0; }
.split-side .btn { margin-top: var(--s2); }
.section-title { margin-bottom: var(--s5); max-width: 30ch; }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s5); max-width: 62rem; }
.section-head p { color: var(--ink-soft); font-size: var(--t-lead); line-height: 1.6; max-width: 60ch; margin: 0; }
.section-head--wide { max-width: 72rem; }

/* Title and description pairs grouped by space. */
.rows { list-style: none; margin: 0; padding: 0; display: grid; row-gap: var(--s4); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.rows h3 { margin: 0; }
.rows p { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.65; margin: var(--s1) 0 0; }
.rows--pairs { column-gap: clamp(40px, 5vw, 88px); row-gap: var(--s5); }
.rows--cols { column-gap: clamp(40px, 5vw, 96px); row-gap: var(--s5); }
.rows--cols li { grid-template-columns: 1fr; row-gap: var(--s1); }
@media (min-width: 720px) {
  .rows--pairs, .rows--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows--lines { row-gap: var(--s5); }
  .rows--lines li { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s4); }
  .rows--lines li > h3 { grid-column: 1; grid-row: 1; }
  .rows--lines li > p { grid-column: 2; grid-row: 1; margin: 0; }
}
@media (min-width: 1100px) { .rows--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rows + .btn { margin-top: var(--s5); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.checks li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; }
.checks .icon { width: 22px; height: 22px; margin-top: 0.1em; }

.fineprint { font-size: 0.9375rem; color: var(--muted); max-width: 72ch; margin-top: var(--s4); }
.aside { color: var(--ink-soft); }

/* A new call to action needs a section-sized pause after the content above it. */
.callout { display: grid; gap: var(--s3) var(--s5); align-items: center; margin-top: var(--s6); }
.callout + .fineprint { margin-top: var(--s5); }
.callout h3 { font: 400 clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem)/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: var(--s2); }
.callout p { color: var(--ink-soft); }
.callout .btn { margin: 0; justify-self: start; }
@media (min-width: 800px) { .callout { grid-template-columns: 1fr auto; } }

.statement { display: grid; gap: var(--s3); justify-items: start; }
.statement-text { font: 300 clamp(2rem, 1.1rem + 3.6vw, 4.25rem)/1.12 var(--serif); letter-spacing: -0.015em; max-width: 22ch; margin: 0; text-wrap: balance; }
.statement-text--medium { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.2; font-weight: 400; max-width: 20ch; }
.statement > p:not(.statement-text) { color: var(--muted); font-size: var(--t-lead); }
.statement .btn { margin-top: var(--s2); }
.company-philosophy { display: grid; gap: var(--s4); align-items: start; }
.company-philosophy > h2 { max-width: 14ch; }
.philo { display: grid; gap: var(--s4); max-width: 42rem; }
.philo .statement-text { font-size: clamp(1.5rem, 1rem + 1.3vw, 2.125rem); line-height: 1.3; max-width: 34ch; }
.philo-body { font-size: var(--t-body); line-height: 1.75; color: var(--ink-soft); margin: 0; }
@media (min-width: 900px) {
  .company-philosophy { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s5); }
}
.twocol { display: grid; gap: 1.2em; margin-bottom: var(--s5); }
.twocol p { margin: 0; font-size: var(--t-lead); line-height: 1.65; color: var(--ink-soft); max-width: none; }
@media (min-width: 900px) { .twocol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(56px, 8vw, 144px); } }
.subsection { margin-top: var(--s4); display: grid; gap: var(--s1); }
.subsection p { margin: 0; }
.subsection h3 { margin-bottom: var(--s1); }
.etaireia-go { margin-top: var(--s5); }

.cta { padding-block: clamp(72px, 4rem + 5vw, 144px); }
.cta-in { display: grid; gap: var(--s5); align-items: end; }
.cta h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 300; max-width: 24ch; }
.cta p { color: var(--muted-on-ink); font-size: var(--t-lead); margin-top: var(--s3); }
.cta .btn { margin: 0; justify-self: start; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr auto; } .cta .btn { justify-self: end; } }

/* ---------- home ---------- */
.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--cream); padding-block: clamp(96px, 12vw, 200px) clamp(80px, 9vw, 152px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(41, 40, 32, 0.93) 0%, rgba(41, 40, 32, 0.86) 45%, rgba(41, 40, 32, 0.4) 100%); }
@media (max-width: 700px) { .hero::after { background: rgba(41, 40, 32, 0.88); } }
.display { font-size: var(--t-display); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; text-wrap: initial; }
.display .line { display: block; text-wrap: balance; }
.display .spin { display: inline-block; white-space: nowrap; color: var(--gold-light); }
.hero .display { --t-display: clamp(1.875rem, 1.1rem + 3.3vw, 3.25rem); }
.hero .trust { margin-top: var(--s5); }
.hero .trust li { font-size: 0.9375rem; font-weight: 400; line-height: 1.35; color: var(--muted-on-ink); }
.hero .trust .icon { width: 20px; height: 20px; }
@media (min-width: 900px) { .hero .trust { gap: var(--s2) 48px; } }

/* Phones: one clean column, equal full-width buttons, deliberate line breaks in the headline. */
.sm-br { display: none; }
@media (max-width: 600px) {
  .sm-br { display: inline; }
  .hero { padding-block: 56px 48px; }
  .hero .display { --t-display: clamp(1.625rem, 7.4vw, 2.25rem); line-height: 1.16; }
  .hero .trust { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .hero .actions { flex-direction: column; gap: 12px; margin-top: 32px; }
  .hero .actions .btn { width: 100%; }
}
.hero .actions { margin-top: var(--s5); }

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s3); }
.trust li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; line-height: 1.35; }
.trust .icon { margin-top: 0.05em; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, auto); justify-content: start; } }

/* ---------- page heads ---------- */
.page-head { padding-top: clamp(48px, 6vw, 104px); }
.page-head-in { display: grid; gap: var(--s5); align-items: center; }
.page-head-in > div { display: grid; gap: var(--s3); justify-items: start; }
.page-head-in > div > * { margin: 0; }
.page-head-in > div .lead { margin-top: var(--s1); }
.page-head-in > div .btn { margin-top: var(--s2); }
/* The photo has a thin gold outline set behind it and offset, like the frame of a drawing. */
.page-head figure { position: relative; isolation: isolate; }
.page-head figure::before { content: ''; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--gold); transform: translate(14px, 14px); }
.page-head img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) {
  .page-head-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(56px, 8vw, 144px); }
  .page-head figure::before { transform: translate(22px, 22px); }
}
.page-head + .band { padding-top: var(--s6); }

/* ---------- forms ---------- */
/* Phones: heading, the form, then the explanation. Wide screens: explanation beside the form. */
.form-layout { display: grid; gap: var(--s5) clamp(56px, 8vw, 128px); align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "more"; }
.form-layout--prop { grid-template-areas: "main" "more"; }
.band--first { padding-top: clamp(48px, 6vw, 104px); }
.form-head { grid-area: head; display: grid; gap: var(--s3); justify-items: start; }
.form-head > * { margin: 0; }
.form-main { grid-area: main; min-width: 0; }
.form-more { grid-area: more; display: grid; gap: var(--s4); justify-items: start; }
.form-more > * { margin: 0; }
.only-narrow { display: none; }
@media (max-width: 979px) {
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .form-layout { row-gap: var(--s4); }
  .band--first, .band--first:has(.form-layout) { padding-top: 32px; }
  .page-head--form figure { display: none; }
  .page-head--form + .band { padding-top: 32px; }
  .page-head--form { padding-bottom: 0; }
}
/* After a successful send the explanation goes away and the confirmation stands alone. */
.form-layout.is-done { grid-template-areas: "main"; grid-template-columns: minmax(0, 44rem); justify-content: center; }
.form-layout.is-done .form-head, .form-layout.is-done .form-more, .form-layout.is-done .form-main > .form-head { display: none; }
.form-intro { display: grid; gap: var(--s3); justify-items: start; }
.form-intro > * { margin: 0; }
.form-title { font-size: 1.75rem; margin-bottom: var(--s3); }
.form-layout--even { align-items: start; }
#anazitisi > .lead, .form-note { margin-bottom: var(--s3); }
.form-note { color: var(--ink-soft); }
#anazitisi .form-wrap { margin-top: var(--s4); }
#anazitisi .form-wrap + .form-note { margin-top: var(--s4); margin-bottom: 0; }
.call-line { font-weight: 500; }
.call-line a { font: 500 1.5rem var(--serif); margin-left: 6px; white-space: nowrap; font-variant-numeric: lining-nums; }
@media (min-width: 980px) {
  .form-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head main" "more main"; grid-template-rows: auto 1fr; }
  .form-layout--prop { grid-template-areas: "more main"; grid-template-rows: auto; }
  .form-layout.is-done { grid-template-areas: "main"; grid-template-columns: minmax(0, 44rem); grid-template-rows: auto; }
  .form-head { align-self: end; }
  .form-more { align-self: start; }
}
.form { display: grid; gap: var(--s4); }
.fields { display: grid; gap: var(--s4) var(--s5); }
@media (min-width: 620px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--s1); align-content: start; min-width: 0; }
.field label { font-size: var(--t-small); font-weight: 500; color: var(--ink-soft); }
.field:focus-within label { color: var(--gold-deep); }
.req { color: var(--gold-deep); }
.form-legend { margin: 0; font-size: var(--t-small); color: var(--muted); }
.field-error { margin: 0; font-size: var(--t-small); font-weight: 500; color: var(--danger); }
/* Fields are lines on the page: a 1px underline at rest, 2px gold when focused, red when wrong. */
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 0 12px; border: 0; border-bottom: 1px solid #6f6b5e; border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.0625rem/1.4 var(--sans);
}
.field textarea { min-height: 150px; resize: vertical; padding-top: 12px; }
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-deep); box-shadow: 0 1px 0 var(--gold-deep); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.field ::placeholder { color: #8b877b; opacity: 1; }
.has-error input:not([type='checkbox']), .has-error select, .has-error textarea { border-bottom-color: var(--danger); box-shadow: 0 1px 0 var(--danger); }
.consent-row { display: grid; gap: var(--s1); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; min-height: 52px; padding-block: 8px; font-size: var(--t-small); line-height: 1.55; cursor: pointer; }
.consent input { width: 26px; height: 26px; margin: 0; accent-color: var(--ink); }
.consent:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.consent a { display: inline-block; padding-block: 8px; margin-block: -8px; }
.consent-row.has-error .consent { box-shadow: inset 3px 0 0 var(--danger); padding-left: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error:focus { outline: none; }
.form-error a, .tel { white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn--submit { white-space: nowrap; margin-top: var(--s1); }
.btn[aria-disabled='true'] { opacity: 0.65; cursor: progress; pointer-events: none; }
.form-status { margin: -8px 0 0; font-size: var(--t-small); color: var(--muted); }
.form-status:empty { display: none; }
@media (max-width: 420px) { .btn--submit { padding-inline: 8px; font-size: clamp(0.8125rem, 3.9vw, 1rem); } }
/* An error message is allowed its box: it has to be seen. */
.form-error { margin: 0; padding: 14px 18px; background: #f7e7e3; border-left: 3px solid var(--danger); color: #6f1f15; font-weight: 500; }

.form-result { display: grid; gap: var(--s2); }
.done { display: grid; gap: var(--s3); justify-items: start; }
.done > * { margin: 0; }
.done-mark .icon { width: 44px; height: 44px; }
.done-title { font: 400 var(--t-h2)/1.16 var(--serif); letter-spacing: -0.01em; }
.done-title:focus { outline: none; }
.done-next { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-soft); }
/* The reference code remains easy to find without a decorative frame. */
.done-ref { justify-self: stretch; display: grid; gap: var(--s1); margin-block: var(--s3); }
.done-ref > * { margin: 0; }
.done-ref-label { font-size: var(--t-small); color: var(--muted); }
.done-ref-code { font: 300 clamp(2rem, 1.4rem + 2.6vw, 3rem)/1.15 var(--serif); }
.done-ref-note { font-size: var(--t-small); color: var(--ink-soft); }
.done-actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.done-actions .btn { margin: 0; }
@media (max-width: 480px) { .done-actions { flex-direction: column; justify-self: stretch; } }
.confirmation { max-width: 44rem; padding-top: clamp(24px, 4vw, 56px); }
.ref { font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.04em; user-select: all; }

/* Not-found and error pages: a way onward, not a dead end. */
.dead-end { display: grid; gap: var(--s3); justify-items: start; }
.dead-end > * { margin: 0; }
.dead-end .wayout { margin-block: var(--s3); }
.reading .wayout ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); column-gap: 40px; max-width: none; }
.wayout { justify-self: stretch; }
.wayout li { margin: 0; }
.wayout a { display: block; padding: 12px 0; font: 400 1.375rem/1.3 var(--serif); text-decoration: none; }
.wayout a:hover { color: var(--gold-deep); }
.wayout-act { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }

/* ---------- text effects (used once each) ---------- */
.tw-rest { visibility: hidden; }
.tw-caret::after { content: ''; display: inline-block; width: 2px; height: 0.8em; margin-left: 4px; background: var(--gold); vertical-align: baseline; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- simple text pages (privacy, confirmations) ---------- */
.reading { padding-block: clamp(56px, 7vw, 112px) var(--s6); max-width: 58rem; }
.reading h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem); margin-bottom: var(--s4); }
.reading h2 { font-size: 1.75rem; font-weight: 400; margin: 2.2em 0 0.6em; }
.reading h3 { margin: 1.8em 0 0.5em; }
.reading ul { padding-left: 1.2em; margin: 0 0 1.2em; max-width: 66ch; }
.reading li { margin-bottom: 0.5em; }
.reading li::marker { color: var(--gold); }
.reading form { display: flex; flex-wrap: wrap; gap: var(--s2); margin-block: 1.2em; }
mark.placeholder { background: #f6e3a6; color: var(--ink); padding: 0 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-top: clamp(72px, 9vw, 144px); border-top: 1px solid var(--rule-dark); }
.footer-in { display: grid; gap: var(--s5); padding-bottom: clamp(56px, 7vw, 104px); }
.site-footer .brand-sub { color: var(--gold-light); }
.footer-tag { color: var(--muted-on-ink); margin: var(--s2) 0 var(--s4); }
.footer-contact { display: grid; gap: var(--s2); justify-items: start; }
.footer-phone { font: 300 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1.1 var(--serif); font-variant-numeric: lining-nums; }
.footer-phone .icon { width: 28px; height: 28px; }
.footer-mail .icon { width: 20px; height: 20px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.footer-top { font: 500 1.125rem/1.3 var(--serif); text-decoration: none; }
.footer-nav ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 12px; }
.footer-nav li a { color: var(--muted-on-ink); font-size: var(--t-small); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); }
/* Phones: one column, each section's links run on in a wrapped line, so the footer is short and "Έργα" leaves no hole. */
@media (max-width: 999px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-nav > div { padding-block: 16px; border-top: 1px solid var(--rule-dark); }
  .footer-top { display: inline-block; padding-block: 8px; }
  .footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 0; }
  .footer-nav li a { display: inline-block; padding-block: 8px; }
}
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; border-top: 1px solid var(--rule-dark); font-size: 0.875rem; color: var(--muted-on-ink); }
.footer-legal p { margin: 0; }
@media (min-width: 1000px) {
  .footer-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(56px, 7vw, 120px); }
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-nav:has(> div:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink); border-top: 1px solid var(--rule-dark);
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); gap: 8px;
  }
  .mbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 0; padding: 6px 8px; border-radius: 2px; font: 500 0.9375rem/1.2 var(--sans); text-decoration: none; text-align: center; }
  .mbar-call { flex: 1.15 !important; white-space: nowrap; }
  @media (max-width: 380px) { .mbar a { font-size: 0.875rem; } .mbar .icon { display: none; } }
  .mbar-call { border: 1px solid var(--muted-on-ink); color: var(--cream); font-variant-numeric: tabular-nums; }
  .mbar-quote { background: var(--gold-light); color: var(--ink); border: 1px solid var(--gold-light); }
  .mbar .icon { width: 20px; height: 20px; }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.menu-open .mbar { display: none; }
  /* Keep the bar off the on-screen keyboard while a field is being filled in. */
  body:has(input:focus, select:focus, textarea:focus) .mbar { display: none; }
}

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

@media (max-width: 719px) {
  /* Keep navigation compact enough that longer content pages remain practical on phones. */
  .site-footer { padding-top: 56px; }
  .footer-in { gap: 32px; padding-bottom: 40px; }
  .footer-nav > div { padding-block: 12px; }
  .footer-legal { padding-block: 24px; }
  #diktyo .section-title { margin-bottom: 32px; }
  #filosofia .philo { gap: 24px; }
  #diktyo .rows--cols { row-gap: 24px; }
  #diktyo .rows--cols li { gap: 8px; }
  #diktyo .rows--cols h3 { grid-column: 1; }
  #diktyo .rows--cols p { grid-column: 1 / -1; }
}

/* Property information has three distinct groups beside the form, not one dense stack. */
.property-copy { gap: var(--s5); }
.property-overview { display: grid; gap: var(--s3); }
.property-overview > * { margin: 0; }
.property-copy h2, #anazitisi > .form-title { font-size: clamp(1.75rem, 1.2rem + 1vw, 2.125rem); line-height: 1.2; }
.property-copy .subsection { margin: 0; gap: var(--s2); }
.property-copy .subsection h3 { margin-bottom: 0; }
#anazitisi > .lead { margin-top: var(--s3); }
