/* =========================================================
   SurgiNext Healthcare Solutions – Stylesheet
   ========================================================= */

:root {
  --navy: #0b1d3a;
  --navy-2: #102a52;
  --navy-3: #1a3a6b;
  --teal: #0e9f9a;
  --teal-dark: #0a7c78;
  --teal-light: #e6f6f5;
  --accent: #f59e0b;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5a;
  --text: #1d2939;
  --muted: #5b6b7f;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-tint: #f4f8fb;
  --danger: #d92d20;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, .06);
  --shadow: 0 10px 30px rgba(11, 29, 58, .08);
  --shadow-lg: 0 20px 50px rgba(11, 29, 58, .14);
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(14, 159, 154, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; box-shadow: 0 8px 20px rgba(14, 159, 154, .3); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(14, 159, 154, .4); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--bg-tint); color: var(--navy); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f5c2bd; }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c8d4e6; font-size: .85rem; }
.topbar-inner { display: flex; gap: 28px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 16px; height: 16px; color: var(--teal); }
a.topbar-item:hover { color: #fff; }
.topbar-address { margin-left: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #0b2a5c; letter-spacing: .01em; text-transform: uppercase; }
.brand-text strong span { color: var(--teal); }
.brand-text small { font-size: .7rem; color: #0b2a5c; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.brand-light img { background: #fff; border-radius: 12px; padding: 4px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text strong span { color: #5eead4; }
.brand-light .brand-text small { color: #c8d4e6; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn) {
  position: relative; padding: 8px 14px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy);
  border-radius: 8px; transition: color .2s;
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transition: transform .25s;
}
.site-nav > a:not(.btn):hover, .site-nav > a.active { color: var(--teal-dark); }
.site-nav > a:not(.btn):hover::after, .site-nav > a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--bg-tint); border-radius: 10px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(14, 159, 154, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(26, 58, 107, .9), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0d3a5c 100%);
  padding: 90px 0 140px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-light); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow-light { color: #7fe0d8; background: rgba(14, 159, 154, .15); border: 1px solid rgba(127, 224, 216, .25); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(90deg, #5eead4, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.12rem; color: #c8d4e6; max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-points { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-points li { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--teal); }
.hero-points strong { font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.hero-points span { font-size: .88rem; color: #9fb0c8; }

.hero-card {
  background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 22px; padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3); transform: rotate(-1deg);
}
.hero-card-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 18px; font-size: 1.05rem; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(14, 159, 154, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(14, 159, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 159, 154, 0); } }
.hero-card-list { display: grid; gap: 10px; }
.hero-card-list li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg-tint); font-weight: 500; font-size: .95rem; transition: background .2s, transform .2s; }
.hero-card-list li:hover { background: var(--teal-light); transform: translateX(4px); }
.hc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--teal-dark); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.hc-icon svg { width: 20px; height: 20px; }
.hero-card-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--teal-dark); }
.hero-card-link:hover { text-decoration: underline; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; color: #fff; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #c8d4e6; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 1.04rem; }
.about-copy .btn { margin-top: 10px; }
.mv-cards { display: grid; gap: 22px; }
.mv-card { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--teal); }
.mv-card-alt::before { background: var(--navy-3); }
.mv-card p { color: var(--muted); margin: 0; }
.mv-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-light); color: var(--teal-dark); margin-bottom: 16px; }
.mv-card-alt .mv-icon { background: #e8eef8; color: var(--navy-3); }
.mv-icon svg { width: 28px; height: 28px; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item { padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, transform .3s; }
.why-item:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.why-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-item p { margin: 0; font-size: .95rem; }
.why-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(14, 159, 154, .2); color: #5eead4; margin-bottom: 18px; }
.why-icon svg { width: 28px; height: 28px; }

/* Customers */
.customer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.customer {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); transition: border-color .25s, box-shadow .25s;
}
.customer:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.customer svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--teal-light); color: var(--teal-dark); flex-shrink: 0; }

/* Founders */
.founder-message {
  position: relative; max-width: 860px; margin: 0 auto 56px; padding: 36px 40px 30px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center;
}
.founder-message::before {
  content: "“"; position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff;
  font-family: Georgia, serif; font-size: 3rem; line-height: 72px; text-align: center;
}
.founder-message p { font-size: 1.1rem; color: var(--text); font-style: italic; }
.founder-message cite { font-style: normal; font-family: var(--font-head); font-weight: 600; color: var(--teal-dark); }
.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1020px; margin: 0 auto; }
.founder { background: #fff; border-radius: 20px; padding: 18px 18px 26px; text-align: center; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.founder:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.founder-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--teal-light), #dfe8f5);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.founder:hover .founder-photo img { transform: scale(1.04); }
.founder-photo.no-photo img { display: none; }
.founder-photo.no-photo::after {
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 4rem; color: var(--teal-dark); opacity: .55;
}
.founder h3 { font-size: 1.25rem; margin-bottom: 4px; }
.founder-role { margin: 0; color: var(--teal-dark); font-weight: 600; font-size: .92rem; letter-spacing: .03em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--bg-tint); }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a:hover { color: var(--teal-dark); }
.ci-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: #fff; flex-shrink: 0; }
.ci-icon svg { width: 22px; height: 22px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.enquiry-form { background: #fff; padding: 34px; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.enquiry-form h3 { font-size: 1.35rem; }
.form-note { color: var(--muted); font-size: .93rem; }

/* Form fields (shared with admin) */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 159, 154, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--danger); background: #fef3f2; border: 1px solid #fecdca; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c8; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { margin-top: 18px; font-size: .93rem; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: .93rem; }
.footer-links a:hover, .footer-contact a:hover { color: #5eead4; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .88rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #5eead4; font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Floating buttons ---------- */
.float-actions { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 14px; }
.float-btn {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25); transition: transform .25s;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 30px; height: 30px; }
.float-whatsapp { background: var(--whatsapp); position: relative; }
.float-whatsapp::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; background: rgba(37, 211, 102, .25); z-index: -1;
  animation: ring 2.2s infinite;
}
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.float-call { background: var(--navy-2); }
.float-call svg { width: 26px; height: 26px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* =========================================================
   Products page
   ========================================================= */
.page-banner {
  background:
    radial-gradient(circle at 80% 30%, rgba(14, 159, 154, .3), transparent 45%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; text-align: center; padding: 70px 0 80px;
}
.page-banner h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 14px; }
.breadcrumb { margin: 0; color: #c8d4e6; font-size: 1.05rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

.products-section { padding-top: 60px; }
.product-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: .88rem; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { position: relative; display: flex; align-items: center; min-width: 260px; }
.search-box svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; padding: 11px 16px 11px 42px; border: 1.5px solid var(--line); border-radius: 999px; }
.search-box input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 159, 154, .12); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.product-card {
  background: #fff; border-radius: 14px; padding: 28px 30px 30px; box-shadow: 0 4px 24px rgba(11, 29, 58, .07);
  border: 1px solid #f0f3f7; cursor: pointer; text-align: left; transition: transform .3s, box-shadow .3s; width: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pc-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--bg-tint); margin-bottom: 22px; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.product-card .pc-name { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--navy-2); margin: 0; line-height: 1.3; }
.product-card .pc-cat { font-size: .8rem; color: var(--teal-dark); font-weight: 600; margin-top: 4px; }
.skeleton { cursor: default; pointer-events: none; }
.skeleton .pc-img, .skeleton .pc-line { background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .pc-line { height: 22px; width: 70%; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 60px 20px; max-width: 520px; margin: 0 auto; }
.empty-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-light); color: var(--teal-dark); }
.empty-icon svg { width: 40px; height: 40px; }
.empty-state p { color: var(--muted); }

/* ---------- Full-screen viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; background: #0b1530; color: #fff;
  display: flex; flex-direction: column; animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.viewer-top {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 30px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, .08); flex-shrink: 0;
}
.viewer-back {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: background .2s;
}
.viewer-back:hover { background: rgba(255, 255, 255, .12); }
.viewer-back svg { width: 20px; height: 20px; }
.viewer-count { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #c8d4e6; }
.viewer-stage {
  flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; gap: 36px;
  padding: 28px 24px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); overflow-y: auto;
}
.viewer-figure { margin: auto 0; display: flex; flex-direction: column; align-items: center; max-width: min(900px, 100%); min-width: 0; }
.viewer-img-wrap { display: flex; justify-content: center; width: 100%; min-width: 0; }
.viewer-img-wrap img { min-width: 0; object-fit: contain; }
.viewer-img-wrap img {
  max-width: 100%; max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff;
  animation: imgIn .3s ease;
}
@keyframes imgIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.viewer-figure figcaption { text-align: center; margin-top: 24px; max-width: 640px; }
.viewer-cat { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5eead4; margin-bottom: 6px; }
.viewer-figure h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 8px; }
.viewer-figure p { color: #b8c6da; font-size: .98rem; white-space: pre-line; display: table; margin: 0 auto 16px; text-align: left; line-height: 1.8; }
.viewer-figure p:empty { display: none; }
.viewer-nav {
  align-self: center; width: 66px; height: 66px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: background .2s, transform .2s;
}
.viewer-nav:hover { background: rgba(255, 255, 255, .16); transform: scale(1.06); }
.viewer-nav svg { width: 26px; height: 26px; }
body.viewer-open { overflow: hidden; }
body.viewer-open .float-actions { display: none; }

/* =========================================================
   Admin
   ========================================================= */
.admin-body { background: var(--bg-tint); min-height: 100vh; }
.login-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 30px 20px;
  background: radial-gradient(circle at 80% 20%, rgba(14, 159, 154, .35), transparent 45%), linear-gradient(135deg, var(--navy), var(--navy-2));
}
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 38px 34px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.login-logo { display: block; width: 200px; max-width: 70%; margin: -10px auto 14px; }
.login-logo img { width: 100%; height: auto; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login-card .muted { margin-bottom: 24px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg-tint); color: var(--navy); font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.login-back { display: block; text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.login-back:hover { color: var(--teal-dark); }

.admin-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 70px; gap: 14px; flex-wrap: wrap; padding-block: 10px; }
.admin-header .brand img { width: 44px; height: 44px; }
.admin-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-main { display: grid; grid-template-columns: 400px 1fr; gap: 26px; padding-block: 30px 60px; align-items: start; }
.admin-panel { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-width: 0; }
#formPanel { position: sticky; top: 96px; }
#formPanel.editing { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.count-badge { background: var(--teal-light); color: var(--teal-dark); font-size: .8rem; padding: 2px 10px; border-radius: 999px; }
.admin-search { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; min-width: 200px; }
.admin-search:focus { outline: none; border-color: var(--teal); }

.upload-box {
  position: relative; display: grid; place-items: center; min-height: 180px; border: 2px dashed #c9d4e1; border-radius: 12px;
  background: var(--bg-tint); cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; text-align: center; padding: 12px;
}
.upload-box:hover, .upload-box.drag { border-color: var(--teal); background: var(--teal-light); }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box img { max-height: 240px; width: auto; border-radius: 6px; }
.upload-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); pointer-events: none; }
.upload-hint svg { width: 34px; height: 34px; color: var(--teal); }
.upload-hint strong { color: var(--navy); font-size: .95rem; }
.upload-hint small { font-size: .8rem; }
.upload-box.has-image .upload-hint { display: none; }

.admin-list { display: grid; gap: 12px; }
.admin-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.admin-item:hover { border-color: #c9d4e1; }
.admin-item.is-editing { border-color: var(--accent); background: #fffbeb; }
.admin-item img { width: 76px; height: 76px; object-fit: cover; object-position: top; border-radius: 8px; background: var(--bg-tint); }
.admin-item-info { min-width: 0; }
.admin-item-info h3 { font-size: 1rem; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-info p { margin: 0; font-size: .82rem; color: var(--teal-dark); font-weight: 600; }
.admin-item-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; font-size: 1rem; transition: all .2s; }
.icon-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); background: #fef3f2; }
.admin-empty { text-align: center; padding: 30px 0; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-weight: 500; font-size: .95rem; animation: toastIn .3s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--teal-dark); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .25s; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav > a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .topbar-address { display: none; }

  .hero { padding: 60px 0 110px; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { transform: none; max-width: 520px; }
  .why-grid, .customer-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .admin-main { grid-template-columns: 1fr; }
  #formPanel { position: static; }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card { padding: 14px 14px 18px; }
  .product-card .pc-img { margin-bottom: 14px; }
  .product-card .pc-name { font-size: 1.02rem; }
  .product-toolbar { flex-direction: column; align-items: stretch; }
  .product-toolbar > * { min-width: 0; max-width: 100%; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .search-box { min-width: 0; }
  .founder-grid { grid-template-columns: 1fr; max-width: 360px; }

  .viewer-top { padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .viewer-back { padding: 10px 16px; font-size: .95rem; }
  .viewer-stage { position: relative; padding: 20px 16px; gap: 0; align-items: flex-start; }
  .viewer-figure { width: 100%; }
  .viewer-img-wrap img { max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); }
  .viewer-nav {
    position: fixed; top: 50%; width: 46px; height: 46px; z-index: 2;
    background: rgba(11, 21, 48, .7); backdrop-filter: blur(4px);
  }
  .viewer-prev { left: 8px; }
  .viewer-next { right: 8px; }
}

@media (max-width: 560px) {
  .topbar-inner { justify-content: center; gap: 16px; font-size: .78rem; }
  .brand-text strong { font-size: 1.15rem; }
  .brand img { width: 44px; height: 44px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { gap: 20px; }
  .why-grid, .customer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .enquiry-form { padding: 24px 20px; }
  .founder-message { padding: 36px 22px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .float-actions { right: 14px; bottom: 14px; gap: 12px; }
  .float-btn { width: 54px; height: 54px; }
  .float-btn svg { width: 26px; height: 26px; }

  .login-card { padding: 30px 22px; }
  .admin-panel { padding: 20px 16px; }
  .admin-item { grid-template-columns: 60px 1fr; }
  .admin-item img { width: 60px; height: 60px; }
  .admin-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-search { min-width: 0; width: 100%; }
}
