/* sancterra.hu — the public entrance. The look of the shared page: its paper, the face's
   colours (set by site.js), and the plain system font; the wordmark is the one flourish. */
:root {
  --ink: #1c1c1a; --muted: #6e6b63; --paper: #faf9f6; --card: #ffffff; --line: #e3dfd5;
  --accent: #6b7a52; --deep: #3f4632; --wash: #e8ebde;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--deep); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

#site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  padding: 10px 20px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line); }
#site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; opacity: .85;
  background: linear-gradient(90deg, #3d86b8, #e7b24a 34%, #6f9a3c 68%, #8a5a2b); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none;
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; font-size: 1.35rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.brand img { height: 36px; width: auto; }
#site-header nav { display: flex; flex-wrap: wrap; gap: 4px; }
#site-header nav a { padding: 6px 12px; border-radius: 18px; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
#site-header nav a:hover, #site-header nav a:focus-visible { color: var(--ink); background: #f2f0ea; outline: none; }
#site-header nav a[aria-current] { color: var(--deep); background: var(--wash); }
.login { padding: 6px 14px; border: 1px solid var(--line); border-radius: 18px; font-size: .92rem; font-weight: 500; text-decoration: none; }
.login:hover, .login:focus-visible { border-color: var(--accent); outline: none; }

.hero { padding: 56px 0 44px; background: var(--wash); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.hero img { justify-self: center; max-height: 300px; width: auto; }
.question { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 8px 0 14px; font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.15; font-weight: 600; }
.lead { margin: 0 0 22px; font-size: 1.15rem; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--deep); background: var(--deep); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); outline: none; }
.btn.quiet { background: transparent; color: var(--deep); border-color: var(--line); }
.btn.quiet:hover, .btn.quiet:focus-visible { background: var(--card); border-color: var(--accent); }
.soon { display: inline-block; margin-top: 4px; color: var(--muted); font-size: .92rem; }

section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.25; font-weight: 600; }
.intro { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: 16px 18px; }
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card p { margin: 0; color: #45443f; font-size: .95rem; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 12px; border-top: 2px solid var(--accent); }
.steps strong { display: block; }
.steps strong::before { content: counter(step) ". "; color: var(--accent); }
.steps span { color: #45443f; font-size: .95rem; line-height: 1.5; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.door { display: block; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--door, var(--accent)); border-radius: 8px; background: var(--card); color: inherit; text-decoration: none; }
.door:hover, .door:focus-visible { border-color: var(--door, var(--accent)); outline: none; }
.door strong { display: block; }
.door span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.contact { background: var(--wash); border-radius: 10px; padding: 22px 24px; display: grid; gap: 6px; justify-items: start; }
/* The other faces as windows: a picture each, the one pointed at opening wider. The
   pictures are the web app's own (faces/, copies of sancterra-web's public/faces). */
.windows { display: flex; gap: 10px; height: 220px; }
.window { position: relative; flex: 1 1 0; min-width: 0; border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; background: var(--card); transition: flex-grow .4s ease; }
.window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.window span { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 10px 14px 12px; background: color-mix(in srgb, var(--paper, #faf9f6) 90%, transparent); border-bottom: 4px solid var(--door, var(--accent)); }
.window strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window em { font-style: normal; color: var(--muted); font-size: .93rem; line-height: 1.4; }
.window:hover, .window:focus-visible { flex-grow: 1.8; outline: none; }
.window:hover img, .window:focus-visible img { transform: scale(1.04); }
@media (max-width: 760px) {
  .windows { flex-direction: column; height: auto; }
  .window { flex: none; height: 170px; }
}
@media (prefers-reduced-motion: reduce) { .window, .window img { transition: none; } }

/* The inquiry form (site.js): the page's colours, the system's own controls. */
.inquiry { display: grid; gap: 12px; width: 100%; max-width: 720px; margin: 8px 0 4px; }
.inquiry .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.field { display: grid; gap: 3px; font-size: .93rem; }
.field span { font-weight: 600; }
.field b { color: var(--deep); }
.field small { color: var(--muted); font-size: .82rem; }
.field input, .field textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.field textarea { resize: vertical; min-height: 96px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--deep); flex: none; }
.consent a { color: var(--deep); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.form-actions button { font: inherit; font-weight: 600; cursor: pointer; }
.form-actions button:disabled { opacity: .6; cursor: default; }
.form-status { margin: 0; font-size: .92rem; }
.form-status.bad { color: #a3402f; }
.form-status.wait { color: var(--muted); }
.sent { padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--card); }
.sent p { margin: 4px 0 0; }
/* Off the page rather than display:none: a script that skips hidden fields still fills it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.or { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.legal { max-width: 70ch; }
.legal h2 { margin-top: 28px; font-size: 1.15rem; }
.legal h3 { margin: 20px 0 6px; font-size: 1rem; }
.legal .btn + .btn { margin-left: 8px; }
.legal .draft { padding: 12px 16px; border: 1px solid #a3402f; border-radius: 8px; background: #f6e3de; color: #5e2318; }
.contact [data-contact] { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; margin-bottom: 8px; }

#site-footer { padding: 34px 20px 44px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
#site-footer img { height: 110px; width: auto; }
#site-footer p { margin: 8px 0 0; }
.small { font-size: .85rem; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 34px 0 30px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero img { order: -1; max-height: 170px; }
  #site-header { padding: 8px 12px; }
  .brand { font-size: 1.1rem; }
  section { padding: 32px 0; }
}
