/* =============================================================
   RRPA Accounting & Tax — main.css
   Design tokens sampled from brand reference tiles:
   deep navy field, white services band, blue accents,
   thin Poppins display + condensed Oswald section headings.
   ============================================================= */

:root {
  /* Colour */
  --c-navy: #1a1f38;        /* primary field */
  --c-navy-deep: #12162b;   /* darker panels */
  --c-ink: #0d1122;         /* near-black edges */
  --c-slate: #464c63;       /* contact band */
  --c-white: #ffffff;
  --c-paper: #f4f5f8;       /* light sections */
  --c-muted: #9ba2b8;       /* list / body text on navy */
  --c-muted-dark: #5b6070;  /* body text on paper */
  --c-line: rgba(255, 255, 255, 0.14);
  --c-steel: #7fa8c9;       /* restrained accent (calculator blue) */
  --c-blue: #2d5f86;        /* readable blue on light backgrounds */
  --c-blue-soft: #e8f0f8;   /* pale blue ring / wash */
  --c-blue-line: #dbe4ee;   /* card borders on white */

  /* Type */
  --f-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-display: "Poppins", sans-serif;      /* thin, tracked-out display */
  --f-condensed: "Oswald", "Arial Narrow", sans-serif; /* brochure headings */

  --fs-hero: clamp(2.2rem, 5.2vw, 3.9rem);
  --fs-h2: clamp(1.7rem, 3.4vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.45rem);

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 7.5rem;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Misc */
  --header-h: 122px;        /* topbar + masthead — used for anchor offsets */
  --ring: 0 0 0 10px var(--c-white);
  --radius: 14px;
  --shadow-soft: 0 22px 60px rgba(6, 9, 24, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-muted);
  background-color: var(--c-navy);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--c-white);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

p { margin: 0 0 var(--space-2); }

a {
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}
a:hover { color: var(--c-steel); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-steel);
  outline-offset: 3px;
  border-radius: 3px;
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--c-white); color: var(--c-navy);
  clip: auto !important; clip-path: none;
  display: block; font-size: 0.9rem; font-weight: 600;
  height: auto; width: auto; left: 8px; top: 8px;
  padding: 12px 20px; z-index: 100000; border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Anchor targets clear the sticky header when jumped to */
#home, #services, #about, #contact { scroll-margin-top: var(--header-h); }

@media (max-width: 900px) {
  :root { --header-h: 108px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--c-white); color: var(--c-navy); }
.btn--solid:hover { background: var(--c-steel); color: var(--c-navy); }

.btn--ghost { border-color: var(--c-line); color: var(--c-white); background: transparent; }
.btn--ghost:hover { border-color: var(--c-white); color: var(--c-white); }

.btn--dark { background: var(--c-navy); color: var(--c-white); }
.btn--dark:hover { background: var(--c-ink); color: var(--c-white); }

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--c-navy);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(18, 22, 43, 0.96);
  box-shadow: 0 10px 30px rgba(5, 8, 20, 0.5);
}

/* Top strip — location line, mirrors tile top-right */
.topbar {
  border-bottom: 1px solid var(--c-line);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.75rem;
  padding: 0.55rem 0;
  color: var(--c-muted);
  text-transform: uppercase;
}
.topbar__item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--c-muted); }
.topbar__item svg { width: 15px; height: 15px; flex: none; }
a.topbar__item:hover { color: var(--c-white); }

/* Masthead row */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1.1rem 0;
  position: relative;
}

/* white notch on the left edge, as in the tiles */
.masthead::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gutter) - 2px);
  top: 0.4rem;
  width: 10px;
  height: 46px;
  background: var(--c-white);
}

.site-branding a { display: inline-flex; align-items: center; }
.site-branding img.custom-logo,
.site-branding img.fallback-logo { width: auto; height: 58px; }
.site-title {
  font-family: var(--f-condensed);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white);
  padding: 0.4rem 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after,
.main-nav .current-menu-item > a::after { transform: scaleX(1); }

/* current section, set by the scroll spy in main.js */
.main-nav a.is-active { color: var(--c-white); }

.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--c-navy-deep);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: var(--shadow-soft);
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
  border-radius: 7px;
}
.main-nav .sub-menu a::after { content: none; }
.main-nav .sub-menu a:hover { background: rgba(255, 255, 255, 0.06); }

.header-cta { flex: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  background: transparent;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .topbar__inner { justify-content: center; gap: 1rem; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-navy-deep);
    border-top: 1px solid var(--c-line);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
  }
  .main-nav a { display: block; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--c-line); }
  .main-nav a::after { content: none; }
  .main-nav .sub-menu {
    position: static;
    transform: none;
    display: block;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
  }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  background: var(--c-navy);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: min(66vh, 620px);
  padding: var(--space-5) 0 var(--space-6);
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-steel);
  margin-bottom: var(--space-2);
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 300;                 /* thin display, as in tiles */
  font-size: var(--fs-hero);
  letter-spacing: 0.045em;
  line-height: 1.22;
  margin-bottom: var(--space-3);
  max-width: 20ch;
}

.hero__text {
  max-width: 52ch;
  margin-bottom: var(--space-3);
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero__inner { padding: var(--space-4) 0 var(--space-6); }
}

/* =============================================================
   Section scaffolding
   ============================================================= */
.section { padding: var(--space-6) 0; }
.section--paper { background: var(--c-paper); color: var(--c-muted-dark); }
.section--paper h2, .section--paper h3 { color: var(--c-navy); }
.section--deep { background: var(--c-navy-deep); }

.section-head { max-width: 640px; margin: 0 auto var(--space-4); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.section-head__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-steel);
  display: block;
  margin-bottom: 0.75rem;
}

.section-head__title {
  font-family: var(--f-condensed);   /* condensed brochure headings */
  font-weight: 600;
  font-size: var(--fs-h2);
  text-transform: none;
  letter-spacing: 0.01em;
}

/* short centred rule, as under "Accounting Services" */
.section-head__rule {
  width: 120px;
  height: 2px;
  background: var(--c-white);
  border: 0;
  margin: 1.4rem auto 0;
}
.section--paper .section-head__rule { background: var(--c-navy); }
.section-head--left .section-head__rule { margin-inline: 0; }

/* =============================================================
   Services
   ============================================================= */
/* --- Services on white: everything that was white becomes blue/navy --- */
.section--white { background: var(--c-white); color: var(--c-muted-dark); }
.section--white .section-head__title { color: var(--c-navy); }
.section--white .section-head__kicker { color: var(--c-blue); }
.section--white .section-head__rule { background: var(--c-blue); }

.section--white .service-card {
  background: var(--c-white);
  border: 1px solid var(--c-blue-line);
  box-shadow: 0 10px 30px rgba(20, 24, 48, 0.06);
}
.section--white .service-card:hover {
  background: var(--c-white);
  border-color: var(--c-blue);
  box-shadow: 0 18px 44px rgba(20, 24, 48, 0.13);
}

/* badge keeps the navy disc so the white line icons stay legible,
   but the ring switches from white to pale blue */
.section--white .service-card__badge {
  box-shadow: 0 0 0 6px var(--c-blue-soft), 0 12px 26px rgba(26, 31, 56, 0.22);
}

.section--white .service-card__title { color: var(--c-navy); }
.section--white .service-card__title a { color: var(--c-navy); }
.section--white .service-card__title a:hover { color: var(--c-blue); }
.section--white .service-card ul,
.section--white .service-card__text { color: var(--c-muted-dark); }
.section--white .service-card ul li::marker { color: var(--c-blue); }
.section--white .service-card__more { color: var(--c-blue); }
.section--white .service-card__more:hover { color: var(--c-navy); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

/* circular icon badge with white ring — straight from the brochure */
.service-card__badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #232a48 0%, var(--c-navy-deep) 70%);
  box-shadow: 0 0 0 6px var(--c-white), 0 14px 30px rgba(6, 9, 24, 0.55);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  flex: none;
}
.service-card__badge svg { width: 40px; height: 40px; stroke: var(--c-white); }
.service-card__badge img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }

.service-card__title {
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: 0.015em;
  margin: 0;
}
.service-card__title a { color: inherit; }
.service-card__title a:hover { color: var(--c-steel); }

.service-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--c-muted);
  font-size: 0.95rem;
}
.service-card__text { color: var(--c-muted); font-size: 0.95rem; margin: 0; }

.service-card__more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.service-card__more:hover { color: var(--c-white); }

/* =============================================================
   About section
   ============================================================= */
.about__intro {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
}

.checklist { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 3px; stroke: var(--c-blue); }
.section--paper .checklist { color: var(--c-muted-dark); }

/* three across on wide screens */
.checklist--row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .checklist--row { grid-template-columns: 1fr; max-width: 46ch; margin-inline: auto; } }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(26, 31, 56, 0.12);
  text-align: center;
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat__num { font-family: var(--f-condensed); font-size: 2rem; font-weight: 600; color: var(--c-navy); }
.stat__label { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* =============================================================
   CTA band — navy pill floating on paper
   ============================================================= */
.cta-band { padding: 0 0 var(--space-6); background: var(--c-paper); }
.cta-band__inner {
  background: var(--c-navy);
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band__inner::after {          /* quiet echo of the orbit motif */
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.cta-band__title {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin: 0;
  max-width: 22ch;
}

/* =============================================================
   Contact section
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list a { color: var(--c-white); font-weight: 500; }
.contact-list a:hover { color: var(--c-steel); }

.contact-list__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--c-line);
  display: grid;
  place-items: center;
}
.contact-list__icon svg { width: 20px; height: 20px; stroke: var(--c-white); }
.contact-list__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.15rem;
}

/* =============================================================
   Content (posts, pages, archives)
   ============================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) 0;
  background: var(--c-navy);
}
.page-hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: 0.045em;
  font-size: var(--fs-hero);
  margin: 0;
  max-width: 18ch;
}
.page-hero::after {                 /* orbit fragment, bottom-right */
  content: "";
  position: absolute;
  right: -180px;
  bottom: -320px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.content-area { background: var(--c-paper); color: var(--c-muted-dark); padding: var(--space-5) 0; }
.content-area h1, .content-area h2, .content-area h3,
.content-area h4, .content-area h5, .content-area h6 { color: var(--c-navy); }
.content-area a { color: #2d5f86; text-decoration: underline; text-underline-offset: 3px; }
.content-area a:hover { color: var(--c-navy); }
.content-area .btn { text-decoration: none; }

.entry {
  max-width: 760px;
  margin-inline: auto;
}
.entry__meta {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.entry__thumb img { border-radius: var(--radius); margin-bottom: var(--space-3); width: 100%; }
.entry-content > * + * { margin-top: 1.1rem; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote {
  border-left: 3px solid var(--c-navy);
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.4rem;
  font-style: italic;
  color: var(--c-navy);
}
.wp-block-button__link { border-radius: 999px; }

/* aligns for the block editor */
.alignwide { max-width: 980px; margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }

/* Archive cards */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.post-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 24, 48, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(20, 24, 48, 0.14); }
.post-card__thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
.post-card__title { font-size: 1.15rem; margin: 0; }
.post-card__title a { color: var(--c-navy); text-decoration: none; }
.post-card__title a:hover { color: #2d5f86; }
.post-card__meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }

.pagination { margin-top: var(--space-4); display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1.5px solid rgba(26, 31, 56, 0.2);
  color: var(--c-navy);
  text-decoration: none;
  font-weight: 500;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

/* Comments / forms */
.comments-area { max-width: 760px; margin: var(--space-4) auto 0; }
input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(26, 31, 56, 0.2);
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  background: var(--c-white);
  color: var(--c-navy);
}
input:focus, textarea:focus { border-color: var(--c-navy); outline: none; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.comment-body { background: var(--c-white); border-radius: var(--radius); padding: 1.4rem 1.6rem; }

/* Search form */
.search-form { display: flex; gap: 0.6rem; }
.search-form input[type="search"] {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(26, 31, 56, 0.2);
  border-radius: 999px;
  font-family: var(--f-body);
}

/* =============================================================
   Footer — this is the Contact section (#contact)
   ============================================================= */
.site-footer {
  background: var(--c-ink);
  padding-top: 5vh;
  padding-bottom: 5vh;
}

/* --- contact block --- */
.footer-contact {
  position: relative;
  overflow: hidden;
  /* generous breathing room above the contact section */
  padding: clamp(5.5rem, 13vw, 9.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

/* quiet echo of the orbit motif, bottom-right */
.footer-contact__orbit {
  position: absolute;
  right: -220px;
  bottom: -320px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.footer-contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.footer-contact__copy p { max-width: 46ch; margin-bottom: var(--space-3); }
.footer-contact__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.contact-list__plain { color: var(--c-white); font-weight: 500; }

@media (max-width: 900px) {
  .footer-contact__inner { grid-template-columns: 1fr; }
  .footer-contact__orbit { right: -280px; bottom: -400px; }
}

/* --- slate base bar: logo, menu, copyright --- */
.footer-base { background: var(--c-slate); }

.footer-base__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.footer-base__brand img { height: 26px; width: auto; }
.footer-base__brand:hover { opacity: 0.85; }

.footer-menu ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--c-white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-menu a:hover { color: var(--c-white); opacity: 0.75; }

.footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 820px) {
  .footer-base__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.75rem 0;
  }
}

/* =============================================================
   Reveal-on-scroll (JS adds .is-visible; safe without JS)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
