/* ==========================================================================
   On Duty IT — shared stylesheet
   Plain CSS, no frameworks. Mobile-first. Senior-friendly: big type,
   high contrast, large tap targets, obvious focus states.
   ========================================================================== */

:root {
  /* Brand colors */
  --blue: #1B4F8A;        /* primary deep blue */
  --blue-dark: #153E6C;   /* hover / headings */
  --navy: #102A43;        /* footer background */
  --amber: #F0A020;       /* warm accent (buttons) */
  --amber-dark: #D88A0A;  /* accent hover */
  --amber-ink: #2A1E00;   /* dark text on amber */

  /* Neutrals */
  --ink: #1E2A36;         /* main text — near black */
  --ink-soft: #3E5065;    /* secondary text — still WCAG AA on white */
  --bg: #FFFFFF;
  --bg-tint: #EDF4FA;     /* very light blue section background */
  --line: #C7D5E2;        /* borders */

  --radius: 14px;
  --maxw: 1080px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html {
  font-size: 19px;              /* big base size for readability */
  scroll-behavior: smooth;
}

@media (min-width: 900px) {
  html { font-size: 20px; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  color: var(--blue-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw + 1rem, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.5vw + 0.9rem, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { color: var(--blue-dark); }

/* Obvious keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding-block: 48px; }

@media (min-width: 760px) {
  section { padding-block: 64px; }
}

.section-tint { background: var(--bg-tint); }

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42em;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-dark);
  color: #fff;
  padding: 14px 22px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  outline: 4px solid var(--amber);
  outline-offset: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;               /* big tap target */
  padding: 14px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3;
  border-radius: 12px;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn svg { flex: none; }

.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--amber-ink);
}

.btn-secondary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--bg-tint);
  color: var(--blue-dark);
}

/* White-on-blue variants for the dark call-to-action band */
.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-white-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.btn-big {
  font-size: 1.2rem;
  min-height: 64px;
  padding: 18px 38px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.08);
}

.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.logo img { height: 44px; width: auto; }

/* Nav: on small screens it drops to its own full-width row (no menus to
   open, nothing hidden — dead simple). On wide screens it sits inline. */
.site-nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  text-decoration: none;
  border-radius: 10px;
  border-bottom: 4px solid transparent;
}

.site-nav a:hover {
  color: var(--blue-dark);
  background: var(--bg-tint);
}

.site-nav a[aria-current="page"] {
  color: var(--blue-dark);
  border-bottom-color: var(--amber);
}

.header-cta { margin-left: auto; }

.header-cta .btn {
  min-height: 56px;
  padding: 12px 22px;
  font-size: 1rem;
}

@media (min-width: 860px) {
  .header-inner { padding: 12px 20px; }
  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
    border-top: none;
    padding-top: 0;
    gap: 6px;
  }
  .header-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, #E4EFF9 0%, #FFFFFF 100%);
  padding-block: 56px;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-art { display: none; }

@media (min-width: 860px) {
  .hero { padding-block: 80px; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; }
  .hero-art { display: block; text-align: center; }
}

.hero h1 { margin-bottom: 0.4em; }

.hero .lead { font-size: 1.25rem; margin-bottom: 1.4em; }

.hero-note {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.hero-note a { font-weight: 700; }

/* ---------- "How it works" steps ---------- */

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

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.step-number {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon { color: var(--amber-dark); }

.step h3 { margin-bottom: 0.4em; }

.step p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Cards (services) ---------- */

.cards {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card-icon {
  color: var(--blue);
  margin-bottom: 12px;
}

.card h3 { margin-bottom: 0.35em; }

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

/* Full service entries on services.html */
.service {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 22px;
}

.service-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.service-head svg { flex: none; color: var(--blue); }

.service-head h3 { margin: 0; font-size: 1.35rem; }

.service p { color: var(--ink); }

.service .examples {
  margin: 0;
  padding-left: 1.3em;
  color: var(--ink-soft);
}

.service .examples li { margin-bottom: 6px; }

/* ---------- Trust / checklist ---------- */

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

@media (min-width: 760px) {
  .check-list.two-col { grid-template-columns: 1fr 1fr; }
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.08rem;
}

.check-list .check {
  flex: none;
  margin-top: 2px;
  color: var(--blue);
}

.check-list strong { color: var(--blue-dark); }

/* ---------- Phone fallback / call box ---------- */

.call-box {
  background: var(--bg-tint);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.call-box h2, .call-box h3 { margin-bottom: 0.3em; }

.call-box p { color: var(--ink-soft); }

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
}

.phone-link:hover { color: var(--blue-dark); background: #fff; }

.phone-link svg { flex: none; }

/* ---------- Call-to-action band ---------- */

.cta-band {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding-block: 56px;
}

.cta-band h2 { color: #fff; }

.cta-band p { color: #E2EDF8; font-size: 1.15rem; max-width: 38em; margin-inline: auto; }

.cta-band a:not(.btn) { color: #fff; }

.cta-band a:focus-visible,
.cta-band .btn:focus-visible { outline-color: #fff; }

/* ---------- Booking page ---------- */

.booking-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: none;
  background: #fff;
  border-radius: 12px;
}

.booking-wrap {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.booking-tips {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}

.booking-tips li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.08rem;
}

.booking-tips svg { flex: none; margin-top: 2px; color: var(--blue); }

/* ---------- Info blocks (about / contact) ---------- */

.info-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) { .info-grid { grid-template-columns: 1fr 1fr; } }

.info-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.info-card h2, .info-card h3 { margin-bottom: 0.4em; }

.info-card .big-line {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-list li {
  background: var(--bg-tint);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.02rem;
}

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

.site-footer {
  background: var(--navy);
  color: #D9E6F2;
  padding-top: 48px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand img { height: 48px; width: auto; margin-bottom: 14px; }

.footer-brand p { color: #B9CCDE; max-width: 26em; }

.footer-heading {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.site-footer a:focus-visible { outline-color: var(--amber); }

.footer-list { list-style: none; padding: 0; margin: 0; }

.footer-list li { margin-bottom: 12px; }

.footer-list .label {
  display: block;
  font-size: 0.9rem;
  color: #B9CCDE;
}

.footer-bottom {
  border-top: 1px solid #24466B;
  padding-block: 22px;
  text-align: center;
  font-size: 0.95rem;
  color: #B9CCDE;
}

.footer-bottom p { margin: 0 0 6px; }

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  background: linear-gradient(180deg, #E4EFF9 0%, #FFFFFF 100%);
  padding-block: 44px 36px;
}

.page-intro h1 { margin-bottom: 0.3em; }

.page-intro .lead { margin-bottom: 0; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-large { margin-top: 36px; }

/* Respect users who turn off animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---- Visit-length chooser (book.html) ---- */
.visit-choice { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.visit-choice-label { font-size: 1.15rem; margin: 0 0 14px; }
.visit-choice-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.visit-btn { min-height: 76px; min-width: 260px; font-size: 1.2rem; line-height: 1.3; padding: 14px 22px; }
.visit-btn-sub { display: block; font-size: 0.95rem; font-weight: 400; margin-top: 4px; }
.mt-small { margin-top: 18px; }
@media (max-width: 620px) { .visit-btn { width: 100%; } }

/* ---- Pricing table (services.html) ---- */
.pricing-box { max-width: 860px; margin: 0 auto; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.pricing-table caption { text-align: left; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 10px; }
.pricing-table th, .pricing-table td { text-align: left; padding: 14px 12px; border-bottom: 2px solid #E3E9F0; }
.pricing-table td:last-child, .pricing-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.pricing-note { font-size: 1.05rem; color: var(--ink-soft); margin-top: 14px; }
