/*
Theme Name:        ShigenTech
Theme URI:         https://shigentech.ai/
Author:            ShigenTech
Author URI:        https://shigentech.ai/
Description:       Real-time intelligence for bulk commodity supply chains. A hand-built, block-editor-aware WordPress theme for ShigenTech — dedicated templates for the platform, results & ROI, about and demo-request pages, plus a live barge tracking demo and an ROI calculator.
Version:           1.1.0
Requires at least: 6.2
Tested up to:      6.6
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       shigentech
Tags:              business, technology, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks, accessibility-ready

ShigenTech WordPress Theme, (C) 2026 ShigenTech.
Distributed under the terms of the GNU GPL v2 or later.

Note: this file carries the theme header and the full design system. Page-specific
styles live in assets/css/*.css and are enqueued only on the templates that need them.
*/

/* ==========================================================================
   ShigenTech — design system
   Palette carried over from the existing shigentech.ai build (Astra global
   colors) with the forest green sampled from the wordmark.
   ========================================================================== */

/* --- tokens -------------------------------------------------------------- */
:root {
  /* brand */
  --brand:        #046bd2;
  --brand-dark:   #045cb4;
  --brand-soft:   #e8f1fb;
  --brand-tint:   #f4f9fe;

  /* forest green, sampled from the ShigenTech wordmark */
  --forest:       #012c17;
  --forest-2:     #04432a;
  --forest-3:     #0a6640;

  /* neutrals */
  --ink:          #1e293b;
  --ink-2:        #334155;
  --muted:        #64748b;
  --muted-2:      #94a3b8;
  --line:         #d1d5db;
  --line-soft:    #e6ebf1;
  --surface:      #f0f5fa;
  --surface-2:    #f8fafc;
  --white:        #ffffff;
  --black:        #111111;

  /* signal */
  --good:         #16a34a;
  --good-soft:    #dcfce7;
  --warn:         #f59e0b;
  --warn-soft:    #fff7ed;
  --bad:          #ef4444;
  --bad-soft:     #fee2e2;
  --cyan:         #0891b2;

  /* type */
  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* structure */
  --radius:       16px;
  --radius-sm:    12px;
  --radius-lg:    24px;
  --shadow:       0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg:    0 10px 40px rgba(15, 23, 42, .12);
  --shadow-xl:    0 24px 70px rgba(1, 44, 23, .18);
  --wrap:         1200px;
  --wrap-narrow:  860px;
  --nav-h:        76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button { font: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brand); color: #fff; }

/* --- accessibility ------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
  clip: auto !important;
  clip-path: none;
  color: var(--brand-dark);
  display: block;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  height: auto;
  left: 20px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 20px;
  width: auto;
  z-index: 100000;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --- layout primitives --------------------------------------------------- */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 48px, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--surface { background: var(--surface); }
.section--tint { background: var(--brand-tint); }

.section--dark {
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(10, 102, 64, .55), transparent 60%),
    radial-gradient(760px 480px at 92% 0%, rgba(4, 107, 210, .32), transparent 62%),
    var(--forest);
  color: rgba(255, 255, 255, .78);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--wide-left  { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }

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

/* --- typographic helpers ------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
  display: block;
}
.section--dark .eyebrow { color: #6fd3a4; }

.lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lede { color: rgba(255, 255, 255, .76); }

.hl { color: var(--brand); }
.section--dark .hl { color: #6fd3a4; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(4, 107, 210, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 12px 30px rgba(4, 107, 210, .36); }

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

.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: #fff; color: var(--forest); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }

.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }

/* --- header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; }

/* Theme Options → Header can turn stickiness off. */
.site-header--static { position: relative; top: auto; }

/* the admin bar is fixed on desktop and static on small screens */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

.brand { display: flex; align-items: center; flex: none; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest);
  letter-spacing: -.02em;
}
.brand .brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: 0;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a[aria-current="page"],
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--brand); font-weight: 600; }

/* Header CTA — set in Theme Options → Header, or by giving a menu item the
   class "nav-cta" in Appearance → Menus. Solid forest green, sampled from the
   wordmark, so it reads as the primary action rather than another nav link. */
.nav .nav-cta > a,
.nav a.nav-cta {
  background: var(--forest-3);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  margin-left: 10px;
  box-shadow: 0 8px 22px rgba(10, 102, 64, .30);
}
.nav .nav-cta > a:hover,
.nav a.nav-cta:hover {
  background: var(--forest-2);
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 102, 64, .38);
}

/* one level of dropdown */
.nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
  z-index: 10;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { border-radius: 8px; width: 100%; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: .2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 12% -15%, rgba(10, 102, 64, .62), transparent 58%),
    radial-gradient(900px 560px at 95% 5%, rgba(4, 107, 210, .38), transparent 60%),
    var(--forest);
  color: rgba(255, 255, 255, .8);
  padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px);
}
.hero::after {
  /* faint LiDAR return-grid wash */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1000px 600px at 70% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 600px at 70% 40%, #000, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: rgba(255, 255, 255, .78); }
.hero .lede { margin-bottom: 32px; }

.hero--split .split { align-items: center; }

.hero--page { padding: clamp(56px, 6vw, 88px) 0 clamp(48px, 5vw, 72px); }
.hero--page h1 { max-width: 20ch; }

/* --- badges / pills ------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 26px;
  font-family: var(--font-display);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* --- cards --------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0f2; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

.card--dark {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.card--dark p { color: rgba(255, 255, 255, .7); }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card--dark .card-icon { background: rgba(111, 211, 164, .14); color: #6fd3a4; }

/* numbered step cards */
.step { position: relative; padding-top: 34px; }
.step-num {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: .16;
  letter-spacing: -.04em;
}
.section--dark .step-num { color: #6fd3a4; opacity: .3; }

/* --- stats --------------------------------------------------------------- */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.section--dark .stat-num { color: #6fd3a4; }
.stat-label { font-size: .95rem; color: var(--muted); line-height: 1.45; }
.section--dark .stat-label { color: rgba(255, 255, 255, .68); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.stat-strip .stat + .stat { border-left: 1px solid var(--line-soft); padding-left: 32px; }

/* --- feature list -------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-size: 1rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--dark .ticks li::before { background-color: rgba(52, 211, 153, .18); }

.ticks--x li::before {
  background: var(--bad-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* --- commodity chips ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  font-family: var(--font-display);
}
.chip svg { width: 16px; height: 16px; color: var(--brand); }
.section--dark .chip { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .88); }
.section--dark .chip svg { color: #6fd3a4; }

/* coloured industry tags — cycle through the brand family so they stand out */
.chips--tags .chip {
  color: #fff; border: none; font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .14);
  transition: transform .16s ease, box-shadow .16s ease;
}
.chips--tags .chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .2); }
.chips--tags .chip:nth-child(7n+1) { background: var(--brand); }
.chips--tags .chip:nth-child(7n+2) { background: var(--forest-3); }
.chips--tags .chip:nth-child(7n+3) { background: var(--cyan); }
.chips--tags .chip:nth-child(7n+4) { background: #0d9488; }
.chips--tags .chip:nth-child(7n+5) { background: var(--brand-dark); }
.chips--tags .chip:nth-child(7n+6) { background: var(--forest-2); }
.chips--tags .chip:nth-child(7n+7) { background: #0e7490; }

/* --- media / figures ----------------------------------------------------- */
.figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.figure--dark { border-color: rgba(255, 255, 255, .14); background: #04150c; box-shadow: var(--shadow-xl); }
.figure img { width: 100%; }
.figure figcaption {
  padding: 14px 20px;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.figure--dark figcaption { border-top-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .65); }

/* full-bleed photographic band */
.band { position: relative; overflow: hidden; background: var(--forest); }
.band img { width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; display: block; }
.band-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 0 30px;
  background: linear-gradient(to top, rgba(1, 44, 23, .88), rgba(1, 44, 23, 0));
}
.band-cap p {
  margin: 0; color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, .95rem + .7vw, 1.5rem); letter-spacing: -.01em; max-width: 26ch;
}

/* --- tabs ---------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 44px; }
.tab {
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .94rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: .18s ease;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.tabpanel[hidden] { display: none; }

/* --- accordion ----------------------------------------------------------- */
.acc { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  margin-left: auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.acc[open] summary::after { transform: rotate(-135deg); }
.acc .acc-body { padding: 0 24px 22px; color: var(--muted); font-size: .97rem; }

/* --- tables -------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr.is-total td { background: var(--brand-tint); font-weight: 600; color: var(--ink); }
table.data td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }

/* --- callout ------------------------------------------------------------- */
.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  font-size: .96rem;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout--warn { border-left-color: var(--warn); background: var(--warn-soft); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 68px);
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(10, 102, 64, .6), transparent 60%),
    radial-gradient(600px 400px at 92% 100%, rgba(4, 107, 210, .4), transparent 62%),
    var(--forest);
  color: rgba(255, 255, 255, .8);
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.cta-band h2 { color: #fff; margin-bottom: .5em; }
.cta-band .lede { color: rgba(255, 255, 255, .78); margin: 0 auto 32px; }

/* CTA over photography — the background image is set inline from the template */
.cta-band--photo { background-size: cover; background-position: center 62%; }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, .62); padding: 68px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; }
.site-footer img.f-logo { height: 32px; margin-bottom: 20px; }
.site-footer .f-brand-text {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: #fff; margin-bottom: 16px; letter-spacing: -.02em;
}
.site-footer h5 {
  color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 18px; font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: rgba(255, 255, 255, .62); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: .86rem; color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* contact lines and social marks, all driven from Theme Options → Footer */
.site-footer .footer-address,
.site-footer .footer-phone { margin: 0 0 6px; max-width: 34ch; }
.site-footer .footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  transition: background .18s ease, color .18s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

/* --- blog / archive / single --------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.25rem; margin-bottom: .4em; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--brand); }
.post-meta { font-size: .82rem; color: var(--muted-2); font-family: var(--font-display); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.post-excerpt { color: var(--muted); font-size: .97rem; }
.post-card .more { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }

.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img, .entry-content figure { border-radius: var(--radius-sm); }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.entry-content blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 28px;
  border-left: 3px solid var(--brand);
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink);
}
.entry-content pre {
  background: var(--forest); color: #e2e8f0; padding: 20px 24px;
  border-radius: var(--radius-sm); overflow-x: auto; font-family: var(--font-mono); font-size: .88rem;
}
.entry-content code { font-family: var(--font-mono); font-size: .9em; background: var(--surface); padding: 2px 6px; border-radius: 5px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content .alignwide { width: min(100vw - 48px, 1100px); margin-inline: auto; }
.entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.entry-content .alignleft { float: left; margin: .3em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.6em; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-caption-text { font-size: .85rem; color: var(--muted); }

.entry-footer { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--ink-2);
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.post-nav a { display: block; padding: 22px 26px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #fff; }
.post-nav a:hover { border-color: var(--brand); }
.post-nav .dir { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.post-nav .ttl { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.post-nav .next { text-align: right; }

/* --- sidebar / widgets --------------------------------------------------- */
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 5vw, 64px); align-items: start; }
.sidebar .widget + .widget { margin-top: 28px; }
.sidebar .widget {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.sidebar .widget-title { font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sidebar ul ul { margin-top: 10px; padding-left: 16px; }

.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-widgets .widget-title { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; font-family: var(--font-display); }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

/* --- forms --------------------------------------------------------------- */
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; padding: 11px 15px; border: 1px solid var(--line);
  border-radius: 999px; font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fff;
}
.search-form button { flex: none; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol { list-style: none; padding-left: clamp(16px, 4vw, 44px); }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.comment-author { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; color: var(--muted-2); margin: 4px 0 12px; }
.comment-respond { margin-top: 44px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fff;
}
.comment-form textarea { min-height: 140px; resize: vertical; }

/* --- scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pill .dot { animation: none; }
  .btn:hover { transform: none; }
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-strip .stat + .stat { border-left: none; padding-left: 0; }
  .footer-grid, .footer-widgets { grid-template-columns: 1fr 1fr; gap: 36px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 18px 24px 28px;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 12px; border-radius: 10px; font-size: 1rem; }
  .nav .nav-cta > a, .nav a.nav-cta { margin: 12px 0 0; justify-content: center; }
  .nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 14px; min-width: 0;
  }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }
  /* In a hero the headline must lead — never let the visual stack above it. */
  .hero .split .split-media { order: 0; margin-top: 36px; }
  .post-nav { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { width: min(100% - 36px, var(--wrap)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; padding: 28px; }
  .footer-grid, .footer-widgets { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn { padding: 13px 24px; }
}

/* --- print --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .skip-link { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .reveal { opacity: 1; transform: none; }
}
