@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Source+Sans+3:wght@400;500;600&family=Syne:wght@600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #18181B;
  --coral: #F43F5E;
  --paper: #FFFBEB;
  --lime: #A3E635;
  --muted: #71717A;
  --head: 'Syne', 'Archivo Black', system-ui, sans-serif;
  --display: 'Archivo Black', 'Syne', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 0 100%);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--coral); }

.main-nav {
  display: flex;
  gap: 1.1rem;
  flex: 1;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 251, 235, 0.75);
  font-size: 0.88rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover { color: var(--lime); text-decoration: none; }

.nav-cta {
  background: var(--coral);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  text-decoration: none !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-cta:hover { background: var(--lime); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  background: var(--coral);
  border: none;
  width: 36px;
  height: 32px;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--paper);
}

.nav-toggle { position: relative; }
.nav-toggle span { top: 15px; position: absolute; }
.nav-toggle::before { top: 9px; position: absolute; }
.nav-toggle::after { bottom: 9px; position: absolute; }

main { padding-top: 68px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 88vh;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '→';
  position: absolute;
  right: 8%;
  bottom: 12%;
  font-size: clamp(4rem, 12vw, 9rem);
  color: var(--coral);
  opacity: 0.15;
  font-family: var(--display);
  line-height: 1;
}

.hero-content {
  padding: 4.5rem 1.5rem 4rem max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

.hero-lead {
  color: rgba(255, 251, 235, 0.72);
  max-width: 520px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.arrow-motif {
  font-size: 2.5rem;
  color: var(--coral);
  margin: 0.5rem 0;
  line-height: 1;
}

/* Sections */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
}

.section-dark .section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  font-family: var(--head);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '→';
  margin-left: 0.5rem;
  color: var(--coral);
  font-size: 0.85em;
}

.section-dark h2::after { color: var(--lime); }

.page-hero {
  padding: 5rem 1.5rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
  margin-bottom: 0;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

.page-hero p { color: rgba(255, 251, 235, 0.75); margin-top: 0.75rem; max-width: 680px; }

/* Direction Note */
.direction-note {
  background: var(--coral);
  color: var(--paper);
  padding: 2.5rem 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
}

.direction-note-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.direction-note-label {
  font-family: var(--display);
  font-size: 0.85rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 3px solid var(--lime);
  padding-right: 1rem;
}

.direction-note blockquote {
  font-family: var(--head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.45;
  max-width: 900px;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 1.5rem;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  text-align: left;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.8rem;
  color: var(--lime);
  line-height: 1;
}

.stat span { font-size: 0.9rem; color: rgba(255, 251, 235, 0.7); margin-top: 0.5rem; display: block; }

.stat-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cards-grid-asym {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s;
}

.card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--coral); }

.card-offset-1 { grid-column: span 3; }
.card-offset-2 { grid-column: span 3; margin-top: 2rem; }
.card-offset-3 { grid-column: span 3; }
.card-offset-4 { grid-column: span 3; margin-top: 2rem; }

.card-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  font-weight: 600;
}

.card h3 {
  font-family: var(--head);
  font-size: 1.25rem;
  margin: 0.65rem 0;
}

.card-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--coral);
}

.card-dark .card-label { color: var(--lime); }

.service-code {
  font-family: var(--display);
  font-size: 0.75rem;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

/* Two col */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

.two-col img {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: 2px solid var(--ink);
}

/* Method steps */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.method-step {
  background: var(--paper);
  border-top: 4px solid var(--coral);
  padding: 1.5rem;
  position: relative;
}

.method-step::before {
  content: '→';
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: var(--coral);
  font-size: 1.2rem;
}

.method-step:last-child::before { display: none; }

.method-step-num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--coral);
  line-height: 1;
}

.method-step h3 {
  font-family: var(--head);
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
}

.method-step p {
  color: var(--slate);
  font-size: 0.95rem;
}

.section-dark .method-step {
  color: var(--ink);
}

.section-dark .method-step p {
  color: var(--slate);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.portfolio-card {
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}

.portfolio-card:nth-child(2) { margin-top: 2.5rem; }

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.portfolio-card-body { padding: 1.25rem; }

.portfolio-card h3 {
  font-family: var(--head);
  font-size: 1.1rem;
}

.portfolio-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  font-weight: 600;
}

/* FAQ */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 2px solid var(--ink);
  padding: 1.1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--head);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '→ ';
  color: var(--coral);
}

.faq-item[open] summary::before { content: '↓ '; }

.faq-item p { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }

.mini-faq .faq-item { padding: 0.85rem 0; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonial {
  background: var(--ink);
  color: var(--paper);
  padding: 1.75rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.testimonial p { font-style: italic; margin-bottom: 1rem; font-size: 0.95rem; }

.testimonial cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--lime);
  font-weight: 600;
}

/* CTA */
.cta-block {
  background: var(--coral);
  color: var(--paper);
  padding: 4rem 1.5rem;
  text-align: center;
  clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 calc(100% - 24px));
}

.cta-block-inner { max-width: 640px; margin: 0 auto; }

.cta-block h2 { font-family: var(--display); font-size: 2rem; margin-bottom: 1rem; }
.cta-block h2::after { display: none; }

.cta-block p { margin-bottom: 1.5rem; opacity: 0.92; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.92rem;
  text-decoration: none !important;
  font-family: var(--body);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn-primary { background: var(--coral); color: var(--paper); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }

.btn-outline { border: 2px solid var(--lime); color: var(--lime); background: transparent; }
.btn-outline:hover { background: var(--lime); color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--lime); color: var(--ink); }

.btn-secondary { background: transparent; border: 2px solid var(--paper); color: var(--paper); }
.btn-secondary:hover { background: var(--paper); color: var(--ink); }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--paper); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 251, 235, 0.7);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-grid strong {
  color: var(--paper);
  font-family: var(--head);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { color: var(--lime); text-decoration: none; }
.footer-links a:hover { color: var(--coral); }

.footer-disclaimer,
.footer-copy {
  max-width: 1240px;
  margin: 2rem auto 0;
  font-size: 0.78rem;
  color: rgba(255, 251, 235, 0.5);
  line-height: 1.55;
}

.disclaimer-box,
.disclaimer-inline {
  font-size: 0.84rem;
  color: var(--muted);
  border-left: 4px solid var(--coral);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  background: rgba(24, 24, 27, 0.04);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.35rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--body);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.consent-label { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }

.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-status { padding: 1rem; margin-bottom: 1rem; }
.form-status.ok { background: rgba(163, 230, 53, 0.3); border: 2px solid var(--lime); }
.form-status.err { background: rgba(244, 63, 94, 0.15); border: 2px solid var(--coral); }

/* Legal */
.legal-content h2 {
  font-family: var(--head);
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal-content h2::after { display: none; }

.team-list { list-style: none; margin: 1rem 0; }
.team-list li { padding: 0.65rem 0; border-bottom: 1px solid rgba(24, 24, 27, 0.12); }

.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 60vh;
}

.error-page h1 { font-family: var(--display); font-size: 3rem; color: var(--coral); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  border-top: 3px solid var(--coral);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  color: var(--paper);
  font-size: 0.9rem;
}

.cookie-banner.hidden { display: none !important; visibility: hidden; pointer-events: none; }

.cookie-banner a { color: var(--lime); }

.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal[hidden] { display: none !important; visibility: hidden; pointer-events: none; }

.cookie-modal-inner {
  background: var(--paper);
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.cookie-modal-inner h2 {
  font-family: var(--head);
  margin-bottom: 1rem;
}

.cookie-modal-inner label { display: block; margin: 0.75rem 0; }

/* Lists */
.content-list { margin: 1rem 0 1rem 1.25rem; }
.content-list li { margin-bottom: 0.4rem; }

@media (max-width: 960px) {
  .hero,
  .two-col,
  .contact-grid,
  .stat-grid,
  .method-steps,
  .testimonial-grid,
  .portfolio-grid,
  .direction-note-inner { grid-template-columns: 1fr; }

  .cards-grid-asym { grid-template-columns: 1fr; }
  .card-offset-1,
  .card-offset-2,
  .card-offset-3,
  .card-offset-4 { grid-column: span 1; margin-top: 0; }

  .hero-image { clip-path: none; }
  .portfolio-card:nth-child(2) { margin-top: 0; }
  .direction-note-label { writing-mode: horizontal-tb; transform: none; border-right: none; border-bottom: 3px solid var(--lime); padding-bottom: 0.5rem; }

  .main-nav,
  .nav-cta { display: none; }

  .nav-toggle { display: block; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--coral);
  }
}
