/* ==========================================================================
   Jätteeks Jääny — design tokens
   ========================================================================== */
:root {
  --green-deep: #16311F;
  --green-deep-2: #0F2417;
  --green-mid: #2F6B45;
  --accent: #7CAA3D;
  --accent-dark: #5E8A2C;
  --cream: #F3EFE4;
  --cream-2: #E9E2CE;
  --ink: #1B1B16;
  --ink-soft: #4B4A42;
  --white: #FFFFFF;
  --line: rgba(27, 27, 22, 0.14);
  --line-on-dark: rgba(243, 239, 228, 0.18);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --max-w: 1120px;
  --radius: 6px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--green-deep-2);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--cream); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(0,0,0,0.06); }
.btn-outline.on-dark:hover { background: rgba(255,255,255,0.1); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}
.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.05;
  color: var(--green-deep);
}
.brand-word span { display: block; color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--green-deep);
  border-bottom-color: var(--accent);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-cta .btn { padding: 0.65rem 1.1rem; font-size: 0.92rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-outline.call-label { display: none; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .primary-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--green-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-5);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(124, 170, 61, 0.18);
  border: 1px solid rgba(124, 170, 61, 0.5);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.eyebrow svg { width: 1.1em; height: 1.1em; color: var(--accent); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  max-width: 14ch;
}
.hero .lede {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: rgba(243,239,228,0.86);
  max-width: 42ch;
}
.hero .actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ticket {
  background: var(--cream);
  color: var(--ink);
  padding: 2rem;
  border-radius: 4px;
  transform: rotate(2.5deg);
  box-shadow: 0 22px 44px rgba(0,0,0,0.28);
  position: relative;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.ticket-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.ticket-head svg { width: 34px; height: 34px; color: var(--accent-dark); flex: none; }
.ticket-head .t { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.ticket-head .s { font-size: 0.85rem; color: var(--ink-soft); }
.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  font-size: 0.95rem;
  border-bottom: 1px dotted var(--line);
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row dt { color: var(--ink-soft); }
.ticket-row dd { margin: 0; font-weight: 600; text-align: right; }
.ticket-stamp {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-dark);
  font-weight: 700;
  border: 2px solid var(--accent-dark);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  transform: rotate(-3deg);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-block: var(--space-4); }
  .ticket { transform: rotate(0); max-width: 380px; }
}

/* ==========================================================================
   Facts strip
   ========================================================================== */
.facts {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.facts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  padding-block: 1.5rem;
  justify-content: center;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--green-deep);
}
.facts svg { width: 1.4em; height: 1.4em; color: var(--accent-dark); flex: none; }

/* ==========================================================================
   Section basics
   ========================================================================== */
.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }
.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--green-deep);
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.section--dark {
  background: var(--green-deep);
  color: var(--cream);
}
.section--dark .section-head h2 { color: var(--white); }
.section--dark .section-head p { color: rgba(243,239,228,0.8); }
.section--cream2 { background: var(--cream-2); }

/* ==========================================================================
   Service list (manifest style, not cards)
   ========================================================================== */
.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.service-row .icon {
  width: 3rem; height: 3rem;
  color: var(--accent-dark);
}
.service-row h3 {
  font-size: 1.25rem;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.service-row p { color: var(--ink-soft); max-width: 60ch; }
.service-row .goto {
  align-self: center;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}
a.service-row:hover .goto,
a.service-row:hover h3 { text-decoration: underline; }

/* ==========================================================================
   Process steps (genuine sequence)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  position: absolute;
  top: 0; left: 0;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--white); }
.step p { color: rgba(243,239,228,0.82); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Two column / value props
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}
.value-item { display: flex; gap: 1rem; }
.value-item svg { width: 2rem; height: 2rem; flex: none; color: var(--accent-dark); }
.value-item h4 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--green-deep); }
.value-item p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--accent);
  color: var(--green-deep-2);
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.75rem;
}
.cta-band h2 { font-size: 1.7rem; max-width: 20ch; }
.cta-band .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--green-deep); color: var(--cream); }
.cta-band .btn-primary:hover { background: var(--green-deep-2); }
.cta-band .btn-outline { border-color: var(--green-deep-2); }

/* ==========================================================================
   FAQ (native details/summary)
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line); max-width: 74ch; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--green-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ind {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent-dark);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 1.1rem;
  line-height: 1;
}
.faq-list details[open] summary .ind::before { content: "\2212"; }
.faq-list summary .ind::before { content: "\002B"; }
.faq-list .answer { margin-top: 0.85rem; color: var(--ink-soft); max-width: 62ch; }

/* ==========================================================================
   Area list (chips)
   ========================================================================== */
.area-chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.area-chips li {
  border: 1px solid var(--line);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--green-deep);
  background: var(--white);
}
.area-chips li:has(a) { padding: 0; }
.area-chips a {
  display: block;
  padding: 0.45rem 0.95rem;
  color: inherit;
  text-decoration: none;
  border-radius: 999px;
}
.area-chips a:hover { background: var(--cream); text-decoration: underline; }

/* ==========================================================================
   Contact page blocks
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-card h3 {
  font-size: 1.1rem;
  color: var(--green-deep);
  margin-bottom: 0.9rem;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.contact-line:last-child { border-bottom: none; }
.contact-line svg { width: 1.3rem; height: 1.3rem; color: var(--accent-dark); flex: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.field label { font-weight: 600; font-size: 0.95rem; color: var(--green-deep); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-dark);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--green-deep-2);
  color: rgba(243,239,228,0.85);
}
.site-footer .container {
  padding-block: var(--space-4) var(--space-3);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-4);
}
.site-footer h4 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-brand .brand-word { color: var(--cream); font-size: 1.05rem; }
.footer-brand .brand-word span { color: var(--accent); }
.site-footer p { font-size: 0.95rem; max-width: 34ch; }
.site-footer ul li { padding-block: 0.35rem; }
.site-footer a { text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  grid-template-columns: none;
}
.footer-bottom small { font-size: 0.85rem; color: rgba(243,239,228,0.6); }

@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand-col { grid-column: 1 / -1; }
}

/* ==========================================================================
   Page hero (inner pages — smaller than home hero)
   ========================================================================== */
.page-hero {
  background: var(--green-deep);
  color: var(--cream);
}
.page-hero .container { padding-block: 3.5rem; max-width: 74ch; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { margin-top: 1rem; color: rgba(243,239,228,0.85); font-size: 1.1rem; }
.breadcrumb {
  font-size: 0.88rem;
  color: rgba(243,239,228,0.65);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(243,239,228,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.32);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 860px) {
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

/* Prose blocks used on service detail pages */
.prose { max-width: 68ch; }
.prose h2 { color: var(--green-deep); font-size: 1.55rem; margin-top: var(--space-4); margin-bottom: 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { margin: 1rem 0 1.5rem; }
.prose ul li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--accent-dark);
  border-radius: 1px;
  transform: rotate(45deg);
}
