/* Digital Atelier — glass / purple-green theme */
:root {
  --bg-deep: #0f0a1a;
  --bg-mid: #1a1230;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --purple: #9b7ed9;
  --purple-soft: #6b4fa8;
  --green: #6ecf9a;
  --green-glow: rgba(110, 207, 154, 0.35);
  --purple-glow: rgba(155, 126, 217, 0.4);
  --text: #e8e4f0;
  --text-muted: #a89bc4;
  --accent: var(--green);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--purple-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, var(--green-glow), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30 Z' fill='none' stroke='%239b7ed9' stroke-opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

main {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 4rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-soft), var(--green));
  animation: float-shape 6s ease-in-out infinite;
}

.logo-text { font-family: var(--font-display); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.primary-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  padding: 0.45rem 1rem !important;
  background: linear-gradient(120deg, var(--purple-soft), #4a7c6f);
  border-radius: 999px;
  color: #fff !important;
}

.nav-cta:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; gap: 0.5rem; }
  .nav-toggle-bars {
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 1.25rem;
    right: 1.25rem;
    margin-top: 0.5rem;
    display: none;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--glass);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-tag { color: var(--text-muted); font-size: 0.95rem; }

.footer-contact p,
.footer-links p,
.footer-legal p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.35rem;
}

.footer-copy {
  text-align: center;
  margin: 2rem 0 0;
  color: var(--text-muted);
}

/* Hero variants */
.hero {
  padding: 3rem 0 2rem;
  position: relative;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-split { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float-shape 8s ease-in-out infinite;
  pointer-events: none;
}

.shape-blob--purple {
  width: 120px;
  height: 120px;
  background: var(--purple);
  top: -20px;
  right: 10%;
}

.shape-blob--green {
  width: 90px;
  height: 90px;
  background: var(--green);
  bottom: 10%;
  left: -10px;
  animation-delay: -3s;
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn-primary {
  background: linear-gradient(120deg, var(--purple-soft), #3d6b5c);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-card h3 { margin-top: 0; }

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* Testimonials */
.quote-block {
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Forms */
.form-panel {
  padding: 2rem;
  max-width: 560px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.field-error {
  color: #f5a8a8;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  display: none;
}

.form-status.is-visible { display: block; }

.form-status--success {
  background: rgba(110, 207, 154, 0.15);
  border: 1px solid var(--green);
}

.form-status--error {
  background: rgba(245, 168, 168, 0.12);
  border: 1px solid #e88;
}

.script-error {
  background: rgba(245, 168, 168, 0.15);
  border: 1px solid #e88;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.25rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: slide-up 0.4s ease;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Page headers */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero--image {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-hero--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--image .page-hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  width: 100%;
  background: linear-gradient(transparent, rgba(15, 10, 26, 0.92));
}

/* Blog */
.blog-list article {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.blog-list h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.blog-list h2 a {
  color: #fff;
  text-decoration: none;
}

.blog-list h2 a:hover { color: var(--green); }

.article-body {
  max-width: 68ch;
}

.article-body h2 { margin-top: 2rem; }

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Legal */
.legal-content {
  max-width: 72ch;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

table.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--glass-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.cookies-table th {
  background: rgba(255, 255, 255, 0.05);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  margin: 0;
  opacity: 0.4;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rate-table th,
.rate-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}

.rate-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.process-steps li {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  margin-bottom: 1rem;
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-soft), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Portfolio */
.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

@media (max-width: 700px) {
  .portfolio-item { grid-template-columns: 1fr; }
}

.portfolio-item img {
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
