/*
Theme Name: Chapelstreet Divi Child
Theme URI: https://chapelstreet.church/
Description: Chapelstreet Church 2026 brand layer for Divi.
Author: Chapelstreet Church
Template: Divi
Version: 1.0.0
Text Domain: chapelstreet-divi-child
*/

:root {
  --cs-white: #ffffff;
  --cs-surface: #f3f8f9;
  --cs-sapphire: #0e2240;
  --cs-glacier: #25cbd3;
  --cs-citrine: #ffc600;
  --cs-lapis: #1d24ab;
  --cs-tangerine: #ff8200;
  --cs-slate: #495052;
  --cs-border: rgba(14, 34, 64, 0.14);
  --cs-shadow: 0 12px 34px rgba(14, 34, 64, 0.10);
  --cs-radius-sm: 6px;
  --cs-radius-md: 14px;
  --cs-radius-lg: 28px;
  --cs-content: 1180px;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  color: var(--cs-slate);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body {
  background: var(--cs-white);
}

h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_module_heading,
.et_pb_fullwidth_header_subhead {
  color: var(--cs-sapphire);
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  padding-bottom: 0.45em;
}

h1 { font-size: clamp(2.55rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.15rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.08rem; }
h6 {
  color: var(--cs-glacier);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p,
li {
  max-width: 70ch;
}

a {
  color: var(--cs-sapphire);
  text-decoration-color: rgba(37, 203, 211, 0.65);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--cs-lapis);
}

:focus-visible {
  outline: 3px solid var(--cs-citrine);
  outline-offset: 3px;
}

.container,
.et_pb_row,
.et_pb_fullwidth_header_container {
  width: min(90%, var(--cs-content));
  max-width: var(--cs-content);
}

.et_pb_section {
  background-color: var(--cs-white);
}

.cs-surface {
  background-color: var(--cs-surface);
}

#main-header,
#top-header {
  box-shadow: none;
}

#main-header {
  border-bottom: 1px solid var(--cs-border);
  background: rgba(255, 255, 255, 0.97);
}

#top-menu a,
.et_mobile_menu a {
  color: var(--cs-sapphire);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a,
#top-menu a:hover,
.mobile_menu_bar::before {
  color: var(--cs-lapis);
}

.et_mobile_menu {
  border-top: 3px solid var(--cs-glacier);
  border-radius: 0 0 var(--cs-radius-md) var(--cs-radius-md);
  box-shadow: var(--cs-shadow);
}

#main-footer,
#et-footer-nav,
#footer-bottom {
  background-color: var(--cs-sapphire);
}

#main-footer,
#main-footer p,
#main-footer li,
#main-footer a,
#footer-info,
#footer-info a {
  color: rgba(255, 255, 255, 0.86);
}

#main-footer a:hover,
#footer-info a:hover {
  color: var(--cs-glacier);
}

#main-footer .footer-widget h4,
#main-footer .widgettitle {
  color: var(--cs-glacier);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

#logo {
  max-height: 58%;
}

.et_pb_button,
body .et_pb_button,
.wp-block-button__link,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 2px solid var(--cs-glacier);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-glacier);
  box-shadow: none;
  color: var(--cs-sapphire);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.82em 1.35em;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.et_pb_button:hover,
body .et_pb_button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: var(--cs-sapphire);
  background: var(--cs-sapphire);
  color: var(--cs-white);
  padding: 0.82em 1.35em;
  transform: translateY(-1px);
}

/* Keep every Divi button legible against light and dark page sections.
 * Higher specificity is intentional: Divi module styles and contextual link
 * colors otherwise override the button text and hover treatment. */
body #page-container .et_pb_button,
body #page-container .et_pb_button:visited,
body #page-container .cs-page-band a.et_pb_button,
body #page-container .cs-about-final a.et_pb_button {
  border-color: var(--cs-glacier) !important;
  background-color: var(--cs-glacier) !important;
  color: var(--cs-sapphire) !important;
}

body #page-container .et_pb_button:hover,
body #page-container .et_pb_button:focus-visible,
body #page-container .cs-page-band a.et_pb_button:hover,
body #page-container .cs-page-band a.et_pb_button:focus-visible,
body #page-container .cs-about-final a.et_pb_button:hover,
body #page-container .cs-about-final a.et_pb_button:focus-visible {
  border-color: var(--cs-tangerine) !important;
  background-color: var(--cs-tangerine) !important;
  color: var(--cs-sapphire) !important;
}

body #page-container .et_pb_button:active {
  border-color: var(--cs-citrine) !important;
  background-color: var(--cs-citrine) !important;
  color: var(--cs-sapphire) !important;
  transform: translateY(0);
}

body #page-container .et_pb_button:focus-visible {
  outline: 3px solid var(--cs-citrine);
  outline-offset: 3px;
}

.et_pb_button::after,
body .et_pb_button::after {
  content: none;
}

.is-style-outline > .wp-block-button__link,
.cs-button-secondary {
  border-color: var(--cs-sapphire);
  background: transparent;
  color: var(--cs-sapphire);
}

body #page-container .cs-page-band .cs-button-secondary,
body #page-container .cs-about-final .cs-button-secondary {
  border-color: var(--cs-white) !important;
  background-color: transparent !important;
  color: var(--cs-white) !important;
}

body #page-container .cs-page-band .cs-button-secondary:hover,
body #page-container .cs-page-band .cs-button-secondary:focus-visible,
body #page-container .cs-about-final .cs-button-secondary:hover,
body #page-container .cs-about-final .cs-button-secondary:focus-visible {
  border-color: var(--cs-white) !important;
  background-color: var(--cs-white) !important;
  color: var(--cs-sapphire) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea,
.et_pb_contact p input,
.et_pb_contact p textarea {
  border: 1px solid rgba(14, 34, 64, 0.34);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-white);
  color: var(--cs-sapphire);
  padding: 0.85rem 1rem;
}

input:focus,
select:focus,
textarea:focus,
.et_pb_contact p input:focus,
.et_pb_contact p textarea:focus {
  border-color: var(--cs-glacier);
  box-shadow: 0 0 0 3px rgba(37, 203, 211, 0.24);
  outline: none;
}

.et_pb_blurb,
.et_pb_pricing_table,
.et_pb_team_member,
.wp-block-group.is-style-card {
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-md);
  background: var(--cs-white);
}

.et_pb_blurb,
.et_pb_team_member,
.wp-block-group.is-style-card {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.et_pb_blurb .et-pb-icon,
.et_pb_main_blurb_image .et-pb-icon {
  color: var(--cs-sapphire);
}

.et_pb_image img,
.wp-block-image img,
.wp-block-media-text__media img {
  border-radius: var(--cs-radius-md);
}

blockquote,
.wp-block-quote,
.wp-block-pullquote,
.et_pb_testimonial {
  border: 0;
  border-left: 5px solid var(--cs-glacier);
  border-radius: 0 var(--cs-radius-md) var(--cs-radius-md) 0;
  background: var(--cs-surface);
  color: var(--cs-sapphire);
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  margin: 1.8rem 0;
  padding: 1.5rem 1.75rem;
}

blockquote cite,
.wp-block-quote cite,
.wp-block-pullquote cite {
  color: var(--cs-slate);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wp-block-separator,
.cs-gradient-rule {
  width: 96px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cs-citrine), var(--cs-glacier));
  margin: 1rem 0 1.6rem;
}

.cs-tagline {
  color: var(--cs-sapphire);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cs-editorial {
  color: var(--cs-sapphire);
  font-family: Lora, Georgia, serif;
}

.cs-dark,
.has-sapphire-background-color {
  background-color: var(--cs-sapphire);
  color: var(--cs-white);
}

.cs-dark :where(h1, h2, h3, h4, h5, h6, p, li),
.has-sapphire-background-color :where(h1, h2, h3, h4, h5, h6, p, li) {
  color: var(--cs-white);
}

.has-glacier-color { color: var(--cs-glacier); }
.has-sapphire-color { color: var(--cs-sapphire); }
.has-citrine-color { color: var(--cs-citrine); }
.has-slate-color { color: var(--cs-slate); }
.has-glacier-background-color { background-color: var(--cs-glacier); }
.has-citrine-background-color { background-color: var(--cs-citrine); }
.has-surface-background-color { background-color: var(--cs-surface); }

/* About page */
.et_pb_section.cs-about-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--cs-sapphire);
}

.cs-about-hero::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 28rem;
  height: 28rem;
  border: 5rem solid rgba(37, 203, 211, 0.12);
  border-radius: 42%;
  content: "";
  transform: rotate(45deg);
}

.cs-about-hero .et_pb_row {
  position: relative;
  z-index: 1;
}

.cs-about-hero :where(h1, h2, h3, p) {
  color: var(--cs-white);
}

.cs-about-hero .cs-tagline {
  color: var(--cs-glacier);
}

.cs-about-lead {
  max-width: 760px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.cs-about-principle {
  height: 100%;
  border-top: 4px solid var(--cs-glacier);
  background: var(--cs-white);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.cs-about-principle--mission {
  border-top-color: var(--cs-citrine);
}

.cs-about-beliefs .et_pb_toggle {
  margin-bottom: 12px;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-white);
  padding: 1.15rem 1.25rem;
}

.cs-about-beliefs .et_pb_toggle_title {
  color: var(--cs-sapphire);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.cs-about-beliefs .et_pb_toggle_title::before {
  color: var(--cs-lapis);
}

.cs-about-beliefs .et_pb_toggle_content {
  color: var(--cs-slate);
  padding-top: 1rem;
}

.cs-about-pathway {
  border-top: 1px solid var(--cs-border);
  padding-top: 1.75rem;
}

.cs-about-pathway:first-child {
  border-top: 0;
  padding-top: 0;
}

.cs-about-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
}

.et_pb_row.cs-about-final {
  border-radius: var(--cs-radius-lg);
  background: var(--cs-sapphire);
  color: var(--cs-white);
  padding: clamp(1.75rem, 4vw, 3rem) !important;
}

.cs-about-final :where(h2, h3, p) {
  color: var(--cs-white);
}

/* Branded interior ministry and information pages */
.et_pb_section.cs-page-hero {
  position: relative;
  overflow: hidden;
  background: var(--cs-sapphire);
}

.cs-page-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 25rem;
  height: 25rem;
  border: 4.5rem solid rgba(37, 203, 211, 0.11);
  border-radius: 42%;
  content: "";
  transform: rotate(45deg);
}

.cs-page-hero .et_pb_row { position: relative; z-index: 1; }
.cs-page-hero :where(h1, h2, h3, p) { color: var(--cs-white); }
.cs-page-hero .cs-tagline { color: var(--cs-glacier); }
.cs-page-lead { max-width: 780px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; }

.cs-page-card {
  height: 100%;
  border: 1px solid var(--cs-border);
  border-top: 4px solid var(--cs-glacier);
  border-radius: var(--cs-radius-md);
  background: var(--cs-white);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.cs-page-card--gold { border-top-color: var(--cs-citrine); }
.cs-page-card--orange { border-top-color: var(--cs-tangerine); }
.cs-page-card h3 { margin-bottom: .65rem; }
.cs-page-card ul { padding-bottom: 0; }

.cs-page-section-title { max-width: 760px; margin-bottom: 1.25rem; }
.cs-page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.cs-page-actions .et_pb_button { margin: 0; }

.cs-page-accordion .et_pb_toggle {
  margin-bottom: 12px;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-white);
  padding: 1.1rem 1.25rem;
}
.cs-page-accordion .et_pb_toggle_title { color: var(--cs-sapphire); font-weight: 700; }
.cs-page-accordion .et_pb_toggle_title::before { color: var(--cs-lapis); }
.cs-page-accordion .et_pb_toggle_content { padding-top: .9rem; }

.cs-page-band {
  border-radius: var(--cs-radius-lg);
  background: var(--cs-sapphire);
  color: var(--cs-white);
  padding: clamp(1.75rem, 4vw, 3rem) !important;
}
.cs-page-band :where(h2, h3, p, li) { color: var(--cs-white); }
.cs-page-band a { color: var(--cs-glacier); }

.cs-staff-list strong { color: var(--cs-sapphire); }
.cs-staff-list p { margin-bottom: .85rem; }

@media (max-width: 980px) {
  body,
  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .et_pb_row,
  .container,
  .et_pb_fullwidth_header_container {
    width: min(92%, var(--cs-content));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
