/* Shared layout for the Remakee example homepages. Each page sets its own theme variables. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body-font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; padding-bottom: 76px;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: var(--head-track, 0); text-transform: var(--head-case, none); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: var(--head-weight, 700); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: var(--head-weight, 700); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text, var(--brand)); margin-bottom: 0.9rem; }

/* Concept notice */
.concept { background: var(--ink); color: var(--bg); font-size: 0.85rem; text-align: center; padding: 0.55rem 1rem; }
.concept a, footer a, .info dd a, .urgent a { display: inline-block; padding: 0.8rem 0; margin: -0.8rem 0; text-underline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font-family: var(--head-font); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: var(--head-track, 0); text-transform: var(--head-case, none); }
.brand small { display: block; font-family: var(--body-font); font-weight: 500; font-size: 0.82rem; letter-spacing: 0; text-transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.75rem 1.4rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform 0.1s ease, filter 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn:hover { filter: brightness(1.08); }
.btn-main { background: var(--brand); color: var(--on-brand); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); background: var(--hero-bg, transparent); color: var(--hero-ink, inherit); }
.hero p.lead { font-size: 1.2rem; margin: 1.2rem 0 1.8rem; max-width: 34rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero--split .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero--center { text-align: center; }
.hero--center p.lead { margin-inline: auto; }
.hero--center .cta { justify-content: center; }
.hero--center .art { margin: 2.5rem auto 0; max-width: 620px; }
.art svg { display: block; width: 100%; height: auto; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.facts b { display: block; font-family: var(--head-font); font-size: 1.5rem; line-height: 1.1; letter-spacing: var(--head-track, 0); }
.strip { padding: 0 0 clamp(2rem, 5vw, 3rem); background: var(--hero-bg, transparent); color: var(--hero-ink, inherit); }

/* Services */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; padding: 0; list-style: none; }
.grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.grid svg { width: 34px; height: 34px; color: var(--brand-text, var(--brand)); margin-bottom: 0.8rem; }
.grid p { margin-top: 0.4rem; font-size: 0.98rem; }

/* Reviews */
.alt { background: var(--alt-bg); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.reviews figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.reviews .stars { width: 6.2rem; height: 1.15rem; background: var(--star); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.6l2.6 5.3 5.8.8-4.2 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.6 7.7l5.8-.8z'/%3E%3C/svg%3E") left center / 1.24rem 100% repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.6l2.6 5.3 5.8.8-4.2 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.6 7.7l5.8-.8z'/%3E%3C/svg%3E") left center / 1.24rem 100% repeat-x; }
.reviews blockquote { margin: 0.6rem 0 0.9rem; }
.reviews figcaption { font-size: 0.9rem; font-weight: 700; }
.reviews figcaption span { display: block; font-weight: 400; }
.sample-note { font-size: 0.88rem; margin-top: 1rem; }

/* Area + form */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; }
.info dt { font-weight: 700; }
.info dd { margin: 0; }
form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
label { font-weight: 700; font-size: 0.95rem; display: grid; gap: 0.35rem; }
input, textarea { font: inherit; color: var(--field-ink, #1b1b1b); background: #fff; border: 1.5px solid var(--field-line, #8a8a8a); border-radius: calc(var(--radius) * 0.6); padding: 0.7rem 0.8rem; min-height: 48px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.sent { font-weight: 700; }

/* Footer + mobile call bar */
footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: 0.92rem; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: none; gap: 0.6rem; padding: 0.7rem 0.9rem; background: var(--bg); border-top: 1px solid var(--line); }
.callbar .btn { flex: 1; }

@media (max-width: 820px) {
  .hero--split .wrap, .two { grid-template-columns: 1fr; }
  .grid, .reviews { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .top .btn { display: none; }
  .callbar { display: flex; }
}
@media (min-width: 821px) { body { padding-bottom: 0; } }
