/* ==========================================================================
   PTH Holding — Design System
   ========================================================================== */

:root {
  /* Brand palette — derived from the PTH logo (mountain green) */
  --green-900: #0f3d22;
  --green-800: #14532d;
  --green-700: #1c6b3a;
  --green-600: #2f8a4c;
  --green-500: #4caf5e;
  --green-100: #e6f4ea;
  --green-50: #f3faf5;

  --gold-500: #c9a13b;
  --gold-400: #dabd6a;

  --ink-900: #101915;
  --ink-800: #1c2924;
  --ink-600: #45524c;
  --ink-400: #6f7d77;

  --paper: #ffffff;
  --paper-alt: #f7faf8;
  --border: #e1e8e3;

  --shadow-sm: 0 1px 2px rgba(15, 61, 34, 0.06), 0 1px 1px rgba(15, 61, 34, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 61, 34, 0.1);
  --shadow-lg: 0 20px 48px rgba(15, 61, 34, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-th: "Noto Sans Thai", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-display: "Prompt", var(--font-th), sans-serif;

  --container: 1180px;
  --nav-h: 76px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1512;
  --paper-alt: #101c17;
  --border: #1f2e27;
  --ink-900: #f2f6f3;
  --ink-800: #dce6e0;
  --ink-600: #a9bab1;
  --ink-400: #7f938a;
  --green-50: #0f1e17;
  --green-100: #12261c;
  /* Brighter than the light-mode scale on purpose: these three are used as
     foreground text/icon color (nav active state, eyebrow badges, stat
     numbers, section accents) drawn over --paper/--paper-alt/--green-100,
     which all go near-black in dark mode. The light-mode shades are too
     dark to read against a dark background — bump them up so contrast
     holds. Anywhere green-600/700/800 is used as a solid background behind
     white text (buttons, the about panel) is pinned to a literal hex value
     instead of these vars, so it isn't affected by this override. */
  --green-600: #45b862;
  --green-700: #52c46e;
  --green-800: #63d17e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d1512;
    --paper-alt: #101c17;
    --border: #1f2e27;
    --ink-900: #f2f6f3;
    --ink-800: #dce6e0;
    --ink-600: #a9bab1;
    --ink-400: #7f938a;
    --green-50: #0f1e17;
    --green-100: #12261c;
    --green-600: #45b862;
    --green-700: #52c46e;
    --green-800: #63d17e;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-th);
  color: var(--ink-800);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.3;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--green-800);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  /* Fixed brand greens on purpose — not the theme-reactive --green-600/800,
     which brighten in dark mode for text/icon contrast and would wash out
     this white-on-green button background. */
  background: linear-gradient(135deg, #2f8a4c, #14532d);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-800);
}
.btn-ghost:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Nav ---------------------------------------------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
/* The blur lives on a ::before instead of directly on .site-header:
   backdrop-filter on an element makes it the containing block for any
   fixed-position descendant, which broke the mobile .nav-links overlay
   (it sized itself against the 76px header instead of the viewport, and
   the off-screen closed panel added phantom horizontal scroll). The
   ::before isn't an ancestor of .nav-links, so it can't do that. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  flex-shrink: 1;
  min-width: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-text strong {
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--ink-400);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-actions {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .brand-text span {
    display: none;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .lang-toggle button {
    padding: 7px 9px;
    font-size: 0.76rem;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .nav-actions {
    gap: 6px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-600);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--green-100);
  color: var(--green-800);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink-800);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.icon-btn:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink-400);
}
.lang-toggle button[aria-pressed="true"] {
  /* Fixed, see .btn-primary above. */
  background: #1c6b3a;
  color: #fff;
}

.nav-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links {
    /* top/left/right (not bottom) on purpose: .site-header has a
       backdrop-filter, which makes it the containing block for this
       fixed element, so a "bottom: 0" resolves against the 76px header
       box instead of the viewport and collapses the panel. An explicit
       dvh-based height sidesteps that. */
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--nav-h));
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    padding: 16px 14px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--green-500) 22%, transparent), transparent 55%),
    radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--gold-400) 18%, transparent), transparent 50%),
    linear-gradient(180deg, var(--green-50), var(--paper) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-600);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--green-800);
}
.hero-stats div span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-600);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--green-500), var(--gold-400), var(--green-700), var(--green-500));
  filter: blur(2px);
  opacity: 0.35;
  animation: spin 26s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .ring { animation: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.hero-art img {
  position: relative;
  width: min(340px, 70%);
  /* height:auto needed because the HTML width/height="340" attributes
     otherwise pin the used height to 340px, which fights aspect-ratio
     once width shrinks at smaller breakpoints and stretches the circle
     into an oval. */
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  background: #fff;
  padding: 14px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .hero-art img {
    width: min(240px, 60%);
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero-art .ring {
    display: none;
  }
  .hero-art img {
    width: min(148px, 40%);
    padding: 10px;
  }
}

/* Sections --------------------------------------------------------------- */

section {
  padding: 88px 0;
}
.section-alt {
  background: var(--paper-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 12px;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-600);
  font-size: 1.05rem;
}
.section-head .eyebrow {
  margin-bottom: 0;
}

/* About / values grid */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p {
  color: var(--ink-600);
  margin-top: 14px;
}
.about-copy p:first-of-type {
  margin-top: 0px;
}

.value-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.value-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.value-item .ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-item .ic svg {
  width: 20px;
  height: 20px;
}
.value-item h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.value-item p {
  font-size: 0.86rem;
  color: var(--ink-400);
  margin: 0;
}

.about-panel {
  border-radius: var(--radius-lg);
  padding: 40px;
  /* Fixed, see .btn-primary above. */
  background: linear-gradient(160deg, #14532d, #0f3d22);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-panel .tax {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}
.about-panel .tax span {
  font-size: 0.78rem;
  opacity: 0.75;
}
.about-panel .tax strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.about-panel ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-panel li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  opacity: 0.92;
}
.about-panel li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-400);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .value-list {
    grid-template-columns: 1fr;
  }
}

/* Business group cards ----------------------------------------------------*/

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.biz-card-top {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.biz-card-top svg {
  width: 52px;
  height: 52px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.biz-card[data-tone="green"] .biz-card-top {
  background: linear-gradient(135deg, #2f8a4c, #14532d);
}
.biz-card[data-tone="amber"] .biz-card-top {
  background: linear-gradient(135deg, #d69a3d, #8f5a12);
}
.biz-card[data-tone="navy"] .biz-card-top {
  background: linear-gradient(135deg, #2c4a6e, #16273b);
}
.biz-card[data-tone="blue"] .biz-card-top {
  background: linear-gradient(135deg, #2575a8, #174663);
}

.biz-card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.biz-card-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 8px;
}
.biz-card h3 {
  font-size: 1.18rem;
}
.biz-card-th {
  font-size: 0.86rem;
  color: var(--ink-400);
  margin-top: 2px;
}
.biz-card p.desc {
  margin-top: 14px;
  color: var(--ink-600);
  font-size: 0.93rem;
  flex: 1;
}
.biz-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.biz-card-services span {
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  color: var(--ink-600);
}
.biz-card-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.biz-card-cta .btn {
  width: 100%;
}

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

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

/* Investment philosophy / process ----------------------------------------*/

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-item {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--border);
}
.process-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-600);
  display: block;
  margin-bottom: 14px;
}
.process-item h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.process-item p {
  font-size: 0.88rem;
  color: var(--ink-600);
  margin: 0;
}

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

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

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green-600);
  transition: transform 0.22s ease;
}
.faq-item[open] summary .chev {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-600);
  font-size: 0.94rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-row {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.contact-row .ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-row .ic svg {
  width: 20px;
  height: 20px;
}
.contact-row h3 {
  font-size: 0.92rem;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-row p, .contact-row a {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-900);
  font-weight: 500;
}
.contact-row a:hover {
  color: var(--green-700);
}

.contact-map {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: var(--paper-alt);
}
.contact-map-frame {
  width: 100%;
  flex: 1;
  min-height: 260px;
  border: 0;
  display: block;
}
.contact-map-caption {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.contact-map-caption p {
  color: var(--ink-600);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 480px) {
  .contact-map-caption {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

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

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

.site-footer {
  /* Fixed dark colors on purpose — must NOT use var(--ink-900), which
     flips to a near-white value under dark theme/color-scheme and would
     turn this into an unreadable white-on-light-gray footer. */
  background: #101915;
  color: #cfd8d3;
  padding: 64px 0 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer {
    background: #060a08;
  }
}
:root[data-theme="dark"] .site-footer {
  background: #060a08;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.footer-brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.footer p.tagline {
  font-size: 0.9rem;
  color: #9fb0a7;
  max-width: 32ch;
}
.footer h4 {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.92rem;
  color: #b7c3bc;
  transition: color 0.18s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8a998f;
}

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

/* Reveal-on-scroll ----------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Back to top --------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Focus visibility ------------------------------------------------------ */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}
