/* Christian Science Granbury — csgranbury.com
   Design language drawn from christianscience.com (see site-scrape/design-reference-christianscience-com.md) */

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --plum: #660066;
  --plum-dark: #4d004d;
  --blue: #0265cb;
  --ink: #020202;
  --text: #333333;
  --soft: #555555;
  --muted: #757575;
  --border: #c9c9c9;
  --hairline: #dddddd;
  --panel: #f5f5f5;
  --panel-alt: #f7f7f7;
  --strip: #f1f1f1;
  --sans: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
img { max-width: 100%; display: block; }

html {
  scroll-behavior: smooth;
  /* anchor targets land below the sticky header */
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--plum); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--plum); margin: 0 0 10px;
}
.lead { font-size: 17.5px; color: var(--soft); margin: 12px 0 0; max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 24px;
  font: 600 14px/1.45 var(--sans); letter-spacing: .3px;
  border-radius: 0; border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--hairline);
}
.header-in {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-name {
  font-size: 15px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--ink); text-transform: uppercase;
}
.brand-tag { font-size: 11.5px; color: var(--muted); letter-spacing: .2px; }
.site-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  font-size: 14px; font-weight: 600; color: #464646;
  padding-bottom: 5px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--plum); text-decoration: none; }
.site-nav a.active { color: var(--plum); border-bottom-color: var(--plum); }

/* Announcement */
.announce {
  background: var(--strip); border-bottom: 1px solid var(--hairline);
  text-align: center; padding: 9px 16px; font-size: 13.5px; color: var(--soft);
}
.announce a { font-weight: 600; }
@media (max-width: 720px) {
  /* deliberate line break: link gets its own line instead of mid-wrap */
  .announce-sep { display: none; }
  .announce a { display: block; margin-top: 3px; }
}

/* Hero */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: flex-end;
  background: url('../images/clouds.jpg') center / cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,2,2,0) 32%, rgba(2,2,2,.62));
}
.hero-in {
  position: relative; z-index: 1;
  max-width: 1140px; margin: 0 auto; width: 100%;
  padding: 56px 24px 52px;
}
.hero .eyebrow { color: rgba(255,255,255,.88); }
.hero h1 {
  color: #fff; font-weight: 700; max-width: 16ch; text-wrap: balance;
  font-size: clamp(30px, 5.5vw, 44px);
}
.hero p { color: rgba(255,255,255,.93); font-size: 17px; margin: 12px 0 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* Sections */
.section { padding: 72px 24px; }
.section-in { max-width: 1140px; margin: 0 auto; }
.sechead { margin-bottom: 36px; }
.sechead h2 { font-size: 28px; font-weight: 600; text-wrap: balance; }

/* About split */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px; align-items: center;
}
.split img { border: 1px solid var(--hairline); width: 100%; }
.split h2 { font-size: 28px; font-weight: 600; }
.split .body { font-size: 16px; color: var(--soft); margin: 14px 0 0; }
.textlink { font-weight: 600; font-size: 14.5px; }

/* Service cards */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card { background: #fff; border: 1px solid var(--border); padding: 30px 28px; }
.card h3 {
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink);
}
.card-time { font-size: 15px; font-weight: 600; color: var(--plum); margin: 10px 0 12px; }
.card p { font-size: 15px; color: var(--soft); margin: 0; }

/* Quote */
.quote { background: var(--panel-alt); text-align: center; padding: 76px 24px; }
.quote-rule { width: 48px; height: 3px; background: var(--plum); margin: 0 auto 26px; }
.quote blockquote {
  margin: 0 auto; max-width: 680px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 4vw, 32px); line-height: 1.4; color: var(--ink);
}
.quote cite {
  display: block; margin-top: 20px;
  font-family: var(--sans); font-style: normal;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--plum); text-transform: uppercase;
}

/* Reading Room photo strip */
.photostrip {
  position: relative; text-align: center;
  background: url('../images/books.jpg') center / cover no-repeat;
}
.photostrip::after { content: ''; position: absolute; inset: 0; background: rgba(2,2,2,.55); }
.photostrip-in {
  position: relative; z-index: 1;
  padding: 80px 24px; max-width: 760px; margin: 0 auto;
}
.photostrip h2 { color: #fff; font-size: 28px; font-weight: 600; }
.photostrip p { color: rgba(255,255,255,.92); font-size: 16.5px; margin: 14px 0 26px; }

/* Contact */
.contact-big {
  font-size: 19px; font-weight: 600; line-height: 1.45;
  color: var(--ink); margin: 12px 0 12px; overflow-wrap: anywhere;
}
.contact-big a { color: var(--plum); }
.map-link { font-weight: 600; font-size: 14px; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--hairline); }
.footer-in {
  max-width: 1140px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.site-footer h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { font-size: 14.5px; line-height: 2.1; }
.site-footer li a { color: #464646; }
.site-footer li a:hover { color: var(--plum); }
.footer-brand .brand-name { font-size: 13px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid var(--hairline); text-align: center;
  padding: 16px; font-size: 12.5px; color: var(--muted);
}

/* Mobile header */
@media (max-width: 860px) {
  :root { --header-h: 118px; }
  .header-in { flex-direction: column; align-items: center; padding: 12px 16px; gap: 10px; }
  .brand { flex-direction: column; text-align: center; gap: 6px; }
  .brand img { width: 40px; height: 40px; }
  .site-nav { justify-content: center; gap: 18px; }
  .hero { min-height: 440px; }
  .section { padding: 56px 20px; }
}
@media (max-width: 480px) {
  :root { --header-h: 150px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13.5px; }
}
