/* ICT Consultant — support desk
   Palette: ink navy, warm paper, copper accent. No mint gradients. */

:root {
  --ink: #0b1c2c;
  --ink-2: #152538;
  --ink-3: #1e3348;
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --cream: #faf7f1;
  --line: #d5cdc0;
  --muted: #5a6578;
  --text: #1a2430;
  --accent: #c45c26;
  --accent-dark: #9a4519;
  --accent-soft: #f3e0d4;
  --ok: #1f6b4a;
  --ok-bg: #e5f2eb;
  --err: #9b1c1c;
  --err-bg: #f8e8e8;
  --warn: #8a5a00;
  --shadow: 0 1px 2px rgba(11, 28, 44, 0.06), 0 12px 32px rgba(11, 28, 44, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo { width: 200px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--accent); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-2);
  color: #fff !important;
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  color: #f7f3ea;
  background: var(--ink);
  min-height: clamp(28rem, 72vh, 38rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11,28,44,0.92) 0%, rgba(11,28,44,0.72) 42%, rgba(11,28,44,0.35) 100%),
    linear-gradient(0deg, rgba(11,28,44,0.75) 0%, transparent 45%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.25rem;
  max-width: 38rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: #d7dde6;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.9rem;
  color: #b8c0cc;
  max-width: 34rem;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}
.section- Tight { padding: 3rem 0; }
.section-ink {
  background: var(--ink);
  color: #e8edf3;
}
.section-ink h2 { color: #fff; }
.section-ink .sub { color: #aeb8c6; }
.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
}
.section-head h2,
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* —— Stack / about —— */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}
.about-copy p { margin: 0 0 1rem; }
.about-copy p:last-child { margin-bottom: 0; }
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.fact-list li {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

/* —— Services (alternating rows) —— */
.service-rows { display: grid; gap: 0; }
.service-row {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 800px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
    min-height: 18rem;
  }
  .service-row:nth-child(even) .service-media { order: 2; }
}
.service-media {
  background: var(--ink-2);
  min-height: 14rem;
}
.service-media img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}
.service-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
@media (min-width: 800px) {
  .service-body { padding: 2.5rem 2.75rem; }
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service-body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.service-body p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

/* —— Ticket form —— */
.ticket-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .ticket-layout {
    grid-template-columns: 0.9fr 1.35fr;
    gap: 3rem;
    align-items: start;
  }
}
.ticket-aside h2 { margin-bottom: 0.75rem; }
.ticket-aside ol {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.ticket-aside li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}
.ticket-aside li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .panel { padding: 2rem; }
}

.fieldset {
  border: 0;
  margin: 0 0 1.75rem;
  padding: 0;
}
.fieldset legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 1rem;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem 1.15rem;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label,
.field > span.label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.hint { font-weight: 500; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid #b9b2a4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.22);
  outline: none;
}
textarea { min-height: 8.5rem; resize: vertical; }

.urgency {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .urgency { grid-template-columns: repeat(3, 1fr); }
}
.urgency label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1.5px solid #b9b2a4;
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  font-weight: 500;
}
.urgency label:hover { border-color: var(--ink-3); }
.urgency input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.urgency label:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.urgency label:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.u-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.u-sub { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.alert {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.alert.show { display: block; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b7d8c6; }
.alert.error { background: var(--err-bg); color: var(--err); border: 1px solid #e5bcbc; }

.ref-box {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

#success-panel h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 0;
}

/* —— Status page —— */
.page-shell { padding: 3rem 0 4rem; }
.page-shell .panel { max-width: 40rem; }

/* —— Admin —— */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--paper);
  position: sticky;
  top: 0;
}
.admin-table tbody tr:hover { background: #faf7f1; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #c5ccd6;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: #f3eee4; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-grid strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .logo { width: 168px; }
  .nav { min-height: 3.75rem; }
}
