/* Pille Brick Ltd -- Staging Preview Styles v01 */
/* Proposal-only. Staging-only. */

:root {
  --forest: #1B4332;
  --earth: #7D5A50;
  --stone: #F5F5F0;
  --sage: #8BA888;
  --clay: #C4A882;
  --charcoal: #2C2C2C;
  --slate: #6B6B6B;
  --cloud: #E8E8E4;
  --pure: #FFFFFF;
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 48px;
  --gap-xl: 80px;
  --gap-2xl: 120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--pure);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-sm);
}

/* Language visibility - absolute priority */
html:not(.lang-hu) [data-lang="hu"] { display: none !important; }
html.lang-hu [data-lang="en"] { display: none !important; }

html.lang-hu [data-lang="hu"] { display: block; }
html.lang-hu span[data-lang="hu"],
html.lang-hu a[data-lang="hu"],
html.lang-hu button[data-lang="hu"],
html.lang-hu label[data-lang="hu"],
html.lang-hu dt[data-lang="hu"],
html.lang-hu dd[data-lang="hu"],
html.lang-hu .map-placeholder span[data-lang="hu"] { display: inline; }
html.lang-hu .section-header [data-lang="hu"] { display: block; }
html.lang-hu .hero-actions [data-lang="hu"],
html.lang-hu .collab-cta [data-lang="hu"] { display: inline-flex; }
html.lang-hu .hero-kicker[data-lang="hu"] { display: inline-block; }
html.lang-hu .btn[data-lang="hu"] { display: inline-flex; }
html.lang-hu p.footer-confidentiality[data-lang="hu"] { display: block; }
html.lang-hu .mobile-nav a [data-lang="hu"] { display: inline; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: var(--gap-sm) 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-header.scrolled .logo-text,
.site-header.scrolled .main-nav a { color: var(--charcoal); }
.site-header.scrolled .logo-icon rect { fill: var(--forest); }

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-weight: 700;
  font-size: 18px;
  color: var(--pure);
}
.site-header.scrolled .logo { color: var(--charcoal); }

.logo-icon {
  width: 28px; height: 28px;
}
.logo-icon rect { fill: currentColor; transition: fill 0.3s ease; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--sage); transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { text-decoration: none; }

.nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 16px !important;
}
.nav-cta::after { display: none !important; }

.lang-toggle {
  display: flex;
  gap: 4px;
  margin-left: var(--gap-sm);
}
.lang-toggle button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.site-header.scrolled .lang-toggle button {
  border-color: var(--cloud);
  color: var(--charcoal);
}
.lang-toggle button.active,
.lang-toggle button:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--pure);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--pure);
  font-size: 24px;
  cursor: pointer;
}
.site-header.scrolled .menu-toggle { color: var(--charcoal); }

/* Hero */
.section-hero {
  position: relative;
  min-height: 100vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3f 40%, #4a7c59 100%);
}
.hero-media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 70px);
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,0.1) 0%, rgba(27,67,50,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: var(--gap-sm);
}
.hero-title {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pure);
  margin-bottom: var(--gap-sm);
}
.hero-lead {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--gap-md);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--forest);
  color: var(--pure);
}
.btn-primary:hover {
  background: #143326;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--pure);
  border: 1px solid rgba(255,255,255,0.35);
}
.site-header.scrolled .btn-secondary { color: var(--charcoal); border-color: var(--cloud); }
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}
.btn-text {
  background: transparent;
  color: var(--forest);
  padding: 8px 0;
  font-weight: 600;
}
.btn-text:hover { text-decoration: underline; }

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

.section-header {
  max-width: 640px;
  margin-bottom: var(--gap-lg);
}
.section-header-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: var(--gap-xs);
}
h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--gap-sm);
  color: var(--charcoal);
}
.section-intro {
  font-size: 18px;
  color: var(--slate);
  line-height: 1.6;
}

/* Technology cards */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}
.tech-card {
  background: var(--pure);
  border: 1px solid var(--cloud);
  border-radius: 16px;
  padding: var(--gap-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.tech-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--stone);
  border-radius: 12px;
  margin-bottom: var(--gap-sm);
  font-size: 24px;
  color: var(--forest);
}
.tech-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.tech-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
}

/* Media-text */
.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}
.media-text-reversed .media-text-image { order: 2; }
.media-text-reversed .media-text-content { order: 1; }
.media-text-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cloud);
  min-height: 320px;
  position: relative;
}
/* Placeholder image pattern */
.media-text-image::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--stone) 0%, var(--cloud) 100%);
}
.media-text-image::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(27,67,50,0.04) 19px, rgba(27,67,50,0.04) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(27,67,50,0.04) 19px, rgba(27,67,50,0.04) 20px);
}
.media-text-content { padding: var(--gap-sm) 0; }

.checklist {
  list-style: none;
  padding: 0;
  margin: var(--gap-md) 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--charcoal);
}
.checklist i {
  color: var(--sage);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Applications */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.app-card {
  background: var(--pure);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cloud);
  transition: box-shadow 0.25s ease;
}
.app-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.app-card img, .app-card .app-img {
  width: 100%; height: 220px; object-fit: cover;
  background: linear-gradient(135deg, var(--stone), var(--cloud));
  position: relative;
}
.app-card .app-img::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(27,67,50,0.03) 20px, rgba(27,67,50,0.03) 40px);
}

.app-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.app-art svg {
  width: 100%;
  height: 100%;
}
.app-card-content { padding: var(--gap-md); }
.app-card h3 { font-size: 18px; margin-bottom: 6px; }
.app-card p { font-size: 14px; color: var(--slate); line-height: 1.55; }

/* Editorial quote */
.editorial-quote {
  font-family: Georgia, 'Source Serif 4', serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--forest);
  border-left: 4px solid var(--sage);
  padding-left: var(--gap-md);
  margin: var(--gap-md) 0;
  font-style: italic;
}

/* Collaboration */
.section-collaboration {
  background: var(--forest);
  color: var(--pure);
}
.section-collaboration h2 { color: var(--pure); }
.section-collaboration .section-intro { color: rgba(255,255,255,0.75); }
.section-collaboration .section-kicker { color: var(--sage); }

.collab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
.collab-card {
  border: 1px solid rgba(139,168,136,0.25);
  border-radius: 16px;
  padding: var(--gap-md);
  background: rgba(255,255,255,0.03);
}
.collab-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: var(--gap-sm);
  font-size: 24px;
  color: var(--sage);
}
.collab-card h3 { font-size: 18px; margin-bottom: 6px; color: var(--pure); }
.collab-card p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.55; }
.collab-cta { text-align: center; }
.collab-cta .btn-primary {
  background: var(--pure);
  color: var(--forest);
}
.collab-cta .btn-primary:hover { background: var(--stone); }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gap-lg);
  align-items: start;
}
.contact-info p { color: var(--slate); margin-bottom: var(--gap-md); }
.contact-details {
  display: grid;
  gap: var(--gap-sm);
}
.contact-details > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.contact-details dt {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-details dt i { font-size: 18px; color: var(--sage); }
.contact-details dd {
  grid-column: 2;
  font-size: 15px;
  color: var(--charcoal);
}

.contact-form {
  background: var(--pure);
  border: 1px solid var(--cloud);
  border-radius: 16px;
  padding: var(--gap-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--gap-sm);
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--cloud);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
  background: var(--pure);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(139,168,136,0.15);
}
.form-note {
  font-size: 12px;
  color: var(--slate);
  margin-bottom: var(--gap-sm);
}
.form-note a { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: var(--gap-lg) 0 var(--gap-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}
.footer-brand p { font-size: 14px; line-height: 1.6; margin-top: var(--gap-sm); }
.footer-nav h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pure);
  margin-bottom: var(--gap-sm);
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.footer-nav a:hover { color: var(--pure); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--gap-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap-md);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; }
.footer-confidentiality {
  max-width: 480px;
  text-align: right;
  color: rgba(255,255,255,0.5);
}

/* Map placeholder */
.map-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--stone), var(--cloud));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 14px;
  margin-top: var(--gap-sm);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--forest);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--pure);
  font-size: 24px;
  font-weight: 600;
}
.mobile-nav .close-menu {
  position: absolute; top: var(--gap-md); right: var(--gap-md);
  background: transparent; border: none; color: var(--pure);
  font-size: 32px; cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  h2 { font-size: 28px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .lang-toggle { margin-left: auto; margin-right: var(--gap-sm); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .media-text { grid-template-columns: 1fr; }
  .media-text-reversed .media-text-image { order: 0; }
  .media-text-reversed .media-text-content { order: 1; }
  .app-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--gap-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-confidentiality { text-align: center; max-width: 100%; }
}

@media (max-width: 640px) {
  .tech-grid { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: 1fr; }
  .section-padded { padding: var(--gap-lg) 0; }
  .hero-title { font-size: 34px; }
  .hero-lead { font-size: 18px; }
}

/* Scroll animation helper */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Map embed */
.map-embed {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
  filter: grayscale(0.25) contrast(0.95);
  transition: filter 0.3s ease;
}
.map-embed:hover { filter: grayscale(0) contrast(1); }

/* Stronger footer accent */
.site-footer { border-top: 3px solid var(--forest); }

/* CTA enhancements */
.btn-primary {
  box-shadow: 0 2px 8px rgba(27,67,50,0.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(27,67,50,0.3);
}
.collab-cta .btn-primary {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.collab-cta .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Logo enhancement */
.logo-icon-accent {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.site-header.scrolled .logo-icon-accent { opacity: 0.5; }

/* Hero inline art */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  pointer-events: none;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}

/* Section inline art */
.section-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.section-art svg {
  width: 100%;
  height: 100%;
}
