/* ══════════════════════════════════════════════
   HATEX GmbH – Modern Website
   ══════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --navy: #0b1d3a;
  --navy-light: #132b52;
  --ocean: #1a6fb5;
  --ocean-light: #2991e0;
  --sky: #e8f4fc;
  --white: #ffffff;
  --offwhite: #f5f8fb;
  --gold: #b8922d;
  --gold-hover: #d4a851;
  --text: #2c3e57;
  --text-light: #4d6580;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 4px 20px rgba(11,29,58,0.06);
  --shadow-md: 0 12px 40px rgba(11,29,58,0.1);
  --shadow-lg: 0 20px 60px rgba(11,29,58,0.15);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-parallax-bg { transform: none !important; }
  .hero-bg { transform: none !important; }
}
body {
  font-family: var(--font-body); color: var(--text);
  background: var(--white); overflow-x: hidden; line-height: 1.7;
  font-size: 1rem;
}
img { max-width:100%; display:block; }
a { text-decoration: none; color: inherit; }

/* ── Accessibility: Skip Navigation ────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 10000;
  background: var(--navy); color: var(--white); padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px; font-weight: 600; font-size: 0.95rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Accessibility: Focus Styles ───────────── */
*:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-links a:focus-visible,
.mobile-nav a:focus-visible {
  outline-color: var(--gold);
  outline-offset: 4px;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.cookie-btn:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 3px;
}
.burger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) { outline: none; }

/* ── Accessibility: Screen Reader Only ─────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Utility ────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ── Reveal on scroll ───────────────────────── */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed; top:0; left:0; width:100%; z-index:1000;
  background: rgba(11,29,58,0.85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(11,29,58,0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }
.logo img { height: 40px; width: auto; }

/* Nav Links */
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.03em; position: relative; transition: color 0.3s;
  padding: 0.5rem 1rem; border-radius: 8px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:2px; left:1rem; right:1rem;
  height:2px; background: var(--gold); transform: scaleX(0);
  transition: transform 0.3s var(--ease); transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Burger */
.burger { display:none; flex-direction:column; gap:5px; cursor:pointer; z-index:1001; background:none; border:none; padding: 8px; }
.burger span { display:block; width:26px; height:2px; background:var(--white); border-radius:2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity:0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed; inset:0; z-index:999;
  background: rgba(11,29,58,0.97);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-nav.open { opacity:1; pointer-events:all; }
.mobile-nav ul { list-style:none; text-align:center; }
.mobile-nav li { margin: 1.25rem 0; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--white);
  font-weight: 600; transition: color 0.3s; padding: 0.5rem 1rem;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--gold); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,58,0.88) 0%, rgba(26,111,181,0.65) 100%);
  will-change: transform;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem; border-radius: 50px;
  background: rgba(212,168,81,0.15); border: 1px solid rgba(212,168,81,0.35);
  color: var(--gold); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--white); line-height: 1.15; font-weight: 800; margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #f0c96e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.72); line-height: 1.75;
  max-width: 560px; margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Floating shapes */
.hero-shape {
  position: absolute; border-radius: 50%; opacity: 0.06;
  background: var(--white); pointer-events: none;
}
.hero-shape-1 { width: 500px; height: 500px; top:-120px; right:-100px; }
.hero-shape-2 { width: 300px; height: 300px; bottom:-80px; left:-60px; }

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; transition: all 0.35s var(--ease); cursor: pointer;
  border: none; font-family: var(--font-body);
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover {
  background: var(--gold-hover); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,168,81,0.35);
}
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-secondary { background: var(--ocean); color: var(--white); }
.btn-secondary:hover {
  background: var(--ocean-light); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,111,181,0.3);
}

/* ══════════════════════════════════════════════
   SECTION COMMONS
   ══════════════════════════════════════════════ */
.section-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--ocean); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy); line-height: 1.2; margin-bottom: 1.25rem;
}
.section-desc { color: var(--text-light); max-width: 560px; font-size: 1.05rem; }

/* ══════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════ */
.about { padding: clamp(4rem, 8vw, 8rem) 0; background: var(--offwhite); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-img-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-img-accent {
  position: absolute; top: -20px; left: -20px; width: 80px; height: 80px;
  background: var(--gold); border-radius: 14px; z-index: -1;
}
.about h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--navy); line-height: 1.2; margin-bottom: 1.25rem; }
.about p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 1rem; }

.stats-row {
  display: flex; gap: 2.5rem; margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(11,29,58,0.08);
}
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 0.2rem; }

/* ══════════════════════════════════════════════
   SERVICES HEADER
   ══════════════════════════════════════════════ */
.services-header {
  text-align: center; padding: clamp(4rem, 8vw, 7rem) 0 3rem;
  background: var(--white);
}
.services-header .section-title { margin-left: auto; margin-right: auto; }
.services-header .section-desc { margin: 1rem auto 0; }

/* ══════════════════════════════════════════════
   PARALLAX SERVICE SECTIONS
   ══════════════════════════════════════════════ */
.service-parallax {
  position: relative; min-height: 55vh; display: flex; align-items: center;
  overflow: hidden;
}
.service-parallax-bg {
  position: absolute; inset: -20% 0;
  background-size: cover; background-position: center;
  will-change: transform; transition: transform 0.05s linear;
}
/* Use local images: put your images in img/ folder */
.service-parallax-bg img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.service-parallax-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,58,0.88), rgba(26,111,181,0.72));
}
.service-content { position: relative; z-index: 2; max-width: 600px; }
.service-content .icon-circle {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(212,168,81,0.2); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.5rem; font-size: 1.8rem;
}
.service-content h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white); margin-bottom: 1rem; line-height: 1.25;
}
.service-content p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.cards-section { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--offwhite); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(11,29,58,0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.5rem;
}
.card-icon.blue { background: rgba(26,111,181,0.1); color: var(--ocean); }
.card-icon.gold { background: rgba(212,168,81,0.12); color: var(--gold); }
.card-icon.navy { background: rgba(11,29,58,0.08); color: var(--navy); }
.card h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.75rem; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* ══════════════════════════════════════════════
   CONTACT / CTA
   ══════════════════════════════════════════════ */
.cta-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--navy); position: relative; overflow: hidden;
}
.cta-section::before {
  content:''; position:absolute; top:-50%; right:-20%; width:600px; height:600px;
  border-radius:50%; background: rgba(26,111,181,0.15); pointer-events:none;
}
.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  position: relative; z-index: 2;
}
.cta-left h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white); line-height: 1.2; margin-bottom: 1.25rem;
}
.cta-left p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2rem;
  transition: background 0.3s, border-color 0.3s;
}
.contact-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(212,168,81,0.3); }
.contact-card h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); margin-bottom: 0.75rem; }
.contact-card p { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.8; }
.contact-card strong { color: rgba(255,255,255,0.9); }

/* ══════════════════════════════════════════════
   SUBPAGE: PAGE HEADER
   ══════════════════════════════════════════════ */
.page-header {
  padding: 10rem 0 4rem; background: var(--navy); position: relative; overflow: hidden;
}
.page-header::before {
  content:''; position:absolute; top:-30%; right:-10%; width:500px; height:500px;
  border-radius:50%; background: rgba(26,111,181,0.12); pointer-events:none;
}
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white); position: relative; z-index: 2;
}
.page-header .breadcrumb {
  color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 0.75rem;
  position: relative; z-index: 2;
}
.page-header .breadcrumb a { color: var(--gold); transition: color 0.3s; }
.page-header .breadcrumb a:hover { color: var(--gold-hover); }

/* ══════════════════════════════════════════════
   SUBPAGE: CONTENT
   ══════════════════════════════════════════════ */
.page-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.page-content h2 {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--navy);
  margin: 2.5rem 0 1rem;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 1rem; max-width: 780px; }
.page-content ul { color: var(--text-light); margin: 1rem 0 1.5rem 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content img {
  border-radius: var(--radius); margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

/* Service detail grid */
.service-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  margin: 3rem 0;
}
.service-detail-grid img {
  width: 100%; border-radius: var(--radius); margin: 0;
  box-shadow: var(--shadow-md);
}
.service-detail-grid.reverse > :first-child { order: 2; }
.service-detail-grid.reverse > :last-child { order: 1; }

/* ══════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════ */
.contact-form-section {
  padding: clamp(3rem, 6vw, 5rem) 0; background: var(--offwhite);
}
.contact-form {
  max-width: 640px; margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem;
  color: var(--navy); margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid rgba(11,29,58,0.12);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26,111,181,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer { background: #07132a; padding: 3rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-brand .logo { margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.9rem; max-width: 320px; }
.footer-col h5 {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.45); font-size: 0.88rem; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom { text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid,
  .cta-grid,
  .service-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail-grid.reverse > :first-child,
  .service-detail-grid.reverse > :last-child { order: unset; }
  .about-img-wrap { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .stats-row { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .service-parallax { min-height: 50vh; }
  .contact-cards { gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .stats-row { flex-wrap: wrap; gap: 1.25rem; }
  .hero-badge { font-size: 0.7rem; }
}

/* ── Accessibility: High-contrast overrides ── */
/* Gold on dark backgrounds needs lighter variant for 4.5:1 ratio */
.hero-badge { color: #e8c45a; border-color: rgba(232,196,90,0.4); background: rgba(232,196,90,0.15); }
.hero h1 em { background: linear-gradient(90deg, #e8c45a, #f0d06e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-card h4 { color: #e8c45a; }
.cta-section .section-label { color: #e8c45a !important; }

/* Ensure link contrast within paragraphs */
.page-content a { color: var(--ocean); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--navy); }
.page-content a:focus-visible { outline-color: var(--ocean); }

/* Ensure footer links have sufficient contrast */
.footer-col a { color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #e8c45a; }
.footer-bottom p { color: rgba(255,255,255,0.45); }
