/*
Theme Name: Awad Logistics — Port Industrial
Theme URI: https://awadlogistics.com
Author: PMG
Description: Port-industrial rebuild of awadlogistics.com. Static-fast, one accent colour, no page builder. Content lives in inc/content.php.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: awad
*/

/* ==========================================================================
   Awad Logistics — port-industrial design system
   See ART-DIRECTION.md. One accent (amber). Steel monochrome otherwise.
   ========================================================================== */

:root {
  --steel-900: #080e16;
  --steel-800: #0c1622;
  --steel-700: #131f2e;
  --steel-600: #1c2a3b;
  --line: rgba(148, 173, 204, 0.14);
  --line-strong: rgba(148, 173, 204, 0.28);
  --ink: #eaf0f7;
  --ink-mute: #8c9db2;
  --amber: #ffb020;
  --amber-dim: #b87a12;

  --shell: 1360px;
  --gut: clamp(20px, 4vw, 64px);

  --f-display: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--steel-900);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: var(--steel-900); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.rule { border-top: 1px solid var(--line); }

section { position: relative; }

.pad { padding-block: clamp(64px, 9vw, 128px); }
.pad-sm { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- type ---------- */

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}

.label-mute { color: var(--ink-mute); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(42px, 7.2vw, 104px); font-weight: 900; }
h2 { font-size: clamp(32px, 4.6vw, 64px); }
h3 { font-size: clamp(20px, 2vw, 27px); letter-spacing: -0.01em; }
h4 { font-size: 15px; letter-spacing: 0.01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-mute); max-width: 62ch; }
.body-mute { color: var(--ink-mute); }
.measure { max-width: 68ch; }

/* section heading block */
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4vw, 60px); }
.head-row {
  display: flex; gap: 16px; align-items: baseline;
  flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px;
}
.head-num {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--amber); flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 26px; border: 1px solid var(--amber); color: var(--amber);
  background: transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--amber); color: var(--steel-900); }
.btn-solid { background: var(--amber); color: var(--steel-900); }
.btn-solid:hover { background: #fff; border-color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--steel-900); border-color: var(--ink); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- header ---------- */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 14, 22, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-bar { display: flex; align-items: center; gap: 28px; height: 78px; }
.hdr-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.hdr-logo img {
  height: 30px; width: auto;
  /* supplied logo is dark navy artwork; white it out for the dark header */
  filter: brightness(0) invert(1);
}
.hdr-logo b {
  font-family: var(--f-display); font-weight: 900; font-size: 17px;
  letter-spacing: -0.01em; text-transform: uppercase; line-height: 1;
}
.hdr-logo span {
  display: block; font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.2em; color: var(--ink-mute); text-transform: uppercase;
}
.hdr-nav { display: flex; gap: 4px; margin-left: auto; }
.hdr-nav a {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-mute); padding: 10px 11px;
  white-space: nowrap; transition: color .16s ease;
}
.hdr-nav a:hover, .hdr-nav a[data-active='true'] { color: var(--ink); }
.hdr-nav a[data-active='true'] { color: var(--amber); }
.hdr-cta { flex: none; }
.hdr-cta .btn { padding: 13px 20px; }

.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong);
  width: 46px; height: 42px; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger i { display: block; width: 18px; height: 1.5px; background: currentColor; }

@media (max-width: 1080px) {
  .hdr-nav, .hdr-cta { display: none; }
  .burger { display: flex; }
  .hdr-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 78px; left: 0; right: 0; background: var(--steel-800);
    border-bottom: 1px solid var(--line); padding: 12px var(--gut) 22px; gap: 0;
  }
  .hdr-nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) contrast(1.08); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--steel-900) 4%, rgba(8,14,22,.72) 45%, rgba(8,14,22,.55) 100%),
    linear-gradient(to right, rgba(8,14,22,.9) 0%, rgba(8,14,22,.25) 62%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { margin: 22px 0 0; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1; letter-spacing: -0.03em;
}
.stat span {
  display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
}
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- split ---------- */

.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-rev { grid-template-columns: 5fr 7fr; }
@media (max-width: 900px) { .split, .split-rev { grid-template-columns: 1fr; } }

.frame { position: relative; border: 1px solid var(--line); }
.frame img { width: 100%; filter: saturate(0.6) contrast(1.06); }
.frame::before {
  content: ''; position: absolute; left: -1px; top: -1px; width: 42px; height: 42px;
  border-left: 2px solid var(--amber); border-top: 2px solid var(--amber);
}

/* ---------- services ---------- */

.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 86px 1fr minmax(0, 46%);
  gap: clamp(16px, 3vw, 44px); align-items: start;
  padding: clamp(26px, 3.2vw, 42px) 0; border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.svc:hover { background: rgba(255, 176, 32, 0.035); }
.svc-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--amber); padding-top: 6px; }
.svc h3 { max-width: 14ch; }
.svc p { color: var(--ink-mute); font-size: 15.5px; line-height: 1.72; margin: 0; }
@media (max-width: 860px) {
  .svc { grid-template-columns: 56px 1fr; }
  .svc p { grid-column: 2; }
}

/* ---------- cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.cell { background: var(--steel-900); padding: clamp(26px, 3vw, 40px); }
.cell-raised { background: var(--steel-800); }

/* values chips */
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.values li {
  list-style: none; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; border: 1px solid var(--line-strong); padding: 11px 17px; color: var(--ink);
}
.values li::before { content: '— '; color: var(--amber); }

/* team */
.team-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(0.72) contrast(1.04); }
.team-meta { margin-top: 20px; }
.team-meta h3 { font-size: 19px; }
.team-role {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin: 9px 0 14px;
}
.team-quote { font-size: 14.5px; line-height: 1.7; color: var(--ink-mute); border-left: 2px solid var(--line-strong); padding-left: 16px; }
.team-phone { display: inline-block; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink); }
.team-phone:hover { color: var(--amber); }

/* clients */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(2, 1fr); } }
/* Client logos are supplied as JPGs on a white ground, so each sits on a light
   tile and multiplies out its own background. Muted by default, full colour on hover. */
.logo-cell {
  background: #eef2f6; aspect-ratio: 16 / 9; display: grid; place-items: center;
  padding: 26px; transition: background .2s ease;
}
.logo-cell img {
  max-height: 62px; width: auto; mix-blend-mode: multiply;
  filter: grayscale(1); opacity: 0.72;
  transition: opacity .2s ease, filter .2s ease;
}
.logo-cell:hover { background: #fff; }
.logo-cell:hover img { opacity: 1; filter: grayscale(0); }

/* ---------- forms ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  background: var(--steel-800); border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; padding: 14px 16px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber);
}
.field textarea { min-height: 148px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13.5px; color: var(--ink-mute); }

/* ---------- contact cards ---------- */

.loc h4 { font-size: 14px; color: var(--amber); font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.16em; }
.loc address { font-style: normal; margin-top: 14px; color: var(--ink-mute); font-size: 15.5px; line-height: 1.75; }
.loc a { color: var(--ink); }
.loc a:hover { color: var(--amber); }

/* ---------- page banner ---------- */

.banner { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.banner-bg { position: absolute; inset: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.4) contrast(1.05); opacity: 0.4; }
.banner-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--steel-900), rgba(8,14,22,.6));
}
.banner-inner { position: relative; z-index: 2; padding-block: clamp(56px, 7vw, 104px); }
.banner h1 { font-size: clamp(38px, 5.6vw, 78px); margin-top: 18px; }
.crumb { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.crumb a:hover { color: var(--amber); }
.crumb span { color: var(--amber); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--steel-800); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { max-width: 18ch; }

/* ---------- footer ---------- */

.ftr { background: var(--steel-800); border-top: 1px solid var(--line); }
.ftr-top { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .ftr-top { grid-template-columns: 1fr; } }
.ftr-logo { filter: brightness(0) invert(1); opacity: .9; }
.ftr h4 {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 18px;
}
.ftr-links { display: grid; gap: 11px; list-style: none; padding: 0; margin: 0; }
.ftr-links a { font-size: 14.5px; color: var(--ink-mute); }
.ftr-links a:hover { color: var(--amber); }
.ftr-bot {
  border-top: 1px solid var(--line); padding-block: 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-mute);
}
.ftr-bot a:hover { color: var(--amber); }

/* ---------- misc ---------- */

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.list-check li { position: relative; padding-left: 30px; color: var(--ink-mute); font-size: 15.5px; line-height: 1.7; }
.list-check li::before {
  content: ''; position: absolute; left: 0; top: 11px; width: 15px; height: 1.5px; background: var(--amber);
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--steel-900);
  padding: 12px 20px; z-index: 200; font-family: var(--f-mono); font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Feature parity with the original site: contact strip, search, AR/EN switch
   ========================================================================== */

/* ---------- top contact strip ---------- */
.cbar { background: var(--steel-700); border-bottom: 1px solid var(--line); }
.cbar-in {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  min-height: 40px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cbar-label { color: var(--ink-mute); }
.cbar-phone { color: var(--amber); }
.cbar-mail { color: var(--ink-mute); margin-left: auto; text-transform: none; letter-spacing: .06em; }
.cbar-phone:hover, .cbar-mail:hover { color: var(--ink); }
@media (max-width: 700px) {
  .cbar-mail { display: none; }
  .cbar-in { justify-content: center; gap: 12px; }
}

/* header sits under the strip, so it can't be sticky-at-0 without overlap */
.hdr { top: 0; }

/* ---------- header search button ---------- */
.hdr-search {
  flex: none; background: none; border: 1px solid var(--line-strong);
  width: 42px; height: 42px; color: var(--ink); cursor: pointer;
  font-size: 19px; line-height: 1; display: grid; place-items: center;
  transition: border-color .16s ease, color .16s ease;
}
.hdr-search:hover { border-color: var(--amber); color: var(--amber); }
@media (max-width: 1080px) { .hdr-search { margin-left: auto; } }

/* ---------- search dialog ---------- */
.srch-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; }
.srch-scrim {
  position: absolute; inset: 0; background: rgba(4, 8, 13, 0.82);
  backdrop-filter: blur(3px); border: 0; padding: 0; cursor: pointer;
}
.srch-panel {
  position: relative; width: min(720px, calc(100% - 32px)); margin-top: 12vh;
  background: var(--steel-800); border: 1px solid var(--line-strong);
}
.srch-bar { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.srch-bar input {
  flex: 1; background: none; border: 0; color: var(--ink);
  font-family: var(--f-body); font-size: 18px; padding: 22px 24px; outline: none;
}
.srch-bar input::placeholder { color: var(--ink-mute); }
.srch-close {
  background: none; border: 1px solid var(--line-strong); color: var(--ink-mute);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  padding: 8px 11px; margin-right: 18px; cursor: pointer;
}
.srch-close:hover { color: var(--amber); border-color: var(--amber); }
.srch-results { max-height: 60vh; overflow-y: auto; }
.srch-hit {
  display: grid; grid-template-columns: auto auto; gap: 4px 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.srch-hit:hover { background: rgba(255, 176, 32, 0.06); }
.srch-hit-t { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 16px; }
.srch-hit-k {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber); align-self: center;
}
.srch-hit-x { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-mute); line-height: 1.6; }
.srch-empty { padding: 24px; color: var(--ink-mute); font-size: 15px; }

/* ---------- language switcher ---------- */
.lang { position: fixed; right: 18px; bottom: 18px; z-index: 110; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--steel-700); border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  padding: 12px 16px; cursor: pointer; transition: border-color .16s ease;
}
.lang-btn:hover { border-color: var(--amber); }
.lang-globe { color: var(--amber); font-size: 13px; }
.lang-menu {
  list-style: none; margin: 0 0 8px; padding: 0; position: absolute; bottom: 100%; right: 0;
  min-width: 150px; background: var(--steel-700); border: 1px solid var(--line-strong);
}
.lang-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  color: var(--ink-mute); font-family: var(--f-body); font-size: 14.5px;
  padding: 12px 16px; cursor: pointer;
}
.lang-menu button:hover { color: var(--ink); background: rgba(255,176,32,.07); }
.lang-menu button[data-active='true'] { color: var(--amber); }

/* Google Translate widget chrome — hide it, we drive it ourselves */
#google_translate_element { display: none; }
.skiptranslate iframe, iframe.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* Arabic / RTL: the translate widget sets lang=ar on <html> */
html[lang='ar'] body { direction: rtl; text-align: right; }
html[lang='ar'] .hdr-nav { margin-left: 0; margin-right: auto; }
html[lang='ar'] .cbar-mail { margin-left: 0; margin-right: auto; }
html[lang='ar'] .lang { right: auto; left: 18px; }
html[lang='ar'] .team-quote { border-left: 0; border-right: 2px solid var(--line-strong); padding-left: 0; padding-right: 16px; }
html[lang='ar'] .list-check li { padding-left: 0; padding-right: 30px; }
html[lang='ar'] .list-check li::before { left: auto; right: 0; }
html[lang='ar'] .frame::before { left: auto; right: -1px; border-left: 0; border-right: 2px solid var(--amber); }

/* Suppress every piece of Google Translate's own UI — we drive it with our own control */
.goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip,
.goog-te-gadget-icon, .goog-te-gadget-simple, .goog-logo-link,
#goog-gt-, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
html { margin-top: 0 !important; }

/* language button needs room for the Arabic label */
.lang-btn { min-width: 120px; justify-content: center; white-space: nowrap; }

/* RTL: the contact strip's auto margin has to flip, not just mirror */
html[lang='ar'] .cbar-in { flex-direction: row-reverse; }
html[lang='ar'] .cbar-mail { margin-right: 0; margin-left: auto; }

/* Team/subsidiary grid: 3 -> 2 -> 1, and cap the portrait so a single-column
   card doesn't render a full-bleed head shot on tablets. */
@media (max-width: 1080px) and (min-width: 641px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.team-photo { max-width: 340px; }
@media (min-width: 1081px) { .team-photo { max-width: none; } }

/* ---------- small-screen typography ----------
   "TRANSPORTATION" is 14 characters of Archivo 900; at the old 42px floor it
   overran a 375px viewport. Scale the floor down and let long words break. */
@media (max-width: 560px) {
  h1 { font-size: clamp(30px, 8.6vw, 44px); }
  h2 { font-size: clamp(26px, 7.4vw, 38px); }
  .hero h1 { max-width: none; }
  .banner h1 { font-size: clamp(28px, 8vw, 42px); }
}
h1, h2, h3 { overflow-wrap: break-word; }

/* keep the fixed language control inside the viewport */
.lang { max-width: calc(100vw - 36px); }
@media (max-width: 560px) {
  .lang { right: 12px; bottom: 12px; }
  .lang-btn { min-width: 0; padding: 10px 13px; font-size: 10.5px; }
}

/* ==========================================================================
   WordPress-specific: Gravity Forms, editor content, admin bar
   ========================================================================== */

/* Gravity Forms — restyled to the design system. Form markup is theirs;
   we only skin it, so the existing entries/notifications keep working. */
.gform_wrapper { margin: 0 !important; }
.gform_wrapper form { display: grid; gap: 18px; }
.gform_wrapper .gform_fields { display: grid !important; gap: 18px !important; grid-template-columns: 1fr !important; }
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
  font-family: var(--f-mono) !important; font-size: 10.5px !important; font-weight: 500 !important;
  letter-spacing: .16em !important; text-transform: uppercase !important;
  color: var(--ink-mute) !important; margin-bottom: 8px !important; display: block;
}
.gform_wrapper .gfield_required { color: var(--amber) !important; }
.gform_wrapper input[type=text], .gform_wrapper input[type=email],
.gform_wrapper input[type=tel],  .gform_wrapper input[type=url],
.gform_wrapper input[type=number], .gform_wrapper input[type=file],
.gform_wrapper select, .gform_wrapper textarea {
  background: var(--steel-800) !important; border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important; font-family: var(--f-body) !important; font-size: 15px !important;
  padding: 14px 16px !important; width: 100% !important; border-radius: 0 !important;
  box-shadow: none !important; max-width: none !important;
}
.gform_wrapper textarea { min-height: 148px !important; resize: vertical; }
.gform_wrapper input:focus, .gform_wrapper select:focus, .gform_wrapper textarea:focus {
  outline: none !important; border-color: var(--amber) !important;
}
.gform_wrapper input::placeholder, .gform_wrapper textarea::placeholder { color: var(--ink-mute) !important; }
.gform_wrapper .ginput_complex span { display: block; margin-bottom: 12px; }
.gform_wrapper .gform_footer { padding: 0 !important; margin: 6px 0 0 !important; }
.gform_wrapper .gform_button,
.gform_wrapper input[type=submit], .gform_wrapper button[type=submit] {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono) !important; font-size: 12px !important; font-weight: 500 !important;
  letter-spacing: .16em !important; text-transform: uppercase !important;
  padding: 16px 26px !important; border: 1px solid var(--amber) !important;
  background: var(--amber) !important; color: var(--steel-900) !important;
  border-radius: 0 !important; cursor: pointer; width: auto !important;
  transition: background .18s ease, color .18s ease;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type=submit]:hover { background: #fff !important; border-color: #fff !important; }
.gform_wrapper .gfield_description,
.gform_wrapper .gform_fileupload_rules,
.gform_wrapper .ginput_preview { color: var(--ink-mute) !important; font-size: 13px !important; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select { border-color: #e5484d !important; }
.gform_wrapper .validation_message, .gform_wrapper .gform_validation_errors {
  color: #ff8a8f !important; background: rgba(229,72,77,.08) !important;
  border: 1px solid rgba(229,72,77,.35) !important; border-radius: 0 !important;
  font-size: 13.5px !important; padding: 10px 14px !important;
}
.gform_confirmation_message {
  border: 1px solid var(--amber); padding: 22px 24px; color: var(--ink); font-size: 16px;
}
/* two-up rows where GF uses its own column classes */
@media (min-width: 641px) {
  .gform_wrapper .gform_fields { grid-template-columns: repeat(2, 1fr) !important; }
  .gform_wrapper .gfield--width-full,
  .gform_wrapper .gfield[class*="gfield--width-full"],
  .gform_wrapper .gfield textarea ~ *,
  .gform_wrapper .gfield:has(textarea) { grid-column: 1 / -1 !important; }
}

/* Editor / fallback page content */
.entry { color: var(--ink-mute); }
.entry h1, .entry h2, .entry h3, .entry h4 { color: var(--ink); margin: 1.6em 0 .6em; }
.entry a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li { margin-bottom: .5em; }
.entry img { margin: 1.4em 0; border: 1px solid var(--line); }
.entry blockquote {
  border-left: 2px solid var(--amber); padding-left: 18px; margin: 1.4em 0; color: var(--ink);
}
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* WP admin bar sits above our sticky header */
body.admin-bar .hdr { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .hdr { top: 46px; } }

/* Pagination */
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em;
  border: 1px solid var(--line-strong); padding: 10px 14px; color: var(--ink-mute);
}
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { color: var(--amber); border-color: var(--amber); }

/* Search dialog uses [hidden] in the PHP build */
.srch-overlay[hidden] { display: none; }
