/*
Theme Name: BR Logic Modular
Theme URI: https://brlogic.app/
Author: BR Logic
Description: A lightweight, modular WordPress theme for editable Gutenberg pages using the BR Logic visual identity.
Version: 2.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: br-logic-modular
*/

:root {
  --brl-slate: #263746;
  --brl-blue: #7896a6;
  --brl-sage: #a8b7a2;
  --brl-sand: #ece5d9;
  --brl-paper: #f8f6f1;
  --brl-clay: #c9826b;
  --brl-white: #fffefd;
  --brl-line: rgba(38, 55, 70, .13);
  --brl-shadow: 0 18px 45px rgba(38, 55, 70, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--brl-paper);
  color: var(--brl-slate);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 8px; padding: 12px 16px; background: white; z-index: 100000; }

.brl-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: relative; z-index: 20; background: var(--brl-paper); }
.site-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--brl-line); }
.custom-logo-link, .site-brand-link { display: inline-flex; align-items: center; }
.custom-logo, .site-brand-link img { width: 188px; max-height: 54px; object-fit: contain; object-position: left center; }
.primary-menu { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { position: relative; color: var(--brl-slate); font-size: 14px; font-weight: 650; text-decoration: none; }
.primary-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--brl-clay); transition: right .2s ease; }
.primary-menu a:hover::after, .primary-menu a:focus-visible::after { right: 0; }
.menu-toggle { display: none; padding: 9px 12px; border: 1px solid var(--brl-line); border-radius: 10px; background: transparent; color: var(--brl-slate); font: inherit; font-weight: 700; }

.site-main { min-height: 55vh; }
.site-main > .wp-block-group.alignfull:first-child { margin-top: 0; }
.brl-page-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 120px; }
.brl-page-title { margin: 0 0 40px; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.05em; }
.brl-post-list article { padding: 35px 0; border-bottom: 1px solid var(--brl-line); }
.brl-post-list h2 { margin: 0 0 12px; font-size: 32px; }
.brl-post-list h2 a { text-decoration: none; }

.brl-module { scroll-margin-top: 24px; }
.brl-module > .wp-block-group__inner-container,
.brl-module-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.brl-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px !important; color: var(--brl-slate); font-size: 11px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.brl-eyebrow::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--brl-clay); }
.brl-heading { margin: 0 !important; font-size: clamp(38px, 4.3vw, 60px) !important; line-height: 1.04 !important; letter-spacing: -.045em; }
.brl-section-lead { max-width: 480px; color: rgba(38, 55, 70, .72); font-size: 17px; line-height: 1.65; }

.brl-hero-module { min-height: 650px; display: flex; align-items: center; padding: 70px 0 84px; }
.brl-hero-grid { gap: clamp(36px, 6vw, 80px) !important; align-items: center !important; }
.brl-hero-title { margin: 0 !important; font-size: clamp(52px, 6vw, 78px) !important; line-height: .98 !important; letter-spacing: -.055em; }
.brl-hero-title mark { padding: 0; color: var(--brl-blue); background: transparent; }
.brl-hero-copy { max-width: 540px; margin: 28px 0 0 !important; color: rgba(38, 55, 70, .76); font-size: 20px; line-height: 1.55; }
.brl-buttons { gap: 12px !important; margin-top: 34px !important; }
.brl-buttons .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; padding: 0 23px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.brl-buttons .is-style-fill .wp-block-button__link { background: var(--brl-clay); color: white; box-shadow: 0 10px 25px rgba(201,130,107,.2); }
.brl-buttons .is-style-outline .wp-block-button__link { border: 1px solid var(--brl-line); background: rgba(255,255,255,.48); color: var(--brl-slate); }
.brl-hero-media { position: relative; max-width: 430px; margin-left: auto; background: transparent; }
.brl-hero-media img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }

.brl-apps-module { padding: 110px 0 120px; background: var(--brl-white); border-top: 1px solid var(--brl-line); }
.brl-section-head { display: grid !important; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 46px; }
.brl-section-head > * { margin: 0; }
.brl-card-grid { gap: 18px !important; }
.brl-app-card { min-height: 350px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--brl-line); border-radius: 22px; background: var(--brl-paper); }
.brl-app-card--blue { background: #edf2f4; }.brl-app-card--sage { background: #eef1eb; }.brl-app-card--clay { background: #f5ece7; }
.brl-app-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 0 56px !important; border-radius: 12px; background: var(--brl-blue); color: white; font-size: 21px; font-weight: 800; }
.brl-app-card--sage .brl-app-icon { background: var(--brl-sage); }.brl-app-card--clay .brl-app-icon { background: var(--brl-clay); }
.brl-card-label { margin: 0 0 7px !important; opacity: .62; font-size: 11px; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
.brl-app-card h3 { margin: 0 !important; font-size: 34px !important; letter-spacing: -.035em; }
.brl-app-card .brl-card-copy { margin: 13px 0 24px !important; opacity: .72; line-height: 1.55; }
.brl-app-card .wp-block-buttons { margin-top: auto; }
.brl-text-link .wp-block-button__link { padding: 0; background: transparent; color: var(--brl-slate); font-size: 14px; font-weight: 700; }

.brl-news-module { padding: 0 0 120px; background: var(--brl-white); }
.brl-news-panel { overflow: hidden; border-radius: 28px; background: var(--brl-slate); color: white; }
.brl-news-panel > .wp-block-column:first-child { padding: clamp(38px, 5vw, 72px); }
.brl-news-panel .brl-eyebrow { color: white; }
.brl-news-date { margin: 58px 0 12px !important; opacity: .62; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.brl-news-title { margin: 0 !important; font-size: clamp(34px, 4vw, 52px) !important; line-height: 1.08 !important; letter-spacing: -.04em; }
.brl-news-copy { max-width: 560px; opacity: .72; line-height: 1.65; }
.brl-news-art { min-height: 430px; display: grid; place-items: center; background: linear-gradient(145deg, var(--brl-sage), #c8d2c3); }
.brl-news-art strong { color: rgba(255,255,255,.55); font-size: clamp(96px, 12vw, 160px); line-height: 1; letter-spacing: -.09em; }

.brl-support-module { padding: 115px 0; }
.brl-support-layout { gap: clamp(45px, 7vw, 85px) !important; align-items: flex-start !important; }
.brl-support-list { display: grid; gap: 12px; }
.brl-support-card { padding: 28px 30px; border: 1px solid var(--brl-line); border-radius: 18px; background: rgba(255,255,255,.46); }
.brl-support-card h3 { margin: 0 0 6px !important; font-size: 20px !important; }
.brl-support-card p { margin: 0 0 12px !important; opacity: .67; font-size: 14px; }
.brl-support-card a { font-size: 13px; font-weight: 750; text-decoration: none; }

.site-footer { padding: 70px 0 34px; background: var(--brl-slate); color: white; }
.site-footer__main { display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; }
.site-footer__brand { font-size: 21px; font-weight: 760; letter-spacing: .055em; }
.site-footer__copy { max-width: 420px; margin: 22px 0 0; opacity: .6; }
.footer-menu { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: white; font-size: 14px; text-decoration: none; }
.site-footer__legal { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; opacity: .48; }

@media (max-width: 900px) {
  .brl-hero-grid, .brl-news-panel, .brl-support-layout { flex-wrap: wrap !important; }
  .brl-hero-grid > .wp-block-column, .brl-news-panel > .wp-block-column, .brl-support-layout > .wp-block-column { flex-basis: 100% !important; }
  .brl-hero-media { margin: 20px auto 0; }
  .brl-section-head { grid-template-columns: 1fr; gap: 20px; }
  .brl-card-grid { flex-wrap: wrap !important; }
  .brl-card-grid > .wp-block-column { flex-basis: 100% !important; }
  .brl-app-card { min-height: 290px; }
}

@media (max-width: 720px) {
  .site-header__inner { min-height: 72px; }
  .custom-logo, .site-brand-link img { width: 158px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { position: absolute; left: 20px; right: 20px; top: 72px; display: none; padding: 18px; border: 1px solid var(--brl-line); border-radius: 16px; background: var(--brl-white); box-shadow: var(--brl-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-menu a { display: block; padding: 10px; }
  .brl-module > .wp-block-group__inner-container, .brl-module-inner { width: min(100% - 28px, 1180px); }
  .brl-hero-module { min-height: auto; padding: 54px 0 72px; }
  .brl-hero-title { font-size: 48px !important; }
  .brl-hero-copy { font-size: 17px; }
  .brl-apps-module, .brl-support-module { padding: 80px 0; }
  .brl-news-module { padding-bottom: 80px; }
  .brl-news-panel > .wp-block-column:first-child { padding: 34px 26px; }
  .brl-news-art { min-height: 300px; }
  .site-footer__main { flex-direction: column; }
  .footer-menu { flex-wrap: wrap; }
}
