/* Lake Area Recovery Club - Cassiopeia child template (user.css)
   Recreates the old Helix Ultimate look from its saved style parameters.
   Place at: media/templates/site/cassiopeia_child/css/user.css
   First draft: verify against screenshots and adjust. */

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&family=Neuton:wght@400;500;600&display=swap");

:root {
  --larc-maroon: #793c4b;
  --larc-maroon-hover: #9b5764;
  --larc-maroon-donate: #793d4b;
  --larc-teal: #048395;
  --larc-teal-hover: #458995;
  --larc-text: #252525;
  --larc-grey: #666666;

  /* Cassiopeia's own colour variables */
  --cassiopeia-color-primary: var(--larc-maroon);
  --cassiopeia-color-link: var(--larc-maroon);
  --cassiopeia-color-hover: var(--larc-maroon-hover);
}

/* ---------- Type ---------- */
body {
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  color: var(--larc-text);
  background: #fff;
}
h1, h2, h3, .h1, .h2, .h3 { font-family: "Neuton", Georgia, serif; color: var(--larc-text); }
h1, .h1 { font-size: 42px; font-weight: 600; }
h2, .h2 { font-size: 36px; font-weight: 500; }
h3, .h3 { font-size: 28px; font-weight: 500; }
h4, h5, h6 { font-family: Arial, sans-serif; }

a, a:link, a:visited { color: var(--larc-maroon); }
a:hover, a:active, a:focus { color: var(--larc-maroon-hover); }

/* ---------- Header: white, 130px, logo left, menu right ---------- */
.container-header {
  background: #fff;
  background-image: none;
  color: var(--larc-text);
  box-shadow: none;
  min-height: 132px;
  border-top: 5px solid #333;
}
.container-header .grid-child,
.container-footer .grid-child { max-width: 1320px; margin-inline: auto; }
.container-header .navbar-brand img { max-height: 129px; width: auto; }
.container-header .navbar-brand,
.container-header .site-description { color: var(--larc-maroon); }
.container-header.position-sticky {
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}
@media (max-width: 767px) {
  .container-header { min-height: 80px; }
  .container-header .navbar-brand img { max-height: 70px; }
}

/* ---------- Menu ---------- */
.container-header .container-nav { justify-content: flex-end; }
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 132px;
  padding: 0 15px;
  color: var(--larc-text);
}
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  color: var(--larc-teal);
  background: transparent;
}
.container-header .mod-menu ul,
.container-header .mod-menu .mod-menu__sub {
  background: #fff;
  border: 1px solid #e6e6e6;
}
.container-header .mod-menu ul li a { line-height: 30px; color: var(--larc-text); }
.container-header .mod-menu ul li a:hover { color: var(--larc-teal); }

/* Donate button: give the menu item the "Link Class" btn btn-donate */
.container-header .mod-menu a.btn-donate {
  background: var(--larc-maroon-donate);
  border: 1px solid var(--larc-maroon-donate);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 132px;
  padding: 0 40px;
  margin-top: 3px;
  border-radius: 4px;
}
.container-header .mod-menu a.btn-donate:hover,
.container-header .mod-menu a.btn-donate:focus {
  background: var(--larc-maroon-hover);
  border-color: var(--larc-maroon-hover);
  color: #fff;
}

/* Facebook icon item (Link Class: nav-facebook) */
.container-header .mod-menu a.nav-facebook { font-size: 34px; line-height: 132px; color: var(--larc-text); }

/* Mobile menu: teal panel, white text, divider lines, maroon on hover */
@media (max-width: 991px) {
  .container-header .navbar-toggler { color: var(--larc-maroon); border-color: var(--larc-maroon); }
  .container-header .container-nav .mod-menu {
    background: var(--larc-teal);
    padding: 30px 0;
  }
  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    line-height: 1.4;
    font-size: 1.2rem;
    color: #fff;
    padding: 20px 10px;
    border-bottom: 1px solid #ccc;
  }
  .container-header .mod-menu > li > a:hover,
  .container-header .mod-menu > li.active > a {
    background: var(--larc-maroon);
    color: #fff;
  }
  .container-header .mod-menu a.btn-donate { text-align: left; border-radius: 0; line-height: 1.4; padding: 20px 10px; margin-top: 0; }
}

/* ---------- Footer: maroon bar, two columns (left info, right-aligned 501c3 text) ---------- */
.container-footer, .footer {
  background: var(--larc-maroon);
  color: #fff;
  padding: 40px 0;
  font-size: 15px;
  line-height: 1.45;
}
.container-footer .grid-child { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.container-footer .grid-child > :last-child { text-align: right; }
.container-footer p { margin: 0; }
.container-footer a, .footer a { color: #fff; }
.container-footer a:hover, .footer a:hover { color: var(--larc-teal-hover); }
@media (max-width: 767px) { .container-footer .grid-child > :last-child { text-align: left; } }

/* ---------- Helper classes for content (replace page-builder sections) ---------- */
/* Buttons: <a class="larc-btn" href="/meetings">Meeting Schedule</a> */
.larc-btn {
  display: inline-block;
  background: var(--larc-teal);
  color: #fff;
  letter-spacing: 1px;
  padding: 15px 30px;
  border-radius: 2px;
  text-decoration: none;
  margin: 10px;
}
.larc-btn:hover, .larc-btn:focus { background: var(--larc-teal-hover); color: #fff; }
.larc-btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  letter-spacing: 0;
}
.larc-btn-outline:hover, .larc-btn-outline:focus { background: #fff; color: #333; }

/* Hero: <div class="larc-hero" style="background-image:url(/images/home/recovery-home1.jpg)"> */
.larc-hero {
  --larc-band: 55px;
  position: relative;
  overflow: hidden;
  padding: 175px 20px;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.larc-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.larc-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(7vw + var(--larc-band));
  background:
    linear-gradient(to top left, #fff 50%, transparent 50%) left bottom / 100% 7vw no-repeat,
    linear-gradient(to top left, rgba(255,255,255,.55) 50%, transparent 50%) left bottom var(--larc-band) / 100% 7vw no-repeat,
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) left bottom / 100% var(--larc-band) no-repeat;
}
.larc-hero > * { position: relative; z-index: 1; }
.larc-hero h1, .larc-hero h2 { color: #fff; font-size: 60px; line-height: 80px; font-weight: 500; margin-bottom: 30px; }
.larc-hero p { font-size: 20px; line-height: 26px; margin-bottom: 32px; color: #fff; }
@media (max-width: 767px) {
  .larc-hero { --larc-band: 24px; padding: 60px 16px; }
  .larc-hero h1, .larc-hero h2 { font-size: 30px; line-height: 40px; }
}

/* Section headings: uppercase, wide tracking */
.larc-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
}
.larc-lead { text-align: center; color: var(--larc-grey); font-size: 1.15rem; }

/* Teal band with sloped top: <section class="larc-band"> ... </section> */
.larc-band {
  background: var(--larc-teal);
  color: #fff;
  padding: 120px 20px 50px;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}
.larc-band a { color: #fff; text-decoration: underline; }

/* Meetings day columns: wrap three .larc-day blocks in .larc-days */
.larc-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.larc-day h3 { border-bottom: 2px solid var(--larc-teal); padding-bottom: 6px; }
.canceled { text-decoration: line-through; }

/* Keyboard focus */
a:focus-visible, .larc-btn:focus-visible { outline: 3px solid var(--larc-teal); outline-offset: 2px; }
