/* cirilloroberts.com — design layer loaded after Divi's CSS on every page.
   Goal: keep the site's structure and brand (navy #333b5f, gold #c7ab1c,
   Prata display + Open Sans body) but make it feel current: one button
   style, calmer type, consistent spacing, no Divi-era flourishes. */

:root {
  --cr-navy: #333b5f;
  --cr-navy-deep: #262c47;
  --cr-ink: #1f2540;
  --cr-body: #4a4f63;
  --cr-muted: #6b7087;
  --cr-gold: #c7ab1c;
  --cr-gold-deep: #ad9416;
  --cr-line: rgba(51, 59, 95, 0.14);
  --cr-radius: 12px;
  --cr-shadow: 0 10px 30px rgba(31, 37, 64, 0.10);
  --cr-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base type ---------- */
body, .et_pb_text, .et_pb_blurb_description { color: var(--cr-body); -webkit-font-smoothing: antialiased; }
#main-content p { line-height: 1.75; }
#main-content h1, #main-content h2, #main-content h3, #main-content h4 { color: var(--cr-ink); letter-spacing: -0.01em; }
.et_pb_bg_layout_dark h1, .et_pb_bg_layout_dark h2, .et_pb_bg_layout_dark h3, .et_pb_bg_layout_dark p,
.et_pb_bg_layout_dark .et_pb_text_inner { color: #fff; }
/* the "Firm Policies" heading was Open Sans light; match the site's serif display */
#main-content h1.preFade { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 34px; margin-bottom: 0.5em; }
/* FAQ banner headings use a flat Divi "fl-heading" span */
#main-content h1.fl-heading { font-family: 'Prata', Georgia, serif; font-weight: 400; }

/* ---------- one button style ---------- */
#main-content .et_pb_button, #main-content .et_pb_button:hover, #main-content .et_pb_button:focus,
.cr-button, .cr-button:hover {
  display: inline-block;
  background: var(--cr-gold) !important;
  color: var(--cr-ink) !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 14px 26px !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  box-shadow: 0 1px 2px rgba(31, 37, 64, 0.18);
  transition: background 0.18s ease, transform 0.18s var(--cr-ease), box-shadow 0.18s ease !important;
}
#main-content .et_pb_button:hover, .cr-button:hover {
  background: var(--cr-gold-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 37, 64, 0.18);
}
#main-content .et_pb_button:after { display: none !important; }   /* Divi's hover icon */
#main-content .et_pb_button:focus-visible { outline: 2px solid var(--cr-ink); outline-offset: 3px; }
.et_pb_button_module_wrapper { margin-top: 8px; }

/* ---------- hero sections ---------- */
.et_pb_section_parallax .et_parallax_gradient { opacity: 0.92; }
#main-content .et_pb_fullwidth_header .et_pb_module_header {
  font-family: 'Prata', Georgia, serif; letter-spacing: 0.01em; line-height: 1.1;
}
#main-content .et_pb_fullwidth_header .et_pb_fullwidth_header_subhead {
  letter-spacing: 0.22em; font-size: 13px; font-weight: 600; text-transform: uppercase; opacity: 0.9;
}

/* ---------- "Our Practices" blurb grid ---------- */
.et_pb_blurb .et_pb_module_header { font-family: 'Open Sans', sans-serif !important; font-weight: 700 !important; color: var(--cr-ink); }
.et_pb_blurb .et_pb_main_blurb_image .et-pb-icon { color: var(--cr-gold) !important; }
.et_pb_blurb .et_pb_blurb_description p { line-height: 1.7 !important; }
.et_pb_blurb { transition: transform 0.25s var(--cr-ease); }

/* ---------- testimonials slider ---------- */
/* Divi sizes the slider from the first paint (before web fonts load) and plays a
   "fold" entrance animation; let the card size itself and skip the fold. */
.et_pb_slider_0, .et_pb_slider_0 .et_pb_slides, .et_pb_slider_0 .et_pb_slide, .et_pb_slider_0 .et_pb_container {
  height: auto !important; min-height: 0 !important; transform: none !important;
}
.et_pb_slider_0 { border-radius: var(--cr-radius); overflow: hidden; box-shadow: var(--cr-shadow); }
.et_pb_slider_0 .et_pb_slide { background-image: none !important; padding: 56px 64px !important; }
.et_pb_slider_0 .et_pb_slide.et-pb-active-slide { position: relative !important; }
.et_pb_slider_0 .et_pb_slide_description { padding: 0 !important; }
.et_pb_slider_0 .et_pb_slide_image { margin-top: 0 !important; }
.et_pb_slider_0 .et_pb_slide_title {
  font-family: 'Open Sans', sans-serif; font-weight: 600 !important; font-size: 13px !important;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cr-gold) !important; margin-bottom: 14px;
}
.et_pb_slider_0 .et_pb_slide_content {
  font-family: 'Prata', Georgia, serif; font-size: 19px !important; line-height: 1.6 !important; color: #fff;
}
.et_pb_slider_0 .et_pb_slide_content p { line-height: inherit; }
.et_pb_slider .et-pb-controllers a { width: 8px; height: 8px; border-radius: 4px; opacity: 0.4; transition: all 0.2s; }
.et_pb_slider .et-pb-controllers .et-pb-active-control { opacity: 1; width: 22px; }

/* ---------- content cards (contact page blurbs, image frames) ---------- */
.et_pb_with_border.et_pb_blurb {
  border: 0 !important; border-radius: var(--cr-radius); box-shadow: var(--cr-shadow);
}
.et_pb_with_border.et_pb_blurb .et_pb_module_header { font-family: 'Open Sans', sans-serif !important; font-size: 18px !important; }
.et_pb_image_wrap img { border-radius: var(--cr-radius); }

/* ---------- team ---------- */
.page-id-85 .et_pb_blurb .et_pb_main_blurb_image { display: none; }   /* grey placeholder "photos" */
.page-id-85 .et_pb_blurb .et_pb_module_header { font-family: 'Prata', Georgia, serif !important; font-size: 28px !important; font-weight: 400 !important; margin-bottom: 18px; }
.page-id-85 .et_pb_blurb_description p strong { color: var(--cr-ink); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.page-id-85 .et_pb_blurb_description ul { margin-bottom: 22px; }
.page-id-85 .et_pb_blurb_description li { padding-bottom: 4px; }

/* ---------- footer (last section on every page, tagged cr-footer by clean.py) ---------- */
#main-content .cr-footer { background: var(--cr-navy-deep) !important; }
#main-content .cr-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); transition: border-color 0.2s; }
#main-content .cr-footer a:hover { border-bottom-color: var(--cr-gold); color: #fff; }
#main-content .cr-footer .et-pb-icon { color: var(--cr-gold) !important; }
#main-content .cr-footer .et_pb_text_inner p, #main-content .cr-footer .et_pb_blurb_description p,
#main-content .cr-footer .et_pb_blurb_description { color: rgba(255,255,255,0.86); font-size: 16px; line-height: 1.75; }

/* ---------- header / nav ---------- */
#main-header { box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.12); }
#top-menu li a { font-weight: 600; letter-spacing: 0.01em; }

/* ---------- FAQ disclosures (generated by faq.py) ---------- */
.cr-faq-row { max-width: 880px; margin: 0 auto; padding: 8px 0 32px; }
.cr-faq { border-top: 1px solid var(--cr-line); }
.cr-faq__item { border-bottom: 1px solid var(--cr-line); }
.cr-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 4px; margin: 0; cursor: pointer; list-style: none;
  font-family: 'Open Sans', sans-serif; font-size: 19px; font-weight: 600;
  line-height: 1.35; color: var(--cr-navy); letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.cr-faq__q::-webkit-details-marker { display: none; }
.cr-faq__q::marker { content: ""; }
.cr-faq__q:hover { color: var(--cr-ink); }
.cr-faq__q:focus { outline: none; }
.cr-faq__q:focus-visible { outline: 2px solid var(--cr-gold); outline-offset: 4px; border-radius: 4px; }
.cr-faq__icon {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; position: relative;
  background: rgba(51, 59, 95, 0.07);
  transition: background 0.2s ease, transform 0.28s var(--cr-ease);
}
.cr-faq__icon::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--cr-navy); border-bottom: 2px solid var(--cr-navy);
  transform: translate(-50%, -70%) rotate(45deg);
}
.cr-faq__q:hover .cr-faq__icon { background: rgba(51, 59, 95, 0.12); }
.cr-faq__item[open] > .cr-faq__q .cr-faq__icon { background: var(--cr-gold); transform: rotate(180deg); }
.cr-faq__item[open] > .cr-faq__q .cr-faq__icon::before { border-color: #fff; }
.cr-faq__a {
  padding: 0 64px 26px 4px; color: var(--cr-body);
  font-family: 'Open Sans', sans-serif; font-size: 16.5px; line-height: 1.75;
  animation: cr-faq-reveal 0.28s ease;
}
.cr-faq__a p { padding-bottom: 1em; margin: 0; }
.cr-faq__a p:last-child { padding-bottom: 0; }
.cr-faq__a ul, .cr-faq__a ol { padding: 0 0 1em 1.25em; }
.cr-faq__a li { padding-bottom: 0.35em; }
@keyframes cr-faq-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- motion / small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  .cr-faq__a { animation: none; }
  .cr-faq__icon, .et_pb_button, .et_pb_blurb { transition: none !important; }
}
@media (max-width: 980px) {
  .cr-faq__q { font-size: 17px; padding: 18px 2px; gap: 16px; }
  .cr-faq__icon { flex-basis: 32px; width: 32px; height: 32px; }
  .cr-faq__a { padding: 0 8px 22px 2px; font-size: 16px; }
  .et_pb_slider_0 .et_pb_slide { padding: 36px 28px 48px !important; }
  .et_pb_slider_0 .et_pb_slide_content { font-size: 17px !important; }
  #main-content h1.preFade { font-size: 28px; }
}

/* ---------- contact page: SMS consent text sits on the navy section ---------- */
.page-id-97 .et_pb_row_3 .et_pb_text_inner, .page-id-97 .et_pb_row_3 .et_pb_text_inner a { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.7; }
.page-id-97 .et_pb_row_3 .et_pb_text_inner a { text-decoration: underline; }
