/* Glenavon Technology — rebuilt from Webflow design tokens */
:root {
  --black: #1d1d1d;
  --white: #fff;
  --light-grey: #f9f9f9;
  --midnight-blue: #302c67;
  --steel-blue: #0088ca;
  --form-line: #d8d8d8;
  --grey: #e6e6e6;
  --hover-text: #777;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 600; margin: 0 0 1rem; }
.heading-xxlarge { font-size: 3.5rem; line-height: 1.2; }
.heading-xlarge  { font-size: 3rem;   line-height: 1.2; }
.heading-large   { font-size: 2.5rem; line-height: 1.2; }
.heading-medium  { font-size: 2rem;   line-height: 1.3; }
.heading-small   { font-size: 1.5rem; line-height: 1.4; }
.heading-xsmall  { font-size: 1.25rem; line-height: 1.4; }

.text-light { color: var(--white); }
.text-blue  { color: var(--steel-blue); }
.text-center { text-align: center; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 5%; }
.container-narrow { max-width: 48rem; }
.section { padding: 5rem 0; }
.section-grey {
  background: var(--light-grey);
  border-radius: 1rem;
  margin: 2rem 5%;
  padding: 4rem 0;
}
.section-grey .container { padding: 0 4%; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--midnight-blue); color: #fff; padding: .5rem 1rem; z-index: 1001;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  border: 1px solid var(--midnight-blue);
  background: var(--midnight-blue);
  color: var(--white);
  text-align: center;
  padding: .75rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s;
}
.button:hover { border-color: var(--steel-blue); background: var(--steel-blue); color: var(--white); }
.button-secondary {
  display: inline-block;
  border: 1px solid var(--midnight-blue);
  background: transparent;
  color: var(--black);
  text-align: center;
  padding: .75rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s;
}
.button-secondary:hover { background: var(--midnight-blue); color: var(--white); }
.button-secondary.is-alternate { border-color: var(--white); color: var(--white); }
.button-secondary.is-alternate:hover { border-color: var(--steel-blue); background: var(--steel-blue); }
.button-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 999;
  background: var(--white);
  min-height: 4.5rem;
  border-bottom: 1px solid var(--grey);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem; padding: 0 5%;
}
.navbar-brand img { width: 180px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  padding: .5rem 1rem;
  font-size: 1.125rem;
  text-decoration: none;
  background: none; border: none;
  font-family: 'Open Sans', sans-serif;
  color: var(--black);
  cursor: pointer;
  transition: color .3s;
}
.nav-link:hover { color: var(--steel-blue); }
.nav-cta { margin-left: 1rem; }
.nav-caret {
  display: inline-block; width: .5em; height: .5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: .35em;
}
.nav-dropdown { position: relative; }
.nav-dropdown-list {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--light-grey);
  padding: .5rem;
  min-width: 16rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.nav-dropdown.open .nav-dropdown-list { display: block; }
.nav-dropdown-link {
  display: block;
  padding: .5rem .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .3s;
}
.nav-dropdown-link:hover { color: var(--steel-blue); }
.nav-toggle { display: none; background: none; border: none; padding: .75rem; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--black);
  margin: 5px 0; transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 70vh;
  padding: 6rem 0;
  background-size: cover; background-position: 50% 50%;
  color: var(--white);
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero .container { position: relative; }
.hero-home h1 { font-size: 5rem; margin-bottom: 1rem; }
.hero-tagline { font-size: 1.25rem; max-width: 36rem; margin: 0 0 2rem; }
.hero-compact { min-height: 40vh; padding: 5rem 0; background-color: var(--midnight-blue); }
.hero-compact .hero-kicker { font-size: 1.125rem; margin-bottom: .75rem; }
.hero-compact h1 { margin-bottom: 0; }

/* ---------- Two-column blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse > .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 1rem; object-fit: cover; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.card-image { aspect-ratio: 16 / 10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.25rem; }
.card-tag {
  align-self: flex-start;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--midnight-blue); color: var(--white);
  border-radius: 50rem; padding: .25rem .75rem;
}
.card-summary { color: #444; font-size: .95rem; margin: 0; }
.card-readmore { margin-top: auto; color: var(--steel-blue); font-weight: 600; }

/* ---------- Testimonial slider ---------- */
.slider { position: relative; }
.slider-track { overflow: hidden; }
.slider-slides { display: flex; transition: transform .4s ease; }
.slide { flex: 0 0 100%; min-width: 100%; padding: 0 1px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 1rem;
  padding: 3rem;
  display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: center;
}
.testimonial-quote { font-size: 1.125rem; margin: 0 0 1.5rem; }
.testimonial-client { font-weight: 700; margin: 0; }
.testimonial-role { color: var(--hover-text); margin: 0; }
.testimonial-logo { justify-self: center; max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.slider-nav { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.slider-arrow {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--grey); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.slider-arrow:hover { background: var(--light-grey); }
.slider-arrow img { width: 1.25rem; height: 1.25rem; }

/* ---------- Tabs (content hub) ---------- */
.tab-menu { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.tab-link {
  background: var(--white); border: 1px solid var(--grey);
  border-radius: 50rem;
  padding: .5rem 1.5rem;
  font-size: 1rem; font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: all .25s;
}
.tab-link.active, .tab-link:hover { background: var(--midnight-blue); border-color: var(--midnight-blue); color: var(--white); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--form-line); }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.125rem;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--steel-blue); flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 1.25rem; color: #333; }

/* ---------- Rich text (blog/case study bodies + legal pages) ---------- */
.rich-text { font-size: 1.0625rem; line-height: 1.7; }
.rich-text h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.rich-text h3 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.rich-text h4 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.rich-text p { margin: 0 0 1.25rem; }
.rich-text ul, .rich-text ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.rich-text li { margin-bottom: .5rem; }
.rich-text a { color: var(--steel-blue); }
.rich-text figure, .rich-text .img-center { margin: 2rem auto; max-width: 100%; }
.rich-text figure img, .rich-text .img-center img {
  margin: 0 auto; border-radius: .5rem; border: 1px solid var(--grey);
}
.rich-text blockquote {
  border-left: 4px solid var(--steel-blue);
  margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem;
  color: #444; font-style: italic;
}
.rich-text pre {
  background: var(--black); color: #eee;
  padding: 1rem 1.25rem; border-radius: .5rem; overflow-x: auto;
  font-size: .9rem;
}

/* ---------- Post hero ---------- */
.post-hero {
  position: relative;
  background: var(--midnight-blue);
  background-size: cover; background-position: 50% 30%;
  color: var(--white);
  padding: 7rem 0;
  text-align: center;
}
.post-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,30,.55); }
.post-hero .container { position: relative; }
.post-hero-kicker { font-size: 1.125rem; margin-bottom: .75rem; }
.post-hero h1 { font-size: 3rem; margin: 0; }

/* ---------- Comparison columns (hosting page) ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.compare-col {
  background: var(--white); border: 1px solid var(--grey); border-radius: 1rem; padding: 2rem;
}
.compare-col h3 { color: var(--midnight-blue); }
.compare-col ul { padding-left: 1.25rem; margin: 0; }
.compare-col li { margin-bottom: .75rem; }

/* ---------- Forms / footer ---------- */
.footer { background: var(--light-grey); padding: 5rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.footer-logo { width: 200px; margin: 1.5rem 0; }
.footer-address { font-style: normal; font-family: 'Roboto', sans-serif; line-height: 1.8; }
.footer-address a { color: var(--steel-blue); }
.footer-badges { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.footer-badges img { width: auto; height: auto; max-height: 64px; max-width: 45%; object-fit: contain; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block; margin-bottom: .35rem;
  font-family: 'Roboto', sans-serif; font-size: .875rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--form-line); border-radius: .25rem;
  background: var(--white);
  padding: .65rem .75rem;
  font-family: 'Open Sans', sans-serif; font-size: 1rem;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--steel-blue); outline-offset: 0; border-color: var(--steel-blue); }
.form-check { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.5rem; font-size: .9rem; }
.form-check a { color: var(--steel-blue); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-banner { padding: 1rem 1.25rem; border-radius: .5rem; margin-bottom: 1.5rem; }
.form-banner-ok { background: #e7f6ec; border: 1px solid #9fd8b2; }
.form-banner-err { background: #ffdede; border: 1px solid #e8a0a0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--form-line);
  margin-top: 3rem; padding-top: 1.5rem;
  font-size: .875rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-credit { display: flex; gap: 1.5rem; align-items: center; }
.footer-credit a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }

/* ---------- Section headers ---------- */
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-kicker { color: var(--steel-blue); font-weight: 700; margin: 0 0 .5rem; letter-spacing: .03em; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 8rem 0; }

/* ================= Responsive ================= */
@media (max-width: 991px) {
  .heading-xxlarge { font-size: 3.25rem; }
  .heading-xlarge { font-size: 2rem; }
  .heading-large { font-size: 2.25rem; }
  .heading-medium { font-size: 1.75rem; }
  .hero-home h1 { font-size: 4rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 2.5rem; }

  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--grey);
    padding: 1rem 5% 2rem;
    max-height: calc(100vh - 4.5rem);
    overflow: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: .75rem 0; text-align: left; width: 100%; }
  .nav-dropdown-list { position: static; box-shadow: none; min-width: 0; }
  .nav-cta { margin: 1rem 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .heading-xxlarge { font-size: 2.5rem; }
  .heading-large { font-size: 2rem; }
  .heading-medium { font-size: 1.5rem; line-height: 1.4; }
  .hero-home h1 { font-size: 2.75rem; }
  .post-hero h1 { font-size: 2rem; }
  .split, .compare-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .testimonial { grid-template-columns: 1fr; padding: 2rem; text-align: center; }
  .testimonial-logo { max-height: 90px; }
  .form-row { grid-template-columns: 1fr; }
  .section-grey { margin: 1.5rem 4%; }
}
@media (max-width: 479px) {
  .hero-home h1 { font-size: 2.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
