/* ============================================================
   Dieseltoolworkshop — Auxiliary Pages Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-navy:    #1A2340;
  --color-crimson: #C0392B;
  --color-white:   #FFFFFF;
  --color-offwhite:#F5F4F0;
  --color-muted:   #6B7280;
  --color-border:  #DDD9D0;
  --color-light:   #EAE8E2;
  --font-heading:  'Noto Serif', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --max-w:         1160px;
  --gutter:        1.5rem;
  --radius:        6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; background: var(--color-white); }
body { font-family: var(--font-body); color: var(--color-navy); line-height: 1.6; background: var(--color-white); }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
p { color: var(--color-muted); line-height: 1.7; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 70px; gap: 1.5rem;
}
.header-brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.header-brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-navy); }
.brand-name span { color: var(--color-crimson); }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { padding: 0.4rem 0.85rem; font-size: 0.875rem; font-weight: 500; color: var(--color-navy); border-radius: var(--radius); }
.site-nav a:hover { background: var(--color-offwhite); }
.site-nav .nav-cta { background: var(--color-crimson); color: var(--color-white); margin-left: 0.5rem; }
.site-nav .nav-cta:hover { background: #a93226; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-navy); margin: 5px 0; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: var(--color-navy);
  padding: 60px 0;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); color: var(--color-white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 560px; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; font-size: 0.8rem; }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ---------- PAGE CONTENT ---------- */
.page-content { padding: 72px 0; }
.page-content-inner { max-width: 820px; }
.page-content h2 { font-size: 1.4rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--color-navy); }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 1rem; font-size: 0.95rem; }
.page-content p:last-child { margin-bottom: 0; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { font-size: 0.95rem; color: var(--color-muted); line-height: 1.7; margin-bottom: 0.35rem; }
.empty-content-notice {
  padding: 3rem 2rem;
  background: var(--color-offwhite);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- ABOUT BLOCKS ---------- */
.about-block { padding: 56px 0; border-bottom: 1px solid var(--color-border); }
.about-block:last-child { border-bottom: none; }
.about-block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-block-grid.reverse .ab-image { order: 2; }
.about-block-grid.reverse .ab-text  { order: 1; }
.about-block-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
.ab-text { display: flex; flex-direction: column; gap: 1rem; }
.ab-text-center { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; max-width: 680px; margin: 0 auto; }
.ab-text h2 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
.ab-text-center h2 { font-size: clamp(1.25rem, 2.8vw, 1.75rem); }
.ab-image-center { display: flex; justify-content: center; align-items: center; }
.ab-icon { width: 180px; height: 180px; max-width: 100%; }
.ab-photo { width: 100%; max-width: 400px; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.ab-image-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--color-light); }
.ab-placeholder { width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, #eae8e2 0%, #ccc9c0 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: rgba(26,35,64,0.3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- TAG / LABEL ---------- */
.tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-crimson); margin-bottom: 0.5rem; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--color-navy); color: var(--color-white); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand-row { display: flex; align-items: center; gap: 0.65rem; }
.footer-brand-row img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.footer-brand-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--color-white); }
.footer-brand-name span { color: #f07167; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.55); max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--color-white); }
.footer-bottom { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* ---------- BTN ---------- */
.btn { display: inline-block; padding: 0.75rem 1.75rem; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn--primary { background: var(--color-crimson); color: var(--color-white); border-color: var(--color-crimson); }
.btn--primary:hover { background: #a93226; border-color: #a93226; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1.5rem var(--gutter);
  z-index: 9999;
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.cookie-banner-text a {
  color: var(--color-white);
  text-decoration: underline;
}
.cookie-banner-text a:hover {
  color: #f07167;
}
.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-banner .btn {
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
}
.cookie-banner .btn--primary {
  background: var(--color-crimson);
  color: var(--color-white);
}
.cookie-banner .btn--primary:hover {
  background: #a93226;
}
.cookie-banner .btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.cookie-banner .btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .about-block-grid { grid-template-columns: 1fr; }
  .about-block-grid.reverse .ab-image { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); flex-direction: column; align-items: flex-start; padding: 1rem var(--gutter); gap: 0.25rem; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 0.6rem 0.85rem; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
