/* Self-hosted fonts (latin subset) — no third-party request, faster first paint */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Design tokens — tweak these to restyle the whole site
   ========================================================= */
:root {
  /* R.O.M.P.E.R brand palette (brand guidelines v1, 08.11.2026) */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f3ee;
  --color-text: #1e2722; /* charcoal */
  --color-text-muted: #4a534e;
  --color-accent: #00936d; /* movement (green) — decorative uses (dots, underlines, focus rings) */
  /* Brand green is only 3.9:1 against white, below the 4.5:1 minimum for small text,
     so buttons and links use this darker shade (6:1). */
  --color-accent-strong: #00714f;
  --color-accent-dark: #005a3f;
  --color-border: #e0ddd4;

  /* secondary brand accents, used sparingly as small decorative dots */
  --color-play: #daa900; /* gold */
  --color-community: #de6b30; /* orange */
  --color-confidence: #5692db; /* blue */
  --color-growth: #8874d1; /* purple */

  /* Fredoka (rounded, playful) for headings/buttons, Nunito (soft, very readable) for body */
  --font-heading: "Fredoka", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 720px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  /* base 18px so 1rem = 18px; keeps everything large by default */
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }

/* Small colored accent under each section heading, cycling through the
   brand's secondary palette — a light echo of the logo's colored dots. */
h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--color-accent);
}
#services h2::after { background: var(--color-play); }
#pricing h2::after { background: var(--color-confidence); }
#service-area h2::after { background: var(--color-community); }
#contact h2::after { background: var(--color-growth); }

p { margin: 0 0 1em; }

a {
  color: var(--color-accent-strong);
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent-strong);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
  width: auto;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-cta {
  background: var(--color-accent-strong);
  color: #fff;
}
.btn-cta:hover,
.btn-cta:focus {
  background: var(--color-accent-dark);
}

.btn-small {
  padding: 10px 18px;
  font-size: 1rem;
}

.btn-large {
  padding: 16px 28px;
  font-size: 1.15rem;
  width: 100%;
}
@media (min-width: 480px) {
  .btn-large { width: auto; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 56px 0 48px;
  text-align: center;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
}
.hero-dot-1 { top: 12%; left: 8%;  width: 18px; height: 18px; background: var(--color-play); }
.hero-dot-2 { top: 65%; left: 5%;  width: 12px; height: 12px; background: var(--color-community); }
.hero-dot-3 { top: 20%; right: 9%; width: 14px; height: 14px; background: var(--color-confidence); }
.hero-dot-4 { top: 70%; right: 7%; width: 20px; height: 20px; background: var(--color-growth); }
.hero-dot-5 { top: 45%; left: 2%;  width: 9px;  height: 9px;  background: var(--color-accent); }

@media (max-width: 760px) {
  /* below this width the text fills the viewport, leaving no room
     beside it for the dots without overlapping — hide them instead */
  .hero-dot { display: none; }
}

.hero h1 {
  position: relative;
  font-size: 2.3rem;
}

.hero-sub {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== Sections ===================== */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ===================== Services ===================== */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.service-item {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Photo slot — shows a real <img> once one is added inside it,
   otherwise a colored placeholder tile (cycling the brand palette)
   with a soft dot, echoing the logo. */
.service-media {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--color-play);
}
.services-list li:nth-child(3n+1) .service-media { background: var(--color-play); }
.services-list li:nth-child(3n+2) .service-media { background: var(--color-community); }
.services-list li:nth-child(3n+3) .service-media { background: var(--color-confidence); }

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-media:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.service-body {
  padding: 16px 18px 20px;
}

.service-item h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.service-item p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ===================== Pricing ===================== */
.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  font-size: 1rem;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.pricing-table thead th {
  background: var(--color-bg-alt);
  font-size: 0.9rem;
}

.pricing-table th[scope="row"] {
  text-align: left;
  font-weight: 700;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-note {
  color: var(--color-text-muted);
  margin: 0;
}

/* ===================== Contact ===================== */
.contact-intro {
  font-size: 1.1rem;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-weight: 700;
  margin-top: 10px;
}

.contact-form .optional,
.contact-form .field-hint {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 10px 0 0;
}

.form-fieldset legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 8px;
}

.radio-options {
  display: grid;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-bg-alt);
}

.contact-form .radio-option input[type="radio"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--color-accent);
}

.option-hint {
  color: var(--color-text-muted);
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}

.contact-form button {
  margin-top: 18px;
}

.location-other {
  margin-top: 8px;
}

.form-message {
  border-radius: var(--radius);
  padding: 16px 18px;
}

.form-error {
  margin: 12px 0 0;
  background: #fdeeee;
  border: 1px solid #d9534f;
  color: #7a1f1c;
}

.form-success {
  background: var(--color-bg-alt);
  border: 2px solid var(--color-accent);
}

.form-success h3 {
  margin-bottom: 4px;
}

.form-success p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* ===================== Footer ===================== */
.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.1rem;
}

.footer-fine {
  font-size: 0.85rem;
}

/* ===================== Small screens ===================== */
@media (max-width: 380px) {
  html { font-size: 17px; }
  .hero h1 { font-size: 1.9rem; }
}
