:root {
  --green: #023d2a;
  --green-ink: #0f3b2e;
  --orange: #f47321;
  --orange-soft: #fdf1e7;
  --bg: #fafaf8;
  --card: #ffffff;
  --field: #f4f4f1;
  --line: #e4e4de;
  --muted: #7a7d78;
  --text: #1c1f1d;
  --error: #c0392b;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 16px 40px;
  text-align: center;
}

.brand { display: inline-flex; align-items: flex-start; text-decoration: none; }
.brand img { width: 274px; height: auto; display: block; }
.reg { color: var(--green); font-size: 10px; margin-left: 4px; margin-top: -4px; }

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  color: var(--green-ink);
  font-size: clamp(32px, 6.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.tagline {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  color: var(--green-ink);
  font-size: clamp(17px, 2.8vw, 24px);
  margin: 0 0 34px;
}

.card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  text-align: left;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  margin-bottom: 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(2,61,42,.08); }
.field.invalid { border-color: var(--error); }
.field svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #4b4f4b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.field input, .field select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
}
.field input::placeholder { color: var(--muted); }
.field select { appearance: none; cursor: pointer; }
.field select:invalid { color: var(--muted); }
.field select option { color: var(--text); }

.phone .code { flex: 0 0 64px; }
.phone .divider { width: 1px; height: 24px; background: var(--line); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.note { text-align: center; font-weight: 600; font-size: 14.5px; margin: 16px 0 14px; }
.error { color: var(--error); font-size: 13.5px; text-align: center; margin: -4px 0 12px; }

.btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  font: 600 15px Inter, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.ready { background: var(--orange); color: #fff; }
.btn:hover { filter: brightness(.98); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: wait; }

.success { text-align: center; padding: 26px 10px 18px; }
.success h2 { font-family: Fraunces, Georgia, serif; color: var(--green-ink); font-size: 26px; margin: 14px 0 8px; }
.success p { color: #4b4f4b; margin: 0; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; margin: 0 auto; }
.tick svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.privacy {
  margin: 56px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.privacy svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.privacy a, .foot a { color: var(--green); }
.foot { font-size: 12.5px; color: #9aa09a; margin-top: 34px; }
.foot.links { margin-top: 8px; }

/* Privacy policy page */
.doc { max-width: 760px; text-align: left; }
.doc .brand { margin-bottom: 26px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.doc h2 { font-family: Fraunces, Georgia, serif; color: var(--green-ink); font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: #333733; }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--green); }
.back { display: inline-flex; gap: 6px; margin-top: 36px; color: var(--green); font-weight: 600; text-decoration: none; }

@media (max-width: 480px) {
  .wrap { padding-top: 36px; }
  .brand img { width: 220px; }
  .card { padding: 16px; }
  .field input, .field select { font-size: 16px; } /* stops iOS zoom-on-focus */
  .privacy { margin-top: 40px; align-items: flex-start; flex-wrap: nowrap; text-align: left; }
  .privacy svg { margin-top: 2px; flex: none; }
  .doc { overflow-wrap: anywhere; }
}

/* Contact card (no web forms) */
.contact { text-align: center; padding: 26px 24px; }
.contact-lead { font-family: Fraunces, Georgia, serif; font-weight: 600; color: var(--green-ink); font-size: 22px; margin: 0 0 6px; }
.contact-sub { color: #4b4f4b; margin: 0 0 20px; }
.btn.wa-btn { text-decoration: none; background: #25d366; color: #fff; }
.wa-btn svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.wa-btn:hover { filter: brightness(.95); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14px; }
.contact-list li { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.contact-list svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--green); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* Floating WhatsApp button (bottom right) */
.wa-float {
  position: fixed;
  right: 28px;
  bottom: 40px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 24px 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font: 600 16.5px Inter, system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; flex: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.wa-float:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.doc { padding-bottom: 104px; } /* keep footer clear of the floating button */

/* Home page: fits one screen on desktop and mobile, sizes follow the viewport height */
.wrap.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 40px) 16px;
}
.home .brand img { width: clamp(160px, 28vh, 274px); }
.home h1 { font-size: clamp(25px, min(6.4vw, 6vh), 50px); margin: clamp(8px, 2vh, 18px) 0 clamp(6px, 1.6vh, 18px); }
.home .tagline { font-size: clamp(15px, min(2.8vw, 2.8vh), 24px); margin: 0 0 clamp(12px, 3vh, 30px); }
.home .card { width: 100%; padding: clamp(14px, 2.6vh, 26px) clamp(16px, 3vw, 24px); }
.home .contact-lead { font-size: clamp(18px, 2.8vh, 22px); }
.home .contact-sub { margin-bottom: clamp(10px, 2.2vh, 20px); }
.home .btn { height: clamp(44px, 6.4vh, 52px); }
.home .contact-list { margin-top: clamp(10px, 2.2vh, 20px); }
.home .foot { margin-top: clamp(10px, 3vh, 30px); }
.home .foot.links { margin-top: 4px; }

@media (max-width: 480px) {
  .contact { padding: 22px 16px; }
  .contact-list { flex-direction: column; align-items: center; }
  .wa-float { right: 16px; bottom: 24px; height: 58px; padding: 0 20px 0 14px; gap: 9px; font-size: 16px; }
  .wa-float svg { width: 34px; height: 34px; }
  .wrap.home { padding-bottom: 80px; } /* room for the floating button */
  .home .contact-list { gap: 6px; }
}

/* Short screens (small phones, laptops with browser toolbars) */
@media (max-height: 620px) {
  .home .contact-sub { display: none; }
  .home .foot:not(.links) { display: none; }
}

/* Very short screens (old small phones, phones in landscape) */
@media (max-height: 500px) {
  .wrap.home { padding-top: 8px; padding-bottom: 8px; }
  .home .brand img { width: 140px; }
  .home h1 { font-size: 22px; margin: 6px 0 4px; }
  .home h1 br { display: none; }
  .home .tagline { font-size: 14px; margin-bottom: 10px; }
  .home .card { padding: 12px 16px; }
  .home .contact-lead { font-size: 17px; margin-bottom: 8px; }
  .home .btn { height: 42px; }
  .home .contact-list { margin-top: 8px; }
  .home .foot { margin-top: 8px; }
  .wa-float { height: 52px; padding: 0 18px 0 13px; gap: 8px; font-size: 15px; right: 14px; bottom: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
}
@media (max-height: 500px) and (max-width: 480px) {
  .wrap.home { padding-bottom: 64px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .home .contact-list { flex-direction: row; }
}

/* Logo-only home page: logo centred, small footer pinned to the bottom of the screen */
.splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 48px;
}
.splash .brand img { width: clamp(200px, 22vw, 290px); }
.splash-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  padding: 0 16px;
  text-align: center;
  font-size: 11.5px;
  color: #9aa09a;
}
.splash-foot a { color: var(--green); }

@media (max-width: 480px) {
  .splash-foot { font-size: 11px; bottom: 12px; }
  body:has(.splash) .wa-float { bottom: 56px; } /* sit above the footer line */
}
