/* ==========================================================================
   XGeneration Network - flat static site
   Hand-written replacement for the Drupal 7 "corporatex3" theme CSS.
   Keeps the original design language: Open Sans Light, navy headings,
   sky-blue accents, 1170px container, near-white watermarked background.
   ========================================================================== */

/* ----------------------------------------------------------------- fonts */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Light-webfont.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-LightItalic-webfont.woff") format("woff");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular-webfont.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Italic-webfont.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Semibold-webfont.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold-webfont.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --navy: #3156a3;
  --blue: #42b3e5;
  --link: #2caae2;
  --link-hover: #1b7fae;
  --ink: #1c1c1c;
  --muted: #777;
  --line: #e2e6ea;
  --chrome: #f8f8f8;
  --chrome-line: #e7e7e7;
  --page-bg: #f4f6f8;
  --container: 1170px;
  --gutter: 15px;
  --header-h: 66px;
  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(17, 17, 17, .12);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--page-bg);
  background-image: url("../../media/background2.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; border: 0; }
svg { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 300;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .25em; }

a { color: var(--link); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

blockquote {
  margin: 1.5em 0;
  padding: .5em 0 .5em 1.25em;
  border-left: 4px solid var(--blue);
  color: #444;
  font-style: italic;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

strong, b { font-weight: 600; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}
pre {
  background: #f5f7f9; border: 1px solid var(--line);
  padding: 1em; overflow-x: auto; border-radius: var(--radius);
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .75em 1.25em;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main { padding: 2.5rem 0 3rem; }

.content-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; }
}

.content-main { min-width: 0; }

/* -------------------------------------------------------- header + nav */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-line);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 138px; height: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 4px; width: 44px; height: 40px; padding: 0 10px;
  background: none; border: 1px solid var(--chrome-line);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--muted); border-radius: 2px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a,
.site-nav .sub-toggle {
  display: block; width: 100%; text-align: left;
  padding: .9rem 1rem; font-size: .875rem; color: var(--muted);
  background: none; border: 0; font-family: var(--font); font-weight: 300;
  cursor: pointer; text-decoration: none;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a:focus,
.site-nav .sub-toggle:hover,
.site-nav .sub-toggle[aria-expanded="true"] { color: var(--navy); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.caret {
  display: inline-block; margin-left: .4em;
  border: 4px solid transparent; border-top-color: currentColor;
  translate: 0 2px;
}

.site-nav .sub { display: none; padding-left: .75rem; }
.site-nav .has-sub.is-open .sub { display: block; }
.site-nav .sub a { display: block; padding: .55rem 1rem; font-size: .85rem; color: var(--muted); }
.site-nav .sub a:hover { color: var(--navy); background: rgba(0, 0, 0, .03); text-decoration: none; }

@media (max-width: 991px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--chrome); border-bottom: 1px solid var(--chrome-line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { padding: .5rem var(--gutter) 1rem; }
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .site-nav > ul { display: flex; align-items: center; }
  .site-nav > ul > li { position: relative; margin: 0; }
  .site-nav > ul > li > a,
  .site-nav .sub-toggle { padding: 1.4rem 1.5rem; white-space: nowrap; }
  .site-nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 250px;
    background: #fff; border: 1px solid var(--chrome-line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .1); padding: .35rem 0;
  }
  .site-nav .has-sub:hover .sub,
  .site-nav .has-sub:focus-within .sub { display: block; }
}

/* ------------------------------------------------------------ hero slider */
.hero {
  position: relative; overflow: hidden;
  background: #0d1c2b;
  height: clamp(240px, 38vw, 450px);
}
.hero .slides { list-style: none; margin: 0; padding: 0; height: 100%; }
.hero .slide {
  position: absolute; inset: 0; margin: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
  display: flex; align-items: center;
}
.hero .slide.is-active { opacity: 1; visibility: visible; }
.slide-copy {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
}
.slide-line { display: block; max-width: min(100%, 560px); height: auto; }

.slide-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 1.75rem; line-height: 1;
  cursor: pointer; transition: background .15s ease;
}
.slide-nav:hover { background: rgba(0, 0, 0, .6); }
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }

.dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
}
.dots .dot {
  width: 11px; height: 11px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: transparent; cursor: pointer;
}
.dots .dot.is-active { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero .slide { transition: none; }
}

/* ------------------------------------------------------- content blocks */
.page-title { margin-bottom: 1rem; }

.block { margin-bottom: 2.5rem; }
.block:last-child { margin-bottom: 0; }
.block > h2 { margin-bottom: 1rem; }

.site-main article.node { margin: 0 0 2rem; }
.site-main .field { margin-bottom: 1.25rem; }
.site-main .field-items > .field-item + .field-item { margin-top: 1rem; }

.views-row { margin-bottom: 2rem; }
.views-field { margin-bottom: .5rem; }
.views-field:last-child { margin-bottom: 0; }
.views-field-title { font-size: 1.0625rem; color: var(--navy); }
.views-field-title a { color: var(--navy); }
.views-field-title a:hover { color: var(--link); }
.views-field-field-image img,
.views-field-field-images img { border-radius: var(--radius); width: 100%; }
.view-content .views-row .views-field-body { color: #444; font-size: .9375rem; }

/* home feature cards */
.features { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature > i {
  color: var(--link); font-size: 3.5rem; line-height: 1;
  flex: 0 0 auto; width: 4rem; text-align: center;
}
.feature-body h3 { margin-bottom: .35rem; color: var(--blue); font-size: 1.25rem; }
.feature-body p:last-child { margin-bottom: 0; }

/* converted ctools jump menus */
.jump-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump-links a {
  display: inline-block; padding: .4rem .85rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--navy);
}
.jump-links a:hover { border-color: var(--blue); color: var(--link); text-decoration: none; }

/* embeds */
.embed-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 1.5rem;
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.embed-gone {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.embed-gone h3 { margin-top: 0; }
.embed-gone p:last-child { margin-bottom: 0; }

/* inline advisory note */
.page-note {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.5rem;
  font-size: .9375rem; color: #444;
}

/* contact */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 1.5rem;
}
.contact-card h2 { margin-top: 0; }
.contact-actions { margin: 1.25rem 0; }
.contact-detail { color: var(--muted); margin-bottom: 0; }

/* pager */
.pager, ul.pager {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0; margin: 2rem 0 0; justify-content: center;
}
.pager li { margin: 0; }
.pager a, .pager .pager-current {
  display: inline-block; padding: .45rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--navy); font-size: .875rem;
}
.pager .pager-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager a:hover { border-color: var(--blue); text-decoration: none; }

/* sidebar */
.content-aside { min-width: 0; }
.side-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.5rem;
}
.side-block > h2 { font-size: 1.125rem; margin-bottom: .85rem; color: var(--navy); }
.side-block .views-row {
  margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.side-block .views-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.side-block img { border-radius: 3px; }

/* --------------------------------------------------- pre-footer bands */
.value-strip {
  background: #fff; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 2.5rem 0;
}
.value-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-grid h3 { font-size: 1.125rem; color: var(--navy); }
.value-grid p { margin: 0; }
.value-grid a { color: var(--muted); }
.value-grid a:hover { color: var(--link); }

.site-about { padding: 3rem 0; }
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 3fr 2fr; } }
.site-about h2 { font-size: 1.5rem; }
.follow-h { margin-top: 1.5rem; }
.contact-line { margin-bottom: .75rem; }

.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--navy); font-size: .875rem;
}
.social a:hover { border-color: var(--blue); color: var(--link); text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 1.25rem 0; font-size: .8125rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: space-between; color: var(--muted);
}
.site-footer a { color: var(--navy); }

/* ------------------------------- Bootstrap 3 subset used inside content */
.row { display: flex; flex-wrap: wrap; margin-inline: calc(var(--gutter) * -1); }
.row-fluid { display: flex; flex-wrap: wrap; }

/* Views wrap their columns in an extra .view-content div. Bootstrap 3 floated
   the columns so the nesting did not matter; flexbox needs the wrapper to be
   the flex container instead. */
.row > .view-content,
.row > .item-list > .view-content { display: flex; flex-wrap: wrap; width: 100%; }
[class*="col-md-"], [class*="col-sm-"], [class*="col-xs-"] {
  width: 100%; padding-inline: var(--gutter); min-width: 0;
}
@media (min-width: 768px) {
  .col-sm-2 { width: 16.6667%; } .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.3333%; } .col-sm-6 { width: 50%; }
  .col-sm-8 { width: 66.6667%; } .col-sm-9 { width: 75%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-md-2 { width: 16.6667%; } .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; } .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.6667%; } .col-md-9 { width: 75%; } .col-md-12 { width: 100%; }
}

/* Responsive visibility utilities. The home page ships a desktop and a mobile
   version of the same call-to-action and relies on these to show exactly one;
   without them both render at once. Breakpoints follow Bootstrap 3, with `xl`
   treated as an alias of `lg` because the corporatex3 theme emitted it. */
.visible-xs, .visible-sm, .visible-md, .visible-lg, .visible-xl { display: none !important; }

@media (max-width: 767px) {
  .visible-xs { display: block !important; }
  a.visible-xs, span.visible-xs, button.visible-xs, .btn.visible-xs { display: inline-block !important; }
  .hidden-xs { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm { display: block !important; }
  a.visible-sm, span.visible-sm, button.visible-sm, .btn.visible-sm { display: inline-block !important; }
  .hidden-sm { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md { display: block !important; }
  a.visible-md, span.visible-md, button.visible-md, .btn.visible-md { display: inline-block !important; }
  .hidden-md { display: none !important; }
}
@media (min-width: 1200px) {
  .visible-lg, .visible-xl { display: block !important; }
  a.visible-lg, span.visible-lg, button.visible-lg, .btn.visible-lg,
  a.visible-xl, span.visible-xl, button.visible-xl, .btn.visible-xl { display: inline-block !important; }
  .hidden-lg, .hidden-xl { display: none !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.img-responsive { display: block; max-width: 100%; height: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.pull-left { float: left; margin-right: 1rem; }
.pull-right { float: right; margin-left: 1rem; }
.clearfix::after { content: ""; display: table; clear: both; }
.list-inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.list-inline > li { margin: 0; }

.media { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.media .pull-left { float: none; margin-right: 0; }
.media-object { max-width: 120px; height: auto; flex: 0 0 auto; }
.media-body { min-width: 0; }

.btn {
  display: inline-block; padding: .55rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9375rem; font-family: var(--font); font-weight: 400;
  line-height: 1.4; text-align: center; cursor: pointer;
  background: #fff; color: var(--navy);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; border-color: var(--blue); color: var(--link); }
.btn-primary { background: var(--link); border-color: var(--link); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--link-hover); border-color: var(--link-hover); color: #fff; }
.btn-default { background: #fff; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.0625rem; }
.btn-hero { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-hero:hover { background: #24407c; color: #fff; }

.well {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem;
}
.thumbnail {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px; margin-bottom: 1.25rem;
}

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font-weight: 600; color: var(--navy); }

/* carousel (only the Services page uses one) */
.carousel { position: relative; margin-bottom: 1.5rem; }
.carousel-inner { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel-inner > .item { display: none; }
.carousel-inner > .item.active { display: block; }
.carousel-inner > .item img { width: 100%; height: auto; display: block; }
.carousel-indicators {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.carousel-indicators li {
  width: 11px; height: 11px; margin: 0; border-radius: 50%;
  border: 2px solid #fff; cursor: pointer;
}
.carousel-indicators li.active { background: #fff; }
.carousel-control {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 1.25rem;
}
.carousel-control:hover { background: rgba(0, 0, 0, .6); color: #fff; text-decoration: none; }
.carousel-control.left { left: 12px; }
.carousel-control.right { right: 12px; }

/* -------------------------------------------------- Font Awesome subset */
@font-face {
  font-family: "FontAwesome";
  src: url("../font-awesome/fonts/fontawesome-webfont_v_4_0_3.woff") format("woff"),
       url("../font-awesome/fonts/fontawesome-webfont_v_4_0_3.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: block;
}
.fa {
  display: inline-block; font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit; text-rendering: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.fa-heart::before       { content: "\f004"; }
.fa-star::before        { content: "\f005"; }
.fa-plus-circle::before { content: "\f055"; }
.fa-cogs::before,
.fa-gears::before       { content: "\f085"; }
.fa-twitter::before     { content: "\f099"; }
.fa-facebook::before    { content: "\f09a"; }
.fa-wrench::before      { content: "\f0ad"; }
.fa-tablet::before      { content: "\f10a"; }
.fa-code::before        { content: "\f121"; }

/* ----------------------------------------------------------------- print */
@media print {
  body { padding-top: 0; background: #fff; }
  .site-header, .hero, .value-strip, .site-about,
  .nav-toggle, .skip-link, .content-aside { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
