/* ==========================================================================
   ECR Web Hosting & Design — site stylesheet
   Modernized rebuild of the yourpagehost.com classic (est. 1994).
   Palette derived from the original 2000-era brand: navy #0000A0,
   warm accent #D86129 and the cream content panels (#FFFFC0).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-deep: #0d1b3d;
  --navy: #14307a;
  --navy-soft: #1d41a8;
  --accent: #d86129;
  --accent-deep: #b34a1b;
  --cream: #fff6e0;
  --cream-soft: #fdf9ef;
  --ink: #1b2333;
  --muted: #5a6475;
  --line: #e4e7ef;
  --ok: #157347;
  --white: #ffffff;
  --bg: #f6f7fb;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
    "Liberation Mono", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(13, 27, 61, 0.06), 0 10px 30px rgba(13, 27, 61, 0.08);
  --shadow-lift: 0 2px 4px rgba(13, 27, 61, 0.08), 0 16px 44px rgba(13, 27, 61, 0.14);
  --container: 1080px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.9rem);
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2rem);
}

h3 {
  font-size: 1.17rem;
}

p {
  margin: 0 0 1em;
  overflow-wrap: break-word;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

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

::selection {
  background: var(--navy-soft);
  color: var(--white);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

main {
  display: block;
}

.section {
  padding: clamp(2.6rem, 2rem + 3vw, 4.4rem) 0;
}

.section--tight {
  padding: clamp(1.8rem, 1.4rem + 2vw, 2.8rem) 0;
}

.section--cream {
  background: var(--cream-soft);
  border-block: 1px solid var(--line);
}

.section--navy {
  background: var(--navy-deep);
  color: #dfe6f5;
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 62ch;
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(13, 27, 61, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__name span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.72rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a:hover {
  background: var(--cream);
  color: var(--navy-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--navy-deep);
  color: var(--white);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--navy-deep);
  box-shadow: 0 -5px 0 var(--navy-deep), 0 5px 0 var(--navy-deep);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }

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

  .site-nav ul {
    flex-direction: column;
    padding: 0.6rem 22px 1rem;
  }

  .site-nav a {
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 58%, #1a3a96 100%);
  color: #e8edf8;
  padding: clamp(3rem, 2rem + 5vw, 5.4rem) 0;
}

.hero h1 {
  color: var(--white);
}

.hero .lede {
  color: #c3cdea;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 2vw, 3.2rem);
  align-items: center;
}

.hero__figure {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lift);
}

.hero__figure img {
  border-radius: calc(var(--radius) - 6px);
  background: var(--navy-deep);
}

.hero__figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #aab8dd;
  text-align: center;
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(216, 97, 41, 0.32);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button--navy {
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(13, 27, 61, 0.28);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(1.8rem, 1rem + 3vw, 3rem);
}

.stats > div {
  background: rgba(13, 27, 61, 0.55);
  padding: 1rem 0.8rem;
  text-align: center;
}

.stats strong {
  display: block;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 800;
  color: var(--white);
}

.stats span {
  font-size: 0.8rem;
  color: #b9c6e6;
  font-weight: 600;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.15rem;
}

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

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

@media (max-width: 880px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card h3 {
  margin-bottom: 0.2rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.card__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--accent-deep);
}

.card__link:hover {
  text-decoration: underline;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--accent-deep);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  border: 1px solid #f0e2c2;
}

/* ---------- Feature list ---------- */
.checklist {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.checklist li {
  padding-left: 1.7rem;
  position: relative;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2f0e9;
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.2rem 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

th,
td {
  padding: 0.72rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #f8f9fc;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody th[scope="row"] {
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--white);
}

.price {
  font-weight: 800;
  color: var(--accent-deep);
  white-space: nowrap;
}

/* ---------- Callout / note ---------- */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin: 1.2rem 0;
}

.callout strong {
  color: var(--accent-deep);
}

.note {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 1.05rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #e8edf8;
  padding: clamp(2rem, 1.4rem + 3vw, 3.4rem) 0;
}

.page-head h1 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.page-head .lede {
  color: #c3cdea;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 0.7rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Client list ---------- */
.client-columns {
  columns: 3;
  column-gap: 2rem;
  font-size: 0.93rem;
}

.client-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-columns li {
  break-inside: avoid;
  padding: 0.32rem 0;
  border-bottom: 1px dashed #e8e2d4;
}

@media (max-width: 880px) {
  .client-columns {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .client-columns {
    columns: 1;
  }
}

/* ---------- Contact panel ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

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

/* ---------- Archive samples (heritage pages) ---------- */
.sample-note {
  border: 1px dashed var(--accent);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

/* ---------- Recommended resources ---------- */
.resource-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: clamp(1.4rem, 1rem + 1.5vw, 2.4rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.resource-featured__badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--cream);
  border: 1px solid #f0e2c2;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.resource-featured__title {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  margin-bottom: 0.55rem;
}
.resource-featured__title a {
  color: var(--navy-deep);
  text-decoration: none;
}
.resource-featured__title a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}
.resource-featured figure {
  margin: 0;
}
.resource-featured figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 880px) {
  .resource-featured {
    grid-template-columns: 1fr;
  }
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.8rem;
}
.resource-card {
  margin-bottom: 0;
}
.resource-card__title {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}
.resource-card__title a {
  color: var(--navy-deep);
  text-decoration: none;
  line-height: 1.3;
}
.resource-card__title a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}
.resource-card .note {
  margin-bottom: 0.8rem;
}
@media (max-width: 880px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c2cbe3;
  font-size: 0.92rem;
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem) 0 2rem;
}

@media (max-width: 920px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

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

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

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

.site-footer .brand__name span {
  color: #93a3cb;
}

.site-footer__about {
  font-size: 0.88rem;
  color: #93a3cb;
  margin-top: 0.9rem;
  max-width: 34ch;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8a9ac2;
}

/* ---------- Utility ---------- */
.muted {
  color: var(--muted);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.center {
  text-align: center;
}

/* ---------- Redirect / moved pages ---------- */
.moved-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem 1rem;
}

.moved-page h1 {
  font-size: 1.4rem;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}