/* Liquid Architecture — Netshore Hub */

:root {
  --white: #f7f6f3;
  --concrete: #8a8680;
  --cobalt: #4a6fa5;
  --cobalt-deep: #3d5a80;
  --stone: #c4b5a0;
  --stone-soft: #ddd4c6;
  --black: #1a1a1a;
  --ink: #2a2a28;
  --surface: #efeee9;
  --surface-2: #e4e1da;
  --line: rgba(26, 26, 26, 0.12);
  --shadow: rgba(26, 26, 26, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 111, 165, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 181, 160, 0.18), transparent 50%),
    linear-gradient(165deg, var(--white) 0%, var(--surface) 48%, var(--surface-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--cobalt-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--black);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.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: -3rem;
  background: var(--black);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 246, 243, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--black);
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--black) 70%);
  clip-path: polygon(0 18%, 70% 0, 100% 82%, 30% 100%);
  transition: clip-path 0.5s var(--ease), transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
  clip-path: polygon(12% 0, 100% 22%, 88% 100%, 0 78%);
  transform: rotate(8deg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--black);
  position: relative;
  transition: transform 0.35s var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -5px;
}

.nav-toggle-bar::after {
  top: 5px;
}

/* Buttons — liquid bend */

.btn {
  --bend: 0deg;
  appearance: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition:
    transform 0.45s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    clip-path 0.55s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.btn:hover {
  clip-path: polygon(2% 8%, 96% 0, 100% 90%, 4% 100%);
  transform: translateY(-1px) skewX(-0.6deg);
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(12%) rotate(var(--bend));
}

.btn:active {
  clip-path: polygon(0 12%, 100% 4%, 94% 100%, 8% 88%);
  transform: translateY(0);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cobalt-deep);
  color: var(--white);
}

.btn-secondary {
  background: var(--cobalt);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--black);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--concrete);
  color: var(--black);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 26, 26, 0.82) 8%, rgba(26, 26, 26, 0.35) 55%, rgba(61, 90, 128, 0.45) 100%),
    linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
  max-width: 38rem;
}

.hero .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.hero-lead {
  color: rgba(247, 246, 243, 0.88);
  font-size: 1.08rem;
  max-width: 38ch;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--black);
}

.hero .btn-primary:hover {
  background: var(--stone);
  color: var(--black);
}

.hero .btn-ghost {
  border-color: rgba(247, 246, 243, 0.4);
  color: var(--white);
}

.hero .btn-ghost:hover {
  background: rgba(247, 246, 243, 0.12);
  color: var(--white);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--concrete);
}

.section-muted {
  background: rgba(255, 255, 255, 0.35);
  border-block: 1px solid var(--line);
}

.mono-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(239, 238, 233, 0.9));
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
  transition: clip-path 0.6s var(--ease), transform 0.45s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.mono-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(74, 111, 165, 0.05) 50%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, rgba(196, 181, 160, 0.08) 50%, transparent 52%);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.mono-panel:hover {
  clip-path: polygon(0 2%, 98% 0, 100% 97%, 2% 100%);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split.reverse .split-visual {
    order: -1;
  }
}

.split-visual {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  clip-path: polygon(0 4%, 100% 0, 98% 100%, 2% 96%);
  animation: panelSettle 1.2s var(--ease) both;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

@keyframes panelSettle {
  from {
    clip-path: polygon(4% 10%, 92% 0, 100% 88%, 0 100%);
    opacity: 0.4;
  }
  to {
    clip-path: polygon(0 4%, 100% 0, 98% 100%, 2% 96%);
    opacity: 1;
  }
}

/* Offer list — not cards as interaction containers, but listing rows */

.offer-list {
  display: grid;
  gap: 1rem;
}

.offer-item {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding 0.35s var(--ease);
}

.offer-item:first-child {
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .offer-item {
    grid-template-columns: 160px 1fr auto;
    align-items: center;
  }
}

.offer-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 6%, 96% 100%, 4% 94%);
}

.offer-item h3 {
  margin-bottom: 0.35rem;
}

.offer-item p {
  margin: 0;
  color: var(--concrete);
  font-size: 0.98rem;
}

.offer-meta {
  font-size: 0.9rem;
  color: var(--cobalt-deep);
  font-weight: 500;
  white-space: nowrap;
}

.offer-item:hover {
  padding-left: 0.5rem;
}

.offer-item:hover h3 {
  color: var(--cobalt-deep);
}

/* Quote / reviews */

.quote-stack {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .quote-stack {
    grid-template-columns: 1fr 1fr;
  }

  .quote-stack .quote-wide {
    grid-column: 1 / -1;
  }
}

.quote {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.quote p {
  font-size: 1.05rem;
}

.quote footer {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--concrete);
}

.quote cite {
  font-style: normal;
  color: var(--black);
  font-weight: 500;
}

/* Blog */

.post-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-teaser {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.post-teaser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  transition: clip-path 0.5s var(--ease);
}

.post-teaser:hover img {
  clip-path: polygon(0 3%, 100% 0, 97% 100%, 3% 94%);
}

.post-teaser time {
  font-size: 0.85rem;
  color: var(--concrete);
}

.post-teaser h3 {
  margin: 0;
}

/* Forms */

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-size: 0.92rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), clip-path 0.4s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: #8b2e2e;
  font-size: 0.88rem;
  display: none;
}

.form-row.has-error .field-error {
  display: block;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #8b2e2e;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(74, 111, 165, 0.1);
  border-color: var(--cobalt);
}

.form-status.is-error {
  background: rgba(139, 46, 46, 0.08);
  border-color: #8b2e2e;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-aside p {
  margin: 0;
}

/* Pricing */

.rate-table {
  width: 100%;
  border-collapse: collapse;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.rate-note {
  margin-top: 1.5rem;
  color: var(--concrete);
  max-width: 42rem;
}

/* Page hero (inner) */

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero p {
  max-width: 42ch;
  color: var(--concrete);
  font-size: 1.1rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.detail-block ul {
  margin: 0;
  color: var(--ink);
}

.service-hero-img {
  margin: 2rem 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

.service-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.story-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.story-block h3 {
  margin-bottom: 0.75rem;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  background: var(--black);
  color: rgba(247, 246, 243, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tag {
  max-width: 28ch;
}

.site-footer a {
  color: var(--stone);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 246, 243, 0.12);
  font-size: 0.88rem;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.96);
  color: var(--white);
  border-top: 1px solid rgba(196, 181, 160, 0.25);
  padding: 1.25rem 0;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  max-width: 48rem;
  font-size: 0.95rem;
}

.cookie-inner a {
  color: var(--stone);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  border-color: rgba(247, 246, 243, 0.3);
  color: var(--white);
}

/* Briefing timeline */

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--cobalt);
  transform: rotate(45deg);
}

.timeline-item h3 {
  margin-bottom: 0.35rem;
}

.timeline-item p {
  margin: 0;
  color: var(--concrete);
}

/* 404 */

.error-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  color: var(--stone);
  margin-bottom: 1rem;
}

/* Motion reduce */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }
}

/* Mobile nav */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 246, 243, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }
}
