/* DKI Restotech — public site styles.
   Tokens match the source site (Montserrat/Roboto, teal/navy/red).
   Swap the variables to re-skin the whole site. */

:root {
  --brand-teal: #113d3c;     /* headings / primary dark (from source h1) */
  --brand-navy: #0a1a3a;     /* dark section + footer backgrounds */
  --brand-navy-2: #0b2341;
  --brand-red: #dc3545;      /* CTA buttons */
  --brand-red-dark: #b52d3a;
  --brand-orange: #eb5e28;   /* accent */
  --ink: #1f2937;
  --muted: #5b6470;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --radius: 6px;
  --container: 1200px;
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--brand-teal); margin-top: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .3px; font-size: .95rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--brand-teal); }

/* --- Top bar --- */
.topbar { background: var(--brand-navy); color: #fff; font-size: 0.9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 20px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .phone { font-weight: 700; font-size: 1.05rem; }

/* --- Header / nav --- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 52px; width: auto; display: block; }
.footer-logo { background: #fff; border-radius: 6px; padding: 10px 12px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 40px; width: auto; display: block; }

.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav > .nav-item { position: relative; }
.main-nav > .nav-item > a {
  color: var(--brand-teal); font-weight: 600; font-family: var(--font-head);
  padding: 10px 0; display: inline-flex; align-items: center; gap: 4px;
  font-size: .95rem; white-space: nowrap;
}
.main-nav .caret { font-size: .7rem; }
.main-nav .submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 8px; display: none; z-index: 60;
}
.main-nav .nav-item.has-sub:hover .submenu { display: block; }
.main-nav .submenu a { display: block; padding: 9px 12px; color: var(--ink); border-radius: 4px; font-size: .92rem; white-space: nowrap; }
.main-nav .submenu a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-cta-mobile { display: none; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none; flex: 0 0 auto; width: 44px; height: 40px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--brand-teal); margin: 4px 0; transition: .25s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative; color: #fff; padding: 90px 0;
  background: linear-gradient(rgba(10,26,58,.78), rgba(10,26,58,.72)),
    url("/static/hero.675b82485e53.jpg") center/cover no-repeat;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 16px; max-width: 900px; }
.hero p { font-size: 1.2rem; max-width: 660px; opacity: .96; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .phone-cta { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; }

/* --- Trust badges --- */
.trust-row { background: var(--brand-teal); }
.trust-row .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; padding: 16px 20px; }
.trust-row .badge { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; font-size: 0.95rem; font-family: var(--font-head); }
.trust-row .badge::before { content: "✓"; color: var(--brand-orange); font-weight: 800; }

/* --- Sections --- */
section.block { padding: 60px 0; }
section.block.alt { background: var(--bg-soft); }
section.block.dark { background: var(--brand-navy); color: #fff; }
section.block.dark h2, section.block.dark h3 { color: #fff; }
.section-title { text-align: center; margin: 0 0 8px; font-size: 2.1rem; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 38px; max-width: 660px; }
section.block.dark .section-sub { color: #cdd8e4; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.09); transform: translateY(-3px); }
.card h3 { margin-top: 0; color: var(--brand-teal); }
.card a.more { font-weight: 700; font-family: var(--font-head); color: var(--brand-red); }
.icon-card { text-align: center; }
.icon-card .ico { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--brand-red); }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.prose ul { padding-left: 1.2em; }

.breadcrumbs { font-size: 0.9rem; color: var(--muted); padding: 16px 0; }
.breadcrumbs a { color: var(--muted); }

/* --- FAQ --- */
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--brand-teal); }

/* --- Testimonials --- */
.testimonial { background: #fff; border-radius: var(--radius); padding: 24px; color: var(--ink); }
.testimonial .stars { color: var(--brand-orange); font-size: 1.1rem; }
.testimonial .who { font-weight: 700; font-family: var(--font-head); color: var(--brand-teal); margin-top: 10px; }

/* --- CTA band --- */
.cta-band { background: var(--brand-red); color: #fff; text-align: center; padding: 52px 0; }
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band .phone { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; }
.cta-band a { color: #fff; }

/* --- Footer --- */
.site-footer { background: var(--brand-navy); color: #cdd8e4; padding: 52px 0 24px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-family: var(--font-head); }
.site-footer a { color: #cdd8e4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--brand-navy-2); margin-top: 32px; padding-top: 16px; font-size: 0.85rem; text-align: center; }

/* --- Lead form --- */
.lead-form label { display: block; margin-bottom: 14px; font-weight: 600; font-family: var(--font-head); color: var(--brand-teal); font-size: .92rem; }
.lead-form input, .lead-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--brand-red); border-color: var(--brand-red); }
.lead-form .err { color: var(--brand-red); font-size: .85rem; }
.lead-form button { margin-top: 6px; }

/* --- Sticky mobile call button --- */
.sticky-call { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; background: var(--brand-red); color: #fff; text-align: center; padding: 14px; font-weight: 700; font-family: var(--font-head); }
.sticky-call a { color: #fff; }

/* --- Blog: contained images (never cropped) + AI byline --- */
.hero--blog { padding: 56px 0; background: var(--brand-navy); }
/* Featured image on a post: whole image visible, letterboxed on a neutral frame. */
.post-figure {
  margin: 0 0 24px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px; text-align: center;
}
.post-figure img {
  width: 100%; max-height: 460px; object-fit: contain; border-radius: 4px; margin: 0;
}
/* Index card thumbnail: fixed frame, full image contained (not cropped). */
.card-thumb { display: block; height: 190px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.card-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.ai-note {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.ai-note a { font-weight: 600; }

/* Responsive split layouts (stack on mobile). Replace inline 2-col grids. */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* --- Tablet --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile nav + layout (<= 980px) --- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-header .container { flex-wrap: wrap; gap: 12px; }

  .main-nav {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 14px 28px rgba(0,0,0,.12);
    padding: 6px 0; max-height: 80vh; overflow-y: auto;
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav > .nav-item { width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav > .nav-item > a { justify-content: space-between; padding: 14px 20px; font-size: 1rem; }
  .main-nav .caret { transition: transform .2s; }
  .main-nav > .nav-item.open .caret { transform: rotate(180deg); }
  .main-nav .submenu {
    position: static; display: none; box-shadow: none; border: 0; max-height: none;
    border-radius: 0; padding: 0 0 8px 14px; min-width: 0;
  }
  .main-nav .nav-item.open .submenu { display: block; }
  .main-nav .submenu a { padding: 11px 16px; }
  .nav-cta-mobile { display: block; margin: 12px 20px; text-align: center; }
}

/* --- Phone (<= 760px) --- */
@media (max-width: 760px) {
  .grid-3, .grid-2, .footer-grid, .split, .split-even { grid-template-columns: 1fr; }
  .sticky-call { display: block; }
  body { padding-bottom: 56px; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero p { font-size: 1.05rem; }
  section.block { padding: 40px 0; }
  .section-title { font-size: 1.6rem; }
  .topbar .container { justify-content: center; gap: 8px; font-size: .82rem; }
  .trust-row .container { gap: 14px 20px; }
  .cta-band .phone { font-size: 1.6rem; }
  .container { padding: 0 16px; }
  /* tighten the detail sidebar when stacked */
  .split aside { width: 100%; }
}

/* --- Small phone (<= 480px) --- */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
  .btn { padding: 11px 16px; font-size: .88rem; }
}
