/* ══════════════════════════════════════════════════════════════
   Galvaframe — public website (Home · About · Products · Services · Contact)
   Self-contained: it does not use the app's design system, only the same
   brand colour (mint) and the same "G" mark so the site and the portals
   read as one company.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:      #0a1714;
  --ink-2:    #10231e;
  --ink-3:    #17302a;
  --paper:    #f4f1ea;
  --paper-2:  #ebe7dd;
  --white:    #ffffff;
  --text:     #15211e;
  --muted:    #55645f;
  --line:     #dcd8cc;
  --mint:     #10b981;
  --mint-2:   #34d399;
  --mint-ink: #04281d;
  --amber:    #d97706;
  --danger:   #b42318;

  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --head-h: 88px;
  --top-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0; font-family: var(--body); font-size: 16.5px; line-height: 1.65; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.site img { display: block; max-width: 100%; }
:where(body.site) a { color: inherit; text-decoration: none; }
.site h1, .site h2, .site h3, .site h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 800; }
.site p { margin: 0; }
.site ul { margin: 0; padding: 0; list-style: none; }
.site button { font: inherit; cursor: pointer; }
.site :focus-visible { outline: 3px solid var(--mint-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--mint); color: var(--mint-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 10px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: 15.5px;
  line-height: 1.1; transition: transform .15s ease, background .18s, color .18s, border-color .18s, box-shadow .18s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 18px; }
.btn-mint { background: var(--mint); color: var(--mint-ink); }
.btn-mint:hover { background: var(--mint-2); box-shadow: 0 8px 22px -8px rgba(16,185,129,.7); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line-dark { border-color: var(--ink); color: var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .25s, box-shadow .25s, transform .3s; }
.site-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 20px; }
.site-header.scrolled { background: rgba(10,23,20,.97); box-shadow: 0 6px 30px -14px rgba(0,0,0,.6); backdrop-filter: blur(8px); }

.brand { display: flex; align-items: center; gap: 11px; color: #fff; flex-shrink: 0; }
.logo-mark { height: 46px; width: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.brand:hover .logo-mark { transform: translateY(-2px) rotate(-1.5deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--display); font-weight: 800; font-size: 29px; letter-spacing: -.035em; color: #fff; }
.logo-name b { font-weight: 800; color: var(--mint-2); }
.logo-sub { margin-top: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #9fb7af; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #e4efeb; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 9px; position: relative; transition: color .15s, background .15s; }
.site-nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.site-nav a.on { color: #fff; }
.site-nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--mint); }
.bar-cta { display: flex; align-items: center; gap: 10px; }
.bar-link { color: #e4efeb; font-weight: 600; font-size: 14.5px; padding: 10px 12px; border-radius: 9px; }
.bar-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; align-items: center; justify-content: center; font-size: 24px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: calc(var(--head-h) + var(--top-h)); left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch;
    padding: 12px 20px 22px; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .2s, opacity .2s, visibility .2s; box-shadow: 0 24px 40px -20px rgba(0,0,0,.7);
  }
  .site-header.scrolled .site-nav { top: var(--head-h); }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 14px 12px; font-size: 17px; }
  .site-nav a.on::after { left: 12px; right: auto; width: 28px; bottom: 8px; }
  .nav-open .site-header { background: var(--ink); }
  .bar-link { display: none; }
}
@media (max-width: 520px) {
  .site-nav { top: var(--head-h) !important; }
  .logo-sub { display: none; }
  .logo-text { border-left: 0; padding-left: 0; }
  .site-bar .wrap { gap: 10px; padding: 0 16px; }
  .brand { gap: 9px; min-width: 0; }
  .logo-mark { height: 28px; }
  .logo-name { font-size: 21px; }
  .bar-cta { gap: 8px; }
  .bar-cta .btn { padding: 9px 13px; font-size: 14px; }
  .nav-toggle { width: 42px; height: 42px; flex-shrink: 0; }
}
@media (max-width: 380px) {
  .logo-mark { height: 25px; }
  .logo-name { font-size: 19px; }
  .bar-cta .btn i { display: none; }
}

/* ── Hero (home) ─────────────────────────────────────────────── */
.hero { position: relative; min-height: max(100svh, 700px); color: #fff; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 54px), 0 100%); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.02); }
.hero-slide.on { opacity: 1; animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero::before {                       /* the photo stays a faint backdrop: dark steel wash, strongest behind the words */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,16,14,.94) 0%, rgba(7,16,14,.80) 38%, rgba(7,16,14,.46) 70%, rgba(7,16,14,.30) 100%),
    linear-gradient(0deg, rgba(7,16,14,.9) 0%, rgba(7,16,14,0) 42%);
}
.hero-inner { position: relative; z-index: 2; padding-top: calc(var(--head-h) + 70px); padding-bottom: 118px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mint-2); }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); max-width: 14ch; margin: 18px 0 22px; letter-spacing: -.035em; line-height: .98; }
.hero .hero-inner > .hero-lead { max-width: min(56ch, 54%); }
@media (max-width: 900px) { .hero .hero-inner > .hero-lead { max-width: 56ch; } }
.hero h1 em { font-style: normal; color: var(--mint-2); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #cfdcd7; max-width: 56ch; margin-bottom: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16); background: rgba(5,12,10,.46); backdrop-filter: blur(6px); padding-bottom: 54px; }
.hero-facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-facts li { padding: 20px 22px 20px 0; display: flex; gap: 13px; align-items: flex-start; }
.hero-facts li + li { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-facts i { color: var(--mint-2); font-size: 26px; margin-top: 2px; }
.hero-facts b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.hero-facts span { display: block; font-size: 13.5px; color: #aebfb9; line-height: 1.45; margin-top: 2px; }
.hero-dots { position: absolute; z-index: 3; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.hero-dots button { background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; flex-direction: row-reverse; }
.hero-dots button::after { content: ''; width: 22px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.hero-dots button span { opacity: 0; transform: translateX(6px); transition: .25s; }
.hero-dots button.on { color: #fff; }
.hero-dots button.on::after { width: 44px; background: var(--mint); }
.hero-dots button.on span, .hero-dots button:hover span { opacity: 1; transform: none; }
@media (max-width: 1100px) { .hero-dots { display: none; } }
@media (max-width: 860px) {
  .hero-facts ul { grid-template-columns: 1fr 1fr; }
  .hero-facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .hero-inner { padding-bottom: 70px; }
}
@media (max-width: 520px) {
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%); }
  .hero-facts { padding-bottom: 30px; }
  .hero-facts ul { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 14px 0; border-left: 0; }
  .hero-facts li + li { border-top: 1px solid rgba(255,255,255,.12); }
  .hero-cta .btn { width: 100%; }
}

/* ── Page hero (inner pages) ─────────────────────────────────── */
.page-hero { position: relative; color: #fff; background: var(--ink) var(--hero) center/cover no-repeat; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,14,.94) 0%, rgba(7,16,14,.78) 45%, rgba(7,16,14,.42) 100%); }
.page-hero .wrap { position: relative; padding-top: calc(var(--head-h) + 60px); padding-bottom: 104px; }
.page-hero .hero-act { margin-top: 26px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #a9bcb5; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 14px; opacity: .6; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; letter-spacing: -.03em; }
.page-hero p.lead { margin-top: 16px; max-width: 60ch; color: #cfdcd7; font-size: 1.12rem; }
@media (max-width: 520px) { .page-hero .wrap { padding-top: calc(var(--head-h) + 40px); padding-bottom: 78px; } .page-hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%); } }

/* ── Sections ────────────────────────────────────────────────── */
.sec { padding: 104px 0; position: relative; }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: #e6efec; }
.sec-ink .eyebrow { color: var(--mint-2); }
.sec-tight { padding: 72px 0; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head .eyebrow { color: #0b7a57; }
.sec-ink .sec-head .eyebrow { color: var(--mint-2); }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin: 14px 0 14px; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.sec-ink .sec-head p { color: #a9bcb5; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.row-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.row-split.flip > :first-child { order: 2; }
@media (max-width: 920px) { .sec { padding: 76px 0; } .row-split, .row-split.flip { grid-template-columns: 1fr; gap: 40px; } .row-split.flip > :first-child { order: 0; } }
@media (max-width: 520px) { .sec { padding: 60px 0; } }

/* ── "What we do" photo cards ────────────────────────────────── */
.do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.do-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 460px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; background: var(--ink); }
.do-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.do-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,16,14,.95) 0%, rgba(7,16,14,.62) 48%, rgba(7,16,14,.08) 100%); }
.do-card:hover img { transform: scale(1.06); }
.do-card .in { padding: 28px; }
.do-num { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .14em; color: var(--mint-2); }
.do-card h3 { font-size: 1.7rem; margin: 8px 0 10px; }
.do-card p { color: #d3e0db; font-size: 15.5px; margin-bottom: 18px; }
.do-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; border-bottom: 2px solid var(--mint); padding-bottom: 3px; }
.do-card .go i { transition: transform .2s; }
.do-card:hover .go i { transform: translateX(5px); }
@media (max-width: 980px) { .do-grid { grid-template-columns: 1fr; } .do-card { min-height: 360px; } }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { padding: 0 22px 0 0; position: relative; }
.step::before { content: ''; position: absolute; top: 33px; left: 66px; right: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 15px); opacity: .25; }
.step:last-child::before { display: none; }
.step-n { width: 66px; height: 66px; border-radius: 50%; background: var(--ink); color: var(--mint-2); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 24px; position: relative; z-index: 1; margin-bottom: 20px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.sec-ink .step-n { background: var(--mint); color: var(--mint-ink); }
.sec-ink .step::before { background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 15px); opacity: .22; }
.sec-ink .step p { color: #a9bcb5; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 66px 1fr; column-gap: 20px; padding: 0 0 34px; }
  .step::before { top: 70px; bottom: 4px; left: 32px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 15px); }
  .sec-ink .step::before { background: repeating-linear-gradient(180deg, #fff 0 8px, transparent 8px 15px); }
  .step-n { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; margin-bottom: 4px; }
}

/* ── Product cards ───────────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(10,23,20,.55); border-color: #c9c4b5; }
.pimg { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pimg .ph { font-size: 52px; color: #a9b8b2; }
.ptag { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; letter-spacing: .02em; background: #fff; color: var(--mint-ink); border: 1px solid #bfe9d8; }
.ptag.low { color: #92400e; border-color: #f6d9a8; }
.ptag.out { color: var(--danger); border-color: #f2c4bf; }
.pbody { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcat { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0b7a57; }
.pname { font-weight: 700; font-size: 15.5px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; max-height: 2.7em; }
.pprice { margin: 6px 0 12px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.pprice small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.pcard .btn { margin-top: auto; }
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pbody { padding: 12px; } .pname { font-size: 14px; } }
@media (max-width: 380px) { .pgrid { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: 16px; }
.empty i { font-size: 44px; color: #a9b8b2; }
.empty h3 { color: var(--text); margin: 10px 0 6px; }

/* ── Catalogue toolbar ───────────────────────────────────────── */
.cat-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--muted); }
.search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--text); }
.search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; transition: .15s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip b { font-weight: 700; font-size: 12.5px; opacity: .65; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; background: #fff; }
.pager a:hover { border-color: var(--ink); }
.pager .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: none; }
.result-note { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.cat-notice { margin-top: 44px; padding: 22px 26px; border-radius: 14px; background: var(--paper); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cat-notice p { max-width: 62ch; color: var(--muted); }
.cat-notice p b { color: var(--text); }

/* ── Category tiles ──────────────────────────────────────────── */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-tile { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: .2s; }
.cat-tile:hover { border-color: var(--ink); transform: translateY(-3px); }
.cat-tile .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--ink); color: var(--mint-2); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.cat-tile h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.cat-tile p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 3px; }
.cat-tile small { color: #0b7a57; font-weight: 700; font-size: 13px; }
@media (max-width: 920px) { .cat-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cat-tiles { grid-template-columns: 1fr; } }

/* ── Feature image + spec card ───────────────────────────────── */
.photo { position: relative; border-radius: 18px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.3; }
.photo .badge { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 320px; background: var(--ink); color: #fff; border-radius: 13px; padding: 18px 20px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
.photo .badge b { font-family: var(--display); font-size: 1.8rem; color: var(--mint-2); display: block; letter-spacing: -.02em; line-height: 1.1; }
.photo .badge span { font-size: 14px; color: #bcd0c9; }
.ticks li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks i { color: var(--mint); font-size: 24px; margin-top: 1px; flex-shrink: 0; }
.ticks b { display: block; font-size: 17px; font-family: var(--display); letter-spacing: -.01em; }
.ticks span { color: var(--muted); font-size: 15.5px; }
.sec-ink .ticks li { border-color: rgba(255,255,255,.12); }
.sec-ink .ticks span { color: #a9bcb5; }

/* ── Service area / towns ────────────────────────────────────── */
.towns { display: flex; flex-wrap: wrap; gap: 9px; }
.town { padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); font-size: 14px; font-weight: 600; background: rgba(255,255,255,.04); }
.town small { opacity: .6; font-weight: 500; margin-left: 5px; }
.town.home { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.sec-paper .town, .sec-white .town { border-color: var(--line); background: #fff; color: var(--text); }
.sec-paper .town.home { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }

/* ── Tables / spec lists ─────────────────────────────────────── */
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec th, .spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--paper); }
.spec td:last-child { font-weight: 700; white-space: nowrap; }
.spec tr:last-child td { border-bottom: 0; }
.tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.sec-ink .tbl { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.sec-ink .spec th { background: rgba(255,255,255,.06); color: #a9bcb5; }
.sec-ink .spec td, .sec-ink .spec th { border-color: rgba(255,255,255,.1); }

.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.tile .ic { width: 52px; height: 52px; border-radius: 13px; background: var(--ink); color: var(--mint-2); display: flex; align-items: center; justify-content: center; font-size: 27px; margin-bottom: 18px; }
.tile h3 { font-size: 1.3rem; margin-bottom: 8px; letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 920px) { .tiles-3 { grid-template-columns: 1fr; } }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.numbers div { padding: 34px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.numbers div:first-child { border-left: 0; padding-left: 0; }
.numbers b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--mint-2); letter-spacing: -.03em; line-height: 1; }
.numbers span { display: block; margin-top: 8px; color: #a9bcb5; font-size: 15px; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers div:nth-child(3) { border-left: 0; padding-left: 0; } .numbers div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); } }

/* ── Service blocks ──────────────────────────────────────────── */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 28px; }
.svc:nth-of-type(even) .svc-img { order: 2; }
.svc-img { position: relative; min-height: 380px; background: var(--ink); }
.svc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-img .price { position: absolute; left: 20px; top: 20px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 11px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.svc-img .price small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: #a9bcb5; }
.svc-body { padding: 40px; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 1.9rem; margin: 10px 0 12px; }
.svc-body > p { color: var(--muted); margin-bottom: 18px; }
.bul li { display: flex; gap: 11px; padding: 6px 0; font-size: 15.5px; }
.bul li i { color: var(--mint); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.svc-body .btn { margin-top: 26px; align-self: flex-start; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc:nth-of-type(even) .svc-img { order: 0; } .svc-img { min-height: 240px; } .svc-body { padding: 28px 22px; } }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; list-style: none; position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--mint); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.cbox { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; }
.cbox .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--ink); color: var(--mint-2); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.cbox h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cbox p, .cbox li { color: var(--muted); font-size: 15.5px; }
.cbox a.lnk { color: #0b7a57; font-weight: 700; }
.cbox a.lnk:hover { text-decoration: underline; }
.hours td { padding: 3px 0; font-size: 15.5px; }
.hours td:first-child { white-space: nowrap; padding-right: 18px; }
.hours td:last-child { text-align: left; font-weight: 700; color: var(--text); white-space: nowrap; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.9); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── CTA band ────────────────────────────────────────────────── */
.cta { background: var(--ink) center/cover; position: relative; color: #fff; clip-path: polygon(0 54px, 100% 0, 100% 100%, 0 100%); margin-top: -54px; padding-top: 54px; }
.cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,14,.95), rgba(7,16,14,.7)); }
.cta .wrap { position: relative; padding-top: 96px; padding-bottom: 92px; display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 18ch; }
.cta p { color: #bcd0c9; margin-top: 12px; max-width: 52ch; }
.cta .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #b7c9c3; padding: 72px 0 0; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 52px; }
.site-footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-family: var(--body); font-weight: 700; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--mint-2); }
.foot-about p { margin: 16px 0 0; max-width: 36ch; line-height: 1.6; }
.foot-contact li { display: flex; gap: 11px; }
.foot-contact i { color: var(--mint-2); font-size: 19px; margin-top: 2px; flex-shrink: 0; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: #8fa59e; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Legal ───────────────────────────────────────────────────── */
.legal { max-width: 800px; }
.legal h4 { font-size: 1.2rem; margin: 30px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: #34443f; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* ── Reveal on scroll ────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-slide.on { animation: none; }
  .do-card img, .btn, .pcard { transition: none; }
}

/* ── "Sign in first" popup ───────────────────────────────────── */
.gate { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5,12,10,.62); backdrop-filter: blur(3px); animation: gateIn .18s ease; }
.gate[hidden] { display: none; }
.gate-card { position: relative; width: 100%; max-width: 410px; background: #fff; border-radius: 18px; padding: 34px 30px 28px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: gateUp .22s cubic-bezier(.2,.8,.2,1); }
.gate-x { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.gate-x:hover { background: var(--paper); color: var(--ink); }
.gate-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--ink); color: var(--mint-2); display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 16px; }
.gate-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.gate-card p b { color: var(--text); }
@keyframes gateIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gateUp { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
body.gate-open { overflow: hidden; }

@media (max-width: 340px) {
  .logo-mark { height: 22px; }
  .logo-name { font-size: 17px; }
  .brand { gap: 7px; }
  .bar-cta .btn { padding: 8px 10px; font-size: 13px; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* ── Photos shown WHOLE (never stretched or cropped) on a soft blurred backdrop of themselves ──
   Used for Galvaframe's own project photos, which come in all shapes (portrait phone shots, small
   crops): the picture keeps its true proportions and the frame is filled by a blurred copy. */
.pfit { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.pfit::before { content: ''; position: absolute; inset: -24px; z-index: -2; background: var(--img) center / cover no-repeat; filter: blur(22px) saturate(1.15) brightness(.82); transform: scale(1.08); }
.pfit > img { object-fit: contain !important; }
.pfit.cov > img { object-fit: cover !important; }
.do-card.pfit > img { z-index: -1; }
.do-card.pfit::before { z-index: -3; }
.photo.pfit { background: var(--ink); }
.photo.pfit > img { aspect-ratio: 4 / 3.3; width: 100%; height: 100%; }
.svc-img.pfit > img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* hero slideshow: an own photo sits on the right as a framed picture; the slide is its blurred twin */
.hero-slide.fit { background: none; }
.hero-slide.fit::before { content: ''; position: absolute; inset: -30px; background: var(--img) center / cover no-repeat; filter: blur(28px) brightness(.72) saturate(1.1); }
.hero-slide.fit > img { position: absolute; right: max(210px, 6%); top: calc(var(--head-h) + 30px); bottom: 232px; height: auto; max-height: calc(100% - var(--head-h) - 262px); width: auto; max-width: 31%; margin: auto 0; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.55); image-rendering: auto; }
@media (max-width: 1100px) { .hero-slide.fit > img { right: 5%; } }
@media (max-width: 900px) {
  /* narrow screens: the photo becomes the (sharp, darkened) backdrop instead of a framed picture */
  .hero-slide.fit > img { display: none; }
  .hero-slide.fit::before { inset: 0; background-size: cover; filter: brightness(.85) saturate(1.05); }
}

/* inner-page hero: the photo is shown whole in a frame on the right, over a blurred copy of itself
   (a small phone photo is never stretched across the full width, so it stays crisp) */
.page-hero.plain { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); }
.page-hero.plain::before { display: none; }
.page-hero.fit { background: var(--ink); isolation: isolate; min-height: 500px; }
.page-hero.fit::after { content: ''; position: absolute; inset: -30px; z-index: -1; background: var(--hero) center / cover no-repeat; filter: blur(30px) brightness(.62) saturate(1.1); }
.page-hero.fit::before { z-index: 0; }
.page-hero.fit .wrap { z-index: 2; }
.page-hero.fit h1, .page-hero.fit p.lead { max-width: 54%; }
@media (max-width: 900px) { .page-hero.fit h1, .page-hero.fit p.lead { max-width: 100%; } }
.page-hero.fit .hero-pic { position: absolute; z-index: 1; right: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); top: calc(var(--head-h) + 36px); bottom: 96px; height: auto; max-height: calc(100% - var(--head-h) - 132px); width: auto; max-width: 34%; margin: auto 0; object-fit: contain; border-radius: 16px; box-shadow: 0 26px 70px rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .page-hero.fit { min-height: 0; }
  .page-hero.fit::after { inset: 0; filter: brightness(.7); }
  .page-hero.fit .hero-pic { display: none; }
}

/* catalogue area dims while a category / page is being fetched */
#liveCatalog.is-loading .pgrid, #liveCatalog.is-loading .result-note { opacity: .45; transition: opacity .15s; }

/* "Our work" gallery */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-card { margin: 0; border-radius: 16px; aspect-ratio: 4 / 4.4; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.work-card > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14px 14px 56px; box-sizing: border-box; z-index: -1; }
.work-card figcaption { padding: 38px 16px 14px; font-weight: 600; font-size: 14.5px; background: linear-gradient(0deg, rgba(7,16,14,.92) 0%, rgba(7,16,14,0) 100%); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; gap: 14px; } }
