/* ===== Norton Paper — Global Styles ===== */
:root {
  --green: #0e6b4f;
  --green-dark: #0a523c;
  --green-light: #e6f3ee;
  --ink: #17251f;
  --ink-soft: #4c5c55;
  --line: #dfe8e3;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --amber: #d99a2b;
  --radius: 14px;
  --max: 1180px;
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Tahoma", "Noto Naskh Arabic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
html[lang="ar"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif; line-height: 1.85; }
html[lang="ja"] body { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Segoe UI", "Microsoft YaHei", sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: flex-start;
  height: 68px; gap: 8px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, #17916c 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.5px;
}
.logo span em { font-style: normal; color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.main-nav a.btn, .main-nav a.btn:hover { color: #fff; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-amber { background: var(--amber); }
.btn-amber:hover { background: #b98220; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #0c1f17 0%, #123a2b 60%, #14523c 100%);
  color: #fff; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center; padding: 72px 0 80px;
}
.hero h1 { font-size: 2.7rem; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 .hl { color: #7fd4b4; }
.hero p.lead { color: #cfe6db; font-size: 1.08rem; margin-bottom: 30px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img {
  border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-img img { width: 100%; height: 420px; object-fit: cover; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges span {
  font-size: .82rem; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #d9efe5;
}

/* Section basics */
section.block { padding: 78px 0; }
section.block.alt { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
.sec-num::before { content: ""; width: 34px; height: 2px; background: var(--green); }
.sec-head h2 { font-size: 2.1rem; letter-spacing: -.4px; line-height: 1.2; margin-bottom: 12px; }
.sec-head p { color: var(--ink-soft); }

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(14,107,79,.12); }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--ink-soft); font-size: .93rem; }
.card .arrow { margin-top: auto; color: var(--green); font-weight: 700; font-size: .9rem; }
.card.img-card { padding: 0; overflow: hidden; }
.card.img-card img { height: 190px; object-fit: cover; width: 100%; }
.card.img-card .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.stat b { display: block; font-size: 1.55rem; color: var(--green); margin-bottom: 6px; letter-spacing: -.3px; }
.stat span { color: var(--ink-soft); font-size: .92rem; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 14px 40px rgba(23,37,31,.14); }
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 18px; }
.step b.num {
  flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--green-light);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.step h4 { margin-bottom: 3px; font-size: 1.02rem; }
.step p { color: var(--ink-soft); font-size: .92rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { height: 230px; width: 100%; object-fit: cover; border-radius: var(--radius); }

/* FAQ */
.faq { max-width: 820px; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
details summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::after { content: "+"; font-size: 1.3rem; color: var(--green); }
details[open] summary::after { content: "–"; }
details .ans { padding: 0 22px 20px; color: var(--ink-soft); font-size: .95rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; border-radius: 20px; padding: 52px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.8rem; margin-bottom: 8px; }
.cta-band p { color: #d6ece2; }

/* Contact page */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 20px;
}
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ico {
  flex: 0 0 42px; height: 42px; border-radius: 10px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.info-item b { display: block; font-size: .95rem; }
.info-item p, .info-item a { color: var(--ink-soft); font-size: .93rem; }
.qr-box { text-align: center; background: #fff; border: 1px dashed var(--green); border-radius: 12px; padding: 18px; }
.qr-box img { margin: 0 auto 8px; width: 150px; height: 150px; object-fit: contain; }
.qr-box p { font-size: .85rem; color: var(--ink-soft); }
form.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
form.quote .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .95rem; font-family: inherit; background: var(--bg-soft);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green); border-color: transparent;
}
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.form-ok {
  background: var(--green-light); color: var(--green-dark); border: 1px solid #bfe2d4;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; display: none;
}
.form-alt {
  background: #fff9ec; border: 1px solid #f0dcb4; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 18px; font-size: .9rem; color: #6b5220;
}
.form-alt .btn { display: inline-flex; }

/* Footer */
.site-footer { background: #0c1f17; color: #a9c6b9; padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: #a9c6b9; font-size: .92rem; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #7fd4b4; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem;
}

/* Admin */
.admin-body { background: var(--bg-soft); min-height: 100vh; }
.login-wrap { max-width: 400px; margin: 10vh auto; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 38px; box-shadow: 0 18px 50px rgba(14,107,79,.10); }
.login-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.login-card .sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: 24px; }
.login-err { color: #b3392b; font-size: .88rem; margin-bottom: 12px; display: none; }
.admin-topbar { background: var(--green-dark); color: #fff; padding: 14px 0; }
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-main { padding: 34px 0; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin-bottom: 22px; }
.admin-panel h2 { font-size: 1.15rem; margin-bottom: 16px; }
table.inq { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.inq th, table.inq td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.inq th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); }
table.inq td small { color: var(--ink-soft); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge.new { background: #fdf1dc; color: #9a6b12; }
.badge.done { background: var(--green-light); color: var(--green-dark); }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: .8rem; color: var(--ink-soft); }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.empty-tip { color: var(--ink-soft); font-size: .92rem; padding: 20px 0; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; margin-inline-start: 14px;
}
.lang-switch button {
  border: none; background: transparent; cursor: pointer;
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  padding: 5px 10px; border-radius: 999px; font-family: inherit; line-height: 1;
}
.lang-switch button:hover { color: var(--green); }
.lang-switch button.active { background: var(--green); color: #fff; }

/* Hero variants */
.hero h1 .hl { color: #7fd4b4; display: inline; }
.hero h1 > span { display: inline; }
.btn.outline-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn.outline-light:hover { background: rgba(255,255,255,.14); }
.hero.hero-sm { padding: 64px 0; }
.hero.hero-sm h1 { font-size: 2.3rem; letter-spacing: -.4px; margin-bottom: 12px; }
.hero.hero-sm .lead { color: #cfe6db; max-width: 42em; }
.sec-num.light { color: #7fd4b4; }
.sec-num.light::before { background: #7fd4b4; }

/* Cards: highlight */
.card.highlight { background: var(--green-light); border-color: #bfe2d4; }

/* Gallery captions */
.gallery figcaption { padding-top: 10px; font-size: .9rem; color: var(--ink-soft); }
.gallery figcaption b { color: var(--ink); display: block; margin-bottom: 2px; }
.logo.logo-light, .logo.logo-light span { color: #fff; }
.logo.logo-light em { color: #7fd4b4; }
.logo.logo-light { margin-bottom: 14px; }

/* ===== RTL (Arabic) ===== */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .sec-head,
html[dir="rtl"] .stat,
html[dir="rtl"] .card { text-align: right; }
html[dir="rtl"] .sec-num { letter-spacing: 0; }
html[dir="rtl"] .card .arrow,
html[dir="rtl"] .info-item { text-align: right; }
html[dir="rtl"] .step { flex-direction: row; }
html[dir="rtl"] .btn { letter-spacing: 0; }
html[dir="rtl"] details summary { text-align: right; }
html[dir="rtl"] .gallery figcaption { text-align: right; }
html[dir="rtl"] .footer-bottom { flex-direction: row; }
html[dir="rtl"] .field input,
html[dir="rtl"] .field select,
html[dir="rtl"] .field textarea { text-align: right; }
html[dir="rtl"] table.inq th,
html[dir="rtl"] table.inq td { text-align: right; }
html[dir="rtl"] .lang-switch { margin-inline-start: 0; margin-inline-end: 14px; }

@media (max-width: 1180px) {
  .lang-switch { margin-inline-start: 10px; }
  .lang-switch button { padding: 5px 7px; font-size: .72rem; }
}

@media (max-width: 900px) {
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 5px 6px; font-size: .7rem; }
}

/* Spec tables */
.spec-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 20px;
}
.spec-block h3 { font-size: 1.15rem; margin-bottom: 6px; }
.spec-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.spec th, table.spec td {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  text-align: start; white-space: nowrap;
}
table.spec thead th {
  background: var(--bg-soft); color: var(--ink-soft); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .6px; font-weight: 700;
}
table.spec tbody tr:last-child td { border-bottom: none; }
table.spec tbody tr:hover { background: #fbfdfc; }
table.spec td:first-child { font-weight: 600; }
.spec-note {
  font-size: .85rem; color: var(--ink-soft); background: var(--bg-soft);
  border-inline-start: 3px solid var(--green); border-radius: 8px;
  padding: 12px 16px; margin-top: 6px;
}
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.mini-stat b { display: block; color: var(--green); font-size: 1.1rem; margin-bottom: 4px; }
.mini-stat span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 980px) { .mini-stats { grid-template-columns: 1fr; } }

@media (max-width: 980px) {
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .split, .contact-wrap { grid-template-columns: 1fr; }
  .hero-img img { height: 300px; }
  .hero h1 { font-size: 2.1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2, .stats, .gallery, form.quote .row { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .sec-head h2 { font-size: 1.6rem; }
  .cta-band { padding: 36px 26px; }
}
