/* ==========================================================================
   CRN Dental Lab — Site Stylesheet
   Theme: Premium / high-tech (deep navy, gold, teal accent)
   ========================================================================== */

:root {
  --navy-900: #071627;
  --navy-800: #0b1f36;
  --navy-700: #10294a;
  --navy-600: #17365f;
  --gold-500: #c9a24b;
  --gold-400: #ddbd73;
  --teal-500: #2fb6ad;
  --teal-400: #5fd0c7;
  --off-white: #f6f5f1;
  --paper: #ffffff;
  --ink-900: #14202e;
  --ink-600: #4a5a6a;
  --ink-400: #7c8b99;
  --line: #e3e1d8;
  --radius: 10px;
  --shadow-soft: 0 20px 45px -20px rgba(7, 22, 39, 0.35);
  --shadow-card: 0 10px 30px -15px rgba(7, 22, 39, 0.25);
  --max-width: 1180px;
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  max-width: 60ch;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--dark {
  background: radial-gradient(120% 140% at 10% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
  color: var(--off-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--off-white); }

.section--dark p { color: rgba(246,245,241,0.78); }

.section--paper { background: var(--paper); }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.align-left {
  margin: 0 0 48px;
  text-align: left;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 12px 25px -10px rgba(201,162,75,0.55);
}

.btn--outline {
  background: transparent;
  border-color: rgba(246,245,241,0.4);
  color: var(--off-white);
}

.btn--outline:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn--dark {
  background: var(--navy-900);
  color: var(--off-white);
}

.btn--dark:hover { background: var(--navy-700); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 22, 39, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--off-white);
}

.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.brand-text span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: rgba(246,245,241,0.85);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--off-white);
  border-color: var(--gold-500);
}

.header-cta { display: flex; align-items: center; gap: 18px; }

.header-phone {
  display: flex;
  flex-direction: column;
  color: var(--off-white);
  font-size: 0.85rem;
  text-align: right;
}

.header-phone strong { color: var(--gold-400); font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--off-white);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .lede { color: rgba(246,245,241,0.82); }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--gold-400);
}

.hero-stats div span {
  font-size: 0.8rem;
  color: rgba(246,245,241,0.7);
}

.hero-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ---------- Feature / Card grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.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(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 8px; }

.card p { margin-bottom: 0; font-size: 0.95rem; }

/* dark variant cards (on navy background) */
.section--dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

.section--dark .card p { color: rgba(246,245,241,0.72); }
.section--dark .card-icon { background: rgba(201,162,75,0.15); }

/* ---------- Split / feature rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-art { order: 2; }

.split-art {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--navy-900);
}

.check-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-600);
  font-size: 0.95rem;
}

.check-list svg { flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }

/* ---------- Tech strip ---------- */
.tech-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.tech-item {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255,255,255,0.03);
}

.tech-item .tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--teal-400);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 14px;
}

.tech-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--off-white); }
.tech-item p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--navy-900);
  color: var(--off-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #fbfaf6; }

.table-note { font-size: 0.82rem; color: var(--ink-400); margin-top: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 22px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--off-white);
}

.cta-banner h2 { color: var(--off-white); margin-bottom: 8px; }
.cta-banner p { color: rgba(246,245,241,0.78); margin-bottom: 0; }

/* ---------- Service area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.area-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.info-card {
  background: var(--navy-900);
  color: var(--off-white);
  border-radius: 18px;
  padding: 40px;
}

.info-card h3 { color: var(--off-white); font-size: 1.1rem; }

.info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-row:last-of-type { border-bottom: none; }

.info-row .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(201,162,75,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row .ic svg { width: 20px; height: 20px; }

.info-row strong { display: block; color: var(--gold-400); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

.info-row a, .info-row span.value { color: var(--off-white); font-size: 1rem; }

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

.map-frame iframe { width: 100%; height: 240px; border: 0; display: block; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fdfcf9;
  color: var(--ink-900);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(47,182,173,0.18);
}

textarea { resize: vertical; min-height: 120px; }

.field { margin-bottom: 4px; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form-foot p { font-size: 0.8rem; margin: 0; color: var(--ink-400); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(246,245,241,0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 0.9rem; color: rgba(246,245,241,0.75); }
.footer-grid a:hover { color: var(--gold-400); }

.footer-brand p { font-size: 0.9rem; max-width: 32ch; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px; flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

.site-header.nav-open .main-nav {
  display: flex;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  background: var(--navy-900);
  flex-direction: column;
  padding: 20px 24px 28px;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
