/* ==========================================================================
   IT Home Help — main stylesheet
   Design goals: calm, high-contrast, large text, generous tap targets.
   All sizes use rem so the text-size control works site-wide.
   ========================================================================== */

:root {
  --ink: #263043;          /* body text */
  --ink-soft: #51607a;     /* secondary text */
  --navy: #2d3f6d;         /* primary brand */
  --navy-dark: #1f2b4a;    /* footer */
  --orange: #e27153;       /* CTA */
  --orange-dark: #c6573c;  /* CTA hover / large-text accent */
  --teal: #17808f;         /* teal accent (text-safe contrast) */
  --teal-bright: #32cec3;  /* decorative teal */
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --line: #dde4ef;
  --card-shadow: 0 1px 2px rgba(38, 48, 67, 0.06), 0 4px 14px rgba(38, 48, 67, 0.08);
  --radius: 12px;
  --focus: #b45309;
  --maxw: 72rem;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px base; text-size control adjusts this */
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;      /* 18px — comfortable for older readers */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--navy-dark);
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

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

a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-dark); color: #eef2fa; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #d8e0ef; }

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

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;           /* 48px tap target */
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; }

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

.btn-light {
  background: #fff;
  color: var(--navy-dark);
}
.btn-light:hover { background: var(--bg-soft); color: var(--navy-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 6px;
}

.brand:hover { color: var(--navy); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  min-height: 2.75rem;
  line-height: 1.7;
}

.main-nav a:hover { background: var(--bg-soft); color: var(--navy-dark); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.55rem 1.2rem;
  background: var(--orange);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

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

/* Text-size control */
.text-size {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}

.text-size button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink-soft);
  border-radius: 999px;
  min-width: 2.4rem;
  min-height: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.text-size button[data-size="a"]  { font-size: 0.9rem; }
.text-size button[data-size="ap"] { font-size: 1.05rem; }
.text-size button[data-size="app"]{ font-size: 1.2rem; }

.text-size button:hover { color: var(--navy-dark); }
.text-size button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle .bars {
  position: relative;
  width: 1.3rem;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.3rem;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
}

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

@media (max-width: 60em) {
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .text-size { display: none; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(38, 48, 67, 0.12);
    display: none;
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .main-nav a {
    display: block;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    font-size: 1.15rem;
    border-radius: 10px;
  }

  .main-nav .nav-call {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
  }

  .main-nav .nav-call:hover { background: var(--orange-dark); }
}

/* Sticky call bar (mobile) */
.call-bar {
  display: none;
}

@media (max-width: 60em) {
  .call-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(38, 48, 67, 0.10);
  }

  .call-bar .btn { min-height: 3.25rem; font-size: 1.05rem; }
  body { padding-bottom: 6.5rem; }
}

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

.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 4rem 0 4.5rem;
}

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

.hero h1 { margin-bottom: 1rem; }

.hero-lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-figure { margin: 0; }

.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
  background: #fff;
}

@media (max-width: 48em) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 2.75rem; }
  .hero-figure { order: -1; max-width: 26rem; }
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
}

.trust-strip .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--teal-bright);
  flex: none;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 48em) {
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
}

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

.card .card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.card .card-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--teal);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
}

.card .card-link:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

@media (max-width: 48em) { .steps { grid-template-columns: 1fr; } }

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

.step .step-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- Feature list (why us) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2.5rem;
}

@media (max-width: 48em) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.feature .tick {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(50, 206, 195, 0.18);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
  margin-top: 0.15rem;
}

.feature h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 48em) { .gallery { grid-template-columns: 1fr; } }

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery .portrait { aspect-ratio: 2 / 3; }

.gallery figcaption {
  padding: 1rem 1.1rem 1.2rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- Areas ---------- */

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.area-chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--card-shadow);
}

/* ---------- Testimonials ---------- */

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

.testimonial .stars {
  color: #b45309;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.testimonial cite {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 600;
}

.testimonials-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.faq { max-width: 46rem; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
  flex: none;
}

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

.faq .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

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

.cta-band .phone-big {
  display: inline-block;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin: 1rem 0 1.75rem;
}

.cta-band .phone-big:hover { color: var(--teal-bright); }

.cta-band p { color: #d8e0ef; max-width: 36rem; margin-inline: auto; }

/* ---------- Contact / forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 48em) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: 1rem; }

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.25rem;
}

.contact-card .card-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: none;
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card a { font-weight: 700; font-size: 1.1rem; }

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

.form-field { margin-bottom: 1.25rem; }

.form-field label {
  display: block;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
}

.form-field textarea { min-height: 8rem; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(45, 63, 109, 0.18);
}

.form-field .hint {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.25rem 0 1.5rem;
}

.consent input {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.2rem;
  accent-color: var(--navy);
  flex: none;
}

.consent label { font-weight: 400; color: var(--ink-soft); font-size: 1rem; }

.form-status {
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.form-status.success {
  background: rgba(50, 206, 195, 0.15);
  border: 1px solid var(--teal-bright);
  color: var(--navy-dark);
}

.form-status.error {
  background: rgba(226, 113, 83, 0.12);
  border: 1px solid var(--orange);
  color: var(--navy-dark);
}

/* Page intro (subpages) */
.page-intro {
  background: var(--bg-soft);
  padding: 3.25rem 0;
}

.page-intro .breadcrumb {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.page-intro h1 { max-width: 48rem; }
.page-intro .lede {
  max-width: 44rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* Service list */
.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.service-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.4rem;
}

.service-list h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.service-list p { margin: 0; color: var(--ink-soft); }

/* Area blocks */
.area-block {
  border-left: 4px solid var(--teal-bright);
  background: #fff;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
}

.area-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.area-block .local-names {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

.site-footer {
  background: var(--navy-dark);
  color: #cdd7ea;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

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

@media (max-width: 48em) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }

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

.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: var(--teal-bright); }

.site-footer .phone-big {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #9fb0cf;
}

.footer-bottom a { color: #9fb0cf; }
.footer-bottom a:hover { color: #fff; }
