/* ==========================================================================
   Recipe Converter — Restaurant Site Finder
   Sections: tokens · header · title band · form card · preview card
   ·info strip · footer
   ========================================================================== */

:root{
  --ink:#12271f;
  --deep:#006E3E;
  --deep-2:#006E3E;
  --green:#006E3E;
  --green-hover:#00542F;
  --mint:#eaf5ee;
  --mint-2:#dcefe3;
  --cream:#faf8f3;
  --line:#e1ddd2;
  --paper:#ffffff;
  --muted:#5f6f66;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  background:var(--cream);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;}
img,svg{display:block;}

/* ---------- Top utility bar ---------- */
.utility-bar{
  background:var(--deep);
  color:#cfe7da;
  font-size:12.5px;
  padding:7px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.utility-bar .u-left{display:flex;gap:18px;}
.utility-bar a{text-decoration:none;color:#cfe7da;opacity:.9;}
.utility-bar a:hover{opacity:1;text-decoration:underline;}
.utility-bar .u-right{
  background:rgba(255,255,255,.08);
  padding:3px 12px;
  border-radius:20px;
}

/* ---------- Header / nav ---------- */
header.main{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;letter-spacing:-.01em;}
.brand .mark{
  width:34px;height:34px;border-radius:9px;
  background:var(--green);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:17px;font-weight:800;
}
.brand .name span{color:var(--green);}
nav.crumbs{font-size:13px;color:var(--muted);}
nav.crumbs a{text-decoration:none;}
nav.crumbs a:hover{text-decoration:underline;}
.header-actions{display:flex;gap:10px;align-items:center;}
.btn-ghost{
  border:1px solid var(--line);
  background:#fff;
  padding:9px 16px;
  border-radius:8px;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  color:var(--ink);
}
.btn-ghost:hover{border-color:var(--green);color:var(--green);}

/* ---------- Page title band ---------- */
.title-band{
  max-width:1180px;
  margin:0 auto;
  padding:38px 24px 8px;
}
.title-band .eyebrow-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--mint);
  color:var(--green-hover);
  font-size:12.5px;
  font-weight:700;
  padding:6px 12px;
  border-radius:100px;
  margin-bottom:16px;
}
.title-band h1{
  font-size:38px;
  font-weight:800;
  letter-spacing:-.02em;
  margin:0 0 10px;
  max-width:640px;
}
.title-band p{
  font-size:16px;
  color:var(--muted);
  max-width:560px;
  margin:0;
}

/* ---------- Layout shell ---------- */
.shell{
  max-width:1180px;
  margin:28px auto 0;
  padding:0 24px 64px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:start;
}
@media (max-width:900px){
  .shell{grid-template-columns:1fr;}
}

/* ---------- Form card ---------- */
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px;
}
.card h2{
  font-size:20px;
  font-weight:800;
  margin:0 0 4px;
  letter-spacing:-.01em;
}
.card .sub{
  font-size:13.5px;
  color:var(--muted);
  margin:0 0 22px;
}
label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
}
.field{margin-bottom:18px;}
input[type="text"], input[type="number"], textarea, select{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  padding:10px 12px;
  font-size:14px;
  font-family:inherit;
  color:var(--ink);
}
input:focus, textarea:focus, select:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(31,138,83,.12);
}
textarea{resize:vertical;min-height:64px;}

.two-col{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:10px;
  align-items:end;
}
.two-col .arrow{
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:700;
}

.unit-toggle{
  display:inline-flex;
  background:var(--mint);
  border-radius:8px;
  padding:3px;
  gap:2px;
  margin-bottom:14px;
}
.unit-toggle button{
  border:none;
  background:transparent;
  padding:6px 14px;
  border-radius:6px;
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
  cursor:pointer;
}
.unit-toggle button.active{
  background:var(--green);
  color:#fff;
}

.ing-header{
  display:grid;
  grid-template-columns:70px 120px 1fr 32px;
  gap:10px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.03em;
  color:var(--muted);
  padding:0 2px 6px;
}
.ing-row{
  display:grid;
  grid-template-columns:70px 120px 1fr 32px;
  gap:10px;
  margin-bottom:9px;
  align-items:center;
}
.ing-row input, .ing-row select{padding:9px 10px;font-size:13.5px;}
.remove-btn{
  width:32px;height:36px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:8px;
  color:#b0483d;
  cursor:pointer;
  font-size:15px;
  display:flex;align-items:center;justify-content:center;
}
.remove-btn:hover{background:#fdeceb;border-color:#e6b3ac;}

.add-ing{
  background:none;
  border:1px dashed var(--line);
  color:var(--green-hover);
  font-weight:700;
  font-size:13.5px;
  padding:10px;
  width:100%;
  border-radius:9px;
  cursor:pointer;
  margin:6px 0 22px;
}
.add-ing:hover{border-color:var(--green);background:var(--mint);}

.actions{display:flex;gap:10px;}
.btn-primary{
  flex:1;
  background:var(--green);
  color:#fff;
  border:none;
  padding:13px 18px;
  border-radius:9px;
  font-size:14.5px;
  font-weight:700;
  cursor:pointer;
}
.btn-primary:hover{background:var(--green-hover);}
.btn-secondary{
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
  padding:13px 18px;
  border-radius:9px;
  font-size:14.5px;
  font-weight:700;
  cursor:pointer;
}
.btn-secondary:hover{border-color:#c7c2b4;}

/* ---------- Result / preview panel ---------- */
.preview-card{
  background:var(--deep);
  border-radius:16px;
  padding:0;
  color:#fff;
  overflow:hidden;
  position:sticky;
  top:24px;
}
.preview-empty{
  padding:80px 32px;
  text-align:center;
}
.preview-empty .badge-mult{
  width:96px;height:96px;
  margin:0 auto 22px;
  border-radius:20px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  display:flex;align-items:center;justify-content:center;
  font-size:26px;font-weight:800;
  color:#bfe7d0;
}
.preview-empty h3{
  font-size:19px;
  font-weight:700;
  margin:0 0 8px;
}
.preview-empty p{
  font-size:14px;
  color:#a9c9ba;
  margin:0;
  max-width:280px;
  margin:0 auto;
}

.preview-filled{padding:30px 30px 8px;}
.preview-filled .p-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:6px;
}
.preview-filled .p-top .label{
  font-size:11.5px;
  letter-spacing:.04em;
  color:#9fc7ae;
  font-weight:700;
  margin-bottom:4px;
}
.preview-filled h3{
  font-size:22px;
  font-weight:800;
  margin:0;
}
.mult-chip{
  background:var(--green);
  color:#fff;
  font-weight:800;
  font-size:13px;
  padding:6px 12px;
  border-radius:100px;
  white-space:nowrap;
}
.serve-row{
  display:flex;
  gap:18px;
  font-size:13px;
  color:#bcdcc9;
  margin:14px 0 20px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.serve-row strong{color:#fff;}
.result-table{width:100%;border-collapse:collapse;margin-bottom:6px;}
.result-table th{
  text-align:left;
  font-size:11px;
  letter-spacing:.03em;
  color:#8fb9a0;
  font-weight:700;
  padding:0 0 8px;
}
.result-table th:last-child, .result-table td:last-child{text-align:right;}
.result-table td{
  font-size:13.5px;
  padding:11px 0;
  border-top:1px solid rgba(255,255,255,.10);
}
.result-table td.qty{
  font-weight:800;
  color:#8fe0af;
  white-space:nowrap;
}
.result-table td.name{color:#e7f3ec;}
.preview-note{
  font-size:12px;
  color:#7fa38d;
  text-align:center;
  padding:16px 0 26px;
}

/* ---------- Info strip ---------- */
.info-strip{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px 70px;
}
.info-strip h2{
  font-size:24px;
  font-weight:800;
  text-align:center;
  margin:0 0 8px;
  letter-spacing:-.01em;
}
.info-strip .sub-center{
  text-align:center;
  color:var(--muted);
  font-size:14.5px;
  margin:0 0 34px;
}
.info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
@media (max-width:800px){.info-grid{grid-template-columns:1fr;}}
.info-item{
  background:var(--mint);
  border-radius:14px;
  padding:24px;
}
.info-item .n{
  width:38px;height:38px;
  background:var(--green);
  color:#fff;
  border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  font-size:15px;
  margin-bottom:14px;
}
.info-item h4{margin:0 0 6px;font-size:15.5px;font-weight:700;}
.info-item p{margin:0;font-size:13.5px;color:var(--muted);}

/* ---------- Footer ---------- */
footer{
  background:var(--deep);
  color:#bcd8c8;
  padding:40px 24px 26px;
  font-size:13px;
}
footer .foot-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
  padding-bottom:22px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
footer .brand{color:#fff;}
footer .foot-links{display:flex;gap:34px;flex-wrap:wrap;}
footer .foot-links a{text-decoration:none;color:#bcd8c8;}
footer .foot-links a:hover{color:#fff;}
footer .foot-bottom{
  max-width:1180px;margin:18px auto 0;
  display:flex;justify-content:space-between;
  color:#7fa38d;font-size:12px;flex-wrap:wrap;gap:8px;
}

/* ---------- accessibility ---------- */
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:50;
  background:var(--green);color:#fff;padding:9px 14px;border-radius:0 0 8px 0;
  font-size:13px;font-weight:700;text-decoration:none;
}
.skip-link:focus{left:0}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}
