/*
 * Greytree Partners - Cassiopeia child template "greytree" (Joomla 6).
 * Look taken from the old theme840 site: dark menu bar with a light-blue active item, centred logo,
 * radial white-to-grey page, 940px content column, grey logo band and footer. Responsive.
 * Colours: theme840 template.css/personal.css.
 */

:root {
  --gt-bar: #2b333c;          /* menu bar */
  --gt-bar-dark: #181f25;     /* dropdowns, headings */
  --gt-blue: #58c0e5;         /* active menu item, accents, links on dark */
  --gt-link: #095197;         /* links in text */
  --gt-text: #1a2128;
  --gt-page: #d4d4d4;         /* page edge */
  --gt-band: #c4c5c6;         /* logo band */
  --gt-footer: #bebfc0;
  --gt-box: #dcdcdc;          /* testimonial boxes */
  --gt-width: 60rem;          /* ~960px column */

  --cassiopeia-color-primary: var(--gt-bar);
  --cassiopeia-color-link: var(--gt-link);
  --cassiopeia-color-hover: var(--gt-blue);
}

/* ---------- page ---------- */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--gt-text);
  background: radial-gradient(ellipse 70rem 50rem at 50% 6rem, #fff 0%, #f6f6f6 35%, var(--gt-page) 80%) no-repeat, var(--gt-page);
}

h1, h2, h3, .page-header h1, .page-header h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--gt-bar-dark);
  letter-spacing: -.01em;
}
h1, .page-header h1, .page-header h2 { font-size: 1.6rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a { color: var(--gt-link); text-decoration: none; }
a:hover, a:focus { color: var(--gt-blue); text-decoration: underline; }

/* 960px column for everything (desktop; Cassiopeia's own single column on phones) */
@media (min-width: 992px) {
  body.wrapper-static .site-grid {
    column-gap: 1em;
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, calc((var(--gt-width) - 3em) / 4))) [main-end] minmax(0, 1fr) [full-end];
  }
}
.container-header > .grid-child,
.container-footer > .grid-child,
.container-header .container-nav {
  max-width: var(--gt-width);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- header: menu bar first, logo centred below ---------- */
.container-header {
  display: flex;
  flex-direction: column;
  background: none;
  box-shadow: none;
}
.container-header .container-nav {
  order: -1;
  width: 100%;
  padding: 0;
  background: var(--gt-bar);
}
.container-header .navbar-brand {
  margin: 1.5rem auto 1.25rem;
  padding: 0;
  text-align: center;
}
.container-header .navbar-brand img { max-height: 50px; width: auto; }
.container-header .container-nav nav { width: 100%; }

/* top-level menu: five equal blocks, white caps, light blue when active */
.container-header .mod-menu {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
}
.container-header .metismenu.mod-menu > .metismenu-item {
  flex: 1 1 0;
  position: relative;
  margin: 0;
  padding: 0;
  text-align: center;
}
.container-header .metismenu.mod-menu > .metismenu-item > a { flex: 1 1 auto; }
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  display: block;
  padding: 1.15rem .5rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.container-header .mod-menu > li:hover > a,
.container-header .mod-menu > li > a:focus { background: #3a444f; color: #fff; }
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a { background: var(--gt-blue); color: #fff; }

/* the little arrow button Cassiopeia adds beside items with children */
.container-header .metismenu .mm-toggler { color: #fff; }
.container-header .mod-menu > li > .mm-toggler {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 .5rem;
}

/* dropdown (About Us -> Quality, Testimonials, News) */
.container-header .metismenu > li > .mm-collapse {
  min-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--gt-bar-dark);
  text-align: left;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}
.container-header .metismenu .mm-collapse a {
  display: block;
  padding: .6rem 1rem;
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
}
.container-header .metismenu .mm-collapse a:hover,
.container-header .metismenu .mm-collapse li.active > a { background: var(--gt-blue); color: #fff; text-decoration: none; }

/* phone: hamburger button, items stacked */
.container-header .navbar-toggler {
  margin: .5rem;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
@media (max-width: 767.98px) {
  .container-header .mod-menu { flex-direction: column; }
  .container-header .mod-menu > li { text-align: left; }
  .container-header .mod-menu > li > a { padding: .8rem 1rem; }
  .container-header .metismenu > li > .mm-collapse { box-shadow: none; padding-left: 1rem; }
}

/* ---------- home-page carousel (core Bootstrap 5) ---------- */
@media (min-width: 992px) {
  .site-grid > .container-banner.full-width { grid-column: main-start / main-end; }
}
.gt-carousel {
  margin-bottom: 1rem;
  box-shadow: 0 12px 18px -10px rgba(0, 0, 0, .55);
}
.gt-carousel .carousel-item img { aspect-ratio: 3 / 1; object-fit: cover; }

/* ---------- content ---------- */
.container-component > main { padding-top: .5rem; }
.container-banner + .container-component > main, .container-banner ~ .container-component { margin-top: 0; padding-top: 0; }
.com-content-featured .blog-featured, .blog-featured .items-leading { margin-top: 0; padding-top: 0; }
.blog-items .blog-item { margin-bottom: 1.5rem; }
.blog-items .item-content img { display: block; max-width: 100%; height: auto; margin: 0 0 .75rem; }
.item-content img, .com-content-article__body img { max-width: 100%; height: auto; }

/* module boxes: no Cassiopeia card frame */
.site-grid .card {
  background: none;
  border: 0;
  box-shadow: none;
}
.site-grid .card > .card-header {
  padding: 0 0 .75rem;
  background: none;
  border: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gt-bar-dark);
}
.site-grid .card > .card-body { padding: 0; }

/* ---------- testimonials: grey speech boxes ---------- */
.container-component blockquote {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--gt-box);
  font-size: 1rem;
}
.container-component blockquote p { margin: 0; font-size: inherit !important; }
.container-component blockquote::after {
  content: "";
  position: absolute;
  left: 5.5rem;
  bottom: -.7rem;
  border: .7rem solid transparent;
  border-bottom: 0;
  border-top-color: var(--gt-box);
}
.container-component .card-body > div > p:last-child,
.container-component .blockquote + p { font-weight: 700; font-size: .8rem; }

/* ---------- contact page: no "Contact" / "Contact Form" / "Send an Email" headings (none on the old site) ---------- */
.com-contact > .com-contact__container > h2,
.com-contact > h2,
.com-contact .contact-form legend,
.com-contact .com-contact__address:not(:has(dd)) { display: none; }
.com-contact .contact-form fieldset { margin: 0; padding: 0; border: 0; }
.container-sidebar-right .card-body { line-height: 1.5; }
.container-sidebar-right .card-body .wrapper:empty { display: none; }
.contact-form .form-control { max-width: 28rem; }
.contact-form textarea.form-control { max-width: 100%; }

/* ---------- client logos band (What We Do, Flashing Services, About Us, Quality) ---------- */
.site-grid > .container-bottom-a {
  grid-column: 1 / -1;
  margin-top: 2.5rem;
  padding: 2.5rem 1rem;
  background: var(--gt-band);
}
.container-bottom-a ul#carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem 2rem;
  max-width: var(--gt-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  list-style: none;
  background: rgba(0, 0, 0, .04);
}
.container-bottom-a ul#carousel li { margin: 0; }
.container-bottom-a ul#carousel a { pointer-events: none; }
.container-bottom-a ul#carousel img {
  max-height: 3.25rem;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  mix-blend-mode: multiply;
}

/* ---------- footer ---------- */
.container-footer {
  margin-top: 0;
  background: var(--gt-footer);
  color: var(--gt-text);
}
.container-footer > .grid-child { padding: 1.5rem 1rem; }
.gt-footer { font-size: .8rem; }
.container-footer .gt-footer a { color: #fff; text-decoration: none; }
.container-footer .gt-footer a:hover { color: var(--gt-bar-dark); text-decoration: underline; }
