/*
Theme Name: SIMON ink
Text Domain: simon-ink
Description: Custom dark theme for SIMON ink, a signage and marketing shop.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
  --bg: #0c0d0f;
  --surface: #14161a;
  --surface-2: #1b1e23;
  --line: #2b2f35;
  --field-line: #6b727b;
  --fg: #f3f4f5;
  --muted: #a4abb3;
  --cyan: #00aeef;
  --on-accent: #04141b;
  --ok: #5ee0a0;
  --bad: #ff7a9a;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.55; margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 8.4vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.7rem; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo-link { display: inline-flex; align-items: center; min-height: 44px; flex: none; border-radius: 4px; text-decoration: none; }
.logo { height: 38px; width: auto; display: block; max-width: 100%; }
.logo-text { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.8rem; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a.nl { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.nl:hover { color: var(--fg); }
.nav a.nl[aria-current="page"] { color: var(--fg); border-bottom-color: var(--cyan); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: 600 0.95rem/1 var(--font-body); letter-spacing: 0.02em; padding: 14px 22px; border-radius: 4px; text-decoration: none; cursor: pointer; border: 2px solid var(--cyan); background: var(--cyan); color: var(--on-accent); }
.btn:hover { background: #33c0f5; border-color: #33c0f5; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--field-line); }
.btn.ghost:hover { border-color: var(--fg); background: transparent; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* hero */
.hero { padding-block: clamp(28px, 4vw, 44px) clamp(36px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.hero .wrap > * { min-width: 0; }
.hero .wrap > div:first-child { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "eyebrow eyebrow" "title lead" "title cta"; column-gap: clamp(24px, 4vw, 56px); align-items: start; }
.hero .eyebrow { grid-area: eyebrow; }
.hero h1 { grid-area: title; font-size: clamp(2.9rem, 6.2vw, 4.7rem); }
.hero p.lead { grid-area: lead; margin: 6px 0 22px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; object-position: 50% 50%; border-radius: 4px; border: 1px solid var(--line); display: block; }
.hero-empty { background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); }

/* full-bleed hero with intent picker */
.hero-full { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(560px, 82vh, 780px); padding-block: clamp(40px, 6vw, 80px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-full .wrap { position: static; width: 100%; }
.hero-full .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; z-index: -2; object-position: 50% 55%; }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,13,15,0.55) 0%, rgba(12,13,15,0.35) 35%, rgba(12,13,15,0.92) 100%), linear-gradient(90deg, rgba(12,13,15,0.75) 0%, rgba(12,13,15,0) 70%); }
.hero-full .eyebrow { color: var(--fg); }
.hero-full .eyebrow::before { content: ""; display: inline-block; width: 36px; height: 3px; background: var(--cyan); vertical-align: middle; margin-right: 12px; }
.hero-full h1 { font-size: clamp(3.1rem, 7.4vw, 6rem); text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.hero-full p.lead { color: #d9dde1; }
/* Solid backing so hero text keeps 4.5:1 contrast over the bright photo (WCAG 1.4.3). Below 900px the stronger overlay already covers it. */
@media (min-width: 901px) {
  .hero-full .eyebrow { justify-self: start; background: rgba(12,13,15,0.7); padding: 6px 10px; border-radius: 4px; }
  .hero-full p.lead { justify-self: start; background: rgba(12,13,15,0.82); padding: 12px 16px; border-radius: 6px; }
}
.hero-full .cta { align-items: stretch; }
.pick { order: -1; flex: 1 0 100%; background: rgba(20,22,26,0.82); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: 6px; padding: 16px; backdrop-filter: blur(6px); }
.pick-label { margin: 0 0 12px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; text-align: center; text-decoration: none; font: 600 0.95rem/1.1 var(--font-body); color: var(--fg); background: var(--surface-2); border: 1px solid var(--field-line); border-radius: 4px; }
.chip:hover { background: var(--cyan); border-color: var(--cyan); color: var(--on-accent); }
.chip:active { transform: translateY(1px); }
@media (max-width: 900px) {
  .hero-full { min-height: 0; padding-block: 56px 36px; }
  .hero-full .hero-img { object-position: 60% 50%; }
  .hero-full::before { background: linear-gradient(180deg, rgba(12,13,15,0.6) 0%, rgba(12,13,15,0.85) 100%); }
}
@media (max-width: 480px) { .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sections */
section.block { padding-block: clamp(44px, 7vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 36px; }
.block-head p { color: var(--muted); max-width: 30em; margin: 0; }
.svc-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px 48px; padding-block: 28px; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.svc-row li strong { display: block; font-weight: 600; }
.svc-row li span { color: var(--muted); font-size: 0.93rem; }
.svc-row .intro { color: var(--muted); margin: 10px 0 0; max-width: 22em; font-size: 0.95rem; }

/* gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tab { font: 600 0.88rem/1 var(--font-body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.tab:hover { color: var(--fg); border-color: var(--muted); }
.tab[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tile { display: block; padding: 0; min-height: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.tile:hover img { transform: scale(1.04); }
.more { display: flex; justify-content: center; margin-top: 28px; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(5,6,7,0.94); display: grid; grid-template-rows: 1fr auto; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 12px; }
.lb-stage { min-height: 0; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lb-bar p { margin: 0; color: var(--muted); font-size: 0.92rem; min-width: 0; }
.lb-bar div { display: flex; gap: 8px; }
.lb .btn { padding: 11px 16px; }

/* forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label, .label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea { font: 400 1rem/1.4 var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--field-line); border-radius: 4px; padding: 12px 14px; width: 100%; min-width: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.err { margin: 0; font-size: 0.9rem; color: var(--bad); font-weight: 500; }
.err::before { content: "\26A0\FE0E  "; }
.contact-list a.tel, .site-footer p a, .note a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 12px; }
.contact-list a.tel { padding-block: 12px; }
html { scroll-padding-block: 96px 84px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn:active, .tab:active, .menu-btn:active { transform: translateY(1px); }
.skip-link { transition: none; position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus, h1[tabindex="-1"]:focus, section[tabindex="-1"]:focus { outline: none; }
.menu-btn { display: none; min-height: 44px; font: 600 0.95rem/1 var(--font-body); color: var(--fg); background: transparent; border: 1px solid var(--field-line); border-radius: 4px; padding: 0 16px; cursor: pointer; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--fg); outline-offset: 1px; border-color: var(--fg); }
/* The date field's built-in calendar button never matches :focus-visible, so ring the whole field while anything in it has focus. */
input[type="date"]:focus-within { outline: 3px solid var(--fg); outline-offset: 1px; border-color: var(--fg); }
.note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.status { margin: 0; font-size: 0.95rem; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.contact-split { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); }
.contact-split > * { min-width: 0; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list small { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 18px 0 0; padding: 14px 18px; max-width: 36em; border: 1px solid var(--muted); border-radius: 6px; background: var(--surface); color: var(--fg); font-size: 0.98rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 36px 110px; align-items: center; }
.site-footer .logo { height: 34px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* send files view */
.up-head { padding-block: clamp(36px, 6vw, 72px) 28px; }
.up-head h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
.up-head p.intro { color: var(--muted); max-width: 36em; margin: 18px 0 0; font-size: 1.1rem; }
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-bottom: 40px; align-items: start; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 36px 20px; border: 2px dashed var(--muted); border-radius: 6px; background: var(--bg); cursor: pointer; position: relative; }
.drop:hover, .drop.over { border-color: var(--cyan); background: rgba(0,174,239,0.08); }
.drop:focus-within { outline: 3px solid var(--fg); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop strong { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.7rem; text-transform: uppercase; }
.drop span { color: var(--muted); font-size: 0.92rem; }
.files { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.file { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; display: grid; gap: 8px; }
.file .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-width: 0; }
.file .nm { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.file .meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--cyan); transition: width 0.12s linear; }
.file.done .bar i { background: var(--ok); }
.file.err { border-color: var(--bad); }
.file .msg { font-size: 0.88rem; color: var(--bad); margin: 0; }
.rm { background: none; border: 0; color: var(--muted); font: 600 0.85rem var(--font-body); cursor: pointer; padding: 4px 8px; min-height: 44px; text-decoration: underline; }
.rm:hover { color: var(--fg); }
.meter { margin-top: 22px; display: grid; gap: 8px; }
.meter .bar { height: 10px; }
.meter .bar i { background: var(--cyan); transition: width 0.2s; }
.meter p { margin: 0; font-size: 0.88rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 80px; margin-top: 40px; }
.flow div { border-top: 3px solid var(--line); padding-top: 14px; }
.flow h2 { font-size: 1.35rem; margin-bottom: 6px; }
.up-grid .panel h2 { font-size: 1.7rem; }
.flow p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* generic pages */
.page-wrap { padding-block: clamp(36px, 6vw, 72px); }
.page-wrap .entry { max-width: 46rem; }
.page-wrap .entry h1 { margin-bottom: 24px; font-size: clamp(2.4rem, 6vw, 4rem); }
.page-wrap .entry p, .page-wrap .entry li { color: var(--muted); }
.page-wrap .entry a { color: var(--cyan); }

/* mobile action bar */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.mbar .btn { flex: 1; padding: 13px 10px; }

@media (max-width: 900px) {
  .hero .wrap > div:first-child { display: block; }
  .hero p.lead { margin: 22px 0 28px; }
  .hero-img { aspect-ratio: 2 / 1; }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .contact-split, .up-grid { grid-template-columns: minmax(0, 1fr); }
  .site-header .wrap { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; }
  .nav { display: none; order: 3; flex: 1 0 100%; margin-left: 0; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .nav.open { display: flex; max-height: calc(100dvh - 90px - 76px); overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open .mbar { display: none; }
  .nav a.nl { border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .mbar { display: flex; }
}
@media (max-width: 620px) {
  .svc-row ul, .form-grid, .flow { grid-template-columns: minmax(0, 1fr); }
  .logo { height: 30px; }
}
/* Short viewports (e.g. 400% zoom): give the content the room instead of the sticky header and bottom bar. */
@media (max-height: 500px) {
  .site-header { position: static; }
  .mbar { display: none; }
  .nav.open { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i, .meter .bar i, .tile img { transition: none; }
}
