/*
Theme Name: Layer Tech
Theme URI: https://layer-tech.ro/
Author: OpenAI Codex
Author URI: https://openai.com/
Description: Custom WordPress theme for Layer Tech.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: layer-tech
*/

:root {
  --bg: #eef3f8;
  --bg-alt: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(16, 28, 48, 0.09);
  --line-strong: rgba(16, 28, 48, 0.16);
  --ink: #101828;
  --muted: #617086;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --teal: #0f766e;
  --hero-start: #0d1626;
  --hero-end: #152339;
  --success: #0f766e;
  --danger: #c2410c;
  --shadow: 0 26px 65px rgba(15, 23, 36, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shell: min(1240px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%),
    radial-gradient(circle at 92% 6%, rgba(15, 118, 110, 0.08), transparent 18%),
    linear-gradient(180deg, #eef3f8 0%, #f4f7fb 50%, #f8fafc 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 28, 48, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 28, 48, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 90%);
  pointer-events: none;
  z-index: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

.page-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header,
.hero,
.section,
.signal-strip,
.site-footer,
.site-main-basic {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 30px rgba(15, 23, 36, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f2a49, #2563eb);
  color: #f7fbff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 24px rgba(37, 99, 235, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.08rem;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  color: #4c5a6d;
  font-weight: 600;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.button,
.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.header-cta,
.button-primary {
  background: #111827;
  color: #f8fbff;
  box-shadow: 0 18px 26px rgba(17, 24, 39, 0.14);
}

.header-cta {
  padding: 12px 20px;
}

.button {
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f8fb;
}

.button:hover,
.header-cta:hover,
.service-link:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 34px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: stretch;
  padding: 48px;
  overflow: clip;
  border-radius: 42px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 22%),
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.14), transparent 18%),
    linear-gradient(145deg, var(--hero-start), var(--hero-end));
  color: #f4f7fb;
  box-shadow: 0 28px 60px rgba(13, 22, 38, 0.22);
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e4ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-tag {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

.subtle-tag {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
}

.hero-kicker {
  margin: 18px 0 0;
  color: #a9b9d4;
  font-size: 0.94rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1,
.section-head h2,
.founder-card h3,
.project-copy h3,
.quote-sidebar h3,
.site-footer h3,
.board-card h3,
.board-highlight strong,
.process-step h3,
.content-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10.5ch;
  margin-top: 18px;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  line-height: 0.96;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-lead,
.section-head p,
.about-copy p,
.founder-card p,
.project-copy p,
.site-footer p,
.site-footer small,
.process-step p,
.board-card p,
.board-highlight small,
.micro-note,
.field span,
.summary-block small,
.content-body,
.content-body p,
.content-body li {
  color: var(--muted);
}

.hero-lead {
  max-width: 60ch;
  margin: 20px 0 0;
  color: #d2dceb;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric-card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f4f7fb;
  font-size: 1rem;
}

.metric-card span {
  color: #d3dcec;
  font-size: 0.95rem;
}

.hero-panel {
  display: grid;
}

.hero-board {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.04);
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  pointer-events: none;
}

.board-topline {
  position: relative;
  z-index: 1;
  color: #cbd8ea;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-main {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.board-highlight {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.board-highlight small {
  display: block;
  margin-bottom: 8px;
  color: #bfcee2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.board-highlight strong {
  display: block;
  color: #f5f8fc;
  font-size: 1.46rem;
  line-height: 1.15;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.board-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.board-card small {
  display: inline-flex;
  margin-bottom: 12px;
  color: #cbd8ea;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.board-card h3 {
  margin-bottom: 10px;
  color: #f5f8fc;
  font-size: 1.18rem;
  line-height: 1.08;
}

.board-card p {
  margin: 0;
  color: #d1dced;
}

.board-card-wide {
  grid-column: 1 / -1;
}

.board-rings {
  position: absolute;
  right: -56px;
  bottom: -88px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.04),
    0 0 0 96px rgba(255, 255, 255, 0.02);
}

.signal-strip {
  padding-top: 18px;
}

.signal-track {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signal-track span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #5b6a80;
  font-size: 0.9rem;
  font-weight: 600;
}

.section {
  padding: 96px 0 0;
}

.compact-top {
  padding-top: 28px;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 14ch;
  margin: 14px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
  text-wrap: balance;
}

.section-head.narrow h2 {
  max-width: 15ch;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
}

.about-copy,
.founder-card,
.process-layout,
.quote-form,
.quote-sidebar,
.content-entry {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.founder-points {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.founder-points li + li {
  margin-top: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.service-card {
  padding: 26px;
}

.service-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.service-index {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 28, 48, 0.06);
  color: #65758a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.service-card h3,
.project-copy h3,
.process-step h3 {
  margin: 18px 0 10px;
  font-size: 1.36rem;
  line-height: 1.08;
}

.service-card p,
.project-copy span {
  color: var(--muted);
}

.service-link {
  margin-top: 18px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  cursor: pointer;
}

.process-layout {
  padding: 34px;
}

.process-head {
  margin-bottom: 26px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  padding: 24px;
  border: 1px solid rgba(16, 28, 48, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.process-step strong {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: 240px 1fr;
}

.project-visual {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(145deg, #dbe7f7, #f7fafd);
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(16, 28, 48, 0.12);
  border-radius: 999px;
}

.project-visual-a::before {
  top: 34px;
  right: 34px;
  width: 130px;
  height: 130px;
}

.project-visual-a::after {
  left: 34px;
  bottom: 34px;
  width: 180px;
  height: 68px;
  border-radius: 24px;
}

.project-visual-b::before {
  top: 30px;
  left: 34px;
  width: 118px;
  height: 118px;
}

.project-visual-b::after {
  right: 34px;
  bottom: 34px;
  width: 172px;
  height: 84px;
}

.project-visual-c::before {
  top: 28px;
  right: 34px;
  width: 92px;
  height: 92px;
}

.project-visual-c::after {
  left: 30px;
  bottom: 30px;
  width: 210px;
  height: 82px;
}

.project-copy {
  padding: 24px;
}

.project-copy span {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-section {
  padding-bottom: 92px;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.quote-form,
.quote-sidebar {
  border-radius: var(--radius-xl);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-full {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.field span,
.summary-block small {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
}

.consent input {
  margin-top: 4px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.micro-note {
  max-width: 40ch;
  margin: 0;
  font-size: 0.94rem;
}

.quote-sidebar {
  position: sticky;
  top: 110px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.84);
}

.summary-label {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-sidebar h3 {
  margin: 16px 0 22px;
  font-size: 2rem;
  line-height: 0.98;
}

.summary-block + .summary-block {
  margin-top: 18px;
}

.summary-block p {
  margin: 8px 0 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 22px;
  background: rgba(15, 118, 110, 0.1);
  color: #115e59;
}

.status-banner.is-error {
  border-color: rgba(194, 65, 12, 0.18);
  background: rgba(194, 65, 12, 0.1);
  color: #9a3412;
}

.site-main-basic {
  padding: 34px 0 92px;
}

.content-entry {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.content-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.content-body > *:first-child {
  margin-top: 0;
}

.content-body > *:last-child {
  margin-bottom: 0;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  color: var(--ink);
}

.content-body a {
  color: var(--accent);
}

.site-footer {
  padding: 0 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1.16rem;
}

.site-footer p,
.site-footer a,
.site-footer small {
  display: block;
  margin: 0 0 10px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-grid,
  .about-grid,
  .quote-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .project-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card-wide {
    grid-column: auto;
  }

  .quote-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    position: static;
    padding-top: 12px;
  }

  .header-row {
    border-radius: 30px;
    padding: 16px;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-cta {
    width: 100%;
  }

  .hero-grid {
    padding: 32px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 11vw, 4.2rem);
  }

  .form-grid,
  .form-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .process-grid,
  .project-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100vw - 24px, 100%);
  }

  .brand {
    width: 100%;
  }

  .hero-grid,
  .about-copy,
  .founder-card,
  .process-layout,
  .quote-form,
  .quote-sidebar,
  .service-card,
  .project-copy,
  .content-entry {
    padding: 22px;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }
}
