/* ==========================================================================
   Mitra Anugerah Group — design system
   Navy industrial theme · copper accent · light mode via [data-theme="light"]
   ========================================================================== */

:root {
  --background: 215 45% 9%;
  --foreground: 210 20% 93%;
  --card: 215 40% 12%;
  --muted-foreground: 210 12% 68%;
  --border: 212 25% 24%;
  --copper: 28 62% 50%;
  --copper-light: 32 72% 64%;

  --band-alt: 215 42% 10.5%;
  --surface: 215 45% 8%;
  --surface-hover: 213 35% 16%;
  --input-bg: 215 40% 11%;
  --panel-a: 213 40% 15%;
  --panel-b: 216 45% 9%;
  --panel2-a: 212 38% 16%;
  --panel2-b: 216 42% 9%;
  --on-media: 210 20% 93%;
  --on-copper: 215 45% 10%;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shell: 80rem;

  --font-body: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Questrial", "Poppins", sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.35, 1);

  color-scheme: dark;
}

/* ------------------------------------------------------- light theme -- */
[data-theme="light"] {
  --background: 38 40% 97%;
  --foreground: 24 12% 14%;
  --card: 0 0% 100%;
  --muted-foreground: 25 8% 40%;
  --border: 28 12% 84%;
  --copper: 24 62% 45%;
  --copper-light: 26 68% 42%;

  --band-alt: 36 33% 94%;
  --surface: 0 0% 100%;
  --surface-hover: 30 40% 95%;
  --input-bg: 0 0% 100%;
  --panel-a: 32 45% 94%;
  --panel-b: 28 30% 90%;
  --panel2-a: 32 40% 93%;
  --panel2-b: 28 25% 89%;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease-out, color 0.25s ease-out;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p,
dl,
dd,
dt,
figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid hsl(var(--copper-light));
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: hsl(var(--copper));
  color: #fff;
  padding: 0.75rem 1.25rem;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------ primitives -- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.h-xl {
  font-size: 1.8rem;
  text-transform: uppercase;
  line-height: 1.18;
}
.h-lg {
  font-size: 1.55rem;
  text-transform: uppercase;
  line-height: 1.2;
}
.h-sm {
  font-size: 1.125rem;
  line-height: 1.35;
}

.lead {
  margin-top: 1.6rem;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.muted {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}
.muted.sm {
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

.mx-auto {
  margin-inline: auto;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-9 {
  margin-top: 2.25rem;
}

.center-head {
  text-align: center;
}
.center-head .lead {
  max-width: 40rem;
}

.copper-rule {
  height: 2px;
  background: linear-gradient(
    90deg,
    hsl(var(--copper)) 0%,
    hsl(var(--copper-light)) 45%,
    transparent 100%
  );
}
.w-24 {
  width: 6rem;
}
.w-28 {
  width: 7rem;
}
.w-48 {
  width: 12rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: hsl(var(--copper-light));
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  color: hsl(var(--copper-light));
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 9999px;
  padding: 0.85rem 1.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.2s ease-out, color 0.2s ease-out,
    transform 0.15s ease-out;
}
.btn:active {
  transform: translateY(1px);
}

.btn-outline {
  border: 1px solid hsl(var(--copper));
  color: hsl(var(--copper-light));
}
.btn-outline:hover {
  background: hsl(var(--copper));
  color: #fff;
}

.btn-solid {
  background: hsl(var(--copper));
  color: #fff;
  justify-content: center;
  width: 100%;
}
.btn-solid:hover {
  background: hsl(var(--copper-light));
  color: hsl(var(--on-copper));
}

.i-arrow {
  width: 0.875rem;
  height: 0.875rem;
}

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  /* Over the hero photo the header stays transparent, so keep its text
     light in both themes; once scrolled it adopts the theme colors. */
  --header-fg: 210 20% 93%;
  --header-muted: 210 12% 80%;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: hsl(var(--border) / 0.7);
  --header-fg: var(--foreground);
  --header-muted: var(--muted-foreground);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: hsl(var(--copper-light));
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
img.brand-mark {
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-line-1 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: hsl(var(--header-fg));
}
.brand-line-2 {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  color: hsl(var(--header-muted));
}

.primary-nav {
  display: none;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a,
.nav-drop-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: hsl(var(--header-muted));
  transition: color 0.2s;
}
.primary-nav a:hover,
.nav-drop-btn:hover {
  color: hsl(var(--header-fg));
}
.primary-nav a.is-active {
  color: hsl(var(--header-fg));
}
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: hsl(var(--copper));
}

.chev {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s;
}
.has-dropdown {
  position: relative;
}
.has-dropdown:hover .chev,
.has-dropdown:focus-within .chev {
  transform: rotate(90deg);
}

.dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 19rem;
  transform: translateX(-50%);
  padding-top: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface));
  transition: background-color 0.2s;
}
.dropdown a:first-child {
  border-radius: 0.75rem 0.75rem 0 0;
}
.dropdown a:last-child {
  border-bottom: 0;
  border-radius: 0 0 0.75rem 0.75rem;
}
.dropdown a:hover {
  background: hsl(var(--surface-hover));
}
.dd-name {
  display: block;
  font-size: 0.84rem;
  color: hsl(var(--foreground));
}
.dd-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid hsl(var(--header-muted) / 0.5);
  border-radius: 0.5rem;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: hsl(var(--header-fg));
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid hsl(var(--header-muted) / 0.5);
  border-radius: 0.5rem;
  color: hsl(var(--header-fg));
  transition: color 0.2s, border-color 0.2s, transform 0.15s ease-out;
}
.theme-toggle:hover {
  color: hsl(var(--copper-light));
  border-color: hsl(var(--copper));
}
.theme-toggle:active {
  transform: translateY(1px);
}
.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.mobile-nav {
  background: hsl(var(--surface));
  border-top: 1px solid hsl(var(--border));
  padding: 0.5rem 1.5rem 1.75rem;
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
}
.mobile-nav ul li {
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
.mobile-nav a,
.m-drop-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
.m-sub {
  padding-left: 0.75rem;
}
.m-sub a {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  padding: 0.7rem 0;
}
.m-drop-btn[aria-expanded="true"] .chev {
  transform: rotate(90deg);
}
.mobile-cta {
  margin-top: 1.5rem;
}
[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100dvh;
  overflow: hidden;
  padding: 10rem 0 6rem;
  color: hsl(var(--on-media));
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      hsl(0 0% 0% / 0.72) 0%,
      hsl(0 0% 0% / 0.45) 45%,
      hsl(var(--background)) 100%
    ),
    linear-gradient(to right, hsl(0 0% 0% / 0.6), transparent 65%);
}
.hero-inner {
  position: relative;
}
.hero-title {
  margin-top: 1.5rem;
  max-width: 56rem;
  font-size: 2.1rem;
  line-height: 1.08;
}
.hero-lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: hsl(var(--on-media) / 0.8);
}
.hero .btn {
  margin-top: 2.5rem;
}

/* ------------------------------------------------------- sub-page header -- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 26rem;
  overflow: hidden;
  padding: 9rem 0 3.5rem;
  color: hsl(var(--on-media));
}
.page-hero-media {
  position: absolute;
  inset: 0;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      hsl(0 0% 0% / 0.78) 0%,
      hsl(0 0% 0% / 0.6) 45%,
      hsl(var(--background)) 100%
    ),
    linear-gradient(to right, hsl(0 0% 0% / 0.6), transparent 70%);
}
/* In light mode fading the photo into the cream page background turns the
   scrim muddy gray, so keep it a clean dark overlay instead. */
[data-theme="light"] .hero-scrim,
[data-theme="light"] .page-hero-scrim {
  background: linear-gradient(
      to bottom,
      hsl(0 0% 0% / 0.6) 0%,
      hsl(0 0% 0% / 0.45) 45%,
      hsl(0 0% 0% / 0.3) 100%
    ),
    linear-gradient(to right, hsl(0 0% 0% / 0.5), transparent 70%);
}
.page-hero-inner {
  position: relative;
}
.page-hero-title {
  margin-top: 1.25rem;
  max-width: 52rem;
  font-size: 1.7rem;
  line-height: 1.15;
}
.page-hero-meta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.page-hero-sub {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: hsl(var(--on-media) / 0.82);
}

/* --------------------------------------------------------------- section -- */
.section {
  padding-block: 5rem;
}
.band {
  background: hsl(var(--background));
}
.band-alt {
  background: hsl(var(--band-alt));
}
[id] {
  scroll-margin-top: 5.5rem;
}

.split {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.frame-img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
}
.h-26 {
  height: 22rem;
}

/* ----------------------------------------------------------------- stats -- */
.stat-row {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin-top: 5rem;
  padding-block: 3rem;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  text-align: center;
}
.stat-value {
  font-size: 1.9rem;
  color: hsl(var(--copper-light));
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------- pillars -- */
.card-grid-3 {
  display: grid;
  gap: 1.75rem;
  margin-top: 3.5rem;
}
.pillar-card {
  display: block;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pillar-card:hover {
  border-color: hsl(var(--copper));
  transform: translateY(-3px);
}
.pillar-media {
  height: 13rem;
  overflow: hidden;
}
.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.pillar-card:hover .pillar-media img {
  transform: scale(1.05);
}
.pillar-body {
  padding: 1.75rem;
}
.pillar-body h3 {
  margin-top: 0.75rem;
  color: hsl(var(--foreground));
}
.pillar-body .copper-rule {
  margin-top: 1.25rem;
}
.pillar-body .muted {
  margin-top: 1.25rem;
}

/* ------------------------------------------------------------------- esg -- */
.esg-grid {
  display: grid;
  gap: 2rem;
}
.esg-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 22rem;
}
.esg-figure img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}
.esg-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(0 0% 0% / 0.82), transparent 62%);
}
.esg-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 2rem;
}
.esg-caption-title {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: hsl(var(--on-media));
}
.esg-caption-sub {
  font-size: 0.85rem;
  color: hsl(var(--on-media) / 0.75);
}
.esg-panel {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  background: linear-gradient(135deg, hsl(var(--panel-a)) 0%, hsl(var(--panel-b)) 100%);
}
.esg-panel .copper-rule {
  margin-top: 1.5rem;
}
.esg-panel .muted {
  margin-top: 1.5rem;
}
.esg-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}
.esg-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.7;
}
.esg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--copper));
}

/* ---------------------------------------------------------------- karier -- */
.cta-card {
  display: grid;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
}
.cta-panel {
  padding: 2.25rem;
  background: linear-gradient(135deg, hsl(var(--panel2-a)) 0%, hsl(var(--panel2-b)) 100%);
}
.cta-panel .muted {
  margin-top: 1.5rem;
}
.cta-img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}
.job-list {
  margin-top: 2.5rem;
  border-top: 1px solid hsl(var(--border) / 0.7);
}
.job-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}
.job-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: hsl(var(--foreground));
}
.job-meta {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
}

/* ------------------------------------------------------------------ news -- */
.news-grid {
  display: grid;
  gap: 2.5rem;
}
.news-card {
  display: flex;
  flex-direction: column;
}
.news-media {
  display: block;
  height: 14rem;
  overflow: hidden;
  border-radius: var(--radius);
}
.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-card:hover .news-media img {
  transform: scale(1.05);
}
.news-card h2 a,
.news-card h3 a {
  transition: color 0.2s;
}
.news-card h2 a:hover,
.news-card h3 a:hover {
  color: hsl(var(--copper-light));
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
.news-cat {
  color: hsl(var(--copper-light));
}
.news-date {
  color: hsl(var(--muted-foreground));
}
.news-card h3 {
  margin-top: 0.75rem;
}
.link-underline {
  align-self: flex-start;
  margin-top: 1.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: hsl(var(--copper-light));
  border-bottom: 1px solid hsl(var(--copper));
  transition: color 0.2s, border-color 0.2s;
}
.link-underline:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground));
}

/* --------------------------------------------------------------- article -- */
.article-wrap {
  max-width: 46rem;
}
.article-p,
.article-wrap p {
  font-size: 1rem;
  line-height: 1.9;
  color: hsl(var(--foreground) / 0.88);
}
.article-p + .article-p,
.article-wrap p + p,
.article-wrap p + ul,
.article-wrap p + ol,
.article-wrap ul + p,
.article-wrap ol + p {
  margin-top: 1.5rem;
}
.article-wrap h2,
.article-wrap h3,
.article-wrap h4 {
  margin: 2.2rem 0 0.8rem;
}
.article-wrap ul,
.article-wrap ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.4rem;
  font-size: 1rem;
  line-height: 1.9;
  color: hsl(var(--foreground) / 0.88);
}
.article-wrap blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid hsl(var(--copper) / 0.7);
  font-style: italic;
}
.article-wrap a {
  color: hsl(var(--copper-light));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-foot {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}
.notfound {
  max-width: 40rem;
  padding-block: 3rem;
}

/* --------------------------------------------------------------- contact -- */
.contact-grid {
  display: grid;
  gap: 3rem;
}
.contact-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
.contact-list li,
.footer-contact li {
  display: flex;
  gap: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}
.contact-list a:hover,
.footer-contact a:hover {
  color: hsl(var(--foreground));
}
.ci {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.2rem;
  color: hsl(var(--copper));
}

.contact-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  padding: 1.75rem;
  display: grid;
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background: hsl(var(--input-bg));
  border: 1px solid hsl(var(--border));
  border-radius: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: hsl(var(--muted-foreground) / 0.65);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--copper));
  box-shadow: 0 0 0 3px hsl(var(--copper) / 0.18);
}
.field select {
  appearance: none;
  cursor: pointer;
}
.form-note {
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: hsl(var(--copper-light));
}
.form-followup {
  display: grid;
  gap: 0.6rem;
}
.form-followup .btn {
  justify-content: center;
  width: 100%;
}

/* ---------------------------------------------------------------- footer -- */
.site-footer {
  background: hsl(var(--surface));
  border-top: 1px solid hsl(var(--border));
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}
.brand-footer {
  color: hsl(var(--copper-light));
}
.footer-desc {
  margin-top: 1.5rem;
  max-width: 26rem;
}
.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid hsl(var(--copper) / 0.5);
  border-radius: 9999px;
  color: hsl(var(--copper-light));
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.socials a:hover {
  background: hsl(var(--copper));
  color: #fff;
  transform: translateY(-2px);
}
.socials svg {
  width: 1rem;
  height: 1rem;
}
.footer-head {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: hsl(var(--copper-light));
}
.footer-links {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.footer-links a {
  transition: color 0.2s;
}
.footer-links a:hover {
  color: hsl(var(--foreground));
}
.footer-contact {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.footer-bar {
  border-top: 1px solid hsl(var(--copper) / 0.25);
}
.footer-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.footer-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-admin-link {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.footer-admin-link:hover {
  color: hsl(var(--copper-light));
}
.to-top {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--copper));
  color: #fff;
  transition: transform 0.2s;
}
.to-top:hover {
  transform: translateY(-2px);
}
.to-top svg {
  width: 1rem;
  height: 1rem;
}

/* ------------------------------------------------------------- pagination -- */
.pagination-wrap {
  margin-top: 3.5rem;
}
.pagination-wrap nav {
  display: flex;
  justify-content: center;
}
.pagination-wrap svg {
  width: 1rem;
  height: 1rem;
}

/* ---------------------------------------------------------------- reveal -- */
/* Only hide content when JavaScript is available to reveal it again, so the
   page stays fully readable if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================================================================ responsive */
@media (min-width: 640px) {
  .shell {
    padding-inline: 2rem;
  }
  .h-xl {
    font-size: 2.1rem;
  }
  .h-lg {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 2.9rem;
  }
  .hero-lead {
    font-size: 1rem;
  }
  .page-hero {
    min-height: 30rem;
    padding: 11rem 0 4rem;
  }
  .page-hero-title {
    font-size: 2.3rem;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    text-align: left;
  }
  .job-list li {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .contact-card {
    padding: 2.25rem;
  }
  .footer-bar-inner {
    flex-direction: row;
  }
  .mobile-nav {
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .shell {
    padding-inline: 2.5rem;
  }
  .section {
    padding-block: 7rem;
  }
  .primary-nav {
    display: block;
  }
  .nav-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .h-xl {
    font-size: 2.5rem;
  }
  .h-lg {
    font-size: 2.6rem;
  }
  .hero-title {
    font-size: 4.2rem;
  }
  .page-hero-title {
    font-size: 3rem;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .h-26 {
    height: 26rem;
  }
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid-3,
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .esg-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .cta-card {
    grid-template-columns: 1fr 1fr;
  }
  .cta-panel {
    padding: 3.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
