/* ============================================
   IMPRESSUM — Page-Specific Styles
   Loaded after styles.css + global-polish.css
   ============================================ */


/* ─── 1. HERO ─── */

.imp-hero {
  position: relative;
  padding: 128px 0 72px;
  background: linear-gradient(160deg, #041a27 0%, #0a3d56 55%, #0d4f6e 100%);
  color: white;
  overflow: hidden;
}

/* Geometric grid pattern overlay */
.imp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 72px
    );
  pointer-events: none;
}

/* Warm glow accent */
.imp-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 138, 76, 0.09) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.imp-hero .container {
  position: relative;
  z-index: 1;
}

.imp-hero .section-kicker {
  color: rgba(255,255,255,0.52);
}
.imp-hero .section-kicker::before {
  background: linear-gradient(90deg, rgba(184, 138, 76, 0.9), rgba(184, 138, 76, 0.25));
}

.imp-hero h1 {
  color: white;
  font-size: clamp(42px, 5.5vw, 68px);
  margin: 0 0 18px;
  line-height: 1.0;
}

.imp-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  max-width: 460px;
  line-height: 1.65;
  font-weight: 400;
}

/* ── SIGNATURE ELEMENT: Diagonal accent bars ── */
.imp-hero-accent {
  position: absolute;
  top: 0;
  right: max(5%, calc(50% - 560px));
  width: 200px;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.imp-hero-accent span {
  position: absolute;
  display: block;
  width: 3px;
  height: 200%;
  top: -50%;
  transform: rotate(25deg);
  transform-origin: center;
}

.imp-hero-accent span:nth-child(1) {
  left: 20%;
  background: linear-gradient(180deg, transparent, rgba(184, 138, 76, 0.22), transparent);
  animation: imp-accent-drift 8s ease-in-out infinite;
}
.imp-hero-accent span:nth-child(2) {
  left: 50%;
  background: linear-gradient(180deg, transparent, rgba(136, 206, 217, 0.14), transparent);
  animation: imp-accent-drift 10s ease-in-out 2s infinite;
}
.imp-hero-accent span:nth-child(3) {
  left: 80%;
  background: linear-gradient(180deg, transparent, rgba(184, 138, 76, 0.12), transparent);
  animation: imp-accent-drift 12s ease-in-out 4s infinite;
}

@keyframes imp-accent-drift {
  0%, 100% { transform: rotate(25deg) translateY(0); opacity: 1; }
  50% { transform: rotate(25deg) translateY(-20px); opacity: 0.6; }
}

/* Bottom signature line */
.imp-hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 138, 76, 0.6) 20%,
    rgba(136, 206, 217, 0.4) 60%,
    transparent 100%
  );
}


/* ── HERO ENTRANCE ANIMATION ── */
.imp-hero .section-kicker,
.imp-hero h1,
.imp-hero-sub {
  animation: imp-hero-enter 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.imp-hero .section-kicker { animation-delay: 80ms; }
.imp-hero h1 { animation-delay: 180ms; }
.imp-hero-sub { animation-delay: 300ms; }

@keyframes imp-hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ─── 2. PRIMARY INFO GRID ─── */

.imp-info {
  padding: 64px 0 40px;
}

.imp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
}

.imp-card {
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,252,247,0.97), rgba(249,243,233,0.90));
  border: 1px solid rgba(21,39,52,0.07);
  box-shadow: 0 8px 24px rgba(11,28,39,0.05);
  transition: box-shadow 280ms ease, transform 280ms ease;
}

.imp-card:hover {
  box-shadow: 0 16px 40px rgba(11,28,39,0.09);
  transform: translateY(-3px);
}

.imp-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(21,39,52,0.46);
  margin: 0 0 20px;
  line-height: 1;
}

.imp-card-label svg {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
  opacity: 0.7;
}

.imp-card p {
  margin: 0;
  color: rgba(21,39,52,0.74);
  line-height: 1.72;
  font-size: 15px;
}

.imp-card p strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  margin-bottom: 2px;
}

/* Contact card — accent variant */
.imp-card--accent {
  border-left: 3px solid var(--accent-gold);
  background: linear-gradient(145deg, rgba(255,252,247,0.99), rgba(247,240,228,0.94));
}

.imp-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 180ms ease, gap 200ms ease;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Override global main-link underline (specificity must beat styles.css) */
main a:not(.btn):not(.brand):not(.nav-link):not(.mobile-link):not(.hero-text-link).imp-contact-link,
main a:not(.btn):not(.brand):not(.nav-link):not(.mobile-link):not(.hero-text-link).imp-contact-link:hover,
main a:not(.btn):not(.brand):not(.nav-link):not(.mobile-link):not(.hero-text-link).imp-contact-link:focus-visible {
  text-decoration: none;
  text-decoration-line: none;
}

.imp-contact-link:hover {
  color: var(--brand-800);
  gap: 14px;
}

.imp-contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.65;
}

.imp-contact-divider {
  display: block;
  height: 8px;
}


/* ─── 3. DETAILS ROW ─── */

.imp-details {
  padding: 0 0 56px;
}

.imp-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
}

.imp-detail {
  padding: 24px 28px;
  border-radius: 16px;
  background: rgba(255,252,247,0.65);
  border: 1px solid rgba(21,39,52,0.05);
}

.imp-detail-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.imp-detail p {
  margin: 0;
  color: rgba(21,39,52,0.68);
  font-size: 14.5px;
  line-height: 1.68;
}


/* ─── 4. LEGAL SECTION ─── */

.imp-legal {
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(184, 138, 76, 0.035), transparent 70%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.70), rgba(249, 243, 233, 0.40));
  border-top: 1px solid rgba(21, 39, 52, 0.06);
  border-bottom: 1px solid rgba(21, 39, 52, 0.06);
}

.imp-legal-inner {
  max-width: 840px;
}

.imp-legal .section-head {
  margin-bottom: 36px;
}

.imp-legal-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.imp-legal-block {
  padding: 24px 28px;
  border-radius: 16px;
  background: rgba(255,252,247,0.85);
  border: 1px solid rgba(21,39,52,0.06);
  border-left: 3px solid rgba(184,138,76,0.25);
  transition: border-left-color 280ms ease, box-shadow 280ms ease;
}

.imp-legal-block:hover {
  border-left-color: rgba(184,138,76,0.55);
  box-shadow: 0 6px 20px rgba(11,28,39,0.04);
}

.imp-legal-block h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 600;
  line-height: 1.3;
}

.imp-legal-block p {
  margin: 0 0 10px;
  color: rgba(21,39,52,0.70);
  font-size: 14.5px;
  line-height: 1.72;
}

.imp-legal-block p:last-child {
  margin-bottom: 0;
}

/* Long URLs inside legal blocks */
.imp-legal-block a {
  word-break: break-all;
  overflow-wrap: anywhere;
}


/* ─── 5. DISCLAIMER (EXPANDABLE) ─── */

.imp-disclaimer {
  cursor: default;
}

.imp-disclaimer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 0;
  user-select: none;
}

.imp-disclaimer summary::-webkit-details-marker {
  display: none;
}

.imp-disclaimer summary::marker {
  display: none;
  content: "";
}

.imp-disclaimer summary h3 {
  margin: 0;
}

.imp-disclaimer-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(21,39,52,0.35);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), color 280ms ease;
}

.imp-disclaimer:hover .imp-disclaimer-chevron {
  color: rgba(21,39,52,0.55);
}

.imp-disclaimer[open] .imp-disclaimer-chevron {
  transform: rotate(180deg);
}

.imp-disclaimer-body {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(21,39,52,0.08);
  animation: imp-expand 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes imp-expand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.imp-disclaimer-body h4 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 28px 0 8px;
  color: var(--text);
  line-height: 1.3;
}

.imp-disclaimer-body h4:first-child {
  margin-top: 0;
}

.imp-disclaimer-body p {
  margin: 0 0 12px;
  color: rgba(21,39,52,0.65);
  font-size: 14px;
  line-height: 1.75;
}

.imp-disclaimer-body p:last-child {
  margin-bottom: 0;
}


/* ─── 6. CTA ─── */

.imp-cta {
  padding: 72px 0 88px;
}

.imp-cta-inner {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.imp-cta-inner h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  line-height: 1.1;
}

.imp-cta-inner > p {
  margin: 0 0 32px;
  font-size: 15.5px;
}

.imp-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─── 7. SCROLL REVEAL ─── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }


/* ─── RESPONSIVE: TABLET (≤860px) ─── */
/* Header becomes position:fixed here — hero must clear it */

@media (max-width: 860px) {
  .imp-hero {
    padding: 120px 0 52px;
  }

  .imp-hero-accent {
    right: 2%;
    width: 120px;
  }

  .imp-info {
    padding: 52px 0 32px;
  }

  .imp-info-grid,
  .imp-details-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .imp-card {
    padding: 28px;
  }

  .imp-details {
    padding: 0 0 44px;
  }

  .imp-legal {
    padding: 56px 0 64px;
  }

  .imp-legal-inner {
    max-width: 100%;
  }

  .imp-legal .section-head {
    max-width: 100%;
  }

  .imp-cta {
    padding: 56px 0 72px;
  }
}


/* ─── RESPONSIVE: MOBILE (≤600px) ─── */
/* Logo shrinks to 72px, header ~96px total */

@media (max-width: 600px) {
  .imp-hero {
    padding: 112px 0 44px;
  }

  .imp-hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .imp-hero-sub {
    font-size: 15px;
  }

  .imp-hero-accent {
    display: none;
  }

  .imp-info {
    padding: 40px 0 28px;
  }

  .imp-card {
    padding: 22px;
    border-radius: 18px;
  }

  .imp-card-label {
    font-size: 10px;
    margin: 0 0 16px;
  }

  .imp-contact-link {
    font-size: 14px;
  }

  .imp-details {
    padding: 0 0 36px;
  }

  .imp-detail {
    padding: 18px 20px;
    border-radius: 14px;
  }

  .imp-legal {
    padding: 44px 0 52px;
  }

  .imp-legal .section-head {
    margin-bottom: 28px;
  }

  .imp-legal-block {
    padding: 20px;
    border-radius: 14px;
  }

  .imp-legal-block h3 {
    font-size: 17px;
  }

  .imp-disclaimer-body h4 {
    font-size: 15.5px;
    margin: 22px 0 6px;
  }

  .imp-disclaimer-body p {
    font-size: 13.5px;
  }

  .imp-cta {
    padding: 48px 0 64px;
  }

  .imp-cta-inner h2 {
    font-size: 24px;
  }

  .imp-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .imp-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}


/* ─── RESPONSIVE: SMALL MOBILE (≤420px) ─── */
/* Logo shrinks to 60px, header ~84px, padding tighter */

@media (max-width: 420px) {
  .imp-hero {
    padding: 100px 0 36px;
  }

  .imp-hero h1 {
    font-size: 30px;
  }

  .imp-hero-sub {
    font-size: 14px;
    line-height: 1.6;
  }

  .imp-info {
    padding: 32px 0 24px;
  }

  .imp-card {
    padding: 18px;
    border-radius: 16px;
  }

  .imp-card p strong {
    font-size: 15.5px;
  }

  .imp-contact-link {
    font-size: 13.5px;
    gap: 8px;
  }

  .imp-contact-link svg {
    width: 16px;
    height: 16px;
  }

  .imp-details {
    padding: 0 0 28px;
  }

  .imp-detail {
    padding: 16px 18px;
  }

  .imp-detail-title {
    font-size: 16px;
  }

  .imp-legal {
    padding: 36px 0 44px;
  }

  .imp-legal-stack {
    gap: 14px;
  }

  .imp-legal-block {
    padding: 16px;
    border-radius: 12px;
  }

  .imp-legal-block h3 {
    font-size: 16px;
  }

  .imp-legal-block p {
    font-size: 13.5px;
  }

  .imp-cta {
    padding: 40px 0 56px;
  }

  .imp-cta-inner > p {
    font-size: 14px;
    margin-bottom: 24px;
  }
}


/* ─── REDUCED MOTION ─── */

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .imp-hero .section-kicker,
  .imp-hero h1,
  .imp-hero-sub {
    animation: none;
  }

  .imp-hero-accent span {
    animation: none;
  }

  .imp-card:hover {
    transform: none;
  }

  .imp-disclaimer-body {
    animation: none;
  }
}
