/* ---------- Design tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f9;
  --color-text: #23262b;
  --color-text-muted: #5b616b;
  --color-footer-text: #4b4b4b;
  --color-heading: #4d649f;
  --color-border: #e5e7eb;
  --color-accent-orange: #e8562e;
  --color-accent-blue: #3b6fd6;
  --color-accent-magenta: #b23fa6;
  --gradient-accent: linear-gradient(90deg, var(--color-accent-orange), var(--color-accent-magenta));
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Same animated backdrop as the landing page (intro.css): the bottom
   gradient stop cycles through 6 pastel hues every 12s. Registering
   --bg-bottom via @property makes the browser interpolate the color
   frame-by-frame instead of jump-cutting between keyframes. Fixed
   attachment anchors the gradient to the viewport so the tint stays
   visible near the bottom of the screen at any scroll position. */
@property --bg-bottom {
  syntax: '<color>';
  inherits: false;
  initial-value: #efefba;
}
body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  --bg-bottom: #efefba;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 65%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  animation: page-bg-cycle 12s linear infinite;
}
@keyframes page-bg-cycle {
  0%      { --bg-bottom: #efefba; }
  16.667% { --bg-bottom: #efbaba; }
  33.333% { --bg-bottom: #beefba; }
  50%     { --bg-bottom: #baeeef; }
  66.667% { --bg-bottom: #bebaef; }
  83.333% { --bg-bottom: #ecbaef; }
  100%    { --bg-bottom: #efefba; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; background: var(--color-bg); }
}
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--color-accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }
h1, h2, h3 { line-height: 1.2; color: var(--color-heading); }

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 36px 0; }
.section-alt { background: #f6f7f987; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}
.site-logo img { height: 64px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--color-heading);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--color-accent-orange);
  text-decoration: none;
  border-bottom-color: var(--color-accent-orange);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  flex: none;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0;
}
.lang-switch:hover { color: var(--color-accent-blue) !important; border-color: var(--color-accent-blue); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-heading); margin: 5px 0; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .site-nav a.lang-switch { width: 40px; margin-top: 12px; border-bottom: 1px solid var(--color-border); }
  .site-header.nav-open .site-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* ---------- Hero ---------- */
/* padding-top/bottom only (not the `padding` shorthand): this element is
   also `.container`, and a shorthand here would zero out its side
   padding (3-value shorthand repeats the 2nd value for the 4th side). */
.hero { padding-top: 96px; padding-bottom: 0; text-align: left; }
.hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0 0 16px; }
.hero p.lead { font-size: 1.25rem; color: var(--color-text-muted); max-width: 640px; margin: 0 0 36px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gradient-accent); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn-secondary:hover { border-color: var(--color-accent-blue); color: var(--color-accent-blue); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 36px 0; }

/* ---------- Cards / grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .accent-bar { width: 40px; height: 4px; border-radius: 2px; background: var(--gradient-accent); margin-bottom: 16px; }
.card-icon { display: block; width: 30px; height: 30px; color: var(--color-accent-orange); margin-bottom: 12px; }

/* ---------- Service blocks ---------- */
.service-block { padding: 48px 0; border-bottom: 1px solid var(--color-border); }
.service-block:last-of-type { border-bottom: none; }
.service-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
.service-heading h2 { margin: 0; }
.service-icon { width: 34px; height: 34px; margin-top: 4px; color: var(--color-accent-orange); flex-shrink: 0; }
.service-block h2 { font-size: 1.8rem; margin-bottom: 8px; }
.service-block .service-intro { color: var(--color-text-muted); max-width: 720px; margin-bottom: 20px; }
.service-block ul { columns: 2; column-gap: 40px; max-width: 900px; }
.service-block li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 640px) { .service-block ul { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 24px 0; background: var(--color-bg); }
.site-footer .container { text-align: center; font-size: 0.85rem; color: var(--color-footer-text); }
.footer-credit { margin: 0; }
.footer-credit a { color: var(--color-footer-text); font-weight: 600; }
.footer-credit a:hover { color: var(--color-accent-magenta); }
.footer-credit-logo { display: inline; width: 60px; height: auto; vertical-align: middle; padding-left: 5px; }
.inline-logo { display: inline; width: 60px; height: auto; vertical-align: middle; margin-left: 4px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 24px 64px; align-items: start; }
.contact-info h3 { margin-top: 32px; color: var(--color-text); }
.contact-info p { color: var(--color-text-muted); }
.contact-info a { font-weight: 600; color: var(--color-footer-text); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form { max-width: 560px; margin: 32px 0; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-consent label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 0.9rem; color: var(--color-text-muted); }
.form-consent input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.form-consent a { font-weight: 600; color: var(--color-footer-text); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-heading);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--color-text-muted); margin-top: -8px; }
.form-note a { font-weight: 600; }
.form-banner { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; max-width: 560px; }
.form-banner-success { background: #e6f6ea; color: #1a6b32; border: 1px solid #b6e3c2; }
.form-banner-error { background: #fdeceb; color: #a52f22; border: 1px solid #f3c3bd; }
