/* ================================================================
   DocOrbit Infotech - Main Stylesheet
   Sections: Variables | Reset | Navigation | Buttons | Hero |
   Sections | Grid | Cards | FAQ | Forms | Footer | Responsive | Utilities
   ================================================================ */

/* ---------- Design tokens ---------- */
:root {
  --color-navy: #071a3d;
  --color-indigo: #172a67;
  --color-blue: #0b74ff;
  --color-cyan: #06b6d4;
  --color-green: #16a34a;
  --color-ink: #101828;
  --color-muted: #59657a;
  --color-soft: #f5f7fb;
  --color-soft-2: #edf4fb;
  --color-white: #ffffff;
  --color-line: #dce5f0;
  --shadow-soft: 0 18px 45px rgba(13, 30, 64, 0.1);
  --shadow-card: 0 12px 32px rgba(13, 30, 64, 0.08);
  --radius-card: 8px;
  --radius-button: 8px;
  --container: 1120px;
  --header-height: 74px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
}

/* ---------- Reset ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: var(--radius-button);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Container ---------- */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Site header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 229, 240, 0.86);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(11, 116, 255, 0.24);
}

.brand-mark::before {
  content: "D";
  font-size: 1rem;
  line-height: 1;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-size: 1rem;
}

.brand-subtitle {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-button);
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  position: absolute;
  inset: var(--header-height) 1rem auto;
  display: none;
  padding: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

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

.nav-list {
  display: grid;
  gap: 0.2rem;
}

.nav-link {
  display: block;
  padding: 0.72rem 0.85rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 7px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--color-navy);
  background: var(--color-soft-2);
  outline: none;
}

.nav-list .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.8rem 1.25rem;
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  background: var(--color-blue);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  box-shadow: 0 10px 22px rgba(11, 116, 255, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: #065cd6;
  box-shadow: 0 14px 28px rgba(11, 116, 255, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  color: var(--color-navy);
  background: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--color-navy);
  background: #f8fbff;
  box-shadow: none;
}

.btn-outline {
  color: var(--color-navy);
  background: var(--color-white);
  border-color: var(--color-line);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--color-blue);
  background: var(--color-soft);
  border-color: #b7c8de;
  box-shadow: none;
}

/* ---------- Home hero ---------- */

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
  background-image:
    linear-gradient(90deg, rgba(7, 26, 61, 0.96) 0%, rgba(7, 26, 61, 0.88) 48%, rgba(7, 26, 61, 0.38) 100%),
    url("../images/docorbit-cloud-platform.png");
  background-position: center right;
  background-size: cover;
}

.home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  content: "";
}

.hero-content {
  max-width: 690px;
  padding: clamp(5rem, 11vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #c9eeff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--color-cyan);
  border-radius: 999px;
  content: "";
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: #e4ebf6;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: #c8d4e6;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-7) 0;
}

.section-compact {
  padding: var(--space-6) 0;
}

.section-soft {
  background: var(--color-soft);
}

.section-navy {
  color: var(--color-white);
  background: var(--color-navy);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--space-5);
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin-bottom: 0.55rem;
  color: var(--color-blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-navy .section-title,
.section-navy .section-kicker {
  color: var(--color-white);
}

.section-navy .muted,
.section-navy .lead {
  color: #cbd5e1;
}

.lead {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.muted {
  color: var(--color-muted);
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

/* ---------- Cards ---------- */

.card {
  padding: 1.35rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.card:focus-within {
  box-shadow: 0 16px 40px rgba(13, 30, 64, 0.12);
  border-color: #c7d3e0;
}

.card h3 {
  margin: 0 0 0.45rem;
  color: var(--color-navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.card p {
  color: var(--color-muted);
  line-height: 1.55;
}

.card-highlight {
  border-color: rgba(11, 116, 255, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.icon-card {
  display: grid;
  gap: 0.9rem;
}

.icon-pill {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--color-blue);
  background: #e9f4ff;
  border-radius: 8px;
}

.icon-pill::before {
  width: 17px;
  height: 17px;
  background: currentColor;
  border-radius: 5px;
  content: "";
}

.trust-strip {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-navy);
  font-size: 0.93rem;
  font-weight: 800;
}

.trust-item::before {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--color-green);
  border-radius: 999px;
  content: "";
}

/* ---------- Feature list ---------- */

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  color: var(--color-muted);
}

.feature-list li::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 0.54rem;
  background: var(--color-cyan);
  border-radius: 999px;
  content: "";
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* ---------- Dashboard preview ---------- */

.dashboard-preview {
  overflow: hidden;
  padding: 1rem;
  background: #f7fbff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.75rem;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 7px;
}

.dashboard-title {
  font-weight: 900;
}

.dashboard-status {
  color: #bfefff;
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.mini-panel {
  min-height: 122px;
  padding: 0.95rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.mini-panel h4 {
  margin: 0 0 0.7rem;
  color: var(--color-navy);
  font-size: 0.95rem;
}

.mini-line {
  display: block;
  height: 8px;
  margin-top: 0.55rem;
  background: #d7e3f1;
  border-radius: 999px;
}

.mini-line.short {
  width: 58%;
}

.mini-line.blue {
  background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.metric {
  min-width: 0;
  padding: 0.7rem;
  text-align: center;
  background: var(--color-soft);
  border-radius: 7px;
}

.metric strong {
  display: block;
  color: var(--color-navy);
  font-size: 1.05rem;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ---------- Page hero ---------- */

.page-hero {
  padding: clamp(3.5rem, 9vw, 5.5rem) 0;
  background:
    linear-gradient(135deg, rgba(11, 116, 255, 0.08), rgba(6, 182, 212, 0.08)),
    var(--color-soft);
  border-bottom: 1px solid var(--color-line);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(1.9rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.breadcrumb {
  margin-bottom: 1rem;
  color: var(--color-blue);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Pricing panel ---------- */

.price-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.price-tag {
  color: var(--color-navy);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  color: var(--color-navy);
  font-weight: 900;
  font-size: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: var(--color-soft-2);
  outline: none;
}

.faq-question::after {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--color-blue);
  text-align: center;
  font-size: 1.2rem;
  line-height: 22px;
  content: "+";
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 1.15rem 1.15rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

/* ---------- Forms ---------- */

.form-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.38rem;
}

.form-field label {
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 0.85rem;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(11, 116, 255, 0.12);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fff1f1;
}

.field-error {
  min-height: 1rem;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.5;
}

.form-success.is-visible {
  display: block;
  animation: fadeIn 260ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Contact list ---------- */

.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-list a {
  color: var(--color-blue);
  font-weight: 800;
}

/* ---------- Policy / legal pages ---------- */

.policy-content {
  max-width: 880px;
}

.policy-content h2 {
  margin: 2rem 0 0.65rem;
  color: var(--color-navy);
  font-size: 1.35rem;
}

.policy-content p,
.policy-content li {
  color: var(--color-muted);
}

.policy-content ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-left: 1.1rem;
}

.policy-content li {
  list-style: disc;
}

.cta-band {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 2.4rem);
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(11, 116, 255, 0.06)),
    var(--color-navy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.cta-band p {
  color: #d7e3f1;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--space-6) 0 var(--space-4);
  color: #d7e3f1;
  background: #06142f;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
  max-width: 340px;
}

.footer-brand /* ---------- Brand ---------- */

.brand {
  color: var(--color-white);
}

.footer-brand p,
.footer-column p,
.footer-bottom {
  color: #aebbd0;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 0.85rem;
  color: var(--color-white);
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-block;
  color: #c6d2e4;
  font-size: 0.94rem;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-white);
  transform: translateX(2px);
  outline: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 820px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-link {
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
  }

  .nav-list .btn {
    width: auto;
    margin-top: 0;
    margin-left: 0.35rem;
  }

  .trust-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .split.reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    padding-inline: 0.8rem;
  }
}

@media (max-width: 700px) {
  .home-hero {
    background-image:
      linear-gradient(90deg, rgba(7, 26, 61, 0.96) 0%, rgba(7, 26, 61, 0.86) 100%),
      url("../images/docorbit-cloud-platform.png");
    background-position: 70% center;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------------
   Utilities — Badges, alerts, loading states
   ------------------------------------------------------------------ */

.form-success.is-error {
  color: var(--color-error, #d32f2f);
  background: #fef0f0;
  border: 1px solid #f5c6cb;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  vertical-align: -0.125em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: border-spin 0.5s linear infinite;
}

@keyframes border-spin {
  to {
    transform: rotate(360deg);
  }
}
