/* ============================================================
   Land Unit Converter — v2 styles
   All classes are prefixed `luc-` so this file never clashes
   with the live site's global css/style.css.
   ============================================================ */

:root {
  --luc-green: #0a7d4a;
  --luc-green-dark: #065f36;
  --luc-green-light: #e7f6ee;
  --luc-amber: #b7791f;
  --luc-amber-light: #fdf3e0;
  --luc-red: #c0392b;
  --luc-ink: #1f2937;
  --luc-muted: #6b7280;
  --luc-border: #e5e7eb;
  --luc-card-bg: #ffffff;
  --luc-radius: 14px;
  --luc-shadow: 0 6px 24px rgba(10, 60, 40, .08);
}

.luc-page { box-sizing: border-box; }
.luc-page *, .luc-page *::before, .luc-page *::after { box-sizing: inherit; }

.luc-page {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans Bengali", Arial, sans-serif;
  color: var(--luc-ink);
  background: #f6f9f7;
  line-height: 1.6;
}

.luc-container { width: min(1080px, 94%); margin: 0 auto; }

.luc-page h1, .luc-page h2, .luc-page h3, .luc-page h4 { line-height: 1.25; margin: 0 0 .5rem; }

/* ---------- Header (standalone fallback only) ---------- */
.luc-header {
  background: var(--luc-green);
  color: #fff;
  box-shadow: var(--luc-shadow);
}
.luc-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .8rem 0; }
.luc-brand { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.luc-langbar { display: flex; gap: .35rem; }
/* .lang-btn is the shared class main.js toggles; style only inside our header */
.luc-header .lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  border-radius: 6px;
  padding: .3rem .7rem;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
}
.luc-header .lang-btn.active { background: #fff; color: var(--luc-green); font-weight: 700; border-color: #fff; }
.luc-nav { display: flex; gap: 1rem; }
.luc-nav a { color: #eafff3; text-decoration: none; font-size: .95rem; }
.luc-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Buttons ---------- */
.luc-btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  padding: .65rem 1.3rem;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease;
}
.luc-btn:active { transform: translateY(1px); }
.luc-btn-primary { background: var(--luc-green); color: #fff; }
.luc-btn-primary:hover { background: var(--luc-green-dark); }
.luc-btn-outline { background: #fff; color: var(--luc-green); border: 1px solid var(--luc-green); }
.luc-btn-outline:hover { background: var(--luc-green-light); }
.luc-btn-lg { font-size: 1.1rem; padding: .85rem 1.6rem; }

/* ---------- Hero ---------- */
.luc-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  padding: 3.2rem 0 2.6rem;
}
.luc-hero h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.luc-hero h1 span { color: var(--luc-green); }
.luc-hero h1 em { color: var(--luc-green); font-style: normal; }
.luc-hero p { color: var(--luc-muted); max-width: 36rem; }

/* Hierarchy tree art */
.luc-hierarchy-tree {
  background: var(--luc-green-light);
  border: 1px dashed var(--luc-green);
  border-radius: var(--luc-radius);
  padding: 1.4rem;
  text-align: center;
  font-weight: 600;
}
.luc-tree-node {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--luc-green);
  color: var(--luc-green-dark);
  border-radius: 10px;
  padding: .5rem 1rem;
  margin: .25rem;
  min-width: 74px;
}
.luc-tree-root { background: var(--luc-green); color: #fff; }
.luc-tree-leaf { background: #fff5db; border-color: var(--luc-amber); color: var(--luc-amber); }
.luc-tree-branch { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.luc-tree-join { color: var(--luc-green); font-size: 1.3rem; margin: .2rem 0; }

/* ---------- Sections ---------- */
.luc-section { margin: 2.6rem 0; }
.luc-section-title { font-size: 1.5rem; }
.luc-section-sub { color: var(--luc-muted); margin-top: -.2rem; }
.luc-muted { color: var(--luc-muted); }
.luc-footnote { color: var(--luc-muted); font-size: .85rem; margin-top: 1rem; }
.luc-tail-note { color: var(--luc-muted); text-align: center; margin-top: 1rem; }

/* ---------- Alert ---------- */
.luc-alert { border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.luc-alert-error { background: #fdecea; border: 1px solid #f5c6c0; color: var(--luc-red); }

/* ---------- Calculator grid ---------- */
.luc-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.luc-card {
  background: var(--luc-card-bg);
  border: 1px solid var(--luc-border);
  border-radius: var(--luc-radius);
  box-shadow: var(--luc-shadow);
  padding: 1.4rem;
}
.luc-card h4 { color: var(--luc-green-dark); }

/* Form */
.luc-form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.luc-form-group { flex: 1 1 200px; display: flex; flex-direction: column; gap: .35rem; }
.luc-form-label { font-weight: 600; font-size: .95rem; }
.luc-form-control {
  padding: .6rem .7rem;
  border: 1px solid var(--luc-border);
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}
.luc-form-control:focus { outline: 2px solid var(--luc-green); border-color: transparent; }
.luc-form .luc-btn { margin-top: .8rem; margin-right: .4rem; }

/* Results */
.luc-result-box { margin-top: 1.2rem; }
.luc-result-box h4 { margin-bottom: .4rem; }
.luc-result-source { margin: 0 0 .5rem; font-weight: 600; color: var(--luc-ink); }
.luc-result-source .luc-rs-unit { color: var(--luc-green-dark); font-weight: 700; }
.luc-result-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.luc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  background: var(--luc-green-light);
  border: 1px solid #cdeadd;
  border-radius: 8px;
  padding: .55rem .8rem;
}
.luc-result-item .luc-label { font-weight: 600; }
.luc-result-item .luc-value { font-weight: 700; color: var(--luc-green-dark); white-space: nowrap; }

/* ---------- Visual plot ---------- */
.luc-card-plot h4 { margin-bottom: .2rem; }
.luc-plot-wrap { margin: 1rem 0 .5rem; }
.luc-plot-dims { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.luc-plot {
  position: relative;
  width: 220px;
  height: 150px;
  border: 3px solid var(--luc-green);
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #eaf7f0 0 16px, #dff0e6 16px 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.luc-plot-house { opacity: .9; }
.luc-plot-sqft-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--luc-green);
  color: #fff;
  font-size: .78rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.luc-dim { color: var(--luc-muted); font-size: .85rem; font-weight: 600; }
.luc-dim-w { order: -1; }
.luc-plot-conversions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; margin-top: .6rem; }
.luc-plot-conversions > div {
  background: #f3f6f4;
  border-radius: 8px;
  padding: .4rem .6rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
}
.luc-plot-conversions span { color: var(--luc-green-dark); }

/* ---------- Unit cards ---------- */
.luc-unit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.luc-unit-card {
  background: #fff;
  border: 1px solid var(--luc-border);
  border-radius: var(--luc-radius);
  box-shadow: var(--luc-shadow);
  padding: 1.2rem;
  text-align: center;
}
.luc-unit-icon { font-size: 2rem; }
.luc-unit-card h3 { color: var(--luc-green-dark); }
.luc-unit-card p { margin: .2rem 0; }
.luc-unit-card .luc-muted { font-size: .85rem; }

/* ---------- Wheel ---------- */
.luc-wheel {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 1rem auto;
  border: 6px solid var(--luc-green-light);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--luc-green-light) 100%);
}
.luc-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--luc-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  padding: .6rem;
  box-shadow: 0 4px 14px rgba(10,60,40,.3);
}
.luc-wheel-value { line-height: 1.25; }
.luc-wheel-node {
  position: absolute;
  width: 84px;
  border: 2px solid var(--luc-green);
  background: #fff;
  color: var(--luc-green-dark);
  border-radius: 999px;
  font-weight: 600;
  padding: .35rem .2rem;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background .15s ease;
}
.luc-wheel-node:hover, .luc-wheel-node.active { background: var(--luc-green); color: #fff; }
.luc-w-n1 { top: 12%;  left: 50%; }
.luc-w-n2 { top: 50%;  left: 92%; }
.luc-w-n3 { top: 88%;  left: 72%; }
.luc-w-n4 { top: 88%;  left: 28%; }
.luc-w-n5 { top: 50%;  left: 8%;  }
.luc-w-n6 { top: 28%;  left: 22%; }

/* ---------- Flow ---------- */
.luc-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; }
.luc-flow-step {
  background: var(--luc-green-light);
  border: 1px solid #cdeadd;
  border-radius: 10px;
  padding: .7rem 1.1rem;
  font-weight: 700;
  color: var(--luc-green-dark);
}
.luc-flow-arrow { color: var(--luc-green); font-weight: 700; font-size: 1.2rem; }

/* ---------- Matrix table ---------- */
.luc-table-wrap { overflow-x: auto; }
.luc-matrix-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--luc-shadow); }
.luc-matrix-table th, .luc-matrix-table td { padding: .7rem 1rem; text-align: center; border-bottom: 1px solid var(--luc-border); }
.luc-matrix-table thead th { background: var(--luc-green); color: #fff; }
.luc-matrix-table tbody tr:nth-child(even) { background: #f3f8f5; }
.luc-row-highlight { background: var(--luc-green-light) !important; font-weight: 700; }

/* ---------- Deed ---------- */
.luc-deed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: center; }
.luc-deed {
  background: #fffdf5;
  border: 1px solid #e4dcc0;
  border-radius: 10px;
  padding: 1.3rem;
  box-shadow: var(--luc-shadow);
}
.luc-deed h4 { margin-top: 0; }
.luc-deed-row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed #ddd2ad; }
.luc-deed-highlight { background: #fff0ef; border-radius: 6px; padding: .4rem .6rem; font-weight: 700; color: var(--luc-red); border-bottom: none; }
.luc-deed-copy h4 { color: var(--luc-green-dark); }

/* ---------- Icon strip ---------- */
.luc-icon-strip { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.luc-icon-chip {
  background: #fff;
  border: 1px solid var(--luc-border);
  border-radius: 999px;
  padding: .55rem .95rem;
  box-shadow: var(--luc-shadow);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Quick CTAs ---------- */
.luc-quick-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.luc-cta-q {
  background: var(--luc-green-light);
  border: 1px solid #cdeadd;
  border-radius: 10px;
  padding: .8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.luc-cta-q:hover { background: var(--luc-green); color: #fff; }

/* ---------- FAQ ---------- */
.luc-faq-list { display: grid; gap: .7rem; }
.luc-faq-item { background: #fff; border: 1px solid var(--luc-border); border-radius: 10px; padding: .4rem .9rem; }
.luc-faq-item summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }
.luc-faq-item p { color: var(--luc-muted); margin: .2rem 0 .6rem; }

/* ---------- Warning ---------- */
.luc-warning-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: none;
  color: #7f1d1d;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin: 2rem 0;
  font-size: .75rem;
}

.luc-warning-box strong { display: block; font-size: .85rem; margin-bottom: 5px; }
.luc-warning-box p { margin: 0; font-size: .75rem; }

/* ---------- Footer (standalone fallback) ---------- */
.luc-footer { background: var(--luc-green-dark); color: #fff; text-align: center; padding: 1.4rem; margin-top: 3rem; }
.luc-footer .luc-muted { color: #cfe8da; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .luc-hero { grid-template-columns: 1fr; text-align: center; }
  .luc-hero p { margin: 0 auto; }
  .luc-calc-grid { grid-template-columns: 1fr; }
  .luc-unit-cards { grid-template-columns: repeat(2, 1fr); }
  .luc-deed-grid { grid-template-columns: 1fr; }
  .luc-quick-ctas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .luc-unit-cards { grid-template-columns: 1fr; }
  .luc-quick-ctas { grid-template-columns: 1fr; }
  .luc-result-list { grid-template-columns: 1fr; }
  .luc-wheel { width: 280px; height: 280px; }
  .luc-wheel-node { width: 70px; }
  .luc-wheel-center { width: 96px; height: 96px; }
}