/* Cloud Shore Hub — Liquid Architecture */

:root {
  --arch-white: #f4f3f0;
  --arch-concrete: #9a968c;
  --arch-cobalt: #3d5a80;
  --arch-cobalt-muted: #4a6fa5;
  --arch-stone: #c4b5a0;
  --arch-stone-warm: #b8a48a;
  --arch-black: #1a1a1a;
  --arch-ink: #2c2c2c;
  --arch-surface: #ebe9e4;
  --arch-panel: #e0ddd6;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --max-w: 72rem;
  --grid-gutter: 1.25rem;
  --radius-none: 0;
  --transition-surface: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--arch-ink);
  background: var(--arch-white);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Monolithic background plane */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(165deg, var(--arch-white) 0%, var(--arch-surface) 42%, #d9d5cc 100%),
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(74, 111, 165, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(196, 181, 160, 0.15), transparent 50%);
  pointer-events: none;
}

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

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

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

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

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p + p { margin-top: 1em; }

.wrap {
  width: min(100% - 2 * var(--grid-gutter), var(--max-w));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 243, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(154, 150, 140, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--arch-black);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--arch-cobalt); }

.nav-toggle {
  display: none;
  background: var(--arch-black);
  color: var(--arch-white);
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
  transition: clip-path var(--transition-surface);
}

.nav-toggle:hover {
  clip-path: polygon(0 8%, 100% 0, 92% 100%, 0 88%);
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--arch-white);
  margin: 4px auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--arch-ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--arch-cobalt);
  color: var(--arch-cobalt);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--arch-white);
    border-bottom: 1px solid var(--arch-concrete);
    padding: var(--space-sm);
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem var(--space-sm);
    border-bottom: 1px solid var(--arch-panel);
  }
}

/* —— Buttons (liquid bend) —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--arch-black);
  color: var(--arch-white);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
  transition:
    clip-path var(--transition-surface),
    background 0.3s ease,
    transform 0.3s ease;
  position: relative;
}

.btn:hover,
.btn:focus-visible {
  color: var(--arch-white);
  background: var(--arch-cobalt);
  clip-path: polygon(4% 0, 100% 6%, 96% 100%, 0 92%);
  transform: translateY(-1px);
}

.btn:active {
  clip-path: polygon(0 10%, 100% 0, 90% 100%, 6% 88%);
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--arch-black);
  box-shadow: inset 0 0 0 1.5px var(--arch-black);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--arch-black);
  color: var(--arch-white);
  clip-path: polygon(0 6%, 100% 0, 100% 90%, 8% 100%);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* —— Surfaces / panels —— */
.surface {
  background: var(--arch-surface);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 2% 100%);
  transition: clip-path var(--transition-surface);
}

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

.panel {
  background: var(--arch-panel);
  padding: var(--space-md);
  clip-path: polygon(0 0, 100% 1%, 99% 100%, 1% 99%);
}

.mono-block {
  background: linear-gradient(135deg, var(--arch-surface), var(--arch-panel));
  border: 1px solid rgba(154, 150, 140, 0.4);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: planeShift 28s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.35) 55%, rgba(61, 90, 128, 0.25) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0 var(--space-2xl);
  max-width: 38rem;
  color: var(--arch-white);
  animation: riseIn 1s var(--transition-surface) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--arch-white);
  margin-bottom: var(--space-md);
}

.hero__lede {
  font-size: 1.1rem;
  color: rgba(244, 243, 240, 0.88);
  max-width: 32rem;
  margin-bottom: var(--space-sm);
}

.hero .btn { margin-top: var(--space-md); }

.hero--compact {
  min-height: 42vh;
  align-items: center;
}

.hero--compact .hero__content {
  padding: var(--space-xl) 0;
  max-width: 40rem;
}

@keyframes planeShift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, 1%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes foldIn {
  from { opacity: 0; clip-path: polygon(0 40%, 100% 30%, 100% 100%, 0 100%); }
  to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* —— Sections —— */
.section {
  padding: var(--space-xl) 0;
}

.section__head {
  margin-bottom: var(--space-lg);
  max-width: 36rem;
  animation: foldIn 0.9s var(--transition-surface) both;
}

.section__head p {
  margin-top: var(--space-sm);
  color: var(--arch-concrete);
}

.section--dark {
  background: var(--arch-black);
  color: var(--arch-white);
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  margin: var(--space-lg) 0;
  padding: var(--space-2xl) 0;
}

.section--dark h2,
.section--dark h3 { color: var(--arch-white); }

.section--dark p { color: rgba(244, 243, 240, 0.75); }

.section--stone {
  background: linear-gradient(180deg, transparent, rgba(196, 181, 160, 0.18), transparent);
}

/* —— Offer grid —— */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--grid-gutter);
}

.offer-item {
  display: flex;
  flex-direction: column;
  background: var(--arch-surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 97%);
  transition: clip-path var(--transition-surface), transform 0.4s ease;
}

.offer-item:hover {
  clip-path: polygon(0 3%, 100% 0, 97% 100%, 0 100%);
  transform: translateY(-4px);
  color: inherit;
}

.offer-item__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.offer-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition-surface);
}

.offer-item:hover .offer-item__img img {
  transform: scale(1.06);
}

.offer-item__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offer-item__body h3 {
  font-size: 1.15rem;
}

.offer-item__meta {
  font-size: 0.85rem;
  color: var(--arch-cobalt);
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* —— Split layout —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

.split__media {
  overflow: hidden;
  clip-path: polygon(0 0, 100% 4%, 96% 100%, 4% 96%);
  min-height: 18rem;
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

/* —— Quotes —— */
.quote-list {
  display: grid;
  gap: var(--space-md);
}

.quote {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(154, 150, 140, 0.5);
}

.quote:last-child {
  border-bottom: 1px solid rgba(154, 150, 140, 0.5);
}

.quote blockquote {
  font-size: 1.05rem;
  font-style: normal;
  max-width: 48rem;
}

.quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--arch-concrete);
}

.quote__service {
  color: var(--arch-cobalt);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* —— Forms —— */
.form {
  display: grid;
  gap: var(--space-sm);
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--arch-concrete);
  background: var(--arch-white);
  color: var(--arch-ink);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 2% 100%);
  transition: border-color 0.25s, clip-path var(--transition-surface);
}

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

.form textarea { min-height: 9rem; resize: vertical; }

.form__error {
  color: #8b2e2e;
  font-size: 0.82rem;
  display: none;
}

.form__error.is-visible { display: block; }

.form__status {
  padding: var(--space-sm);
  display: none;
  font-size: 0.95rem;
}

.form__status.is-visible { display: block; }

.form__status--ok {
  background: rgba(61, 90, 128, 0.12);
  color: var(--arch-cobalt);
}

.form__status--err {
  background: rgba(139, 46, 46, 0.1);
  color: #8b2e2e;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #8b2e2e;
}

/* —— Pricing —— */
.rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(154, 150, 140, 0.4);
  align-items: start;
}

.rate-row__price {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  color: var(--arch-cobalt);
}

/* —— Blog —— */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-md);
}

.post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.post-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card time {
  font-size: 0.8rem;
  color: var(--arch-concrete);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose {
  max-width: 42rem;
}

.prose h2, .prose h3 {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose ul, .prose ol {
  margin: 1em 0;
  padding-left: 1.25rem;
}

.prose li + li { margin-top: 0.4em; }

.prose figure {
  margin: var(--space-lg) 0;
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--arch-concrete);
  margin-top: 0.5rem;
}

/* —— Process steps —— */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(154, 150, 140, 0.4);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--arch-cobalt);
  letter-spacing: -0.02em;
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--arch-black);
  color: var(--arch-white);
  padding: var(--space-md);
  display: none;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  animation: riseIn 0.5s ease both;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner__inner {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-banner p {
  flex: 1 1 18rem;
  font-size: 0.9rem;
  color: rgba(244, 243, 240, 0.85);
}

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

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-banner .btn {
  background: var(--arch-white);
  color: var(--arch-black);
}

.cookie-banner .btn:hover {
  background: var(--arch-cobalt);
  color: var(--arch-white);
}

.cookie-banner .btn--ghost {
  background: transparent;
  color: var(--arch-white);
  box-shadow: inset 0 0 0 1.5px var(--arch-white);
}

/* —— Footer —— */
.site-footer {
  background: var(--arch-black);
  color: rgba(244, 243, 240, 0.8);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--arch-white);
  margin-bottom: var(--space-sm);
}

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

.footer-nav--legal {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(154, 150, 140, 0.3);
}

.footer-meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(154, 150, 140, 0.25);
  font-size: 0.8rem;
  color: var(--arch-concrete);
}

.address-block {
  font-style: normal;
  line-height: 1.7;
}

/* —— Tables —— */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--space-md) 0;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(154, 150, 140, 0.4);
  vertical-align: top;
}

.cookie-table th {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--arch-surface);
}

/* —— 404 —— */
.page-404 {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--space-xl) var(--grid-gutter);
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  color: var(--arch-cobalt);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* —— Detail lists —— */
.detail-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: var(--space-md) 0;
}

.detail-list li {
  padding-left: 1.25rem;
  position: relative;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--arch-cobalt);
  clip-path: polygon(0 0, 100% 20%, 80% 100%, 0 80%);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--arch-cobalt);
  margin-bottom: var(--space-xs);
}

.stack-gap > * + * {
  margin-top: var(--space-md);
}

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