/* =====================================================
   RentenNavigator International • Industrial Modern UI
   Style: industrial_modern (dark colors, metallic accents, urban feel)
   Brand: primary #0B3A53, secondary #2E7D6B, accent #F5F7FA
   Fonts: Georgia (display), Arial (body)
   Layout: FLEXBOX ONLY (no CSS Grid/Columns)
   ===================================================== */

/* -------------------- CSS RESET / NORMALIZE -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #2e7d6b;
  outline-offset: 2px;
}

/* -------------------- THEME VARIABLES & FALLBACKS -------------------- */
:root {
  --color-primary: #0b3a53;
  --color-secondary: #2e7d6b;
  --color-accent: #f5f7fa;
  --color-bg: #0f1418; /* urban charcoal */
  --color-surface: #1a2025; /* steel panel */
  --color-surface-2: #22292f; /* deeper steel */
  --color-text: #e8ecef; /* light text */
  --color-text-muted: #b8c2c8; /* muted steel */
  --color-metal: #9aa3a7; /* metallic accent */
  --color-success: #2e7d6b;
  --color-danger: #b23b3b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.35);

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
}

/* -------------------- BASE TYPOGRAPHY -------------------- */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Georgia, serif;
  color: #ffffff;
  margin: 0 0 var(--space-16) 0;
  letter-spacing: 0.2px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  color: #f0f4f6;
}

p {
  margin: 0 0 var(--space-16) 0;
  color: var(--color-text);
}
small {
  font-size: 14px;
  color: var(--color-text-muted);
}

strong {
  color: #ffffff;
  font-weight: 700;
}

/* Links */
a {
  color: var(--color-accent);
}
a:hover {
  color: #ffffff;
}

/* Lists */
ul li,
ol li {
  margin-bottom: 8px;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}

/* -------------------- LAYOUT WRAPPERS (FLEX ONLY) -------------------- */
.container {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-20);
  margin: 0 auto;
}

section {
  margin-bottom: var(--space-60);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  background: var(--color-surface);
  border: 1px solid #2b3238;
  border-radius: var(--radius-md);
  padding: var(--space-40) var(--space-20);
  box-shadow: var(--shadow-1);
}

/* Mandatory spacing and alignment patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Utility for spacing to avoid overlap */
.stack-20 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.row-20 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

/* -------------------- HEADER & NAV -------------------- */
header {
  background: #0c1116;
  border-bottom: 1px solid #1f262c;
  position: sticky;
  top: 0;
  z-index: 900;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 36px;
}

.main-nav {
  display: none; /* mobile first: hidden */
  flex-direction: row;
  align-items: center;
  gap: var(--space-16);
}

.main-nav a {
  color: var(--color-text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 14px;
}

.main-nav a:hover {
  border-color: #2b3238;
  background: var(--color-surface-2);
}

.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--color-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-1);
}
.mobile-menu-toggle:hover {
  background: #0e4a6c;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms ease;
  z-index: 1000;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  margin: var(--space-16);
  width: 40px;
  height: 40px;
  color: #fff;
  background: #2b3238;
  border-radius: 8px;
}

.mobile-nav {
  background: var(--color-surface);
  border-top: 1px solid #2b3238;
  border-left: 1px solid #2b3238;
  border-radius: var(--radius-lg) 0 0 0;
  margin-top: var(--space-16);
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-2);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 10px;
  color: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.mobile-nav a:hover {
  background: var(--color-surface-2);
  border-color: #384149;
}

/* -------------------- HERO -------------------- */
.hero .content-wrapper {
  background: var(--color-primary);
  border: 1px solid #0d425f;
  box-shadow: 0 10px 30px rgba(11, 58, 83, 0.35);
}
.hero h1 {
  font-size: 32px;
}
.hero h2 {
  font-size: 18px;
  color: #d6e4ea;
  font-weight: 400;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #dbe5ea;
  font-size: 14px;
  opacity: 0.9;
}
.language-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #d6e4ea;
}
.language-toggle a {
  color: #fff;
  opacity: 0.9;
}
.language-toggle a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* -------------------- CTA BUTTONS -------------------- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.cta-primary,
.cta-secondary,
.cta-submit,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 120ms ease;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 14px;
}

.cta-primary {
  background: #0e4a69; /* slightly brighter primary */
  color: #fff;
  border: 1px solid #1b79a3;
  box-shadow: var(--shadow-1);
}
.cta-primary:hover {
  background: #116085;
  border-color: #2495c7;
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: #e8ecef;
  border: 1px solid var(--color-metal);
}
.cta-secondary:hover {
  background: #182027;
  border-color: #c1c8cc;
}

.cta-submit {
  background: var(--color-secondary);
  color: #fff;
  border: 1px solid #2e7d6b;
}
.cta-submit:hover {
  background: #2f8f7a;
}

/* -------------------- GENERIC CARDS & PANELS -------------------- */
.card,
.content-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  background: var(--color-surface);
  border: 1px solid #2b3238;
  border-radius: var(--radius-md);
  padding: var(--space-20);
  box-shadow: var(--shadow-1);
}

/* -------------------- GRIDS (FLEX WRAPS) -------------------- */
.audience-grid,
.services-grid,
.countries-grid,
.category-cards,
.faq-accordion,
.footer-links,
.footer-legal-links,
.footer-contact-mini,
.footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20);
}

/* Audience/Services/Categories cards */
.audience-grid > div,
.services-grid > div,
.category-cards > div {
  flex: 1 1 260px;
  min-width: 260px;
  background: var(--color-surface);
  border: 1px solid #2b3238;
  border-radius: var(--radius-md);
  padding: var(--space-20);
  box-shadow: var(--shadow-1);
}

.countries-grid {
  gap: var(--space-12);
}
.countries-grid span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #24303a;
  border: 1px solid #34424d;
  color: #e2ebf0;
  font-size: 14px;
}

/* FAQ accordion look */
.faq-accordion {
  flex-direction: column;
}
.faq-accordion h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  color: #ffffff;
  padding: 14px 16px;
  margin: 0;
  background: #1d242a;
  border: 1px solid #2b3238;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.faq-accordion h3 + div {
  background: #161c21;
  border: 1px solid #2b3238;
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 10px 0;
  color: var(--color-text);
  min-height: 50px;
}

/* -------------------- LIST PANELS / GDPR NOTES -------------------- */
.gdpr-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
}
.gdpr-note input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-secondary);
}

/* -------------------- TESTIMONIALS (light background for readability) -------------------- */
.testimonials .content-wrapper {
  background: var(--color-accent);
  color: #0b0d0f;
  border: 1px solid #d9e2e8;
}
.testimonials h2,
.testimonials p,
.testimonials div,
.testimonials blockquote,
.testimonials strong {
  color: #0b0d0f;
}

.testimonial-card {
  background: #ffffff;
  color: #0b0d0f;
  border: 1px solid #d5dee3;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: #222;
}

/* -------------------- TABLES (cookies page) -------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid #2b3238;
  border-radius: var(--radius-md);
  overflow: hidden;
}
th,
td {
  padding: 12px;
  text-align: left;
}
th {
  background: #1f2730;
  color: #e8ecef;
  font-weight: 700;
}
tr {
  border-bottom: 1px solid #2b3238;
}
tr:nth-child(even) {
  background: #161d24;
}

/* -------------------- FORMS -------------------- */
input[type="search"],
input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  background: #10161b;
  border: 1px solid #2b3238;
  color: #e8ecef;
  border-radius: var(--radius-sm);
}
input::placeholder,
textarea::placeholder {
  color: #7e8a92;
}

/* -------------------- FOOTER -------------------- */
footer {
  background: #0c1116;
  border-top: 1px solid #1f262c;
  padding: var(--space-40) 0;
}
footer .container {
  gap: var(--space-20);
}
.footer-links,
.footer-legal-links {
  align-items: center;
}
.footer-links a,
.footer-legal-links a {
  color: #cdd6db;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.footer-links a:hover,
.footer-legal-links a:hover {
  background: #12181d;
  border-color: #2b3238;
}

.footer-contact-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-contact-mini > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aeb7bc;
}
.footer-contact-mini img {
  width: 16px;
  height: 16px;
  filter: invert(85%);
}

.footer-cta-buttons {
  display: flex;
  gap: 12px;
}
.footer-language-toggle {
  color: #9fb0b9;
}

/* -------------------- PAGE-SPECIFIC REFINEMENTS -------------------- */
/* Index */
.hero ul,
.hero p {
  color: #eaf2f6;
}

/* Contact details block */
.contact-details .content-wrapper > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form-hint {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CTA Block (common) */
.cta-block .content-wrapper {
  background: #12202a;
  border-color: #1e3a47;
}

/* Privacy notes sections */
.privacy-legal .content-wrapper,
.privacy-hints .content-wrapper,
.privacy-disclaimer .content-wrapper {
  background: #12171c;
  border-color: #232c33;
}

/* Appointment/Intake panels */
.appointment .content-wrapper,
.intake .content-wrapper {
  background: #172027;
  border-color: #29343c;
}

/* Countries ribbon spacing */
.countries-grid {
  margin-top: 6px;
}

/* -------------------- CONSENT CONTROLS (cookies page) -------------------- */
.consent-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.consent-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #12181d;
  border: 1px solid #2b3238;
  border-radius: 999px;
  color: #cfd6db;
}
.consent-controls button {
  background: #1e2a31;
  color: #fff;
  border: 1px solid #3b4a55;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.consent-controls button:hover {
  background: #25343d;
}

/* -------------------- MOBILE NAV BREAKPOINT -------------------- */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .content-wrapper {
    padding: var(--space-40);
  }
}

@media (min-width: 1024px) {
  .audience-grid > div,
  .services-grid > div,
  .category-cards > div {
    flex: 1 1 calc(33% - 20px);
  }
}

/* -------------------- MICRO-INTERACTIONS -------------------- */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hover lift for cards */
.audience-grid > div:hover,
.services-grid > div:hover,
.category-cards > div:hover,
.card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

/* -------------------- ACCESSIBILITY & FOCUS -------------------- */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* -------------------- COOKIE CONSENT BANNER & MODAL -------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  background: #0f171d;
  color: #e8ecef;
  border-top: 1px solid #25303a;
  padding: 16px 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 300ms ease;
  z-index: 1200;
}
.cookie-banner.show {
  transform: translateY(0);
  animation: slideUp 320ms ease;
}
.cookie-banner .cookie-text {
  max-width: 1200px;
  width: 100%;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner .btn-accept {
  background: var(--color-secondary);
  color: #fff;
  border: 1px solid #2e7d6b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.cookie-banner .btn-reject {
  background: #1e2a31;
  color: #fff;
  border: 1px solid #3b4a55;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.cookie-banner .btn-settings {
  background: transparent;
  color: #e8ecef;
  border: 1px solid var(--color-metal);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.cookie-banner .btn-accept:hover {
  background: #339984;
}
.cookie-banner .btn-reject:hover {
  background: #25343d;
}
.cookie-banner .btn-settings:hover {
  background: #182027;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  animation: fadeIn 240ms ease;
}
.cookie-modal-overlay.is-visible {
  display: flex;
}
.cookie-modal {
  width: 92%;
  max-width: 720px;
  background: #0f161b;
  color: #e8ecef;
  border: 1px solid #2b3238;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #121b22;
  border: 1px solid #29333a;
  border-radius: var(--radius-sm);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .toggle {
  width: 42px;
  height: 24px;
  background: #2b3238;
  border-radius: 999px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px;
}
.cookie-modal .toggle .knob {
  width: 20px;
  height: 20px;
  background: #7f8a92;
  border-radius: 50%;
  transform: translateX(0);
  transition: transform 160ms ease, background 160ms ease;
}
.cookie-modal .toggle.active {
  background: var(--color-secondary);
}
.cookie-modal .toggle.active .knob {
  background: #fff;
  transform: translateX(18px);
}

/* -------------------- HEADER CALLOUTS IN FOOTER OF PAGES -------------------- */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  height: 36px;
}

/* -------------------- ALIGNMENT RULES FOR TEXT-IMAGE SECTIONS -------------------- */
.text-image-section {
  align-items: center;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }
}

/* -------------------- ACCESSORY ELEMENTS -------------------- */
blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 12px;
}

/* -------------------- ENSURE MINIMUM GAPS BETWEEN CARDS/SECTIONS -------------------- */
section .testimonial-card,
section .card,
section .content-card,
section .audience-grid > div,
section .services-grid > div,
section .category-cards > div {
  margin-bottom: 20px; /* ensure >= 20px */
}

/* -------------------- PRINT BASICS -------------------- */
@media print {
  header,
  .mobile-menu,
  .cookie-banner,
  .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .content-wrapper,
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    background: #fff;
    color: #000;
  }
}
