/* ==========================================================================
   [LAB NAME] Dental Laboratory — shared stylesheet
   Modern premium dark theme
   ========================================================================== */

/*:root {*/
/*  --bg: #eef4fb;*/
/*  --bg-alt: #e1ecf7;*/
/*  --surface: #ffffff;*/
/*  --surface-2: #eaf1fa;*/
/*  --border: #d2e0ef;*/
/*  --text: #1e2c3f;*/
/*  --text-muted: #566579;*/
/*  --gold: #2f6fb0;*/
/*  --gold-soft: #4d94d6;*/
/*  --teal: #2f9fb8;*/
/*  --white: #ffffff;*/
/*  --radius: 14px;*/
/*  --radius-sm: 8px;*/
/*  --shadow: 0 18px 40px -18px rgba(30, 60, 100, 0.28);*/
/*  --max: 1140px;*/
/*  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;*/
/*  --serif: Georgia, "Times New Roman", serif;*/
/*}*/

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #ffffff; }
.btn--primary:hover { color: #ffffff; }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 244, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 48px; width: auto; display: block; }
.site-footer .brand__logo { height: 62px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #ffffff; font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; font-family: var(--serif);
}

/* ---------- Images / media ---------- */
.split__img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; display: block; box-shadow: var(--shadow); }
.hero--photo { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; padding: 60px 0; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/building.jpg") center right / cover no-repeat;
  z-index: 0;
}
.hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(102deg, var(--bg) 0%, var(--bg) 48%, rgba(238,244,251,0.82) 62%, rgba(238,244,251,0.15) 100%);
  z-index: 1;
}
.hero--photo .container { position: relative; z-index: 2; }
.hero--photo .hero__content { max-width: 600px; }

.portals { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.portal-chip { padding: 10px 18px; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); font-size: 0.9rem; font-weight: 600; color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.figure { margin: 0; }
.figure img { width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.figure figcaption { font-size: 0.86rem; color: var(--text-muted); margin-top: 10px; }
.brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand__name span { display: block; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.96rem; }
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(77,148,214,0.22), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(47,159,184,0.18), transparent 45%),
    var(--bg);
  padding: 110px 0 96px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 16ch; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p { font-size: 1.18rem; color: var(--text-muted); max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat__num { font-size: 2.1rem; font-weight: 800; color: var(--gold-soft); font-family: var(--serif); }
.stat__label { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Section headings ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; height: 100%;
  transition: transform .18s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--gold);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  border-radius: var(--radius); min-height: 320px; border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, rgba(77,148,214,0.24), transparent 55%),
    linear-gradient(135deg, var(--surface-2), var(--bg-alt));
  display: grid; place-items: center; color: var(--text-muted); text-align: center; padding: 24px;
}
.split__media span { font-size: 0.85rem; letter-spacing: 0.05em; }

.checklist { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.checklist li::before { content: "✓"; color: var(--teal); font-weight: 700; flex: none; }

/* ---------- Service detail rows ---------- */
.service-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; background: var(--surface); }
.service-row h3 { font-size: 1.4rem; margin-bottom: 8px; }
.service-row .tag { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.service-row ul { list-style: none; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-row ul li { color: var(--text-muted); font-size: 0.95rem; display: flex; gap: 10px; }
.service-row ul li::before { content: "—"; color: var(--gold); flex: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 52px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; display: block; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.97rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; min-height: 130px; }
.form--wide { max-width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form input[type="file"] { padding: 10px 12px; cursor: pointer; }
.form input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border-radius: 30px; border: 0;
  background: var(--surface-2); color: var(--gold); font-weight: 600; cursor: pointer;
}
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; margin-bottom: 24px; background: var(--surface); }
.fieldset legend { padding: 0 10px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.req { color: var(--gold); }

/* ---------- Robot check (human verification) ---------- */
.robot-check { display: grid; gap: 6px; }
.robot-check input { max-width: 170px; }
.robot-check .captcha-q { font-weight: 700; color: var(--text); }
/* Honeypot — hidden from humans, visible to bots */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.captcha-error, .send-error { border-left-color: #c0392b !important; color: var(--text) !important; }
#form-note { border-left-color: var(--teal) !important; }
.form button[type="submit"][disabled] { opacity: .6; cursor: progress; transform: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); color: var(--gold); margin-bottom: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .info-ic { width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--gold); font-size: 1.2rem; }
.info-list strong { display: block; margin-bottom: 2px; }
.info-list span { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Notice / compliance ---------- */
.notice {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--teal); border-radius: var(--radius-sm);
  padding: 18px 22px; color: var(--text-muted); font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #182a40; border-top: 1px solid #2c4059; padding: 56px 0 30px; }
.site-footer p, .site-footer .brand__name { color: #e5eef8; }
.site-footer .brand__name span { color: #9db4cd; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #c3d3e6; font-size: 0.94rem; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer p { color: #c3d3e6; font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid #2c4059; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #91a6bf; font-size: 0.85rem; }
.footer-bottom .reg { max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-alt);
    border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: block; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .figure img { height: 260px; }
  .brand__logo { height: 40px; }
  .hero--photo { min-height: 540px; align-items: flex-start; }
  .hero--photo::after { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 52%, rgba(238,244,251,0.55) 100%); }
  .hero--photo .hero__content { max-width: 100%; }
  .service-row ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 36px 24px; }
  .section { padding: 60px 0; }
}

/* ---------- Small JS-driven nav script styling helper ---------- */
.script-note { display: none; }
