@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@600;700&display=swap");

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --hz-navy: #002147;
  --hz-navy-2: #0a2a52;
  --hz-footer: #102f55;
  --hz-red: #ff5a36;
  --hz-red-dark: #d63a1f;
  --hz-text: #1f2937;
  --hz-muted: #6b7280;
  --hz-border: #e5e7eb;
  --hz-soft: #f7f8fb;
  
  /* Typography */
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  
  /* Spacing */
  --section-padding: 90px;
  --section-tight: 70px;
  
  /* Transitions */
  --transition-base: 0.2s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--hz-text);
  background: #fff;
}

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

a:hover {
  color: var(--hz-navy);
  text-decoration: none;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.wrapper {
  min-height: 100%;
  background: #fff;
}

.header,
.content {
  background: #fff;
}

.content > .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-padding) 0;
}

.section-tight {
  padding: var(--section-tight) 0;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.hz-display {
  font-family: var(--font-display);
  color: var(--hz-navy);
}

.hz-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--hz-navy);
}

.hz-muted {
  color: var(--hz-muted);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar,
.navbar.navbar-default,
.navbar.navbar-inverse {
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  margin: 0;
  border-radius: 0;
}

/* Desktop Navigation Layout */
@media (min-width: 768px) {
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navbar-header {
    display: flex;
    align-items: center;
  }
  
  .navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: 0;
    box-shadow: none;
  }
  
  .navbar-nav {
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
  }
}

/* Navbar Brand */
.navbar-brand {
  height: auto;
  line-height: 1;
  padding: 14px 15px;
  color: var(--hz-navy);
  font-weight: 700;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--hz-navy);
}

/* Navbar Links */
.navbar .navbar-nav > li {
  position: relative;
}

.navbar .navbar-nav > li > a {
  font-weight: 600;
  color: #8a97a8;
  position: relative;
  background: transparent;
  box-shadow: none;
  padding-top: 22px;
  padding-bottom: 22px;
}

.navbar .navbar-nav > li > a:hover {
  color: var(--hz-navy);
}

/* Active State (Scrollspy) */
.navbar .navbar-nav > .active > a,
.navbar .navbar-nav > .active > a:hover,
.navbar .navbar-nav > .active > a:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hz-navy) !important;
}

.navbar .navbar-nav > .active > a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 12px;
  height: 2px;
  background: var(--hz-red);
}

/* Page Active State (CMS) - also with red underline */
.navbar .navbar-nav > .page-active > a,
.navbar .navbar-nav > .page-active > a:hover,
.navbar .navbar-nav > .page-active > a:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hz-navy) !important;
}

.navbar .navbar-nav > .page-active > a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 12px;
  height: 2px;
  background: var(--hz-red);
}

/* CTA Button in Navbar */
.navbar .navbar-nav > li > a.btn-cta,
.navbar .navbar-nav > li > a.contact {
  background: var(--hz-navy);
  color: #fff;
  border-radius: 2px;
  padding: 10px 14px;
  margin-top: 10px;
  margin-left: 10px;
  height: auto;
}

.navbar .navbar-nav > li > a.btn-cta:hover,
.navbar .navbar-nav > li > a.contact:hover {
  background: var(--hz-red);
  color: #fff;
}

/* Mobile Toggle */
.navbar-toggle {
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-top: 14px;
  margin-bottom: 14px;
}

.navbar-toggle .icon-bar {
  background-color: rgba(0, 0, 0, 0.55);
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .navbar .navbar-nav > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  
  .navbar .btn-cta {
    margin: 10px 15px;
    display: inline-block;
  }
}

/* ============================================
   LOGO COMPONENT
   ============================================ */
.hz-logo {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  line-height: 1;
}

.hz-z {
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hz-heiko {
  position: absolute;
  font-weight: 600;
}

.hz-dot {
  position: absolute;
  background: var(--hz-red);
  border-radius: 50%;
}

/* Header Logo Variant */
.hz-logo.hz-logo-header .hz-z {
  font-size: 24px;
  color: var(--hz-navy);
}

.hz-logo.hz-logo-header .hz-heiko {
  font-size: 14.5px;
  color: var(--hz-navy);
  left: 22px;
  top: -7px;
}

.hz-logo.hz-logo-header .hz-dot {
  width: 10px;
  height: 10px;
  left: 10.5px;
  top: -2px;
}

/* Footer Logo Variant */
.hz-logo.hz-logo-footer .hz-z {
  font-size: 20px;
  color: #fff;
}

.hz-logo.hz-logo-footer .hz-heiko {
  font-size: 12.5px;
  color: #fff;
  left: 19px;
  top: -7.5px;
}

.hz-logo.hz-logo-footer .hz-dot {
  width: 8px;
  height: 8px;
  left: 8.5px;
  top: -2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 130px 0 120px;
  background: #fff;
}

.hero .status {
  display: inline-block;
  padding: 10px 14px;
  border-bottom: 2px solid var(--hz-red);
  background: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hz-navy);
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-display);
  color: var(--hz-navy);
  font-size: 64px;
  line-height: 1.06;
  margin: 0 0 18px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  color: var(--hz-muted);
  max-width: 900px;
  margin: 0 auto 28px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-hz {
  background: var(--hz-red);
  border-color: var(--hz-red);
  border-radius: 2px;
  font-weight: 700;
  box-shadow: none;
  text-shadow: none;
}

.btn-primary-hz:hover,
.btn-primary-hz:focus {
  background: var(--hz-red-dark);
  border-color: var(--hz-red-dark);
}

.btn-ghost-hz {
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 2px;
  font-weight: 700;
  color: var(--hz-navy);
  box-shadow: none;
  text-shadow: none;
}

.btn-ghost-hz:hover,
.btn-ghost-hz:focus {
  border-color: var(--hz-navy);
  background: #f3f5f8;
  color: var(--hz-navy);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  border: 1px solid var(--hz-border);
  background: #fff;
  padding: 26px;
  transition: all var(--transition-base);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: var(--hz-navy);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card .icon {
  width: 46px;
  height: 46px;
  border: 1px solid #eef1f5;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--hz-navy);
  border-radius: 2px;
  margin-bottom: 16px;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.card:hover .icon {
  background: var(--hz-navy);
  border-color: var(--hz-navy);
  color: #fff;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--hz-navy);
  margin: 0 0 10px;
  flex-shrink: 0;
}

.card p {
  color: var(--hz-muted);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 12px;
}

.card .tags {
  margin-top: auto;
  padding-top: 12px;
  color: #8b95a3;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--hz-soft);
  border-top: 1px solid var(--hz-border);
  border-bottom: 1px solid var(--hz-border);
  overflow-x: hidden;
}

.about p {
  font-size: 16px;
  line-height: 1.75;
}

/* Projects Section - Full Width Gray Background */
#projects {
  background: var(--hz-soft);
  border-top: 1px solid var(--hz-border);
  border-bottom: 1px solid var(--hz-border);
  overflow-x: hidden;
}

/* Fix Bootstrap row overflow */
.about .row,
#projects .row,
#focus .row {
  margin-left: -15px;
  margin-right: -15px;
}

.about .container,
#projects .container,
#focus .container {
  padding-left: 15px;
  padding-right: 15px;
}

.bg-line {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: #7b8794;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
.footer {
  background: var(--hz-footer);
  color: #cbd5e1;
  padding: 28px 0 18px;
  border-top: 0;
}

.site-footer a,
.footer a {
  color: #cbd5e1;
  opacity: 0.9;
  transition: all var(--transition-base);
}

.site-footer a:hover,
.footer a:hover {
  color: #fff;
  opacity: 1;
}

.site-footer p {
  margin: 10px 0 0;
  font-size: 14px;
  opacity: 0.85;
}

/* Footer Layout */
.hz-footer-left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.hz-footer-copy {
  max-width: 560px;
}

.hz-footer-claim {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.hz-footer-note {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.hz-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
}

/* Footer Legal & Disclaimer */
.site-footer .disclaimer {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.65;
  max-width: 520px;
  line-height: 1.6;
}

.site-footer .legal-inline {
  margin-top: 6px;
  text-align: right;
  white-space: nowrap;
}

.site-footer .legal-inline a {
  display: inline-block;
  margin-left: 14px;
  font-size: 13px;
  opacity: 0.9;
}

.hz-legal-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.hz-legal-links a {
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer .copyline {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 18px;
  padding-top: 12px;
  font-size: 12px;
  opacity: 0.9;
}

/* ============================================
   FOOTER BOTTOM SECTION
   ============================================ */
.hz-footer-brand {
  display: flex;
  align-items: center;
}

.hz-footer-bottom {
  margin-top: 24px;
}

.hz-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.hz-footer-meta {
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
}

/* ============================================
   UTILITY CLASSES (remove inline styles)
   ============================================ */
.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mt-26 { margin-top: 26px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px; }

.fw-700 { font-weight: 700; }

.spacer-10 { height: 10px; }
.spacer-22 { height: 22px; }
.spacer-26 { height: 26px; }

/* Section Anchors - prevent navbar overlap */
section[id] {
  scroll-margin-top: 80px;
}

/* Typography Hierarchy */
h2.hz-display {
  font-size: 42px;
  line-height: 1.15;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

/* How I Work Box */
.work-style-box {
  border: 1px solid var(--hz-border);
  background: #fff;
  padding: 18px;
  border-radius: 2px;
}

.work-style-box .hz-kicker {
  color: #9aa3af;
}

.work-style-item {
  margin: 14px 0;
}

.work-style-item:first-of-type {
  margin-top: 10px;
}

.work-style-item:last-of-type {
  margin-bottom: 0;
}

.work-style-item strong {
  color: var(--hz-navy);
  display: block;
  margin-bottom: 4px;
}

.work-style-item .hz-muted {
  font-size: 13px;
}

/* Section Headers with Red Line */
.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.section-header .red-line {
  width: 48px;
  height: 4px;
  background: var(--hz-red);
  margin-bottom: 18px;
}

.section-header p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 920px;
  margin: 0;
}

/* Card Grid Spacing */
.card-row {
  margin-bottom: 24px;
}

.card-row:last-child {
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
  .hero {
    padding: 110px 0 90px;
  }
  
  .hero h1 {
    font-size: 44px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  h2.hz-display {
    font-size: 36px;
  }
  
  .site-footer .legal-inline {
    text-align: left;
    margin-top: 14px;
  }
  
  .site-footer .legal-inline a {
    margin-left: 0;
    margin-right: 14px;
  }
  
  .hz-footer-left {
    flex-direction: column;
    gap: 12px;
  }
  
  .hz-footer-right {
    align-items: flex-start;
    text-align: left;
    margin-top: 16px;
  }
  
  .hz-legal-links {
    justify-content: flex-start;
  }
}
