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

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: #f2f4f7;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1c1f23;

    display: flex;
    flex-direction: column;
}

/* ------------------------------
   Structural Typography
   (Oxanium for headings + structural markers like ordered-list numbers)
------------------------------ */

.structural,
h1, h2, h3, h4, h5, h6,
ol > li::before {
    font-family: 'Oxanium', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------
   Main Content (Centered)
------------------------------ */

main.centered {
    flex: 1; /* pushes footer to bottom */
    display: flex;
    align-items: center;   /* center main-inner vertically */
    justify-content: center;
    padding: 20px;
}

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

/* ------------------------------
   Typography: Headings (H1–H4)
------------------------------ */

h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem 0;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 2rem 0 0.75rem 0;
  color: #333;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 650;
  margin: 1.25rem 0 0.5rem 0;
  color: #3b3f45;
}

h4 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 650;
  margin: 1.1rem 0 0.35rem 0;
  color: #444;
}

/* When headings appear inside service blocks, keep spacing consistent */
.service-block h2 { margin-top: 0; }
.service-block h3 { margin-top: 1.25rem; }
.service-block h4 { margin-top: 1.1rem; }

/* Optional: tighten headings if they follow each other (reduces “double gaps”) */
h2 + h3,
h3 + h4 {
  margin-top: 0.75rem;
}

/* Optional: reduce top spacing for the first heading inside summary/fine-print sections */
.services-summary h2:first-child,
.services-fine-print h2:first-child {
  margin-top: 0;
}

/* Make long headings wrap more nicely */
h1, h2, h3, h4 {
  text-wrap: balance;
}

/* Mobile tuning */
@media (max-width: 600px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  h4 { font-size: 0.98rem; }
}

.tagline {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    font-size: 1rem;
    color: #1c1f23;
}

/* ------------------------------
   Navigation (inside main)
------------------------------ */

nav.below-main {
    margin-top: 2rem;  /* space from main text */
    text-align: center;
    font-size: 0.95rem;
}

nav.below-main a {
    margin: 0 8px;
    color: #3b63f6;
    text-decoration: none;
    font-weight: 500;
}

nav.below-main a:hover {
    text-decoration: underline;
}

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

footer {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    padding: 20px 0;
}

footer .contact-email a {
    color: #1c1f23;
    font-weight: 500;
    text-decoration: underline;
}

footer .contact-email a:hover {
    opacity: 0.8;
}

footer .copyright {
    color: #777;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ------------------------------
   Services Content Column
------------------------------ */

.services-summary, .team-section {
    max-width: 700px;
    margin: 2rem auto 2.5rem auto;
    padding: 0 1.5rem;
    text-align: left;
    line-height: 1.6;
}

.services-summary h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.services-summary p {
    margin-bottom: 1rem;
}

/* ------------------------------
   Fine print / detailed terms
------------------------------ */

.services-fine-print {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    padding: 2rem 1.5rem 0 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #555;
    text-align: left;
    line-height: 1.55;
}

.fine-print-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 1.5rem;
}

/* Section blocks within fine print */
.service-block {
    max-width: 700px;
    margin: 0 auto 2.25rem auto;
}

.service-divider {
    height: 1px;
    background: #e0e0e0;
    max-width: 680px;
    margin: 2rem auto;
}

.service-block h2 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.service-block h3 {
    font-size: 1rem;
    margin-top: 1.1rem;
    margin-bottom: 0.3rem;
    color: #444;
}

.service-block p,
.service-block ul {
    margin-bottom: 0.9rem;
}

.service-block ul {
    padding-left: 1.25rem;
}

.service-block li {
    margin-bottom: 0.35rem;
}

.team-photo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    object-fit: cover;
}

.team-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 1.5rem;
}

/* ----------------------------------
   Stealth / Teaser Link
---------------------------------- */

nav.below-main a.stealth-link,
nav.below-main a.stealth-link:visited {
  color: #f2f4f7;              /* invisible */
  text-decoration: none;
}

nav.below-main a.stealth-link:hover,
nav.below-main a.stealth-link:focus-visible {
  color: #3b63f6;              /* reveal */
  text-decoration: underline;
}

/* ----------------------------------
   Global Ordered Lists
---------------------------------- */

ol {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

ol > li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 0.9rem;
  align-items: start;
  margin: 1.35rem 0;

  /* Title scale for the list item (numbers + h2). Body text is reset below. */
  font-size: 1.4rem;
  line-height: 1.25;
}

ol > li::before {
  content: counter(item) ".";
  font-weight: 700;
  font-size: 1em;       /* inherits from li */
  line-height: inherit; /* inherits from li */
  color: #333;
  text-align: right;
  padding-top: 0;
}

/* Ensure all li children (h2, p, etc.) stay in the text column */
ol > li > * {
  grid-column: 2;
}

ol > li > h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1em;       /* match li scale */
  line-height: inherit; /* match li rhythm */
}

ol > li > p {
  margin: 0;
  font-size: 1rem;      /* reset to body size */
  line-height: 1.6;     /* reset to body rhythm */
}