/* ============================================================
   AERO — Stylesheet
   White / Grey / Dark Blue / Black
   ============================================================ */

/* 1. Reset & Custom Properties
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg:           #f5f7f9;      /* cool off-white — main */
  --bg-white:     #ffffff;      /* pure white — section alt */
  --bg-card:      #edf0f4;      /* soft grey card */
  --bg-dark:      #0d1b2a;      /* very dark navy — nav, footer, dark sections */
  --bg-dark-alt:  #0a1520;      /* slightly deeper navy */
  --bg-mid:       #1e3a5c;      /* mid blue — accent blocks */

  /* Borders */
  --border:       rgba(13, 27, 42, 0.09);
  --border-dark:  rgba(255, 255, 255, 0.08);

  /* Text on light */
  --text:         #0d1b2a;      /* dark navy — primary */
  --text-muted:   #5a6a7a;      /* medium grey */
  --text-dim:     #9aaab8;      /* light grey */

  /* Text on dark */
  --text-inv:     #f0f4f8;      /* near-white */
  --text-inv-muted: #7a9ab5;    /* muted blue-grey on dark */

  /* Accent */
  --accent:       #1a3a6b;      /* deep blue — labels, links */
  --accent-mid:   #2e6da4;      /* medium blue — hover */

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --header-h:     64px;
  --section-pad:  clamp(80px, 12vw, 160px);
  --container-w:  1280px;
  --container-px: clamp(24px, 8vw, 120px);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
}

html {
  scroll-behavior: auto;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.video-playing {
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 2. Loader
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-inv);
}

.loader-bar-wrap {
  width: 120px;
  height: 1px;
  background: var(--border-dark);
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--text-inv);
  transition: width 0.3s ease;
}

/* 3. Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  background: transparent;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}

.site-header.scrolled {
  background: var(--bg-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-inv);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.6; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(240, 244, 248, 0.6);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text-inv); }

.site-nav .nav-cta {
  color: var(--text-inv);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: background 0.2s, border-color 0.2s;
}
.site-nav .nav-cta:hover {
  background: var(--text-inv);
  color: var(--bg-dark);
  border-color: var(--text-inv);
}

/* 4. Video Hero
   ============================================================ */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(240, 244, 248, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

#scroll-hint.visible { opacity: 1; }

#scroll-hint svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* 5. Main Content
   ============================================================ */
#main-content {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
#main-content.visible { opacity: 1; }

/* 6. Sections — shared
   ============================================================ */
.section {
  padding: var(--section-pad) var(--container-px);
  border-bottom: 1px solid var(--border);
}

.section.section-dark {
  background: var(--bg-dark);
  border-bottom-color: var(--border-dark);
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-dark .label {
  color: var(--text-inv-muted);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* 7. About
   ============================================================ */
.section-about {
  background: var(--bg-white);
}

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.display-heading em {
  font-style: italic;
  color: var(--text-dim);
}

.about-body {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 580px;
}

/* 8. Products
   ============================================================ */
.section-products {
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-card {
  padding: clamp(36px, 5vw, 60px);
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.25s var(--ease-out);
}
.product-card:hover { background: var(--bg-card); }

.product-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-mid);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

.product-card p {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  transition: gap 0.25s var(--ease-out), color 0.2s;
}
.link-arrow:hover { gap: 14px; color: var(--accent-mid); }

/* 9. Audiences — dark section
   ============================================================ */
.section-audiences {
  background: var(--bg-dark);
}

.audiences-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(40px, 6vw, 80px);
  align-items: start;
}

.audience-divider {
  background: var(--border-dark);
  align-self: stretch;
}

.audience-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--text-inv);
  margin-bottom: 28px;
}

.audience-block ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-block li {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text-inv-muted);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.audience-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--accent-mid);
}

/* 10. Stat
   ============================================================ */
.section-stat {
  background: var(--bg-white);
  text-align: center;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.stat-unit {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--text-dim);
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* 11. Clients
   ============================================================ */
.section-clients {
  background: var(--bg);
}

.clients-intro {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: clamp(32px, 5vw, 52px);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.client-slot {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-white);
  transition: background 0.2s;
}
.client-slot:hover { background: var(--bg-card); }

.client-logo {
  max-height: 90px;
  max-width: 85%;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.client-slot:hover .client-logo {
  opacity: 1;
}

.client-logo[alt="Röfix"] {
  transform: scale(1.8);
}

.client-logo[alt="Knauf"] {
  transform: scale(1.3);
}

.client-logo[alt="Caparol"] {
  transform: scale(1.3);
}

.client-logo-placeholder {
  width: 65%;
  height: 20px;
  background: var(--border);
  border-radius: 2px;
}

/* 12. Contact — dark section
   ============================================================ */
.section-contact {
  background: var(--bg-dark-alt);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-inv);
  margin-bottom: clamp(44px, 7vw, 72px);
}

.section-contact .label {
  color: var(--text-inv-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-inv-muted);
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--text-inv);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(240, 244, 248, 0.2);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.form-field input.error,
.form-field textarea.error {
  border-color: rgba(220, 80, 80, 0.5);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 15px 28px;
  background: var(--text-inv);
  color: var(--bg-dark);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, gap 0.25s var(--ease-out), opacity 0.2s;
}
.submit-btn:hover { background: #ffffff; gap: 18px; }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; gap: 12px; }

.form-success {
  display: none;
  padding: 18px 20px;
  border: 1px solid rgba(100, 160, 200, 0.25);
  border-radius: 2px;
  background: rgba(100, 160, 200, 0.06);
  font-size: 0.9rem;
  color: #9ac8e8;
  letter-spacing: 0.03em;
}
.form-success.visible { display: block; }

/* 13. Footer
   ============================================================ */
.site-footer {
  padding: clamp(44px, 7vw, 72px) var(--container-px);
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240, 244, 248, 0.35);
  flex: 1;
}

.footer-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(240, 244, 248, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-link:hover {
  color: var(--text-inv);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(240, 244, 248, 0.2);
}

/* 14. Responsive
   ============================================================ */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
  .audiences-grid { grid-template-columns: 1fr; gap: 48px; }
  .audience-divider { display: none; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  :root {
    --container-px: 20px;
    --section-pad: 64px;
  }
  .site-nav a:not(.nav-cta) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
