/* ---------------------------------------------------------
   Opal Migration & Recht - Professional Corporate Stylesheet
   Author: Senior CSS Developer & UI Designer
   --------------------------------------------------------- */

/* ===== CSS RESET & NORMALIZATION ===== */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F1F4F8;
  color: #14305C;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #14305C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #CDA34F;
  outline: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: #14305C;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #283C55;
}
strong {
  font-weight: 700;
  color: #14305C;
}

/* ===== GENERAL LAYOUT CLASSES ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 720px;
  align-self: center;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(20,48,92,0.05);
}

/* ===== FLEX & SPACING UTILITIES (MANDATORY) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(20,48,92,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 34px rgba(20,48,92,0.13);
  transform: translateY(-3px);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F1F4F8;
  border-left: 5px solid #CDA34F;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(20,48,92,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HEADER / NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(20,48,92,0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 18px 20px;
}

header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #14305C;
  padding: 9px 12px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover,
header nav a:focus {
  background: #F1F4F8;
  color: #CDA34F;
}
header nav a.cta-primary {
  background: #14305C;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(20,48,92,0.07);
  margin-left: 12px;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: #CDA34F;
  color: #14305C;
  box-shadow: 0 6px 18px rgba(205,163,79,0.12);
}
header img {
  height: 36px;
  width: auto;
}

/* ===== MOBILE NAV BAR (BURGER MENU) ===== */
.mobile-menu-toggle {
  background: none;
  font-size: 2rem;
  color: #14305C;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  display: none;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #CDA34F;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  background: #fff;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 100vw;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.55,.16,.27,1.11);
  box-shadow: 4px 0 24px rgba(20,48,92,0.16);
  z-index: 130;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #14305C;
  font-size: 2.1rem;
  cursor: pointer;
  margin: 18px 18px 12px 20px;
  align-self: flex-end;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #CDA34F;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  padding-left: 24px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: #14305C;
  font-size: 1.11rem;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
  width: 90%;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F1F4F8;
  color: #CDA34F;
}

/* ===== MAIN ===== */
main {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  background: #F1F4F8;
  padding-top: 15px;
  padding-bottom: 30px;
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(20,48,92,0.05);
}
section:last-child {
  margin-bottom: 0;
}

/* ===== CARDS/FEATURES/LISTS ===== */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: #283C55;
  font-size: 1rem;
}
ul li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
ul li:last-child {
  margin-bottom: 0;
}
.feature-item img {
  margin-right: 14px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== CTA BUTTONS ===== */
.cta-primary,
.cta-primary:visited {
  display: inline-block;
  background: #14305C;
  color: #fff;
  border: none;
  padding: 11px 26px;
  font-size: 1.07rem;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 7px;
  margin-top: 10px;
  margin-bottom: 4px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(20,48,92,0.10);
  transition: background 0.20s, color 0.18s, box-shadow 0.25s, transform 0.10s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #CDA34F;
  color: #14305C;
  box-shadow: 0 4px 20px rgba(205,163,79,0.12);
  transform: translateY(-2px);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: #F1F4F8;
  color: #14305C;
  border-left: 5px solid #CDA34F;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(20,48,92,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.04rem;
}
.testimonial-card p {
  color: #14305C;
  margin-bottom: 5px;
  font-size: 1.01rem;
}
.testimonial-card span {
  color: #767E8C;
  font-weight: 500;
  font-size: 0.98rem;
}

/* ===== FOOTER ===== */
footer {
  background: #14305C;
  color: #fff;
  padding: 34px 0 20px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 16px;
  transition: color 0.20s;
}
footer a:hover,
footer a:focus {
  color: #CDA34F;
}
footer img {
  height: 32px;
  width: auto;
}
.footer-contact {
  color: #B1BAD7;
  font-size: 0.98rem;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-contact span {
  margin-right: 5px;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #14305C;
  padding: 18px 32px 18px 16px;
  box-shadow: 0 -2px 24px rgba(20,48,92,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  gap: 20px;
  font-size: 1rem;
  animation: cookie-slidein 0.44s cubic-bezier(.48,1.6,.46,.96);
}
@keyframes cookie-slidein {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-consent-banner button {
  padding: 9px 16px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  margin-left: 0;
  margin-right: 0;
  background: #F1F4F8;
  color: #14305C;
  font-weight: 500;
  transition: background 0.15s, color 0.17s, box-shadow 0.19s;
}
.cookie-consent-banner button.accept {
  background: #14305C;
  color: #fff;
  font-weight: 700;
}
.cookie-consent-banner button.accept:hover,
.cookie-consent-banner button.accept:focus {
  background: #CDA34F;
  color: #14305C;
}
.cookie-consent-banner button.settings {
  background: #fff;
  color: #14305C;
  border: 1px solid #B1BAD7;
}
.cookie-consent-banner button.settings:hover,
.cookie-consent-banner button.settings:focus {
  background: #F1F4F8;
  border-color: #14305C;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 220;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,48,92,0.32);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 360px;
  width: 98vw;
  padding: 30px 28px;
  box-shadow: 0 18px 64px rgba(20,48,92,0.17);
  color: #14305C;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop 0.28s cubic-bezier(.5,1.45,.9,1);
}
@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px 0;
}
.cookie-modal-category label {
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: #14305C;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal button {
  padding: 9px 15px;
  border-radius: 5px;
  border: none;
  background: #14305C;
  color: #fff;
  font-weight: 600;
  transition: background 0.18s, color 0.19s;
}
.cookie-modal button.reject {
  background: #F1F4F8;
  color: #14305C;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #CDA34F;
  color: #14305C;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: #14305C;
  font-size: 1.7rem;
  position: absolute;
  right: 18px;
  top: 16px;
  transition: color 0.18s;
}

/* ===== ACCESSIBLE FOCUS STYLES ===== */
a:focus, button:focus, .cta-primary:focus {
  outline: 2px solid #CDA34F;
  outline-offset: 2px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 990px) {
  .container {
    max-width: 97vw;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 97%;
  }
  .container {
    padding: 0 10px;
  }
  header .container {
    flex-direction: row;
    padding: 14px 10px 14px 10px;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .content-grid {
    gap: 12px;
  }
  section {
    padding: 24px 6px;
    margin-bottom: 34px;
    border-radius: 8px;
  }
  .testimonial-card, .card {
    padding: 12px 10px;
    border-radius: 8px;
  }
  .footer-contact {
    flex-direction: column;
    font-size: 0.97rem;
  }
  .text-section {
    max-width: 96vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    margin-bottom: 34px;
    padding: 24px 8px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 10px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 22px 8px;
    border-radius: 10px;
    width: 98vw;
    max-width: 99vw;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.07rem; }
  section {
    padding-left: 3px;
    padding-right: 3px;
  }
}

/* ====== ANIMATIONS ====== */
.cta-primary, .cookie-consent-banner button, .cookie-modal button {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.12s;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== PRINT STYLES (optional) ===== */
@media print {
  header, .mobile-menu, footer, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  section, main, .container { box-shadow: none !important; background: #fff !important; color: #000 !important; }
}

/* ===== UTILITY CLASSES ===== */
.hide {
  display: none !important;
}

/* ===== END OF STYLESHEET ===== */
