/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

:root {
  --brand-primary: #1a4b8c;
  --brand-secondary: #2d6cc0;
  --brand-dark: #0f2d56;
  --brand-light: #e8f0fb;
  --brand-accent: #f4a820;
  --color-white: #ffffff;
  --color-off-white: #f7f8fa;
  --color-border: #dde3ef;
  --color-text: #1a1e2a;
  --color-text-muted: #5a6478;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --section-padding: 80px 0;
  --container-max: 1200px;
}

body { font-family: var(--font-body); color: var(--color-text); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); }

.btn-primary {
  background: var(--brand-primary);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: background 0.2s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--brand-dark); color: var(--color-white); }

.btn-outline {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover { background: var(--brand-primary); color: var(--color-white); }

.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--color-text); }
.section-subtitle { color: var(--color-text-muted); font-size: 1.05rem; max-width: 600px; }
.accent-bar { width: 50px; height: 4px; background: var(--brand-accent); margin: 12px 0 24px; }

.site-header { background: var(--color-white); box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 999; }

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--brand-dark);
  overflow: hidden;
}
.hero-section .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,25,50,0.75) 0%, rgba(10,25,50,0.35) 100%);
  z-index: 1;
}
.hero-section video,
.hero-section .hero-bg-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-section .hero-content { position: relative; z-index: 2; color: var(--color-white); }
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; }
.hero-section .hero-sub { font-size: 1.15rem; opacity: 0.9; max-width: 580px; margin: 1rem 0 2rem; }

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(26,75,140,0.12); transform: translateY(-4px); }
.service-card .card-icon { color: var(--brand-primary); font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

.why-strip { background: var(--brand-primary); color: var(--color-white); padding: 3rem 0; }
.why-strip .stat-number { font-size: 2.8rem; font-weight: 700; font-family: var(--font-heading); }
.why-strip .stat-label { font-size: 0.9rem; opacity: 0.85; }

.facebook-section { background: var(--color-off-white); padding: var(--section-padding); }

.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--color-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* === Contact top bar === */
.top-contact-bar {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 7px 0;
  width: 100%;
  position: relative;
  z-index: 1000;
}
.top-contact-bar .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
}
.top-contact-bar a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.top-contact-bar a:hover { color: var(--brand-accent); }
.top-contact-bar svg { width: 14px; height: 14px; fill: var(--brand-accent); flex-shrink: 0; }

/* === Hide default WP page title (we use custom heroes) === */
.page .entry-header,
.page .page-header {
  display: none;
}

/* === Page hero banner — full viewport width breakout === */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  /* break out of any parent container */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,25,50,0.78) 0%, rgba(10,25,50,0.40) 100%);
  z-index: 1;
}
.page-hero .hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: #fff;
}
.page-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 0 1.6rem;
}
.page-hero a.btn-primary { margin-top: 0.4rem; }

/* === Content sections === */
.content-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 24px;
}
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.section-with-image.reverse { direction: rtl; }
.section-with-image.reverse > * { direction: ltr; }
.section-with-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.section-with-image h2 { margin-top: 0; color: var(--brand-primary); }
.service-specs { background: var(--color-off-white); border-radius: 6px; padding: 1rem 1.2rem; margin-top: 1rem; }
.service-specs li { margin: 0.3rem 0; font-size: 0.95rem; }

/* === Dienst cards grid === */
.dienst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 0 48px;
}
.dienst-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.dienst-card:hover { box-shadow: 0 8px 32px rgba(26,75,140,0.12); transform: translateY(-4px); }
.dienst-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.dienst-card .card-body { padding: 1.2rem 1.4rem 1.4rem; }
.dienst-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--brand-primary); }

/* === CTA banner === */
.cta-banner {
  background: var(--brand-primary);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin: 0 0 0.5rem; }
.cta-banner p { opacity: 0.9; margin: 0 0 1.5rem; }
.cta-banner .btn-primary { background: var(--brand-accent); color: var(--brand-dark); }
.cta-banner .btn-primary:hover { background: #e8961a; color: var(--brand-dark); }

/* === Gallery strip === */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0;
}
.photo-strip img { width: 100%; height: 220px; object-fit: cover; display: block; }

@media (max-width: 768px) {
  .section-with-image, .dienst-grid { grid-template-columns: 1fr; }
  .section-with-image.reverse { direction: ltr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .page-hero { margin-left: 0; margin-right: 0; width: 100%; }
}
