/* ===== CSS RESET & NORMALIZE ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #171717;
  background: #fff;
  line-height: 1.6;
  font-size: 1rem;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #223668;
  outline-offset: 2px;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  color: inherit;
  border: none;
  outline: none;
  box-shadow: none;
}
ul, ol {
  margin-left: 1.5em;
}
:focus {
  outline: 2px solid #223668;
}

/* ===== VARIABLES (w/ fallback) ===== */
:root {
  --black: #171717;
  --white: #fff;
  --gray-700: #222;
  --gray-500: #444;
  --gray-300: #ddd;
  --gray-150: #f5f5f5;
  --primary: #223668;
  --secondary: #E1E8F3;
  --accent: #49C580;
  --shadow: 0 4px 24px 0 rgba(34, 54, 104, 0.07);
  --border-radius: 14px;
  --transition: 0.22s cubic-bezier(.5,.1,.2,1);
  --gap-main: 24px;
}

/* ===== TYPOGRAPHY (Monochrome Sophisticated) ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.48em;
  color: var(--black);
  line-height: 1.12;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 30px;
  color: var(--black);
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: 0.0px;
}
h4, h5, h6 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
p, li, address {
  font-size: 1rem;
  color: var(--gray-700);
}
strong {
  color: var(--black);
  font-weight: 600;
}

/* ===== GENERAL LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--gap-main);
}

/* ===== CARD LAYOUTS (FOR FLEXBOX) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-width: 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(34,54,104,0.18);
  transform: translateY(-4px) scale(1.014);
}

.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;
}

/* ===== LISTS WITH ICONS ===== */
ul li, ol li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.3);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f5f5f5;
  border: 1px solid #eaeaea;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(40,40,55,0.1);
  max-width: 600px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: var(--black);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #888;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 36px 0 rgba(34,54,104,0.11);
  border-color: #dcdcdc;
}

/* ===== FEATURE LIST ===== */
.feature-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 18px;
}
.feature-list ul li {
  background: #fafbfc;
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1.04rem;
  gap: 10px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

/* ===== BUTTONS & CTAs ===== */
.cta, .btn, button, .mobile-menu-toggle, .mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 24px;
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 14px rgba(34,54,104,.05);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  outline: none;
}
.cta.primary, .btn.primary {
  background: var(--primary);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: #181e25;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px 0 rgba(34,54,104,0.16);
}
.cta:hover, .btn:hover, button:hover,
.cta:focus-visible, .btn:focus-visible, button:focus-visible {
  background: #333;
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
}

/* ===== MAIN LAYOUT ELEMENTS ===== */
header {
  background: var(--white);
  border-bottom: 1.5px solid #eaeaea;
  box-shadow: 0 2px 16px 0 rgba(32,34,40,0.06);
  padding: 0px 0 0px 0;
  position: sticky;
  top: 0;
  z-index: 60;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 18px 0;
}
header nav a {
  display: flex;
  align-items: center;
  font-family: "Montserrat", "Roboto", Arial, sans-serif;
  font-size: 1.07rem;
  color: var(--black);
  font-weight: 500;
  padding: 4px 13px;
  border-radius: 3px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
header nav a.cta {
  margin-left: auto;
}
header nav a:hover, header nav a:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 1000px) {
  header nav {
    gap: 12px;
  }
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 18px;
  padding: 14px 18px;
  font-size: 2rem;
  background: var(--black);
  color: var(--white);
  z-index: 120;
}
.mobile-menu {
  display: none;
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    flex-direction: column;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(20,21,25,0.98);
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.36s cubic-bezier(.67,.05,.28,1);
    box-shadow: -6px 0 46px 0 rgba(40,40,55,0.23);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    font-size: 2.2rem;
    color: var(--white);
    background: none;
    border: none;
    position: absolute;
    top: 18px;
    right: 24px;
    padding: 9px 18px;
    border-radius: 20px;
    z-index: 180;
    cursor: pointer;
    transition: background var(--transition);
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #232629;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 64px 0 0 0;
    width: 100vw;
    align-items: stretch;
    height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .mobile-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    background: none;
    padding: 20px 34px;
    border-bottom: 1px solid rgba(120,120,120,0.12);
    text-transform: none;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    min-width: 60vw;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #232629;
    color: var(--accent);
  }
}

/* ====== MAIN & SECTION SPACING ====== */
main {
  flex: 1;
  padding-top: 16px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.location-map {
  width: 100%;
  min-height: 200px;
  background: var(--gray-150);
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  margin: 10px 0 18px 0;
}

/* ====== TABLE STYLING ====== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 6px 0 rgba(34,54,104,0.04);
}
thead tr {
  background: #222;
  color: #fff;
}
th, td {
  padding: 12px 18px;
  font-size: 1.06rem;
  text-align: left;
}
tr:nth-child(even) {
  background: #f2f2f9;
}
tr:nth-child(odd) {
  background: #fff;
}

/* ====== FOOTER ====== */
footer {
  background: #17181c;
  color: #fafafa;
  padding: 38px 0 20px 0;
  border-top: 1.5px solid #2c2c2c;
  margin-top: 50px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: #fafafa;
  background: none;
  text-decoration: underline;
  padding: 4px 10px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover,footer nav a:focus  {
  background: #232629;
  color: var(--accent);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 55px;
  height: 55px;
}
footer address {
  font-style: normal;
  text-align: center;
  font-size: 0.98rem;
  color: #bababa;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  z-index: 8000;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #26272d;
  color: #fafafa;
  padding: 20px 22px 18px 22px;
  box-shadow: 0 -8px 28px 0 rgba(20, 21, 25, 0.20);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  animation: cc-bannerin 0.6s cubic-bezier(.5,2,.2,.9);
}
@keyframes cc-bannerin {
  0% { opacity:0; transform:translateY(100%); }
  100%{ opacity:1; transform:translateY(0) }
}
.cookie-consent-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-consent-banner .cta,
.cookie-consent-banner .btn {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 20px;
  font-weight: 600;
  background: #223668;
  color: #fff;
}
.cookie-consent-banner .btn.reject {
  background: #222;
  color: #fff;
}
.cookie-consent-banner .btn.settings {
  background: #fff;
  color: #222;
  border: 1px solid #333;
}
.cookie-consent-banner .btn:hover, .cookie-consent-banner .cta:hover {
  background: var(--accent);
  color: #181e25;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 8010;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,24,30,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cc-modalin 0.38s cubic-bezier(.61,.36,.25,1.08);
}
@keyframes cc-modalin {
  0% {opacity:0;}
  100%{opacity:1;}
}
.cookie-modal {
  background: #fff;
  color: #111;
  padding: 40px 28px 28px 28px;
  border-radius: 18px;
  width: 94vw;
  max-width: 430px;
  min-width: 290px;
  box-shadow: 0 16px 42px 0 rgba(34,54,104,0.31);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cc-inmodal 0.36s cubic-bezier(.7,2.5,.37,1.15);
}
@keyframes cc-inmodal {
  0% { opacity:0; transform:scale(0.97) translateY(22px); }
  100%{ opacity:1; transform:scale(1) translateY(0);}
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #333;
  font-size: 1.8em;
  cursor: pointer;
  border-radius: 24px;
  padding: 6px 14px;
  transition: background var(--transition);
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #e3e7ee;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 500;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--primary);
}
.cookie-category input[disabled] {
  accent-color: #aaa !important;
}

/* ===== FORMS ===== */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  color: #171717;
  transition: border 0.16s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid var(--primary);
  background: #f2f6fd;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .container {
    padding: 0 8px;
  }
  .section, section, .card, .content-wrapper, .content-grid,
  .feature-list ul {
    gap: 16px;
  }
  .section, section, .card {
    padding: 26px 6px;
    margin-bottom: 34px;
  }
  .testimonial-card {
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container, .content-grid, .feature-list ul {
    flex-direction: column;
    gap: 15px;
  }
  footer {
    padding: 22px 0 12px 0;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 1.39rem;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  .footer-brand img {
    width: 35px;
    height: 35px;
  }
}

/* ===== MICRO-INTERACTIONS & VISUAL ENHANCEMENTS ===== */
.cta, .btn,
.mobile-menu-toggle,
.mobile-menu-close,
.cookie-consent-banner .btn, .cookie-consent-banner .cta,
.cookie-modal-close {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cta:active, .btn:active, button:active,
.mobile-menu-toggle:active,
.mobile-menu-close:active {
  transform: scale(0.97);
}

/* ===== VISUAL HIERARCHY & SHADOWS ===== */
.card, .testimonial-card, .section {
  box-shadow: 0 2px 14px 0 rgba(34,54,104,0.07);
}
.section:not(:first-child) {
  background: #fafbfb;
}

/* ===== FOCUS ACCESSIBILITY ===== */
a:focus-visible, button:focus-visible, .cta:focus-visible, .btn:focus-visible {
  outline: 2px dotted var(--accent);
  outline-offset: 4px;
}

/* ===== TABLE / CARD BORDER RADIUS ===== */
.card, .testimonial-card, .section, table {
  border-radius: var(--border-radius);
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section, .section {
    box-shadow: none !important;
    border: none !important;
  }
}
