/* ==========================================================================
   Frontline Marine Equipment Repairing Services LLC — website styles
   Brand: navy #232176 + orange #F5821F (from the logo).
   Blue = card outlines and some section backgrounds; orange = selected headings,
   labels and key buttons. Orange text on white uses a deeper tone (--orange-ink)
   so it keeps AA contrast; the bright orange is used on navy backgrounds.
   ========================================================================== */

:root {
  --navy: #232176;
  --navy-deep: #18165A;
  --navy-tint: #EEEFF9;
  --navy-line: rgba(35, 33, 118, 0.85);
  --orange: #F5821F;
  --orange-ink: #C2570A;        /* orange for text on white (4.5:1) */
  --text: #1B1D3A;
  --muted: #535979;
  --on-navy: #FFFFFF;
  --on-navy-muted: #CDD0EF;
  --bg: #FFFFFF;
  --bg-soft: #F5F6FB;
  --line: #DADCEC;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(24, 22, 90, 0.45);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 84px;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg.i { width: 1.1em; height: 1.1em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--navy-deep); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--navy-deep); font-weight: 700; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

/* Blue sections: white text, orange headings */
.section--blue {
  background-color: var(--navy);
  background-image:
    radial-gradient(900px 400px at 100% 0%, rgba(245, 130, 31, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255, 255, 255, .06), transparent 60%);
  color: var(--on-navy);
}
.section--blue h2, .section--blue h3, .section--blue h1 { color: var(--orange); }
.section--blue p, .section--blue li { color: var(--on-navy-muted); }
.section--blue strong { color: var(--on-navy); }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--blue .kicker, .page-hero .kicker, .hero .kicker { color: var(--orange); }
.h-orange { color: var(--orange-ink); }
.section--blue .h-orange { color: var(--orange); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 64ch; }
.section--blue .lead { color: var(--on-navy-muted); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .02em; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--orange { background: var(--orange); color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(245, 130, 31, .9); }
.btn--orange:hover { background: #FF9535; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .85rem; }
.btn--wa { background: #1A9E52; border-color: #1A9E52; color: #fff; }
.btn--wa:hover { background: #158544; border-color: #158544; }
.page-hero .hero-actions { margin-top: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-ink); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.link-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-more:hover svg, a:hover .link-more svg { transform: translateX(4px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 40px; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--orange); }
.topbar .tag { color: var(--orange); font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; font-size: .72rem; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(24, 22, 90, .5); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { flex-shrink: 0; position: relative; z-index: 3; }
.brand img { height: 54px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--navy); transition: color .2s, background-color .2s; }
.site-nav a:hover { background: var(--navy-tint); }
.site-nav a[aria-current="page"] { color: var(--orange-ink); }
.nav-meta { display: none; }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; position: relative; z-index: 3; width: 46px; height: 46px; margin-left: auto; border: 2px solid var(--navy); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(24, 22, 90, .96) 0%, rgba(35, 33, 118, .88) 45%, rgba(35, 33, 118, .45) 100%); }
.hero .container { position: relative; padding-block: clamp(80px, 12vw, 150px) clamp(64px, 8vw, 100px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 .accent { color: var(--orange); }
.hero .lead { color: var(--on-navy-muted); margin-bottom: 32px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 10px; background: rgba(24, 22, 90, .45); font-family: var(--font-head); font-weight: 600; font-size: .88rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--orange); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 50px solid rgba(245, 130, 31, .14); }
.page-hero::after { content: ""; position: absolute; right: 120px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--orange); font-size: clamp(2rem, 4.8vw, 3.4rem); max-width: 22ch; }
.page-hero .lead { color: var(--on-navy-muted); margin: 0; }
.page-hero--photo .ph-img { position: absolute; inset: 0; }
.page-hero--photo .ph-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo .ph-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(24, 22, 90, .97) 0%, rgba(35, 33, 118, .9) 50%, rgba(35, 33, 118, .62) 100%); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .88rem; color: var(--on-navy-muted); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--orange); }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.split > *, .grid-2 > *, .grid-3 > *, .grid-auto > *, .svc-layout > * { min-width: 0; }

/* ---------- Cards: blue outline ---------- */
.card { position: relative; background: #fff; border: 2px solid var(--navy-line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.card--hover:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--navy); }
.card-pad { padding: clamp(22px, 3vw, 30px); }
.section--blue .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .45); }
.section--blue .card--hover:hover { box-shadow: 6px 6px 0 var(--orange); }

.svc-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.svc-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-tint); border-bottom: 2px solid var(--navy-line); }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .thumb img { transform: scale(1.05); }
.svc-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: .94rem; }
.svc-card .link-more { margin-top: auto; }

.icon-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--orange); margin-bottom: 18px; }
.icon-badge svg { width: 26px; height: 26px; }
.section--blue .icon-badge { background: var(--orange); color: var(--navy-deep); }

.iso-card { text-align: left; }
.iso-card .std { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); margin-bottom: 2px; }
.iso-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Figures */
.figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--navy-line); box-shadow: 10px 10px 0 var(--orange); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.section--blue .figure { border-color: rgba(255, 255, 255, .5); }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 4 / 3; }

/* Photos carry a bottom-right watermark: anchor crops and hover zoom to that corner so it stays visible. */
.svc-card .thumb img, .gallery img, .figure img, .hero-bg img, .ph-img img { object-position: right bottom; transform-origin: right bottom; }

/* Lists */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.check-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--orange-ink); }
.section--blue .check-list svg { color: var(--orange); }
.check-list strong { color: var(--navy); }
.section--blue .check-list strong { color: #fff; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 22px 20px 20px; border: 2px solid var(--navy-line); border-radius: var(--radius); background: #fff; }
.steps li::before { content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; background: var(--navy); color: var(--orange); font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.steps strong { display: block; font-family: var(--font-head); color: var(--navy); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .94rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border: 2px solid var(--navy-line); border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); background: #fff; }
.section--blue .chips li { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.note { font-size: .82rem; color: var(--muted); }
.ref-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; font-style: italic; color: var(--muted); }

/* Quote (CEO message) */
.quote { position: relative; margin: 0; padding-left: clamp(0px, 4vw, 56px); font-family: var(--font-head); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.55; color: #fff; }
.quote::before { content: "\201C"; position: absolute; left: -6px; top: -36px; font-size: 7rem; line-height: 1; color: var(--orange); font-family: Georgia, serif; opacity: .9; }
.quote-by { margin-top: 22px; color: var(--orange); font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }

/* ---------- Service detail page ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.svc-main > * + * { margin-top: clamp(32px, 4vw, 44px); }
.svc-main h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 18px; }
.svc-main .prose p { color: var(--muted); }
.svc-main .prose p:first-child { font-size: 1.08rem; color: var(--text); }
.svc-feature { aspect-ratio: 16 / 9; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.svc-aside h2 { font-size: 1.1rem; margin-bottom: 12px; }
.svc-nav { list-style: none; display: grid; gap: 2px; }
.svc-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--navy); font-weight: 500; font-size: .93rem; }
.svc-nav a:hover { background: var(--navy-tint); }
.svc-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.svc-nav a[aria-current="page"] svg { color: var(--orange); }
.svc-nav svg { width: 14px; height: 14px; color: var(--orange-ink); }
.aside-cta { background: var(--navy); color: #fff; border-color: var(--navy); }
.aside-cta h2 { color: var(--orange); }
.aside-cta p { color: var(--on-navy-muted); font-size: .94rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.pager .dir { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); font-family: var(--font-head); }
.pager .name { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.pager .next { text-align: right; align-items: flex-end; }

/* Gallery + lightbox */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid var(--navy-line); background: var(--navy-tint); }
.gallery button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
dialog.lightbox { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--navy-deep); color: #fff; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(10, 9, 40, .82); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.lightbox img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #0D0C33; }
.lightbox figcaption { padding: 14px 70px 16px 18px; color: var(--on-navy-muted); font-size: .92rem; }
.lb-btn { position: absolute; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--orange); color: var(--navy-deep); cursor: pointer; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 45%; }
.lb-next { right: 12px; top: 45%; }
.lb-prev svg { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; height: 100%; }
.contact-card .icon-badge { width: 46px; height: 46px; margin-bottom: 12px; }
.contact-card .label { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.contact-card .value { font-family: var(--font-head); font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 24px; }
.contact-layout > * { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.field .req { color: var(--orange-ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(35, 33, 118, .15); }
.field.has-error input, .field.has-error textarea { border-color: #C62828; }
.field .error { min-height: 1em; font-size: .8rem; color: #B71C1C; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field input[type="file"] { padding: 9px 10px; background: var(--bg-soft); cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: 600 .88rem var(--font-body); cursor: pointer; }
.field.has-error select { border-color: #C62828; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: var(--text) !important; cursor: pointer; }
.consent input { flex-shrink: 0; width: 20px; height: 20px; min-height: 0 !important; margin-top: 2px; padding: 0; accent-color: var(--navy); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.form-foot small { color: var(--muted); max-width: 42ch; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; border: 2px solid var(--navy); background: var(--navy-tint); }
.form-status.is-visible { display: block; }
.form-status a { color: var(--orange-ink); font-weight: 600; text-decoration: underline; }
.map-card { overflow: hidden; display: flex; flex-direction: column; }
.map-card iframe { flex: 1; width: 100%; min-height: 380px; border: 0; }
.map-card .map-label { padding: 12px 16px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* Departments */
.dept-section { margin-bottom: clamp(40px, 6vw, 64px); }
.dept-card { display: flex; flex-direction: column; height: 100%; }
.dept-card p { color: var(--muted); }
.dept-card .check-list { margin-bottom: 22px; font-size: .94rem; }
.dept-card .btn-row { margin-top: auto; gap: 8px; }

/* Careers: open positions */
.jobs-list { display: grid; gap: 22px; }
.job-card { display: grid; grid-template-columns: 320px 1fr; overflow: hidden; }
.job-card.no-image { grid-template-columns: 1fr; }
.job-card .job-img { background: var(--navy-tint); border-right: 2px solid var(--navy-line); }
.job-card .job-img img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.job-card .job-body { padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.job-card h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.job-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta li { padding: 4px 12px; border: 1.5px solid var(--navy-line); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.job-meta li.closing { border-color: var(--orange); color: var(--orange-ink); }
.job-card details summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--orange-ink); }
.job-card details[open] summary { margin-bottom: 10px; }
.job-text p, .job-text li { color: var(--muted); }
.job-text ul { margin: 0 0 1em 1.2em; }
.job-text h4 { margin: 14px 0 6px; font-size: 1rem; }
.job-card .btn-row { margin-top: 6px; }
.jobs-empty { padding: clamp(22px, 3vw, 30px); }
.form-status--error { margin: 0 0 18px; border-color: #C62828; background: #FDECEC; color: #8E1B1B; }

/* Admin dashboard */
.adm .site-header { position: static; }
.adm-title { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.adm .site-header .btn { flex-shrink: 0; }
@media (max-width: 560px) { .adm-title { display: none; } .adm .site-header .btn { margin-left: auto; } }
.adm-main { min-height: calc(100vh - var(--header-h)); }
.adm-login { max-width: 460px; margin: 0 auto; }
.adm-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.adm-grid > * { min-width: 0; }
.adm-radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.adm-radios legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .88rem; color: var(--navy); }
.adm-radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); cursor: pointer; }
.adm-radios input { width: 18px; height: 18px; min-height: 0 !important; accent-color: var(--navy); }
.adm-preview { max-width: 100%; max-height: 260px; border-radius: 10px; border: 2px solid var(--navy-line); }
.adm-msg { min-height: 1.4em; margin: 14px 0; font-weight: 600; color: var(--navy); }
.adm-msg.is-error { color: #B71C1C; }
.adm-list { list-style: none; display: grid; gap: 12px; }
.adm-item { display: flex; gap: 14px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; }
.adm-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.adm-info { min-width: 0; flex: 1; display: grid; gap: 6px; }
.adm-item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-item-title strong { color: var(--navy); overflow-wrap: anywhere; }
.adm-badge { padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.adm-badge.is-live { background: #E3F4E8; color: #1B6E35; }
.adm-badge.is-draft { background: var(--navy-tint); color: var(--navy); }
.adm-badge.is-closed { background: #FDECEC; color: #8E1B1B; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-actions .btn { min-height: 34px; padding: 6px 14px; font-size: .8rem; }
.adm-danger { border-color: #C62828 !important; color: #B71C1C !important; }
.adm-danger:hover { background: #C62828 !important; color: #fff !important; }
.adm-empty { color: var(--muted); }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.adm-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--navy-line); background: var(--bg); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .9rem; cursor: pointer; }
.adm-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.adm-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--orange); color: #1a1a1a; font-size: .74rem; text-align: center; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.adm-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.adm-tools label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.adm-tools select, .adm-tools input, .adm-status { min-height: 38px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: .88rem; }
.adm-search { flex: 1 1 200px; }
.adm-tools .adm-search input { width: 100%; }
.adm-item.is-new { border-color: var(--navy-line); background: var(--navy-tint); }
.adm-badge.is-new { background: var(--orange); color: #1a1a1a; }
.adm-badge.is-whatsapp { background: #E3F4E8; color: #1B6E35; }
.adm-badge.is-call, .adm-badge.is-email { background: #FFF1E3; color: #8A3B00; }
.adm-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.adm-contact a { overflow-wrap: anywhere; }
.adm-text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.adm-actions .adm-status { min-height: 34px; padding: 4px 8px; font-size: .8rem; }
@media (max-width: 980px) { .adm-grid { grid-template-columns: 1fr; } .job-card { grid-template-columns: 1fr; } .job-card .job-img { border-right: 0; border-bottom: 2px solid var(--navy-line); aspect-ratio: 16 / 9; } }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 10px; max-width: 24ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 36px; padding-block: clamp(48px, 7vw, 72px); }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .93rem; max-width: 36ch; }
.site-footer h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: .93rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; display: grid; gap: 10px; font-size: .93rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: flex-start; gap: 10px; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--orange); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px 22px; font-size: .85rem; }

.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1A9E52; color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 28px; height: 28px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav { position: fixed; inset: 0; z-index: 2; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 96px var(--gutter) 40px; background: #fff; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: flex-start; }
  .site-nav a { font-size: clamp(1.6rem, 7vw, 2.2rem); padding: 6px 0; }
  .site-nav a:hover { background: none; color: var(--orange-ink); }
  .nav-meta { display: grid; gap: 8px; color: var(--muted); }
  .nav-meta a { font-size: 1rem; font-family: var(--font-body); font-weight: 500; padding: 0; }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .figure--tall { aspect-ratio: 4 / 3; }
  .topbar .tag { display: none; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .contact-cards, .form-grid, .footer-grid, .svc-aside, .pager { grid-template-columns: 1fr; }
  .topbar ul { gap: 4px 16px; }
  .topbar .hide-sm { display: none; }
  .hero .btn-row .btn, .cta-band .btn { flex: 1 1 100%; }
  .figure { box-shadow: 6px 6px 0 var(--orange); }
  .pager .next { text-align: left; align-items: flex-start; }
  .fab-wa { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.reviews-widget { min-height: 120px; }
.reviews-more { justify-content: center; margin-top: 24px; }
