/* ==========================================================================
   Miracan LLC - Corporate theme
   Single stylesheet. No build step, no framework.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --navy-900: #0a1a2f;
  --navy-800: #0f2947;
  --navy-700: #163a63;
  --navy-600: #1d4c80;
  --accent:   #e2a13b;
  --accent-dark: #c4841f;

  --text:     #1b2733;
  --text-mid: #4a5a6b;
  --muted:    #64748b;
  --border:   #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f6f8fb;

  --success:  #17916b;

  --container: 1180px;
  --radius:    6px;
  --shadow-sm: 0 1px 3px rgba(15, 41, 71, .08);
  --shadow-md: 0 4px 16px rgba(15, 41, 71, .10);
  --shadow-lg: 0 14px 40px rgba(15, 41, 71, .14);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Barlow", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding: 84px 0; }
.section--tight { padding: 58px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-800); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: #fff; }

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

.text-center { text-align: center; }

/* Section heading block */
.section-head { max-width: 740px; margin-bottom: 52px; }
.section-head.text-center { margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--accent); }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: .01em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--navy-900); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--navy { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--border); }
.btn--outline:hover { border-color: var(--navy-700); color: var(--navy-800); }
.btn--block { width: 100%; justify-content: center; }

/* --- Top bar ------------------------------------------------------------ */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: .86rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.topbar a { color: rgba(255,255,255,.72); }
.topbar a:hover { color: var(--accent); }
.topbar-info { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .5em; }
.topbar-note { color: rgba(255,255,255,.55); }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--navy-800);
  letter-spacing: -.02em;
}
.brand-tag {
  display: block;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .97rem;
  color: var(--navy-800);
  padding: 8px 0;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav-list a:hover::after,
.nav-list a.is-active::after { width: 100%; }
.nav-list a.is-active { color: var(--navy-600); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-800);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(226,161,59,.16), transparent 62%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255,255,255,.80);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 62px 62px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  padding: 96px 0 100px;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero-lead { font-size: 1.16rem; max-width: 40em; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: .65em;
  font-size: .98rem;
  margin: 0;
}
.hero-points svg { flex-shrink: 0; margin-top: .35em; color: var(--accent); }

/* Hero side card */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.hero-metric { display: flex; align-items: baseline; gap: .5em; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-metric:last-of-type { border-bottom: 0; }
.hero-metric b {
  font-family: var(--font-head);
  font-size: 1.85rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}
.hero-metric span { font-size: .93rem; }

/* --- Page banner (inner pages) ------------------------------------------ */
.page-banner {
  background:
    radial-gradient(800px 380px at 82% -20%, rgba(226,161,59,.15), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: rgba(255,255,255,.78);
  padding: 66px 0 58px;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: .35em; }
.page-banner p { max-width: 50em; margin-inline: auto; margin-bottom: 0; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .6em;
  list-style: none;
  padding: 0;
  margin: 1.4em 0 0;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--accent); }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd7e6; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: rgba(29,76,128,.09);
  color: var(--navy-600);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  margin-top: .8em;
}

/* Numbered process steps */
.step { position: relative; padding-top: 6px; }
.step-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(29,76,128,.16);
  line-height: 1;
  display: block;
  margin-bottom: .2em;
}
.section--navy .step-num { color: rgba(226,161,59,.4); }
.step h3 { margin-bottom: .4em; }

/* --- Stats strip -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 8px 10px; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat span { font-size: .95rem; }

/* --- Split (visual / text) ---------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}
.split-visual {
  position: relative;
  min-height: 380px;
  border-radius: 8px;
  background:
    radial-gradient(520px 300px at 20% 15%, rgba(226,161,59,.22), transparent 62%),
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 36px;
}
.split-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.split-badge {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.split-badge b {
  display: block;
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.split-badge span { font-size: .95rem; color: rgba(255,255,255,.75); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: .7em; }
.check-list li { display: flex; gap: .7em; align-items: flex-start; margin: 0; }
.check-list svg { flex-shrink: 0; margin-top: .35em; color: var(--success); }

/* --- Testimonials ------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
}
.quote p { font-size: 1.02rem; color: var(--text); font-style: italic; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}
.quote-name { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: .96rem; line-height: 1.3; }
.quote-role { font-size: .85rem; color: var(--muted); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(760px 340px at 15% 0%, rgba(226,161,59,.18), transparent 60%),
    linear-gradient(120deg, var(--navy-700), var(--navy-900));
  color: rgba(255,255,255,.82);
  padding: 62px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin-bottom: 0; max-width: 46em; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--navy-800);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-dark);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 20px 24px 6px; }
.faq-body p:last-child { margin-bottom: 1em; }

/* --- Forms -------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.field .req { color: #c0392b; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .98rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(29,76,128,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: .94rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #c0392b; }

/* Contact detail list */
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item .card-icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.contact-item h4 { margin-bottom: .2em; }
.contact-item p { margin-bottom: 0; font-size: .97rem; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.62);
  padding: 66px 0 0;
  font-size: .95rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
}
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-about .brand { margin-bottom: 18px; }
.footer-about .brand-name { color: #fff; }
.footer-about p { font-size: .94rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6em; }
.footer-contact li { display: flex; gap: .7em; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: .35em; color: var(--accent); }
.footer-bottom {
  margin-top: 54px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }

/* --- Long-form text (legal pages) --------------------------------------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose-meta {
  font-size: .9rem;
  color: var(--muted);
  padding-bottom: 1.6em;
  margin-bottom: 2.2em;
  border-bottom: 1px solid var(--border);
}

/* --- Utilities ---------------------------------------------------------- */
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.08rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 70px 0 76px; }
  .hero-card { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .topbar-note { display: none; }

  /* Keep the toggle above the drawer so it stays tappable as the close button. */
  .nav-toggle { display: block; position: relative; z-index: 59; background: #fff; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 84px 26px 32px;
    box-shadow: -8px 0 32px rgba(15,41,71,.16);
    transform: translateX(100%);
    transition: transform .26s ease;
    overflow-y: auto;
    z-index: 58;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a { display: block; padding: 15px 0; font-size: 1.04rem; }
  .nav-list a::after { display: none; }
  .nav .btn { margin-top: 24px; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,26,47,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s ease, visibility .26s ease;
    z-index: 57;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .split-visual { min-height: 260px; order: -1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .topbar-info { gap: 14px; font-size: .8rem; }
  .brand-tag { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Keep the logo on one line on very narrow phones. */
@media (max-width: 370px) {
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .nav-toggle { display: none; }
  body { color: #000; font-size: 12pt; }
}
