:root {
  --granit: #2D3436;
  --slate: #636E72;
  --steel: #0984E3;
  --pearl: #F5F6FA;
  --teal: #00B894;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--pearl);
  color: var(--granit);
  line-height: 1.65;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--teal); }

.container { width: min(1200px, 92vw); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  text-align: center;
}
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: var(--teal); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #00a383; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--steel); color: var(--steel); }
.btn-outline:hover { background: var(--steel); color: #fff; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; }

.slide-up, .fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
html.js .slide-up, html.js .fade-in {
  opacity: 0;
  transform: translateY(28px);
}
html.js .slide-up.visible, html.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--granit);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pearl);
}
.logo span { color: var(--teal); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; list-style: none; gap: 1.5rem; }
.main-nav a { color: var(--pearl); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pearl); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--granit) 0%, #1a1f21 100%);
  color: var(--pearl);
}
.hero-content { padding-left: max(4vw, 1rem); }
.hero-tag { color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; color: #b2bec3; margin-bottom: 2rem; max-width: 520px; }
.hero-visual { position: relative; overflow: hidden; border-radius: 4px; }
.hero-visual img { width: 100%; height: 480px; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--granit) 0%, transparent 40%);
}

/* Sections */
section { padding: 5rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--slate); max-width: 600px; margin: 0 auto; }

/* Solution cards overlay */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.solution-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--granit);
}
.solution-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.solution-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,52,54,0.92) 0%, rgba(45,52,54,0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--pearl);
}
.solution-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.solution-card p { font-size: 0.9rem; opacity: 0.9; }

/* Quote divider */
.quote-band {
  background: var(--granit);
  color: var(--pearl);
  padding: 4rem 0;
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}
.quote-band cite { display: block; margin-top: 1rem; color: var(--teal); font-style: normal; font-size: 0.95rem; }

/* Industries strip */
.industries-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}
.industry-tag {
  background: #fff;
  border: 1px solid var(--granit);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--granit);
  transition: all 0.3s;
}
.industry-tag:hover { background: var(--steel); color: #fff; border-color: var(--steel); }

/* Services 3 col */
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-block {
  background: #fff;
  border: 1px solid var(--granit);
  padding: 2rem;
  transition: box-shadow 0.3s;
}
.service-block:hover { box-shadow: 0 8px 30px rgba(45,52,54,0.12); }
.service-block h3 { color: var(--steel); margin-bottom: 1rem; font-size: 1.35rem; }
.service-block p { color: var(--slate); font-size: 0.95rem; }

/* Editorial split */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.editorial-split img { border-radius: 4px; box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.editorial-split h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.editorial-split p { color: var(--slate); margin-bottom: 1rem; }

/* Features horizontal */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px solid var(--granit);
}
.feature-num { font-family: var(--font-head); font-size: 2.5rem; color: var(--teal); font-weight: 700; }
.feature-item h4 { margin: 0.75rem 0 0.5rem; font-size: 1.1rem; }
.feature-item p { font-size: 0.9rem; color: var(--slate); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--granit);
  color: var(--pearl);
  padding: 2rem;
  border-left: 4px solid var(--teal);
}
.testimonial-card p { font-style: italic; margin-bottom: 1.25rem; font-size: 0.95rem; }
.testimonial-card .author { font-weight: 600; color: var(--teal); font-size: 0.9rem; }
.testimonial-card .role { font-size: 0.8rem; color: #b2bec3; }

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--steel), var(--teal));
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}
.cta-band h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-band p { margin-bottom: 2rem; opacity: 0.95; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: #fff; color: var(--steel); }
.cta-band .btn:hover { background: var(--granit); color: #fff; }

/* Page hero inner */
.page-hero {
  background: var(--granit);
  color: var(--pearl);
  padding: 8rem 0 3rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p { color: #b2bec3; max-width: 640px; margin: 0 auto; }

/* Collection */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--granit);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--steel); color: #fff; border-color: var(--steel); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.catalog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--granit);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}
.catalog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.catalog-card img { width: 200px; height: 150px; object-fit: cover; }
.catalog-card .ref { font-size: 0.75rem; color: var(--slate); font-family: monospace; }
.catalog-card .cat-tag { display: inline-block; background: var(--teal); color: #fff; font-size: 0.7rem; padding: 0.2rem 0.6rem; margin: 0.5rem 0; }
.catalog-card .price { font-size: 1.25rem; font-weight: 700; color: var(--steel); margin: 0.5rem 0; }
.catalog-meta { font-size: 0.85rem; color: var(--slate); margin-bottom: 1rem; }
.catalog-meta span { display: block; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info { background: var(--granit); color: var(--pearl); padding: 2.5rem; }
.contact-info h3 { margin-bottom: 1.5rem; color: var(--teal); }
.contact-info p { margin-bottom: 0.75rem; font-size: 0.95rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-error { color: #d63031; font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border: 1px solid var(--granit);
}
.form-success.show { display: block; animation: fadeIn 0.9s ease; }
.form-success p { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--granit); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* About / Services / Legal */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.content-block p, .content-block li { color: var(--slate); margin-bottom: 1rem; }
.content-block ul { padding-left: 1.5rem; }
.services-list { display: grid; gap: 2rem; }
.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--granit);
  padding: 2rem;
  align-items: center;
}
.service-detail img { height: 180px; object-fit: cover; width: 100%; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.team-card { background: #fff; border: 1px solid var(--granit); padding: 1.5rem; text-align: center; }
.team-card h4 { margin-bottom: 0.25rem; }
.team-card .role { color: var(--steel); font-size: 0.85rem; }

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--granit);
  color: var(--pearl);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { font-size: 0.9rem; max-width: 700px; }
.cookie-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.cookie-link { color: var(--teal); text-decoration: underline; }

/* Footer */
.site-footer { background: #1a1f21; color: var(--pearl); padding: 4rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2rem; padding-bottom: 3rem; }
.footer-slogan { color: #b2bec3; margin-top: 0.75rem; font-size: 0.9rem; }
.footer-links h4, .footer-contact h4 { color: var(--teal); margin-bottom: 1rem; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-contact a { color: #b2bec3; }
.footer-links a:hover, .footer-contact a:hover { color: var(--teal); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.5rem; color: #b2bec3; }
.footer-bottom { border-top: 1px solid #333; padding: 1.25rem 0; text-align: center; font-size: 0.85rem; color: #636E72; }

/* Responsive */
@media (max-width: 1024px) {
  .solutions-grid, .features-row { grid-template-columns: repeat(2, 1fr); }
  .services-row, .testimonials-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content { padding-left: 0; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 600px; margin: 0 auto; }
  .editorial-split { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { grid-template-columns: 1fr; }
  .catalog-card img { width: 100%; height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--granit);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.35s;
    align-items: flex-start;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 1rem; }
  .solutions-grid, .features-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; text-align: center; }
}
