/* ============================================================
   HEUTGER GMBH – Static CSS
   CI Colors: Navy #1a2e4a, Gold #c5873f
   Font: Source Sans 3 (Variable, self-hosted)
   ============================================================ */

@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/SourceSans3-Variable.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --navy-dark: #0d1f35;
  --navy: #1a2e4a;
  --navy-light: #2a4060;
  --gold: #c5873f;
  --gold-light: #d4944a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --accent: #c5873f;
  --font: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  min-height: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* === CONTAINER === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 70px;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.875rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-50);
  transition: color 0.2s;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--gold);
}

@media (min-width: 1024px) {
  .header-inner {
    height: 110px;
  }
  .logo {
    height: 100px;
  }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .hamburger,
  .nav-mobile {
    display: none !important;
  }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #0a2a48, var(--navy-dark), var(--navy));
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 1.5rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-accent {
  position: relative;
  display: inline-block;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-image {
  display: none;
}

.hero-image-frame {
  position: relative;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 4px;
}

.hero-image-frame img {
  width: 320px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 7fr 5fr;
    padding: 7rem 2rem;
  }
  .hero-image {
    display: flex;
    justify-content: flex-end;
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* === SECTION COMMON === */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-tag.light {
  color: var(--gold);
}

.section-divider {
  width: 4rem;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.section-divider.center {
  margin-left: auto;
  margin-right: auto;
}

.section-divider.light {
  background: var(--gold);
}

/* === EXPERTISE === */
.expertise {
  padding: 4rem 0;
  background: var(--white);
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.expertise-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.expertise-text p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cert-card {
  background: var(--gray-50);
  padding: 1.25rem;
  border-left: 3px solid var(--gold);
  transition: box-shadow 0.2s;
}

.cert-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.cert-abbr {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.cert-full {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .expertise {
    padding: 6rem 0;
  }
}

/* === SERVICE SECTIONS === */
.service-section {
  padding: 4rem 0;
}

.service-section.bg-light {
  background: var(--gray-50);
}

.service-grid {
  display: block;
}

.service-intro {
  display: block;
  overflow: visible;
  margin-bottom: 2rem;
}

.service-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.image-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.service-text-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-text-intro > p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 0;
}

.service-text-intro .section-divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tag-row .section-tag {
  margin-bottom: 0;
}

.badge-new {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.service-item {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.service-item h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.service-item .note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .service-section {
    padding: 6rem 0;
  }
  .service-intro {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
  }
  .service-image {
    flex: 0 0 50%;
    margin-bottom: 0;
  }
  .service-text-intro {
    flex: 1;
  }
  /* Alternate: even sections have image on right */
  .service-section:nth-of-type(even) .service-intro {
    flex-direction: row-reverse;
  }
}

/* === PARTNER === */
.partner-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

.partner-header {
  text-align: center;
  margin-bottom: 3rem;
}

.partner-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
}

.partner-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  max-width: 40rem;
  margin: 1rem auto 0;
}

.partner-subtitle {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.partner-grid {
  display: grid;
  gap: 1rem;
}

.partner-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.partner-grid-3 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 48rem;
  margin: 0 auto;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  height: 5rem;
  transition: box-shadow 0.2s;
}

.partner-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.partner-card img {
  max-height: 3rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .partner-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .partner-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner-card {
    height: 7rem;
    padding: 2rem;
  }
  .partner-card img {
    max-height: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .partner-section {
    padding: 6rem 0;
  }
}

/* === CONTACT === */
.contact-section {
  padding: 4rem 0;
  background: var(--navy);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.contact-image {
  display: none;
}

.contact-image-frame {
  position: relative;
  border: 2px solid rgba(255,255,255,0.2);
  padding: 4px;
}

.contact-image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.contact-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--white);
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--gold);
}

.contact-value-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

@media (min-width: 768px) {
  .contact-details {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-section {
    padding: 6rem 0;
  }
  .contact-grid {
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
  }
  .contact-image {
    display: block;
  }
}

/* === FOOTER === */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 80px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-address {
  font-style: normal;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-address a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-address a:hover {
  color: var(--white);
}

.footer-phone {
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .footer-logo {
    height: 100px;
    max-width: 100px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 4rem 0 0;
  }
}

/* === LEGAL PAGES === */
.legal-section {
  padding: 4rem 0;
}

.legal-container {
  max-width: 48rem;
}

.legal-container h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

.legal-content a {
  color: var(--navy);
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--gold);
}

.legal-strong {
  font-weight: 700;
  color: var(--navy);
}

@media (min-width: 1024px) {
  .legal-section {
    padding: 6rem 0;
  }
}

/* === 404 PAGE === */
.error-section {
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.error-code {
  font-size: 4rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.footer-bottom--minimal {
  border-top: none;
  padding-top: 0;
}

body.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-404 main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.page-404 .error-section {
  min-height: auto;
  padding: 4rem 0;
}
body.page-404 .site-footer {
  margin-top: auto;
}
