/* ==========================================================================
   Doxor Thermal — doxorthermal.com
   Brand palette extracted from official logo
   ========================================================================== */

:root {
  --navy: #004078;          /* DOXOR blue */
  --navy-dark: #00325e;
  --navy-deep: #002647;
  --orange: #F78E1E;        /* logo dot */
  --heat-red: #B83024;      /* THERMAL gradient top */
  --heat-orange: #F48B1F;   /* THERMAL gradient bottom */
  --heat-gradient: linear-gradient(135deg, #B83024 0%, #F48B1F 100%);
  --ink: #1c2b3a;
  --ink-soft: #4d5f72;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #dfe6ee;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 42, 84, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container { width: min(1140px, 92%); margin-inline: auto; }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand img { width: 150px; height: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--orange); }

.site-nav a.nav-cta {
  background: var(--heat-gradient);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
}

.site-nav a.nav-cta:hover { filter: brightness(1.08); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(247, 142, 30, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.hero p.lead {
  font-size: 1.13rem;
  color: #cfe0f2;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  transition: transform 0.15s, filter 0.15s;
}

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

.btn-primary { background: var(--heat-gradient); color: #fff; }

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  margin-left: 0.8rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.hero-card h2 {
  font-size: 1.05rem;
  color: var(--orange);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card ul { list-style: none; }

.hero-card li {
  padding: 0.5rem 0 0.5rem 1.9rem;
  position: relative;
  color: #e6eef7;
  font-size: 0.98rem;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--heat-gradient);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--bg);
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat .num {
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--heat-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }

.section-head { max-width: 46rem; margin-bottom: 2.6rem; }

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.alt { background: var(--bg-alt); }

/* Technology cards */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

.card h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 0.7rem; }

.card p { color: var(--ink-soft); margin-bottom: 1rem; }

.card ul {
  list-style: none;
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}

.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.card .learn {
  margin-top: auto;
  color: var(--heat-red);
  font-weight: 700;
  text-decoration: none;
}

.card .learn:hover { color: var(--orange); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.step .n {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--heat-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.5rem; }

.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* Projects preview */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.proj {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.proj .thumb {
  height: 150px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(247, 142, 30, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.proj .body { padding: 1.4rem; }

.proj h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.5rem; }

.proj p { color: var(--ink-soft); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse at 15% 80%, rgba(184, 48, 36, 0.5), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.8rem; }

.cta-band p { color: #cfe0f2; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9cbde;
  padding: 3.5rem 0 2rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer img { width: 170px; margin-bottom: 1rem; }

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.5rem; }

.site-footer a { color: #b9cbde; text-decoration: none; }

.site-footer a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8fa6bd;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav li { border-top: 1px solid var(--bg-alt); }

  .site-nav a { display: block; padding: 0.9rem 1.4rem; }

  .site-nav a.nav-cta { margin: 0.8rem 1.4rem; text-align: center; }

  .hero { padding: 3.5rem 0; }

  .hero-grid, .tech-grid, .steps, .proj-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .btn-ghost { margin-left: 0; margin-top: 0.8rem; }
}

/* ---------- Interior pages ---------- */
.page-hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(247, 142, 30, 0.16), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 3.8rem 0;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.page-hero p.lead {
  font-size: 1.1rem;
  color: #cfe0f2;
  max-width: 44rem;
}

.crumbs {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.crumbs a { color: #9fc0de; text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { color: #7d9cbb; }

.prose { max-width: 48rem; }
.prose h2 { color: var(--navy); font-size: 1.6rem; margin: 2.4rem 0 0.8rem; }
.prose h3 { color: var(--navy); font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { color: var(--ink-soft); margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: 0.45rem; }

/* Comparison table */
.compare-wrap { overflow-x: auto; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

table.compare th, table.compare td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.compare thead th {
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
}

table.compare tbody th {
  color: var(--navy);
  font-weight: 700;
  width: 26%;
  background: var(--bg-alt);
}

table.compare td { color: var(--ink-soft); }

/* Advantage grid */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.adv {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

.adv h3 { color: var(--navy); font-size: 1rem; margin-bottom: 0.35rem; }
.adv p { color: var(--ink-soft); font-size: 0.92rem; }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 1.3rem;
  list-style: none;
  position: relative;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  color: var(--orange);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p { padding: 0 1.3rem 1.1rem; color: var(--ink-soft); }

/* Project meta tags */
.proj .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.proj .meta span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}

/* Presentations list */
.pres-list { list-style: none; }

.pres-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.pres-list .t { color: var(--ink); font-weight: 600; }

.pres-list .ev {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--heat-gradient);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

.form-card .btn { border: 0; cursor: pointer; font: inherit; width: 100%; }

.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.info-card h2 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.8rem; }
.info-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.8rem; }
.info-card a { color: var(--heat-red); font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  .adv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
