/*
 Theme Name: Crio Child
 Theme URI: https://example.com
 Description: Child theme for Crio
 Author: Derek Bowers
 Template: crio
 Version: 1.0
*/

/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg: #FAF7EE !important;
  --primary-light: #D2BFAB !important;
  --primary-mid: #B3B49A !important;
  --primary-dark: #7EBEC5 !important;
  --accent: #EA4335 !important;
  --text: #000000 !important;
  --focus: #000000 !important;
}

/* =========================
   BASE RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: #FEFCF7 !important;
  color: #000000 !important;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #ffffff !important;
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-weight: 100;
  font-size: 3rem;
  margin-top: 0;
}

h2 {
  font-weight: 200;
  margin-top: 0;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-dark);
  margin-top: 0;
}

.title-white {
  color: #ffffff !important;
  font-weight: 400;
}

.thin-text {
  font-weight: 100;
}

.centered {
  font-weight: 400;
  text-align: center !important;
}

.centered h1 {
  margin-bottom: 0.1rem;
  color: #9f8766;
}

.personal-touch {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--primary-dark);
  margin-top: 0;
}

/* =========================
   HEADER + MENU
========================= */
header {
  background: #FAF7EE !important;
  text-align: center !important;
  padding: 0.75rem 0rem 0.25rem 0rem;
  top: 0;
  z-index: 1000;
}

#main-menu a:focus,
#main-menu a:active {
    outline: none !important;
    box-shadow: none !important;
}

#main-menu > li > a {
    color: #ffffff !important;
    position: relative;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

#main-menu > li > a:hover {
    background-color: #c3c7a7 !important;
    color: #000 !important;
}

#main-menu > li.current-menu-item > a,
#main-menu > li.current_page_item > a {
    background: none !important;
    color: #000 !important;
}

#main-menu .sub-menu a {
    color: #000 !important;
}

#main-menu .sub-menu a:hover {
    background-color: #ddd !important;
    color: #000 !important;
}

.site-header,
.site-header .container,
.site-header .container-fluid,
.site-header .grid-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.site-header .main-navigation {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: #757862 !important;
}

/* Hover red line */
#main-menu > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background-color: #9f0000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#main-menu > li > a:hover::before {
    opacity: 1 !important;
}

/* Active red line */
#main-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background-color: #9f0000;
    opacity: 0;
}

#main-menu > li.current-menu-item > a::after,
#main-menu > li.current_page_item > a::after {
    opacity: 1 !important;
}

/* =========================
   MAIN CONTENT
========================= */
main {
  padding: .5rem;
  padding-top: 1.25rem;
}

.section {
  margin-bottom: 2rem;
}

.card-white {
  background: white !important;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ddd !important;
  margin-bottom: 1.5rem;
}

/* Buttons */
.button {
  display: inline-block;
  width: 150px;
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
}

.button:hover,
.button:focus {
  opacity: 0.9;
  box-shadow: 0 0 0 3px var(--focus);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: #7ebec5 !important;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px !important;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #69327a !important;
}

/* =========================
   IMAGES
========================= */
.logo img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 0.25rem auto;
}

.service-card img.wp-image-1638 {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: contain !important;
    padding-top: 20px;
    margin: 0 auto !important;
    display: block !important;
}

.two-column img,
.three-column img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =========================
   2 COLUMNS
========================= */
.two-column {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  margin: 2rem auto !important;
  max-width: 1100px !important;
  padding: 0 1rem !important;
  align-items: center !important;
}

.column-card {
  background: #ffffff !important;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ddd !important;
}

/* =========================
   3 COLUMNS — CLEAN, FINAL, STABLE (OPTION C)
========================= */

/* 1. .three-column is NOT flex */
.three-column {
    display: block !important;
    width: 100% !important;
}

/* 2. .row IS the flex container */
.three-column .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 3. Columns behave like Bootstrap */
.three-column .row > [class*="col-"] {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 4. Cards stretch equal height */
.three-column .service-card,
.three-column .service-card2 {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background-color: #757862 !important;
  color: #ffffff !important;
  padding: 2rem 1rem 0 1rem;
  font-family: 'Montserrat', sans-serif;
}

.site-footer a {
  color: #ffffff !important;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
  gap: 2rem;
  text-align: left;
}

.site-footer .footer-bottom {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #757862 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 2rem 1rem;
}

/* =========================
   REMOVE CRIO ENTRY FOOTER
========================= */
.entry-footer {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
}

/* =========================
   ACCORDION — SIMPLE + RELIABLE
========================= */

/* Panels are hidden by default */
.lm-faq-panel {
  display: none;
  padding: 0;
  overflow: hidden;
}

/* When open, show them */
.lm-faq-panel.lm-faq-open {
  display: block;
  padding: 15px 0;
}

/* Active header styling */
.lm-faq-header.lm-faq-active {
  font-weight: bold;
  color: #9f8766;
}

/* Header base */
.lm-faq-header {
  display: block;
  width: 100%;
  background: #f7f4f0;
  padding: 15px;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  border: none;
  position: relative;
  margin: 0;
}

/* + / – icons */
.lm-faq-header::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #9f8766;
}

.lm-faq-header.lm-faq-active::after {
  content: "–";
}
