/* Raivo Sildoja Pillitöökoda — static rebuild */

:root {
  --bg: #f4f0ee;
  --bg-alt: #ede4de;
  --text: #3a2c1f;
  --text-soft: #5d4f47;
  --accent: #9c5011;
  --accent-strong: #ad5207;
  --accent-dark: #312410;
  --border: #ddd0c6;
  --max-width: 1100px;
  --font-body: 'Manrope', sans-serif;
  --font-nav: 'Inter', sans-serif;
  --font-script: 'Lavishly Yours', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

p {
  text-align: left;
  -webkit-hyphens: auto;
  hyphens: auto;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

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

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

/* Header */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  height: 56px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--accent-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
}

@media (max-width: 1100px) {
  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .site-nav li {
    border-top: 1px solid var(--border);
  }

  .site-nav a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
  }
}

/* Hero */

.hero {
  position: relative;
  height: 46vh;
  min-height: 260px;
  max-height: 480px;
  background-size: cover;
  background-position: center;
}

.hero-simple {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-simple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */

section {
  padding: 56px 0;
}

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

.script-heading {
  font-family: var(--font-script);
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 16px;
}

.page-title {
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--text-soft);
  margin: 0 0 16px;
}

section.page-header {
  padding-top: 28px;
}

h2.section-title,
h3.section-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 14px;
}

.lede {
  font-size: 1.15rem;
  max-width: 700px;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 720px;
}

/* Service grid on homepage */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

@media (max-width: 700px) {
  .services { grid-template-columns: 1fr; }
}

.service p {
  margin-top: 0;
}

/* Need-cards */

.needs-eyebrow {
  text-align: center;
  font-family: var(--font-nav);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 1000px) {
  .needs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .needs-grid { grid-template-columns: 1fr; }
}

.need-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.need-card h3 {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 10px;
}

@media (min-width: 700px) {
  .need-card h3 { font-size: 1.375rem; }
}

.need-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Photo gallery strip */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.gallery img {
  border-radius: 6px;
  height: 220px;
  width: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

/* Content page layout */

.content-figure {
  margin: 0 0 32px;
}

.content-figure img {
  border-radius: 6px;
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

.content-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 8px;
}

article.page-body {
  max-width: 760px;
}

article.page-body p {
  margin: 0 0 18px;
}

/* Instrument list (pillitunnid) */

.instrument {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.instrument:first-of-type { border-top: none; }

.instrument h3 {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--accent-dark);
  margin: 0 0 4px;
  text-transform: none;
}

.instrument .meta {
  font-family: var(--font-nav);
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.instrument .meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
}

.instrument .meta svg {
  width: 19px;
  height: 19px;
  fill: #229f8a;
  flex-shrink: 0;
}

.instrument-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

@media (min-width: 700px) {
  .instrument {
    display: flex;
    gap: 32px;
    align-items: flex-start;
  }

  .instrument-photo {
    width: 300px;
    flex: 0 0 300px;
    aspect-ratio: 4 / 3;
    margin-bottom: 0;
  }

  .instrument-content {
    flex: 1;
    min-width: 0;
  }
}

/* Audio tracks (hiiukandled) */

.track {
  margin-bottom: 28px;
}

.track p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.track audio {
  width: 100%;
}

/* Contact page */

.contact-block {
  margin-bottom: 32px;
}

.contact-block p {
  margin: 4px 0;
}

.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* Footer */

.site-footer {
  background: var(--accent-dark);
  color: #efe6df;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.footer-inner p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.footer-inner a {
  color: #f3c9a0;
}

.footer-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px !important;
}
