/* SGI-USA DFW Buddhist Center: static site styles.
   Tokens and sizes carried over from the WordPress "sgi-dfw" theme (theme.json + style.css). */
:root {
  --paper: #f8f5ef;
  --sand: #efe9dd;
  --line: #e7e1d6;
  --stone: #cfc7b8;
  --muted: #4d473f;
  --ink: #211e1a;
  --gold: #9a7a2c;
  --gold-light: #d9b766;
  --yellow: #ffd23f;
  --white: #fff;
  --serif: Newsreader, Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --outfit: Outfit, system-ui, sans-serif;
  --fs-title: clamp(40px, 5vw, 64px);
  --fs-section: clamp(30px, 3vw, 40px);
  --fs-display: clamp(34px, 4vw, 52px);
  --fs-sub: 26px;
  --sp-20: 20px;
  --sp-40: clamp(26px, 4vw, 44px);
  --sp-50: clamp(32px, 5vw, 64px);
  --sp-60: clamp(48px, 7vw, 88px);
  --gutter: clamp(20px, 5vw, 64px);
  --content: 1272px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; }
a:hover { color: var(--gold); }
p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
h1 { font-size: var(--fs-title); line-height: 1.05; }
h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-sub); line-height: 1.3; }
h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 0 0 .5rem; line-height: 1.4; }
figure { margin: 0; }
iframe { border: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; }

/* utilities */
.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--sp-60); padding-bottom: var(--sp-60); }
.section.pt-0 { padding-top: 0; }
.page-head { padding-top: var(--sp-50); padding-bottom: var(--sp-50); border-bottom: 1px solid var(--line); }
.hero { padding-top: var(--sp-50); border-bottom: 1px solid var(--line); }
.hero .wrap { max-width: none; }
.muted { color: var(--muted); }
.stone { color: var(--stone); }
.gold { color: var(--gold); }
.gold-light { color: var(--gold-light); }
.gold-light a:hover { color: var(--paper); }
.small { font-size: 15px; }
.lead { font-size: 19px; }
.serif { font-family: var(--serif); }
.h3 { font-size: var(--fs-sub); line-height: 1.3; }
.display { font-size: var(--fs-display); }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; line-height: 1.4; }
.rule-top { border-top: 1px solid var(--ink); padding-top: 20px; }
.band-ink { background: var(--ink); color: var(--paper); }
.band-sand { background: var(--sand); }
.card-sand { background: var(--sand); padding: var(--sp-40); }
.band-sand .card-sand { background: var(--paper); }

/* columns */
.cols { display: grid; gap: var(--sp-40) var(--sp-50); grid-template-columns: 1fr; }
.cols + .cols { margin-top: var(--sp-40); }
.cols.tight + .cols.tight { margin-top: var(--sp-20); }
@media (min-width: 782px) {
  .cols-2, .cols-center { grid-template-columns: 1fr 1fr; }
  .cols-center { align-items: center; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
  .cols-hero { grid-template-columns: 52fr 48fr; align-items: center; }
  .cols-40 { grid-template-columns: 40fr 60fr; }
  .cols-58 { grid-template-columns: 58fr 42fr; align-items: start; }
  .cols-visit { grid-template-columns: 43fr 57fr; }
  .cols-address { grid-template-columns: 43fr 57fr; align-items: stretch; }
}
@media (min-width: 600px) and (max-width: 781px) {
  .cols-4 { grid-template-columns: 1fr 1fr; }
}

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  border-radius: 2px; padding: 15px 24px; font: inherit; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn:disabled { opacity: .6; cursor: default; }

/* media */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 300px; }
.map-full iframe { display: block; width: 100%; height: clamp(240px, 35vw, 420px); }
.img.fill { height: 100%; }
.img.fill img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
@media (max-width: 781px) { .img.fill img { min-height: 260px; } }

/* hours */
.sgi-hours { max-width: 520px; }
.sgi-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e0d9cc; }
.sgi-hours span:last-child { text-align: right; }
.sgi-hours small { display: block; font-size: 13.5px; color: #8a8175; }
#address .eyebrow:not(:first-child) { margin-top: 2rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12.5px; padding: 8px var(--gutter); border-bottom: 1px solid var(--line); }
.topbar p { margin: 0; }
.topbar a { text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.lang a { font-weight: 600; text-transform: uppercase; color: #a39a8b; text-decoration: none; }
.lang a[aria-current="true"] { color: var(--ink); }
.mainbar { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 18px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-title { font-family: var(--serif); font-size: 21px; line-height: 1; white-space: nowrap; }
.brand-tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8175; line-height: 1; }
.brand:hover { color: inherit; }
.mainbar-right { display: flex; align-items: center; gap: 28px; }
.mainbar .btn { padding: 11px 18px; font-size: 14.5px; white-space: nowrap; }
.nav-toggle { display: none; }

.nav > ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav li { position: relative; }
.nav a { text-decoration: none; }
.nav > ul > li > a[aria-current="page"], .nav > ul > li > a:hover { box-shadow: inset 0 -1px 0 currentColor; color: inherit; }
.nav .item { display: flex; align-items: center; gap: 4px; }
.sub-toggle { background: none; border: 0; padding: 2px; margin: 0; color: #8a8175; cursor: pointer; line-height: 0; }
.sub-toggle svg { width: 9px; height: 9px; }
.submenu { list-style: none; margin: 0; padding: 0; }
@media (min-width: 783px) {
  .submenu {
    position: absolute; top: 100%; left: -18px; margin-top: 14px; min-width: 280px; padding: 14px 0;
    background: #fffdf8; border: 1px solid var(--line); border-top: 2px solid #b88a2e;
    box-shadow: 0 18px 40px -18px rgba(34, 28, 20, .35);
    opacity: 0; visibility: hidden; transition: opacity .12s; z-index: 30;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .nav li:hover > .submenu, .nav li:focus-within > .submenu, .nav li.open > .submenu { opacity: 1; visibility: visible; }
  .submenu a { display: block; padding: 9px 22px; font-size: 14.5px; line-height: 1.35; white-space: nowrap; color: var(--ink); }
  .submenu a:hover { background: #f4efe4; color: #8a6417; }
}

@media (max-width: 782px) {
  .topbar { padding: 0; border: 0; height: 0; overflow: visible; }
  .topbar > p, .topbar-right > p { display: none; }
  .topbar .lang { position: absolute; z-index: 25; top: 24px; right: calc(var(--gutter) + 44px); font-size: 12px; }
  .mainbar { padding: 14px var(--gutter); }
  .mainbar .btn { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand-title { font-size: 19px; }
  .brand-tag { font-size: 10px; }
  .nav-toggle { display: inline-flex; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav { display: none; position: fixed; inset: 0; z-index: 40; background: var(--paper); padding: 24px var(--gutter); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav-close { display: flex; justify-content: flex-end; }
  .nav > ul { flex-direction: column; gap: 0; padding-top: 24px; }
  .nav > ul > li { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .nav > ul > li > .item > a, .nav > ul > li > a { font-family: var(--serif); font-size: 22px; box-shadow: none !important; }
  .sub-toggle { display: none; }
  .submenu { padding-top: 6px; }
  .submenu a { display: block; font-size: 15.5px; color: #5a5249; padding: 7px 0; }
  .nav .nav-cta { margin-top: 24px; }
  .nav .nav-cta .btn { display: inline-block; }
}
@media (min-width: 783px) { .nav-close, .nav .nav-cta { display: none; } }
.nav-close button { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.nav-close svg { width: 24px; height: 24px; }
body.nav-open { overflow: hidden; }
:focus-visible { outline: 2px solid #b88a2e; outline-offset: 3px; }

/* ---------- footer ---------- */
.bud { background: var(--yellow); color: var(--ink); padding: var(--sp-60) 0; }
.bud .cols { align-items: center; }
.bud-label { display: flex; align-items: center; gap: 10px; font-family: var(--outfit); font-weight: 500; font-size: 15px; letter-spacing: .02em; margin: 0 0 .6rem; }
.bud-label img { height: 30px; width: auto; }
.bud-sub { font-family: var(--outfit); font-weight: 500; font-size: 13px; letter-spacing: .02em; margin: 0 0 .6rem; }
.bud h2 { font-family: var(--outfit); font-weight: 700; font-size: var(--fs-title); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 20px; }
.bud p { font-family: var(--sans); }
.bud-label strong, .bud-sub strong { font-weight: inherit; }
.bud-text { font-size: 19px; }
.bud .pills-row, .bud .ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bud .pills-row { margin: 1.2rem 0 1rem; }
.bud-pill { display: inline-block; padding: 7px 16px; border: 2px solid var(--ink); border-radius: 30px; font-family: var(--outfit); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; }
.bud-pill:hover { background: var(--ink); color: var(--yellow); }
.bud-btn { display: inline-block; padding: 14px 24px; border-radius: 30px; font-family: var(--outfit); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.bud-btn.dark { background: var(--ink); color: var(--yellow); }
.bud-btn.light { background: var(--white); color: var(--ink); }
.bud-btn:hover { opacity: .88; color: inherit; }
.bud-btn.dark:hover { color: var(--yellow); }
.bud figure img { border-radius: 28px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 782px) { .bud figure { padding-left: var(--sp-50); } }

.foot { background: var(--ink); color: var(--paper); padding: var(--sp-50) 0 clamp(56px, 8vw, 96px); font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-light); }
.foot-grid { display: grid; gap: var(--sp-40); grid-template-columns: 1fr; }
@media (min-width: 782px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-name { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; margin-bottom: 1rem; }
.foot-name img { width: 32px; height: 32px; flex: none; }
.foot-addr { color: var(--stone); }
.social { display: flex; gap: 16px; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.social a { color: var(--stone); display: inline-flex; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.foot ul.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--stone); }
.foot ul.links li:first-child.label { color: var(--paper); }

/* ---------- forms ---------- */
.sgi-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; row-gap: 18px; }
.sgi-form .full { grid-column: 1 / -1; }
.sgi-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sgi-form label, .sgi-form legend { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 7px; padding: 0; }
.sgi-form .req::after { content: " *"; color: var(--gold); }
.sgi-form input[type=text], .sgi-form input[type=email], .sgi-form input[type=tel], .sgi-form select, .sgi-form textarea {
  width: 100%; border: 1px solid var(--stone); border-radius: 0; background: var(--white);
  padding: 13px 15px; font: inherit; font-size: 15px; color: var(--ink); box-shadow: none; appearance: none;
}
.sgi-form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.band-sand .sgi-form input, .band-sand .sgi-form select, .band-sand .sgi-form textarea { background-color: var(--paper); }
.sgi-form input:focus, .sgi-form select:focus, .sgi-form textarea:focus { border-color: var(--gold); outline: 1px solid var(--gold); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sgi-form .pill { position: relative; display: inline-flex !important; align-items: center; padding: 9px 15px; border: 1px solid var(--ink); border-radius: 30px; font-size: 14px !important; font-weight: 400 !important; cursor: pointer; margin: 0 !important; transition: background .15s, color .15s; }
.pill:hover { background: rgba(33, 30, 26, .06); }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill:has(input:checked) { background: var(--ink); color: var(--paper); }
.pill:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.sgi-form .btn { padding: 16px 28px; margin-top: 6px; }
.field-err { margin: 6px 0 0; font-size: 13.5px; color: #a33; line-height: 1.4; }
.sgi-form [aria-invalid="true"] { border-color: #a33 !important; outline-color: #a33; }
.form-msg { margin: 0; padding: 20px 24px; background: var(--paper); font-size: 16px; }
.band-sand .form-msg { background: var(--paper); }
.form-msg.error { border-left: 3px solid #a33; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .sgi-form { grid-template-columns: minmax(0, 1fr); } .sgi-form > * { grid-column: 1 / -1; } }

/* ---------- chant widget (from the WordPress page) ---------- */
.sgi-chant { background: #211e1a; color: #f3eee4; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); }
.sgi-chant__in { max-width: 1272px; margin: 0 auto; }
.sgi-chant__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.sgi-chant__eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #d9b766; }
.sgi-chant__tempo { display: flex; border: 1px solid #4d473f; }
.sgi-chant__tempo button { background: transparent; color: #cfc7b8; border: 0; padding: 8px 14px; font: inherit; font-size: 13.5px; cursor: pointer; }
.sgi-chant__tempo button[aria-pressed="true"] { background: #d9b766; color: #211e1a; }
.sgi-chant__syl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 36px; }
.sgi-chant__s { text-align: center; border-top: 2px solid #3a352f; padding: 24px 0 8px; transition: border-color .12s; }
.sgi-chant__s b { display: block; font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.1; color: #f3eee4; transition: color .12s; }
.sgi-chant__s small { display: block; font-size: 13px; color: #8a8175; margin-top: 6px; }
.sgi-chant.is-playing .sgi-chant__s b { color: #6b645a; }
.sgi-chant .sgi-chant__s.is-on { border-color: #d9b766; }
.sgi-chant .sgi-chant__s.is-on b { color: #d9b766; }
.sgi-chant__ctrl { display: flex; align-items: center; gap: 18px; }
.sgi-chant__play { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #d9b766; color: #211e1a; font-size: 18px; cursor: pointer; flex: none; }
.sgi-chant__label { font-size: 16px; }
.sgi-chant__sub { font-size: 13.5px; color: #8a8175; margin-top: 4px; }
@media (max-width: 700px) { .sgi-chant__syl { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; } .sgi-chant__s { padding: 14px 0 4px; } }

/* 404 */
.notfound { min-height: 40vh; }
