/*
Theme Name: Lambton Catholic
Theme URI: https://lambtoncatholic.ca
Description: Brand child theme for the Lambton County Catholic Family of Parishes — St. Joseph (Corunna), St. Philip (Petrolia), St. Christopher (Forest), and Our Lady Help of Christians (Watford). Child theme of GeneratePress. All site styling lives in assets/css/lambton-catholic.css.
Author: Lambton County Catholic Family of Parishes
Template: generatepress
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lambton-catholic
Tags: church, editorial, two-columns, custom-colors, custom-menu
*/

/* ============================================================
   The complete site stylesheet is assets/css/lambton-catholic.css
   — every colour, type rule, component, and page section, in one
   traditional CSS file with plain class names. Edit that file to
   change the design.

   This file does one job: reconcile GeneratePress's own markup and
   class names with those styles, so the parent theme's header,
   footer, entries, and widgets inherit the brand.
   ============================================================ */

@import url("assets/css/lambton-catholic.css");


/* ------------------------------------------------------------
   GeneratePress structure
   ------------------------------------------------------------ */

body { background-color: var(--surface-page); }

.site-content { padding: 0; }

/* GP wraps content in .inside-article — we do our own spacing. */
.entry-content > .lc-section:first-child,
.entry-content > .lc-hero:first-child { margin-top: 0; }

.entry-content > * + * { margin-top: 0; }

/* Full-width pages: let heroes and raised bands reach the edges. */
.full-width-content .inside-article,
.full-width-content .entry-content,
.full-width-content .site-content .content-area {
  padding: 0;
  margin: 0;
  max-width: none;
}

/* GP's container becomes our container. */
.grid-container,
.inside-header,
.inside-footer-widgets,
.site-info .inside-site-info {
  max-width: var(--container-wide);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}


/* ------------------------------------------------------------
   Block alignment — why the editor and the live site agree

   The block editor gives itself layout rules for alignfull and
   alignwide. On the front end a classic theme has to supply them.
   These three rules are what make a full-width section actually
   span the viewport live instead of collapsing into GP's container
   or overflowing sideways.
   ------------------------------------------------------------ */

.lc-blocks > * {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.lc-blocks > .alignwide {
  max-width: var(--container-wide);
}
.lc-blocks > .alignfull {
  max-width: none;
  width: 100%;
  padding-inline: 0;
  margin-inline: 0;
}

/* GP's .content-area / .inside-article can also cap the width on
   templates that use them. Brand pages opt out entirely. */
.lc-brand-page .content-area,
.lc-brand-page .inside-article {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  float: none;
}

/* Sections already carry their own padding, so don't double it. */
.lc-blocks > .wp-block-group.alignfull > .wp-block-group__inner-container,
.lc-blocks > .wp-block-cover.alignfull > .wp-block-cover__inner-container {
  padding-inline: var(--gutter);
}

/* Constrained inner layout: content centres at the section's width. */
.lc-blocks .wp-block-group.alignfull > * {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 2%;
}
.lc-blocks .wp-block-group.alignfull > .alignfull { max-width: none; }

/* GeneratePress makes .site-content a FLEX container so content and
   sidebar can sit side by side. Our page wrapper is then a flex item
   with no grow value, so it shrinks to its content and hugs the left
   edge — the "shifted left when live, fine in the editor" symptom.
   These pages have no sidebar, so revert to normal block flow. */
.lc-brand-page .site-content {
  display: block;
  width: 100%;
}
.lc-blocks {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

/* GeneratePress "one container" wraps content in a white card. Our
   sections paint their own surfaces, so clear it on brand pages. */
.lc-brand-page.one-container .site-content,
.lc-brand-page .site-content {
  background: transparent;
  padding: 0;
}
.lc-brand-page .entry-content { margin: 0; }

/* The page wrapper GP provides must not cap these pages either. */
.lc-brand-page #page,
.lc-brand-page .site.grid-container {
  max-width: none;
  padding: 0;
}

/* Cover blocks are heroes: display type, protection gradient, height. */
.lc-blocks .wp-block-cover { min-height: 560px; }
.lc-blocks .wp-block-cover .wp-block-cover__inner-container { max-width: var(--container-wide); }
.lc-blocks .wp-block-cover h1,
.lc-blocks .wp-block-cover h2 { color: #fff; }
.lc-blocks .wp-block-cover p { color: rgba(255, 255, 255, 0.9); }

/* Columns: match the editor's gap and stack at the same breakpoint. */
.lc-blocks .wp-block-columns { gap: var(--space-6); margin-bottom: 0; }
@media (max-width: 781px) {
  .lc-blocks .wp-block-columns { gap: var(--space-5); }
  .lc-blocks .wp-block-cover { min-height: 460px; }
}

/* Cards inside columns fill the column height evenly. */
.lc-blocks .wp-block-column > .is-style-card { height: 100%; }

/* The image placeholder paragraph on the Parishes page. */
.lc-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin-bottom: var(--space-4);
  background: var(--surface-raised);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  color: var(--text-faint);
  text-align: center;
  padding: var(--space-5);
}

/* Scripture, when written as a Quote block. */
.lc-scripture-block {
  border: 0;
  padding: 0;
  margin-inline: auto;
  max-width: 820px;
  text-align: center;
}
.lc-scripture-block p {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  line-height: 1.25;
  color: var(--brand-primary);
  margin: 0;
}
.lc-scripture-block cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  font-style: normal;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}


/* ------------------------------------------------------------
   Header — GP site branding replaced by the parish wordmark
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}
.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* GP navigation adopts the .lc-nav rules. */
.main-navigation {
  background: transparent;
  flex: 0 1 auto;
}
.main-navigation .main-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-navigation .main-nav ul li a {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-body);
  line-height: 1;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  background: none;
  color: var(--text-strong);
}
.main-navigation .main-nav ul li.current-menu-item > a {
  font-weight: var(--weight-semibold);
  border-bottom-color: var(--brand-accent);
}
.main-navigation .menu-toggle {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-body);
}
.main-navigation ul ul {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-md);
}
.main-navigation ul ul li a { padding: var(--space-3) var(--space-4); }

/* The Give button in the menu: add CSS class "lc-nav-cta" to that item. */
.main-navigation .lc-nav-cta > a {
  background: var(--brand-accent);
  color: var(--ink-900);
  font-weight: var(--weight-semibold);
  padding: 10px 4px 10px 18px !important;
  border-radius: var(--radius-sm);
  border-bottom: 0;
}
.main-navigation .lc-nav-cta > a:hover { background: var(--brand-accent-hover); color: var(--ink-900); }


/* ------------------------------------------------------------
   Entries — posts, bulletins, archives
   ------------------------------------------------------------ */

.site-content .content-area { padding-block: var(--section-y); }

.inside-article {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: var(--space-6);
}
.page .inside-article,
.full-width-content .inside-article {
  background: none;
  border: 0;
  box-shadow: none;
}

.entry-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
}
.entry-title a { color: var(--text-strong); text-decoration: none; }
.entry-title a:hover { color: var(--brand-primary); text-decoration: underline; }

.entry-meta {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.entry-meta a { color: var(--text-muted); }

.paging-navigation {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  margin-top: var(--space-6);
}

.sidebar .widget {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.widget-title {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}


/* ------------------------------------------------------------
   GP buttons and forms adopt the brand
   ------------------------------------------------------------ */

button, html input[type="button"], input[type="reset"], input[type="submit"],
.button, .wp-block-button__link {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  background: var(--brand-primary);
  color: var(--text-on-dark);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  transition: background var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
button:hover, .button:hover, .wp-block-button__link:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: var(--text-on-dark);
}
button:active, .button:active { transform: translateY(1px); }

/* Block editor button variations, registered in functions.php. */
.is-style-btn-accent    .wp-block-button__link { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--ink-900); }
.is-style-btn-accent    .wp-block-button__link:hover { background: var(--brand-accent-hover); color: var(--ink-900); }
.is-style-btn-secondary .wp-block-button__link { background: transparent; border-color: var(--border-default); color: var(--brand-primary); }
.is-style-btn-secondary .wp-block-button__link:hover { background: var(--surface-raised); color: var(--brand-primary); }
.is-style-btn-ghost     .wp-block-button__link { background: transparent; border-color: transparent; color: var(--brand-primary); }
.is-style-btn-ghost     .wp-block-button__link:hover { background: var(--surface-raised); }

.is-style-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-3);
}
.is-style-card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5) var(--space-6);
}
.is-style-card-accent { border-top: 3px solid var(--brand-accent); }

.wp-block-quote, .wp-block-pullquote, blockquote {
  border: 0;
  padding-left: 0;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  color: var(--brand-primary);
}


/* ------------------------------------------------------------
   Footer — GP site info hidden; our footer renders before it
   ------------------------------------------------------------ */

.site-footer .site-info { display: none; }

.footer-widgets {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding-block: var(--space-8);
}
.footer-widgets .widget-title { color: var(--brass-400); }
.footer-widgets a { color: var(--text-on-dark-dim); }
.footer-widgets a:hover { color: var(--parchment-50); }
