/*
Theme Name: 婚姻995 Marriage Connection
Theme URI: https://www.995law.tw/
Description: 婚姻995（雙環相伴）家事法律諮詢平台專用輕量經典主題。手刻精簡前端，重視 SEO 與載入效能；與 995 律師平台品牌呼應。
Author: 創意數位科技
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: marriage995
Tags: classic-theme, custom-menu, featured-images, threaded-comments
*/

/* =========================================================
   1. Design tokens (from 婚姻995 品牌配色設計規範)
   ========================================================= */
:root {
  --brand-navy: #263A50;
  --brand-navy-dark: #1E2F42;
  --brand-rose: #B97878;
  --brand-rose-dark: #A96969;
  --brand-gold: #C99A4A;
  --brand-gold-dark: #B7863C;

  --bg-warm: #F7F2EA;
  --bg-white: #FFFFFF;
  --bg-rose-soft: #F4E7E7;
  --bg-gold-soft: #F4EBDD;
  --bg-card-hover: #FCF8F4;

  --text-primary: #2E3135;
  --text-secondary: #6F7479;
  --heading: #263A50;
  --border-default: #DDD8D1;

  --success: #507A63; --success-bg: #E7F0EA;
  --warning: #A57936; --warning-bg: #F5ECD9;
  --error:   #B85050; --error-bg:   #F6E3E3;
  --info:    #3F647E; --info-bg:    #E6EEF3;

  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-input: 9px;
  --radius-lg: 22px;

  --shadow-card: 0 8px 24px rgba(38, 58, 80, 0.08);
  --shadow-card-hover: 0 14px 34px rgba(38, 58, 80, 0.13);
  --shadow-header: 0 2px 18px rgba(38, 58, 80, 0.06);

  --maxw: 1180px;
  --maxw-narrow: 760px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", Georgia, serif;
  --font-latin: "Inter", "Noto Sans TC", sans-serif;
}

/* =========================================================
   2. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-navy); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-rose); }
h1,h2,h3,h4,h5 { color: var(--heading); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { color: var(--brand-navy); font-weight: 700; }
hr { border: none; border-top: 1px solid var(--border-default); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid rgba(201,154,74,.55); outline-offset: 2px; border-radius: 4px; }

/* accessibility utilities */
.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; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--brand-navy); color: #fff; padding: .7em 1.2em; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
.mobile-br { display: none; }
@media (max-width: 620px) { .mobile-br { display: inline; } }

/* mobile drawer + app tabbar hidden on desktop by default */
.mobile-nav, .mobile-nav-overlay, .app-tabbar { display: none; }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   3. Layout helpers
   ========================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section--warm { background: var(--bg-warm); }
.section--navy { background: var(--brand-navy); color: #fff; }
.section--rose { background: var(--bg-rose-soft); }
.section--white { background: var(--bg-white); }
.section--navy h1,.section--navy h2,.section--navy h3,.section--navy h4 { color:#fff; }
.eyebrow {
  display: inline-block; font-family: var(--font-latin);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-gold-dark); font-weight: 600; margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--brand-gold); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem,4vw,3.2rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 0; }
.section--navy .section-head p { color: rgba(255,255,255,.82); }
.text-rose { color: var(--brand-rose); }
.text-gold { color: var(--brand-gold-dark); }

/* =========================================================
   4. Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .95em 1.7em; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  cursor: pointer; transition: all .2s ease; text-align: center;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--brand-navy); color: #fff; }
.btn--primary:hover { background: var(--brand-navy-dark); color:#fff; transform: translateY(-2px); }
.btn--secondary { background: #fff; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn--secondary:hover { background: var(--bg-warm); color: var(--brand-navy); }
.btn--emotional { background: var(--brand-rose); color: #fff; }
.btn--emotional:hover { background: var(--brand-rose-dark); color:#fff; transform: translateY(-2px); }
.btn--gold { background: var(--brand-gold); color: #fff; }
.btn--gold:hover { background: var(--brand-gold-dark); color:#fff; }
.btn--ghost-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn--lg { font-size: 1.08rem; padding: 1.05em 2.1em; }

/* =========================================================
   5. Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-default); box-shadow: var(--shadow-header);
}
.header-bar { display: flex; align-items: center; gap: 1.4rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand__mark { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.32rem; font-weight: 800; color: var(--brand-navy); letter-spacing: .04em; }
.brand__name b { color: var(--brand-gold-dark); font-weight: 800; }
.brand__sub { font-family: var(--font-latin); font-size: .58rem; letter-spacing: .28em; color: var(--text-secondary); margin-top: 3px; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav a { display: block; padding: .6rem .85rem; font-weight: 600; font-size: .98rem; color: var(--brand-navy); border-radius: 8px; }
.primary-nav a:hover { color: var(--brand-rose); background: var(--bg-warm); }
.primary-nav .menu-item-has-children > a::after { content: "▾"; font-size: 1.05em; line-height: 1; margin-left: .32em; color: var(--brand-gold-dark); vertical-align: middle; }
/* dropdown */
.primary-nav ul ul {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 226px;
  background: #fff; border: 1px solid var(--border-default); border-radius: 14px;
  box-shadow: var(--shadow-card); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.primary-nav li:hover > ul, .primary-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav ul ul a { padding: .6rem .8rem; font-size: .93rem; font-weight: 500; }
.primary-nav ul ul a:hover { background: var(--bg-warm); color: var(--brand-rose); }
.header-cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-toggle { display: none; }

/* =========================================================
   6. Footer
   ========================================================= */
.site-footer { background: var(--brand-navy-dark); color: rgba(255,255,255,.8); padding-block: clamp(3rem,6vw,4.5rem) 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .05em; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--brand-gold); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255,255,255,.55); }
.footer-about { margin-top: 1rem; line-height: 1.85; color: rgba(255,255,255,.68); font-size: .92rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6rem; }
.footer-contact li { display: flex; gap: .55rem; margin-bottom: .8rem; line-height: 1.6; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--brand-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-block: 1.4rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   7. Article / prose (single, page)
   ========================================================= */
.prose { font-size: 1.06rem; line-height: 1.9; color: var(--text-primary); }
.prose h2 { margin-top: 2.4em; padding-bottom: .35em; border-bottom: 2px solid var(--bg-gold-soft); }
.prose h3 { margin-top: 1.8em; color: var(--brand-navy); }
.prose h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--brand-gold); border-radius: 50%; margin-right: .55em; vertical-align: middle; }
.prose ul li::marker { color: var(--brand-rose); }
.prose ol li::marker { color: var(--brand-gold-dark); font-weight: 700; }
.prose a { color: var(--brand-rose-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.8em 0; padding: 1.2em 1.5em; background: var(--bg-warm);
  border-left: 4px solid var(--brand-gold); border-radius: 0 12px 12px 0; color: var(--brand-navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: 14px; margin: 1.6em 0; box-shadow: var(--shadow-card); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .96rem; }
.prose th { background: var(--brand-navy); color: #fff; text-align: left; padding: .8em 1em; }
.prose td { padding: .8em 1em; border-bottom: 1px solid var(--border-default); }
.prose tr:nth-child(even) td { background: var(--bg-warm); }

/* callout boxes usable inside articles */
.note { padding: 1.1em 1.3em; border-radius: 12px; margin: 1.6em 0; }
.note--info { background: var(--info-bg); border-left: 4px solid var(--info); }
.note--warning { background: var(--warning-bg); border-left: 4px solid var(--warning); }
.note--tip { background: var(--success-bg); border-left: 4px solid var(--success); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: inherit; }

/* =========================================================
   8. Cards & grids (shared)
   ========================================================= */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-card);
  padding: 1.7rem; box-shadow: var(--shadow-card); transition: all .22s ease; height: 100%;
}
.card:hover { border-color: var(--brand-rose); background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; background: var(--bg-gold-soft); margin-bottom: 1.1rem; }
.card__icon svg { width: 26px; height: 26px; stroke: var(--brand-gold-dark); }
.card__icon.rose { background: var(--bg-rose-soft); }
.card__icon.rose svg { stroke: var(--brand-rose-dark); }
.card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.card p { color: var(--text-secondary); font-size: .97rem; margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: .3em; margin-top: 1rem; font-weight: 600; font-size: .95rem; color: var(--brand-rose-dark); }
.card__link:hover { gap: .55em; }

/* =========================================================
   8b. FAQ 手風琴（首頁 / FAQ 頁共用）
   ========================================================= */
.faq-list { margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border-default); border-radius: 14px; margin-bottom: .9rem; overflow: hidden; }
.faq-item + .faq-item { margin-top: 0; }
.faq-item__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.15rem 1.5rem; font-size: 1.08rem; font-weight: 700; color: var(--brand-navy); display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: inherit; line-height: 1.5; }
.faq-item__q:hover { color: var(--brand-rose); }
.faq-item__q::after { content: "+"; font-size: 1.6rem; color: var(--brand-gold-dark); flex-shrink: 0; transition: transform .2s; line-height: 1; }
.faq-item.open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-item__a { max-height: 600px; }
.faq-item__a-inner { padding: 0 1.5rem 1.35rem; color: var(--text-primary); line-height: 1.85; }
.faq-item__a-inner a { color: var(--brand-rose-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose .faq-item__a-inner p { margin-bottom: 0; }

/* =========================================================
   9. Breadcrumb, tags, pagination
   ========================================================= */
.breadcrumb { font-size: .87rem; color: var(--text-secondary); padding: 1rem 0; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-rose); }
.breadcrumb .sep { margin: 0 .45em; opacity: .6; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; background: var(--bg-rose-soft); color: var(--brand-rose-dark); }
.tag.navy { background: var(--brand-navy); color:#fff; }
.tag.gold { background: var(--bg-gold-soft); color: var(--brand-gold-dark); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--border-default); font-weight: 600; color: var(--brand-navy); }
.pagination .page-numbers.current { background: var(--brand-navy); color:#fff; border-color: var(--brand-navy); }
.pagination a.page-numbers:hover { border-color: var(--brand-rose); color: var(--brand-rose); }

/* =========================================================
   10. Responsive
   ========================================================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  /* ---- 手機版頁首：logo 置中、漢堡靠右且無外框 ---- */
  .primary-nav { display: none; }
  .header-bar { position: relative; }
  .brand { position: static; transform: none; }  /* logo 靠左 */
  .header-cta { margin-left: auto; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
  .nav-toggle svg { width: 27px; height: 27px; stroke: var(--brand-navy); }
  .nav-toggle:active svg { stroke: var(--brand-rose); }

  /* ---- 遮罩 ---- */
  .mobile-nav-overlay { display: block; position: fixed; inset: 0; background: rgba(30,47,66,.5); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s; backdrop-filter: blur(2px); }
  .mobile-nav-overlay.open { opacity: 1; visibility: visible; }

  /* ---- 抽屜面板 ---- */
  .mobile-nav { display: flex; flex-direction: column; position: fixed; inset: 0 0 0 auto; width: min(88vw, 372px); background: var(--bg-white); box-shadow: -16px 0 60px rgba(30,47,66,.24); transform: translateX(100%); transition: transform .34s cubic-bezier(.33,0,.2,1); z-index: 200; padding: 0; }
  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 1.35rem; background: linear-gradient(120deg, var(--bg-warm), #FBF5EC); border-bottom: 1px solid var(--border-default); }
  .mobile-nav__head .brand { position: static; transform: none; gap: .55rem; }
  .mobile-nav__head .brand__name { font-size: 1.16rem; }
  .mobile-nav__head .brand__sub { display: block; font-size: .52rem; letter-spacing: .26em; }
  .mobile-nav__close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-default); border-radius: 50%; background: #fff; color: var(--brand-navy); cursor: pointer; padding: 0; transition: all .2s ease; }
  .mobile-nav__close:hover, .mobile-nav__close:active { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); transform: rotate(90deg); }
  .mobile-nav__close svg { width: 18px; height: 18px; }

  /* ---- 選單本體（可捲動）---- */
  .mobile-nav__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .6rem 1.35rem 1.2rem; }
  .mobile-nav__body ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav__body > ul > li { padding: .15rem 0; }
  .mobile-nav__body > ul > li + li { border-top: 1px solid #EFE9DF; }
  .mobile-nav__body > ul > li > a { display: flex; align-items: center; justify-content: space-between; padding: .82rem .1rem; font-size: 1.07rem; font-weight: 700; color: var(--brand-navy); letter-spacing: .01em; }
  .mobile-nav__body > ul > li > a:hover { color: var(--brand-rose); }
  /* 有子項的父層當作分類標題 */
  .mobile-nav__body .menu-item-has-children > a { color: var(--brand-navy); }
  .mobile-nav__body .menu-item-has-children > a { cursor: pointer; }
  .mobile-nav__body .menu-item-has-children > a::after { content: ""; width: 26px; height: 26px; flex-shrink: 0; background: var(--bg-gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23B7863C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/15px no-repeat; border-radius: 7px; transition: transform .25s ease, background-color .25s ease; }
  .mobile-nav__body .menu-item-has-children.open > a { color: var(--brand-rose); }
  .mobile-nav__body .menu-item-has-children.open > a::after { transform: rotate(180deg); background-color: var(--bg-rose-soft); }
  /* 子選單群組（預設收合） */
  .mobile-nav__body ul ul { max-height: 0; overflow: hidden; margin: 0; padding: 0 0 0 .15rem; display: grid; gap: .05rem; border-left: 2px solid var(--bg-gold-soft); transition: max-height .32s ease; }
  .mobile-nav__body .menu-item-has-children.open > ul { max-height: 640px; margin: .1rem 0 .6rem; padding: .35rem 0 .4rem .15rem; }
  .mobile-nav__body ul ul a { display: flex; align-items: center; gap: .6rem; padding: .58rem .4rem .58rem .9rem; margin-left: .3rem; font-size: .97rem; font-weight: 500; color: var(--text-primary); border-radius: 9px; }
  .mobile-nav__body ul ul a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); flex-shrink: 0; transition: transform .18s; }
  .mobile-nav__body ul ul a:hover { background: var(--bg-card-hover); color: var(--brand-rose-dark); }
  .mobile-nav__body ul ul a:hover::before { background: var(--brand-rose); transform: scale(1.3); }

  /* ---- 底部 CTA ---- */
  .mobile-nav__foot { flex-shrink: 0; padding: 1rem 1.35rem calc(1.15rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-default); background: #fff; display: grid; gap: .6rem; }
  .mobile-nav__foot .btn--lg { width: 100%; }
  .mobile-nav__foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .mobile-nav__foot-row .btn { width: 100%; padding-inline: .6em; }

  /* ---- 仿 APP 底部四格導覽 ---- */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .app-tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    background: rgba(255,255,255,.97); backdrop-filter: saturate(140%) blur(8px);
    border-top: 1px solid var(--border-default);
    box-shadow: 0 -6px 24px rgba(38,58,80,.09);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .app-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: .5rem 0 .55rem; font-size: .72rem; font-weight: 600; line-height: 1;
    color: var(--text-secondary); background: none; border: none; cursor: pointer;
    font-family: inherit; text-align: center; -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .app-tab svg { width: 23px; height: 23px; stroke: var(--text-secondary); stroke-width: 1.9; }
  .app-tab.is-active { color: var(--brand-navy); }
  .app-tab.is-active svg { stroke: var(--brand-navy); }
  .app-tab.is-active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-gold); }
  .app-tab--cta { color: var(--brand-rose-dark); }
  .app-tab--cta svg { stroke: var(--brand-rose-dark); }
  .app-tab:active { opacity: .6; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
}
