/* Shared components: header, nav, buttons, media, cards, forms, footer */

.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 16px 28px; border: 1px solid var(--gold); border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1;
  background: var(--gold); color: var(--black);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .icon { width: 1.2em; height: 1.2em; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--black); }
.btn:hover .icon { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: rgba(201, 162, 75, 0.12); color: var(--gold-bright); border-color: var(--gold-bright); }
.btn--silver { background: transparent; border-color: var(--line-strong); color: var(--silver-light); }
.btn--silver:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); border-color: var(--silver); }
.btn--dark { background: var(--text-dark); border-color: var(--text-dark); color: var(--white); }
.btn--dark:hover { background: #000; border-color: #000; color: var(--gold-bright); }
.btn--sm { padding: 12px 20px; font-size: 0.7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(5, 5, 6, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 60px; width: auto; mix-blend-mode: lighten; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.site-nav a {
  position: relative; display: block; padding: 10px 0;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-light);
}
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-bright); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-mobile-only { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--silver-light); content: ""; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle__bars { top: 22px; }
.nav-toggle__bars::before { left: 0; top: -6px; }
.nav-toggle__bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .site-header__cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 28px var(--gutter) 40px;
    background: rgba(5, 5, 6, 0.98); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 20px 0; font-size: 0.9rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-mobile-only { display: block; }
}

/* ---------- Media + placeholders ----------
   .media wraps a swappable image. While a slot still holds a temporary
   image, keep the `media--placeholder` class (shows a small corner label).
   Remove that class when a real DENNO photo is dropped in. */
.media { position: relative; overflow: hidden; background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--placeholder::after {
  content: "Placeholder image"; position: absolute; right: 12px; top: 12px;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-dim);
  border: 1px solid var(--line-strong); padding: 4px 8px; background: rgba(5, 5, 6, 0.6);
}

/* ---------- Pillar tiles ---------- */
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 28px;
  border: 1px solid var(--line); overflow: hidden; color: var(--white); isolation: isolate;
}
.tile .media { position: absolute; inset: 0; z-index: -2; transition: transform 0.9s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 5, 6, 0.95) 8%, rgba(5, 5, 6, 0.45) 55%, rgba(5, 5, 6, 0.2)); }
.tile:hover { color: var(--white); border-color: var(--line-gold); }
.tile:hover .media { transform: scale(1.05); }
.tile .icon { color: var(--gold); width: 2rem; height: 2rem; margin-bottom: 18px; }
.tile h3 { text-transform: uppercase; font-size: 1.7rem; letter-spacing: 0.03em; }
.tile p { margin: 8px 0 0; font-size: 0.9rem; color: var(--silver); max-width: 30ch; }
.tile__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.tile__more .icon { width: 1.2em; height: 1.2em; margin: 0; transition: transform 0.25s var(--ease); }
.tile:hover .tile__more .icon { transform: translateX(5px); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); position: relative; }
.card--gold { border-color: var(--line-gold); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { color: var(--gold); width: 2rem; height: 2rem; margin-bottom: 18px; }
.num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; display: block; margin-bottom: 14px; }

.list-check { list-style: none; }
.list-check li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 1px; background: var(--gold); }
.list-check li:last-child { border-bottom: 0; }
.section--paper .list-check li { border-color: rgba(0, 0, 0, 0.14); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(201, 162, 75, 0.16), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(255, 255, 255, 0.04), transparent 70%),
    var(--black);
}
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 16ch; }
.page-hero .lead { margin-top: 28px; }
.page-hero .btn-row { margin-top: 36px; }

/* ---------- Callouts ---------- */
.callout { border-left: 2px solid var(--red); background: rgba(192, 38, 45, 0.07); padding: 20px 24px; }
.callout strong { color: var(--white); }
.section--paper .callout strong { color: var(--text-dark); }
.callout--gold { border-left-color: var(--gold); background: rgba(201, 162, 75, 0.07); }
.todo {
  display: block; margin: 0 0 1.2em; padding: 14px 18px; border: 1px dashed var(--red); background: rgba(192, 38, 45, 0.08); color: var(--silver-light); font-size: 0.95rem;
}
.todo::before { content: "TODO"; display: inline-block; margin-right: 10px; padding: 2px 8px; background: var(--red); color: var(--white); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--silver-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--surface); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input[type="date"] { color-scheme: dark; }
.form__note { font-size: 0.85rem; color: var(--silver-dim); margin: 0; }
.form__status { margin: 0; padding: 14px 18px; border-left: 2px solid var(--gold); background: rgba(201, 162, 75, 0.08); color: var(--silver-light); font-size: 0.92rem; }
.form__status[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: radial-gradient(60% 120% at 50% 0%, rgba(201, 162, 75, 0.14), transparent 70%), var(--ink); border-top: 1px solid var(--line); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 22px auto 34px; max-width: 52ch; color: var(--silver); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line-gold); padding-top: clamp(56px, 7vw, 96px); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.site-footer img { height: 96px; width: auto; margin-bottom: 20px; mix-blend-mode: lighten; }
.site-footer p { font-size: 0.9rem; color: var(--silver-dim); max-width: 34ch; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.26em; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { font-size: 0.86rem; color: var(--silver); }
.site-footer li a:hover { color: var(--gold-bright); }
.site-footer__bottom { margin-top: clamp(40px, 5vw, 72px); padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-dim); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Enquiry form: states, honeypot, Turnstile ---------- */
.form__status--error { border-left-color: var(--red); background: rgba(192, 38, 45, 0.09); }
.form__status a { color: var(--gold-bright); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[disabled]:hover { background: var(--gold); border-color: var(--gold); }
.btn[disabled]:hover .icon { transform: none; }
/* Honeypot: off-screen, not display:none (bots skip display:none), hidden from assistive tech via aria-hidden. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
