/* CyberSecureNet — editorial European consultancy theme */
:root {
  --color-sand: #e8dfd0;
  --color-sand-deep: #d4c4a8;
  --color-paper: #f3ece1;
  --color-cream: #faf6f0;
  --color-forest: #1f3d2b;
  --color-forest-mid: #2d5a3d;
  --color-forest-soft: #3d6b4f;
  --color-ink: #1a241c;
  --color-ink-muted: #4a554c;
  --color-accent: #8b6914;
  --color-accent-soft: #c4a574;
  --color-border: #c9bda8;
  --color-error: #8b3a2a;
  --color-success: #2d5a3d;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --max: 68rem;
  --radius: 2px;
  --shadow-soft: 0 1px 0 rgba(31, 61, 43, 0.06);
  --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-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-cream);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(212, 196, 168, 0.35), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(31, 61, 43, 0.05), transparent 40%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  min-height: 100vh;
}

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

a {
  color: var(--color-forest-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.25s var(--ease);
}

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

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

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 var(--space-md); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 var(--space-md); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 0 0 var(--space-sm); }

p { margin: 0 0 var(--space-md); }

ul, ol { margin: 0 0 var(--space-md); padding-left: 1.25rem; }

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

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

.wrap--narrow {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-sand);
  border-color: var(--color-forest);
}

.btn--primary:hover {
  background: var(--color-forest-mid);
  color: var(--color-cream);
  border-color: var(--color-forest-mid);
}

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

.btn--ghost:hover {
  background: var(--color-sand);
  color: var(--color-forest);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.85rem 0;
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-forest);
  text-decoration: none;
  max-width: 14rem;
  line-height: 1.2;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--color-forest);
}

.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.site-nav__cta {
  background: var(--color-forest);
  color: var(--color-sand) !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-forest-mid);
  color: var(--color-cream) !important;
}

@media (max-width: 960px) {
  .site-header__toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav__cta { margin-top: var(--space-xs); }
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  background: var(--color-forest);
  color: var(--color-sand);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer a { color: var(--color-sand-deep); }
.site-footer a:hover { color: var(--color-cream); }

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-cream);
}

.site-footer__heading {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-cream);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 0.35rem; }

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(232, 223, 208, 0.2);
  font-size: 0.875rem;
  color: var(--color-sand-deep);
}

@media (max-width: 800px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(26, 36, 28, 0.08);
  padding: var(--space-md);
}

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

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

.cookie-banner__text {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}

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

/* Hero variants */
.hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: grid;
  align-items: end;
  color: var(--color-cream);
  overflow: hidden;
}

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

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

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 36, 28, 0.82) 0%, rgba(31, 61, 43, 0.45) 45%, rgba(31, 61, 43, 0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--color-sand);
  letter-spacing: 0.01em;
}

.hero h1 {
  color: var(--color-cream);
  max-width: 18ch;
}

.hero__lead {
  max-width: 36ch;
  font-size: 1.15rem;
  color: var(--color-sand);
  margin-bottom: 0;
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-sand) 0%, var(--color-cream) 100%);
}

.page-hero__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  animation: rise 0.7s var(--ease) both;
}

.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 40rem; color: var(--color-ink-muted); margin-bottom: 0; }

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

.section--sand {
  background: var(--color-sand);
  border-block: 1px solid var(--color-border);
}

.section__intro {
  max-width: 38rem;
  margin-bottom: var(--space-lg);
}

.section__intro p {
  color: var(--color-ink-muted);
}

/* Offer cards — understated bordered */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-md);
}

.offer-card {
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.offer-card:hover {
  border-color: var(--color-forest-soft);
  transform: translateY(-2px);
}

.offer-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.offer-card:hover .offer-card__media img {
  transform: scale(1.04);
}

.offer-card__body {
  padding: var(--space-md);
}

.offer-card__body h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.offer-card__body p {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

.offer-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-forest);
}

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

.split--reverse .split__media { order: 2; }

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.split__text p { color: var(--color-ink-muted); }

@media (max-width: 760px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media { order: 0; }
}

/* Evidence / quotes */
.quote-list {
  display: grid;
  gap: var(--space-lg);
}

.quote {
  border-left: 2px solid var(--color-accent-soft);
  padding-left: var(--space-md);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-forest);
  line-height: 1.4;
}

.quote footer {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  font-style: normal;
  font-family: var(--font-body);
}

/* Process steps */
.process {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

.process__item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  animation: rise 0.6s var(--ease) both;
}

.process__item:nth-child(2) { animation-delay: 0.08s; }
.process__item:nth-child(3) { animation-delay: 0.16s; }
.process__item:nth-child(4) { animation-delay: 0.24s; }
.process__item:nth-child(5) { animation-delay: 0.32s; }

.process__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1;
}

.process__item h3 { margin-bottom: 0.25rem; }
.process__item p { margin: 0; color: var(--color-ink-muted); font-size: 0.95rem; }

/* Rates */
.rate-block {
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  background: var(--color-cream);
}

.rate-block__price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-forest);
  margin: var(--space-sm) 0;
}

.rate-note {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-md);
}

.form__row {
  display: grid;
  gap: 0.35rem;
}

.form__row--2 {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr; }
}

.form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-forest);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-cream);
  color: var(--color-ink);
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--color-forest-soft);
  outline-offset: 1px;
}

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

.form__error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin: 0;
}

.form__status {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  margin-top: var(--space-md);
}

.form__status--success {
  border-color: var(--color-success);
  background: rgba(45, 90, 61, 0.08);
  color: var(--color-success);
}

.form__status--error {
  border-color: var(--color-error);
  background: rgba(139, 58, 42, 0.08);
  color: var(--color-error);
}

.contact-aside {
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  background: var(--color-sand);
  height: fit-content;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Blog */
.post-list {
  display: grid;
  gap: var(--space-lg);
}

.post-teaser {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-lg);
}

.post-teaser__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

.post-teaser__meta {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-xs);
}

@media (max-width: 640px) {
  .post-teaser { grid-template-columns: 1fr; }
}

.prose {
  max-width: 42rem;
}

.prose p { color: var(--color-ink-muted); }

.prose h2 {
  margin-top: var(--space-xl);
}

.detail-hero {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.detail-meta__item {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
}

.detail-meta__item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-forest-mid);
}

.checklist--exclude li::before {
  background: var(--color-accent-soft);
}

/* Legal */
.legal {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.legal h2 {
  margin-top: var(--space-xl);
  font-size: 1.5rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--space-md) 0 var(--space-lg);
}

.legal th,
.legal td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--color-sand);
  color: var(--color-forest);
}

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

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

/* CTA band */
.cta-band {
  background: var(--color-forest);
  color: var(--color-sand);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band h2 { color: var(--color-cream); }
.cta-band p {
  max-width: 32rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-sand-deep);
}

.cta-band .btn--primary {
  background: var(--color-sand);
  color: var(--color-forest);
  border-color: var(--color-sand);
}

.cta-band .btn--primary:hover {
  background: var(--color-cream);
}

.cta-band .btn--ghost {
  color: var(--color-sand);
  border-color: var(--color-sand-deep);
}

.cta-band .btn--ghost:hover {
  background: rgba(232, 223, 208, 0.12);
  color: var(--color-cream);
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
