/* Sumich Group */
:root {
  --green-900: #12301a;
  --green-800: #1d4a22;
  --green-600: #2e7a2a;
  --green-500: #3d9132;
  --lime: #8fbf2b;
  --red: #c4261d;
  --gold: #e8a923;
  --cream: #fbf8f0;
  --sand: #f1ecdd;
  --ink: #22281f;
  --muted: #5c6656;
  --line: #e3ddca;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18, 48, 26, .06), 0 6px 20px rgba(18, 48, 26, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--green-600); text-underline-offset: 2px; }
a:hover { color: var(--green-800); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--green-900); color: #cfe0c4; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar-links svg { display: block; }
@media (max-width: 600px) { .topbar .wrap > span:first-child { display: none; } .topbar .wrap { justify-content: flex-end; } }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--green-600);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { display: block; width: 150px; }
@media (min-width: 1000px) { .logo img { width: 170px; } }

.nav-list, .nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-list > li > a {
  display: block; padding: 10px 13px;
  color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 6px;
}
.nav-list > li > a:hover, .nav-list > li.is-active > a { color: var(--green-600); }
.nav-list > li.is-active > a { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.nav-sub a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--sand); color: var(--green-800); }
.sub-toggle { display: none; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; gap: 2px; }
  .nav-list > li { position: relative; }
  .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
  .nav-sub {
    position: absolute; left: 0; top: 100%; min-width: 250px;
    background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
    padding: 8px 0; border-top: 3px solid var(--lime);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
  }
  .has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 999px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--green-800); color: #fff; border: 0; border-radius: 6px;
    padding: 10px 14px; font: 600 1rem var(--sans); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 4px solid var(--green-600); box-shadow: var(--shadow);
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .nav-list > li { position: relative; border-top: 1px solid var(--line); }
  .nav-list > li > a { padding: 14px 20px; border-radius: 0; }
  .nav-list > li.is-active > a { box-shadow: inset 4px 0 0 var(--lime); }
  .sub-toggle {
    display: block; position: absolute; right: 8px; top: 6px; width: 44px; height: 40px;
    background: none; border: 0; cursor: pointer;
  }
  .sub-toggle::before { content: ""; display: block; margin: auto; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
  .nav-sub { display: none; background: var(--cream); padding: 4px 0 10px; }
  .nav-sub.is-open { display: block; }
  .nav-sub a { padding: 10px 36px; }
}

/* Hero slider */
.hero { margin-top: 24px; position: relative; }
.slides {
  position: relative; aspect-ratio: 950 / 392; overflow: hidden;
  border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; text-decoration: none; opacity: 0; transition: opacity .8s ease; visibility: hidden; }
.slide.is-current { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.caption {
  position: absolute; left: 20px; bottom: 20px; max-width: 70%;
  background: rgba(18, 48, 26, .86); color: #fff; padding: 12px 18px; border-radius: 8px;
  border-left: 4px solid var(--lime); font-size: 1rem; line-height: 1.35;
}
.caption strong { display: block; font: 700 clamp(1.15rem, 2.6vw, 1.75rem)/1.15 var(--serif); margin-bottom: 2px; }
.hero-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.hero-controls > button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.4rem; line-height: 1; color: var(--green-800); cursor: pointer;
}
.dots { display: flex; gap: 8px; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--green-600); background: transparent; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--green-600); }
@media (max-width: 600px) {
  .hero { padding: 0; margin-top: 0; }
  .slides { border-radius: 0; aspect-ratio: auto; display: grid; box-shadow: none; background: var(--green-900); }
  .slide { position: relative; grid-area: 1 / 1; }
  .slide img { height: auto; aspect-ratio: 950 / 392; }
  .caption { position: static; display: block; max-width: none; border-radius: 0; border-left: 0; border-top: 3px solid var(--lime); background: var(--green-900); padding: 12px 16px; }
}

/* Feature tiles */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.feature {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--green-800);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature img { width: 100%; aspect-ratio: 208 / 145; object-fit: cover; display: block; }
.feature span { padding: 14px 16px; font: 700 1.1rem/1.25 var(--serif); flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feature span::after { content: "\2192"; color: var(--lime); font-family: var(--sans); }
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(18, 48, 26, .14); color: var(--green-600); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Home body */
.home-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin: 48px auto 64px; }
.facts {
  align-self: start; background: var(--green-800); color: #dfe9d8; border-radius: var(--radius);
  padding: 8px 24px 24px; position: sticky; top: 120px;
}
.facts div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; line-height: 1.4; }
.facts strong { display: block; color: #fff; font: 700 1.6rem/1.2 var(--serif); }
.facts .button { margin-top: 20px; width: 100%; text-align: center; }
@media (max-width: 900px) {
  .home-body { grid-template-columns: 1fr; gap: 32px; }
  .facts { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .facts .button { grid-column: 1 / -1; }
}

/* Inner page */
.page-head { background: var(--green-800); color: #cfe0c4; }
.page-head .wrap { padding-top: 14px; padding-bottom: 14px; }
.crumbs { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page { margin: 40px auto 72px; }
.page.has-side { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.page:not(.has-side) .prose { max-width: 860px; }
.side-nav {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  position: sticky; top: 120px;
}
.side-nav h2 { margin: 0; font: 700 1.1rem var(--serif); }
.side-nav h2 a { display: block; padding: 14px 18px; background: var(--green-600); color: #fff; text-decoration: none; }
.side-nav ul { list-style: none; margin: 0; padding: 6px 0; }
.side-nav li a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.side-nav li a:hover { background: var(--cream); color: var(--green-800); }
.side-nav li a[aria-current] { border-left-color: var(--lime); background: var(--sand); font-weight: 600; color: var(--green-800); }
@media (max-width: 860px) {
  .page.has-side { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .side-nav { position: static; order: 2; }
}

/* Prose */
.prose { min-width: 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--serif); color: var(--green-800); line-height: 1.2; font-weight: 700; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .6em; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose h1 + h2 { margin-top: 0; color: var(--green-800); }
.prose p, .prose ul, .prose dl { margin: 0 0 1.1em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin: .3em 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; clear: both; }
.prose img.align-right {
  float: right; clear: right; width: 280px; max-width: 42%;
  margin: .3em 0 1.2em 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 560px) {
  .prose img.align-right { float: none; display: block; width: 100%; max-width: 100%; max-height: 240px; object-fit: cover; margin: 0 0 1.2em; }
}

.button, .button-featured {
  display: inline-block; background: var(--red); color: #fff !important; text-decoration: none;
  font-weight: 700; padding: 11px 22px; border-radius: 999px; transition: background .15s;
}
.button:hover, .button-featured:hover { background: #a11d15; }

/* Card grid (product listings) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 1.6em 0; clear: both; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--green-800); display: flex; flex-direction: column;
  transition: transform .15s ease;
}
.card img { width: 100%; aspect-ratio: 200 / 154; object-fit: cover; display: block; }
.card span { padding: 12px 14px; font-weight: 700; }
a.card:hover { transform: translateY(-3px); color: var(--green-600); }
@media (max-width: 480px) { .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Contact */
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; background: #fff; padding: 24px 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list dt { font-weight: 700; color: var(--green-800); }
.contact-list dd { margin: 0; }
@media (max-width: 480px) { .contact-list { grid-template-columns: 1fr; gap: 2px; } .contact-list dd { margin-bottom: 12px; } }

/* Shop */
.notice { clear: both; background: #fff8e4; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 6px; margin: 1.5em 0; }
.notice strong { display: block; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 1.5em 0 2em; }
.product { display: flex; gap: 20px; align-items: center; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.product img { width: 90px; flex: none; }
.product h3 { margin: 0 0 .2em; }
.product p { margin: 0 0 .4em; }
.product .price { font: 700 1.4rem var(--serif); color: var(--ink); }

/* Footer */
.site-footer { background: var(--green-900); color: #b9cbb0; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.site-footer h2 { color: #fff; font: 700 1.05rem var(--serif); margin: 0 0 12px; }
.site-footer a { color: #e6efe0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { display: block; width: 140px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 34ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.site-footer li { padding: 3px 0; break-inside: avoid; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; padding-bottom: 16px; font-size: .85rem; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
