/* Durevo Wholesale — public site. Design "B — Trade Green" */
:root {
  --ink: #17261C;
  --text: #4C5E52;
  --line: #D3E0D5;
  --field: #C5D5C8;
  --bg: #F3F6F2;
  --paper: #FFFFFF;
  --chip: #E6EEE7;
  --tile-1: #DCE8DE;
  --tile-2: #C8DCCB;
  --accent: #1F7A43;
  --accent-hover: #17633A;
  --deep: #14532D;
  --deep-card: #1C6B3B;
  --on-deep: #D3E8D8;
  --ok: #1F7A43;
  --err: #B42318;
  --font: 'Lexend', system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--deep); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text); }
.green { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; font: 600 16px var(--font); text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-soft { background: var(--chip); color: var(--ink); }
.btn-soft:hover { background: var(--tile-2); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--chip); color: var(--ink); }
.btn-block { width: 100%; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav .btn { min-height: 44px; padding: 0 22px; color: #fff; }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--field); background: #fff; border-radius: 999px; font: 500 15px var(--font); cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-top: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}

/* Panels */
.panel { background: var(--paper); border-radius: 28px; padding: 64px 56px; }
@media (max-width: 640px) { .panel { padding: 36px 24px; border-radius: 20px; } }

/* Hero */
.hero .panel { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero .copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 60px); }
.hero .sub { margin: 22px 0 0; font-size: 19px; color: var(--text); max-width: 520px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tiles { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { height: 180px; border-radius: 18px; background: var(--tile-1); overflow: hidden; }
.tile:nth-child(2), .tile:nth-child(3) { background: var(--tile-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: 88px 0; }
.section h2.title { margin: 0 0 12px; font-size: clamp(32px, 4vw, 42px); }
.section .lede { margin: 0 0 36px; color: var(--text); font-size: 18px; max-width: 680px; }
.section-deep { background: var(--deep); color: #fff; }
.section-deep h2.title { color: #fff; }

/* Catalog */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-link { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 14px 22px; font-weight: 500; text-decoration: none; color: var(--ink); min-height: 48px; display: inline-flex; align-items: center; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cat-card { background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .15s; }
.cat-card:hover { border-color: var(--accent); color: var(--ink); }
.cat-card .ph { aspect-ratio: 4 / 3; background: var(--tile-1); }
.cat-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .body { padding: 22px; }
.cat-card h3 { margin: 0 0 6px; font-size: 20px; }
.cat-card p { margin: 0; color: var(--text); font-size: 15px; }

/* Who we serve */
.serve { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.serve div { background: var(--deep-card); border-radius: 18px; padding: 28px; }
.serve h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.serve p { margin: 0; color: var(--on-deep); }

/* FAQ */
.faq { max-width: 880px; }
.faq details { background: #fff; border-radius: 16px; padding: 18px 24px; margin-bottom: 12px; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 4px; color: var(--text); }

/* Apply block */
.apply .panel { display: flex; flex-wrap: wrap; gap: 48px; }
.apply .intro { flex: 1 1 320px; min-width: 0; }
.apply h2 { margin: 0; font-size: clamp(32px, 4vw, 42px); }
.apply form { flex: 2 1 520px; min-width: 0; }
.req { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.req li { display: flex; gap: 10px; align-items: flex-start; }
.req li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A43' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.input, .select, .textarea { width: 100%; font: 16px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 12px; padding: 12px 14px; min-height: 50px; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 122, 67, .18); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--err); }
.error { color: var(--err); font-size: 13px; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--field); border-radius: 999px; font-weight: 500; font-size: 15px; background: #fff; }
.check-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; font-weight: 500; }
.alert-ok { background: #E3F1E7; color: var(--ok); }
.alert-err { background: #FDECEA; color: var(--err); }

/* Inner page head */
.page-head { padding: 24px 0 0; }
.page-head .panel { padding: 48px 56px; }
.page-head h1 { margin: 0; font-size: clamp(34px, 4.6vw, 52px); }
.page-head p { margin: 14px 0 0; color: var(--text); font-size: 18px; max-width: 680px; }
.crumbs { font-size: 14px; color: var(--text); margin: 0 0 12px !important; }
.crumbs a { color: var(--text); text-decoration: none; }

/* Prose */
.prose { max-width: 760px; font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--accent); }

.layout-2 { display: flex; flex-wrap: wrap; gap: 40px; }
.layout-2 > .main { flex: 999 1 560px; min-width: 0; }
.layout-2 > .side { flex: 1 1 300px; }
.side-box { background: #fff; border-radius: 20px; padding: 28px; position: sticky; top: 24px; }
.side-box h3 { margin: 0 0 10px; font-size: 21px; }

/* CTA band */
.cta-band { background: var(--deep); color: #fff; border-radius: 28px; padding: 48px 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: clamp(28px, 3.5vw, 36px); }
.cta-band p { margin: 8px 0 0; color: var(--on-deep); }

/* Footer */
.site-footer { padding: 24px 0 40px; font-size: 15px; color: var(--text); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.footer-grid strong { color: var(--ink); display: block; margin-bottom: 8px; }
.footer-list { display: flex; flex-direction: column; gap: 6px; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Pagination */
.pager { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; padding: 0 14px; }
.pager .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .disabled { opacity: .4; }
