/* Rainy City — Opti Tech Employment Advice */
:root {
  --asphalt: #0c0e12;
  --asphalt-2: #14181f;
  --glass: rgba(22, 28, 38, 0.72);
  --glass-edge: rgba(150, 170, 190, 0.18);
  --rain: #8a9aaa;
  --muted-blue: #3d5a73;
  --mist: #6b8499;
  --sodium: #e8953a;
  --sodium-dim: #c4782a;
  --neon-red: #c41e3a;
  --text: #d5dde6;
  --text-dim: #9aa8b5;
  --text-bright: #eef3f7;
  --font-display: "Syne", sans-serif;
  --font-body: "Barlow", sans-serif;
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(61, 90, 115, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(196, 30, 58, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0c10 0%, var(--asphalt) 40%, #0f1218 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 3px
    );
  opacity: 0.5;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sodium);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--text-bright);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--sodium);
  color: var(--asphalt);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 14, 18, 0.78);
  border-bottom: 1px solid var(--glass-edge);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 40%),
    linear-gradient(145deg, var(--muted-blue), var(--asphalt-2));
  border: 1px solid rgba(232, 149, 58, 0.45);
  box-shadow: 0 0 12px rgba(196, 30, 58, 0.25);
}

.brand-text {
  max-width: 14rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-bright);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-edge);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--rain);
}

/* Buttons — raindrop ripple */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: raindrop 0.7s ease-out;
}

@keyframes raindrop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(14); opacity: 0; }
}

.btn-primary {
  background: linear-gradient(180deg, var(--sodium) 0%, var(--sodium-dim) 100%);
  color: #1a1208;
  border-color: rgba(255, 200, 120, 0.35);
}

.btn-primary:hover {
  color: #1a1208;
  filter: brightness(1.06);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text-bright);
  border-color: var(--glass-edge);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--mist);
  color: var(--text-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Glass panels */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Hero — full bleed rainy city */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 0 0 4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.85) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.35) 0%, rgba(12, 14, 18, 0.55) 45%, rgba(12, 14, 18, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 14, 18, 0.75) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  max-width: 36rem;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-brand span {
  color: var(--sodium);
}

.hero p {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 32rem;
}

.hero-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.85rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head p {
  color: var(--text-dim);
}

.muted {
  color: var(--text-dim);
}

.accent-line {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-red), var(--sodium));
  margin-bottom: 1rem;
  border: none;
}

/* Service list */
.offer-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .offer-list {
    grid-template-columns: 1fr 1fr;
  }
}

.offer-item {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.offer-item:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 149, 58, 0.35);
}

.offer-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
}

.offer-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.offer-body h3 {
  margin: 0 0 0.5rem;
}

.offer-body h3 a {
  color: var(--text-bright);
  text-decoration: none;
}

.offer-body h3 a:hover {
  color: var(--sodium);
}

.offer-meta {
  font-size: 0.85rem;
  color: var(--mist);
  margin-top: 0.75rem;
}

/* Split blocks */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .split.reverse .split-media {
    order: -1;
  }
}

.split-media {
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(61, 90, 115, 0.25));
  pointer-events: none;
}

/* Quote strip */
.quote-strip {
  padding: 3rem 0;
  border-block: 1px solid var(--glass-edge);
  background: rgba(20, 24, 31, 0.55);
}

.quote-strip blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-bright);
  max-width: 40rem;
  line-height: 1.45;
}

.quote-strip cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--mist);
}

/* Process steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  padding: 1.25rem;
  counter-increment: step;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--neon-red);
  display: block;
  margin-bottom: 0.65rem;
  letter-spacing: 0.08em;
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--glass-edge);
  background:
    linear-gradient(180deg, rgba(61, 90, 115, 0.18), transparent);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
}

.page-hero p {
  max-width: 36rem;
  color: var(--text-dim);
  margin: 0;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose ul, .prose ol {
  padding-left: 1.2rem;
  color: var(--text);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--glass-edge);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.prose th {
  background: rgba(61, 90, 115, 0.25);
  color: var(--text-bright);
}

/* Pricing */
.rate-block {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.rate-block h3 {
  margin: 0 0 0.35rem;
}

.rate-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sodium);
  margin: 0.5rem 0;
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review-card {
  padding: 1.5rem;
}

.review-card p {
  color: var(--text);
}

.review-card footer {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--mist);
}

.story {
  padding: 1.75rem;
  margin-top: 1.5rem;
}

/* Blog */
.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-teaser {
  display: grid;
  gap: 0;
  overflow: hidden;
}

@media (min-width: 700px) {
  .post-teaser {
    grid-template-columns: 240px 1fr;
  }
}

.post-teaser img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  filter: brightness(0.72);
}

.post-teaser .offer-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-date {
  font-size: 0.8rem;
  color: var(--mist);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: brightness(0.7);
  border: 1px solid var(--glass-edge);
  margin: 1.5rem 0 2rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  padding: 1.5rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(8, 10, 14, 0.65);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sodium);
  box-shadow: 0 0 0 1px rgba(232, 149, 58, 0.25);
}

.field-error {
  display: block;
  color: #f07178;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-edge);
  font-size: 0.95rem;
}

.form-status.is-success {
  border-color: rgba(100, 180, 120, 0.45);
  color: #9ad4a8;
}

.form-status.is-error {
  border-color: rgba(196, 30, 58, 0.55);
  color: #f0a0a8;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--glass-edge);
  background: rgba(8, 10, 14, 0.85);
  font-size: 0.92rem;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-bright);
  margin: 0 0 0.5rem;
}

.footer-tag {
  margin: 0;
  max-width: 18rem;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 0.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sodium);
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-edge);
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(14, 18, 24, 0.94);
  border-top: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px);
  padding: 1.1rem 0;
  animation: rise 0.45s ease-out;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

/* Trades chips */
.trade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.trade-list li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--glass-edge);
  background: rgba(61, 90, 115, 0.15);
  font-size: 0.88rem;
  color: var(--text);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--neon-red);
  margin: 0 0 0.5rem;
}

/* Detail lists */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  padding: 0.45rem 0 0.45rem 1.35rem;
  position: relative;
  border-bottom: 1px solid rgba(150, 170, 190, 0.1);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sodium);
  box-shadow: 0 0 8px rgba(232, 149, 58, 0.4);
}

.flagship-banner {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-red);
  margin-bottom: 0.5rem;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(12, 14, 18, 0.96);
    border-bottom: 1px solid var(--glass-edge);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .brand-text {
    max-width: 11rem;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 85vh;
    align-items: flex-end;
    padding-bottom: 3rem;
  }
}
