:root {
  --brand: #69b9e5;
  --brand-dark: #278fca;
  --surface: #fff;
  --surface-soft: #f7f7f7;
  --text: #4d4d4d;
  --border: #d8d8d8;
  --link: #0645e5;
  --alert: #e51313;
  --page-width: 1600px;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--brand);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

img, iframe, video { max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-underline-offset: .14em; }
a:hover, a:focus-visible { color: #002fa7; }

/* Joomla accessibility helpers: keep labels available to screen readers. */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin-inline: auto;
  padding: 0 .5rem .5rem;
}

.site-header { padding: 0; background: var(--brand); }
.brand {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  min-height: 190px;
  color: #fff;
  text-decoration: none;
}
.brand-photo {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: .5rem;
  padding: 1.25rem;
  text-align: center;
}
.brand-copy strong {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
}
.brand-copy small {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2.7rem);
}

.menu-toggle {
  display: none;
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .35rem;
  background: #fff;
  color: #222;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.breadcrumbs { background: #fff; padding: .5rem 1rem 0; }

.page-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 4rem);
  min-height: 65vh;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--surface);
}
.page-grid.has-both { grid-template-columns: minmax(220px, 290px) minmax(0, 1fr) minmax(220px, 290px); }
.page-grid.has-left { grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); }
.page-grid.has-right { grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); }
.page-grid.content-only { grid-template-columns: minmax(0, 1fr); }

.main-content { min-width: 0; }
.main-content > :first-child { margin-top: 0; }
.main-content h1 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.15; }
.main-content h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; }
.main-content p { overflow-wrap: anywhere; }

.site-navigation .card,
.site-navigation .moduletable,
.site-navigation > div {
  border: 1px solid var(--border);
  border-radius: .35rem;
  background: var(--surface-soft);
  padding: 1rem 1.25rem;
}

.site-navigation ul,
.site-navigation .mod-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-navigation li { border-bottom: 1px solid var(--border); }
.site-navigation li:last-child { border-bottom: 0; }
.site-navigation a {
  display: block;
  padding: .62rem 0;
  color: #444;
  text-decoration: none;
}
.site-navigation a:hover,
.site-navigation a:focus-visible { color: #000; text-decoration: underline; }
.site-navigation .active > a,
.site-navigation .current > a { color: #333; font-weight: 700; }

.right-column { min-width: 0; }
.right-column .card,
.right-column .moduletable { margin-bottom: 1.5rem; }
.right-column h2,
.right-column h3 { margin-top: 0; font-size: 1.45rem; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  padding: .75rem .8rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

input, textarea, select, button { max-width: 100%; font: inherit; }
input, textarea, select { padding: .65rem; border: 1px solid #aaa; border-radius: .25rem; }
.button, button, input[type="submit"] {
  display: inline-block;
  padding: .75rem 1.2rem;
  border: 0;
  border-radius: .2rem;
  background: var(--brand);
  color: #111;
  text-decoration: none;
}

.site-footer {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--brand);
  color: #fff;
}

.alert, .red, [style*="color: #ff0000"], [style*="color:#ff0000"] { overflow-wrap: anywhere; }
.component-view { background: #fff; padding: 1.5rem; }
.error-page .main-content { margin-top: .5rem; padding: 2rem; background: #fff; }

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr);
  gap: 2rem;
  align-items: start;
}
.contact-map iframe { display: block; width: 100%; min-height: 320px; border: 0; }
.contact-details h1 { margin: 0 0 1rem; font-size: clamp(1.65rem, 2.7vw, 2.4rem); }
.contact-details address { margin-bottom: 1.5rem; font-style: normal; }
.contact-details p { margin: .45rem 0; }
.contact-details a:not(.button) { color: inherit; }
.contact-button { margin-top: 1rem; }
.contact-way { grid-column: 1 / -1; margin: 0; }
.contact-way img { display: block; width: min(100%, 760px); }

#ins-company ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
#ins-company li { margin: 0; }
#ins-company a { display: block; padding: .5rem; }
#ins-company .company_img { display: block; width: auto; max-height: 64px; }

@media (max-width: 1100px) {
  .page-grid.has-both { grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); }
  .page-grid.has-both .right-column { grid-column: 2; }
}

@media (max-width: 760px) {
  body { background: #fff; }
  .site-shell { padding: 0; }
  .site-header { padding: .4rem; }
  .brand { grid-template-columns: minmax(135px, 38%) minmax(0, 1fr); min-height: 105px; }
  .brand-photo { min-height: 105px; }
  .brand-copy { padding: .6rem; }
  .brand-copy strong { font-size: clamp(1rem, 4.5vw, 1.6rem); }
  .brand-copy small { font-size: clamp(.8rem, 3.5vw, 1.15rem); }
  .menu-toggle { display: block; margin-top: .4rem; }

  .page-grid,
  .page-grid.has-both,
  .page-grid.has-left,
  .page-grid.has-right {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .site-navigation {
    display: none;
    grid-row: 1;
  }
  .site-navigation.is-open { display: block; }
  .main-content { grid-column: 1; }
  .right-column,
  .page-grid.has-both .right-column { grid-column: 1; }

  .main-content h1 { font-size: 1.8rem; }
  .main-content h2 { font-size: 1.4rem; }

  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { min-width: 6.5rem; padding: .6rem; }

  .main-content [style*="font-size"] { max-width: 100%; }

  .contact-page { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-map iframe { min-height: 260px; }
  .contact-way { grid-column: 1; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-navigation, .right-column, .menu-toggle, .site-footer { display: none !important; }
  .site-shell, .page-grid { width: 100%; padding: 0; display: block; }
  a { color: #000; }
}
