/* Wasa Catering */
:root {
  --navy: #003b6a;
  --ink: #0a2440;
  --copper: #a86f45;
  --copper-light: #f0c29c;
  --mist: #eef2f6;
  --white: #ffffff;
  --muted: #4a5d72;
  --line: #d3dbe4;

  --ribbon: linear-gradient(90deg, #6e4222 0%, #b47a4e 18%, #f3c7a2 34%, #9a6038 52%, #6a3f20 62%, #c48b5e 78%, #f6cdaa 90%, #a86f45 100%);

  --wide: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--wide);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

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

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper); }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--wide);
  font-variation-settings: "wdth" 125;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { width: clamp(180px, 22vw, 250px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--copper-light); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--copper); }
.nav .btn { border-bottom: 0; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 0.55rem 0.8rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--copper); padding-left: 0.75rem; }
  .nav .btn { margin-top: 1rem; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--ink); }
.btn-light { background: var(--white); color: var(--navy) !important; }
.btn-light:hover { background: var(--copper-light); }
.btn-ghost { background: transparent; color: var(--navy) !important; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost:hover { background: var(--mist); }

/* Copper ribbon — the brand's metallic band from the logo sheet */
.ribbon { height: 14px; background: var(--ribbon); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--navy); color: var(--white); min-height: min(78vh, 720px); }
.hero-text { padding: clamp(3rem, 7vw, 6rem) var(--gutter); padding-right: clamp(1.5rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.hero-text > * { max-width: 40rem; margin-left: auto; width: 100%; }
.hero h1 { color: var(--white); }
.hero .lead { color: #c9d6e4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-actions .btn-ghost { color: var(--white) !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-img { position: relative; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { aspect-ratio: 4 / 3; order: -1; }
  .hero-text { padding-right: var(--gutter); }
  .hero-text > * { margin-left: 0; }
}

/* Page head (subpages) */
.page-head { background: var(--navy); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { color: var(--white); max-width: 18ch; }
.page-head .lead { color: #c9d6e4; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-mist { background: var(--mist); }

/* Service rows: image + text alternating */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.service + .service { margin-top: clamp(3.5rem, 8vw, 6rem); }
.service:nth-child(even) .service-img { order: 2; }
.service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.service h2 { margin-bottom: 0.4em; }
.service .more { font-weight: 600; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 1.25rem; }
  .service:nth-child(even) .service-img { order: 0; }
}

/* Occasion list */
.occasions { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.occasions li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.95rem; }
.section-mist .occasions li { background: var(--white); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 16vw, 210px); gap: 8px; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-wide { grid-column: span 7; grid-row: span 2; }
.g-half { grid-column: span 5; }
.g-third { grid-column: span 4; }
.g-tall { grid-column: span 4; grid-row: span 2; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .g-wide { grid-column: span 2; grid-row: span 2; }
  .g-half, .g-third { grid-column: span 1; grid-row: span 1; }
  .g-tall { grid-column: span 1; grid-row: span 2; }
  .g-tall:last-child { grid-column: span 2; }
  .g-hide-sm { display: none; }
}

/* Ruokalista */
.menu-tabs { display: flex; gap: 0.5rem; margin: 1.5rem 0 2rem; flex-wrap: wrap; }
.menu-tab { font: inherit; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.2rem; cursor: pointer; }
.menu-tab small { font-weight: 400; color: var(--muted); margin-left: 0.35rem; }
.menu-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.menu-tab[aria-selected="true"] small { color: var(--copper-light); }
.menu-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.menu-day { background: var(--white); border-radius: 8px; padding: 1.25rem 1.4rem 0.6rem; }
.menu-day h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.menu-day h3 span { font-weight: 400; color: var(--muted); font-size: 0.95rem; margin-left: 0.3rem; }
.menu-day ul { list-style: none; padding: 0; margin: 0; }
.menu-day li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.menu-day li:first-child { border-top: 0; }
.menu-day .sv { display: block; color: var(--muted); font-size: 0.88rem; }
.menu-day .price { color: var(--navy); font-weight: 600; white-space: nowrap; }
.menu-day .price { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.menu-closed { margin: -0.25rem 0 0.4rem; color: var(--muted); font-size: 0.9rem; }
.menu-day.closed ul { opacity: 0.55; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-weight: 400; }
.qty button { font: inherit; font-size: 1.1rem; width: 2.25rem; height: 2.25rem; border: 0; background: var(--mist); color: var(--navy); cursor: pointer; }
.qty button:hover { background: var(--line); }
.qty input { width: 2.4rem; height: 2.25rem; border: 0; text-align: center; font: inherit; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--navy); outline-offset: -2px; }
.menu-order { margin-top: 2.5rem; background: var(--white); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); }
.menu-order h3, .menu-order .full { grid-column: 1 / -1; margin: 0; }
.order-summary { max-width: none; font-size: 1.1rem; color: var(--navy); border-top: 1px solid var(--line); padding-top: 1rem; }
#tilaus-kiitos { margin-top: 2.5rem; background: var(--white); }

/* Quotes */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.quote { margin: 0; border-left: 3px solid var(--copper); padding-left: 1.5rem; }
.quote p { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--navy); font-variation-settings: "wdth" 90; }
.quote footer { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Order band */
.order { background: var(--navy); color: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem); }
.order h2 { color: var(--white); }
.order .lead { color: #c9d6e4; }
.order-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: end; }
.order-mail { font-variation-settings: "wdth" 125; font-weight: 600; font-size: clamp(1.1rem, 2.3vw, 1.75rem); color: var(--copper-light); text-decoration: none; overflow-wrap: anywhere; }
.order-mail:hover { color: var(--white); text-decoration: underline; }
.order-phone { display: block; margin-top: 0.5rem; color: var(--white); font-size: 1.1rem; }
@media (max-width: 760px) { .order-grid { grid-template-columns: 1fr; } }

/* Two-column content */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split img { width: 100%; border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Facts list */
.facts { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts strong { color: var(--navy); font-weight: 600; }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 0.15rem; } }

/* Steps (ordering is a real sequence) */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 0.9rem; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 6px;
  padding: 0.7rem 0.8rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,59,106,.15); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.form-error { grid-column: 1 / -1; color: #9b1c1c; font-weight: 600; margin: 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.contact-card { background: var(--mist); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 4px; }
.contact-card h2 { font-size: 1.5rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 600; color: var(--navy); margin-top: 1rem; }
.contact-card dd { margin: 0.15rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c2cedb; font-size: 0.97rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { font-size: 1rem; color: var(--white); font-variation-settings: "wdth" 110; margin-bottom: 0.75rem; }
.site-footer a { color: #e3ebf3; }
.site-footer a:hover { color: var(--copper-light); }
.site-footer p { margin: 0 0 0.35rem; }
.footer-logo { width: 220px; margin-bottom: 1rem; }
.oiva { display: inline-block; background: var(--white); padding: 6px 8px; border-radius: 4px; margin-top: 0.75rem; }
.oiva img { width: 110px; }
.copy { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; font-size: 0.88rem; color: #8fa2b6; }
.copy .wrap { display: block; padding-block: 0; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Lomakkeen roskapostiansa ja kiitosviesti */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { background: var(--mist); border-left: 3px solid var(--copper); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 4px; }
.form-done:focus { outline: none; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
