/* ChudleyStone — static site styles */
:root {
  --ink: #1d1530;
  --ink-2: #4a4360;
  --muted: #6e6884;
  --line: #e8e4f0;
  --bg: #ffffff;
  --bg-soft: #f7f5fb;
  --brand: #6b3fb6;
  --brand-2: #a8306f;
  --brand-deep: #2a1748;
  --grad: linear-gradient(120deg, #6b3fb6 0%, #8c3896 55%, #a8306f 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29,21,48,.05), 0 8px 24px rgba(29,21,48,.07);
  --shadow-lg: 0 2px 4px rgba(29,21,48,.06), 0 18px 40px rgba(29,21,48,.12);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(140,56,150,.3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(140,56,150,.38); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { color: var(--brand); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Top bar */
.topbar { background: var(--brand-deep); color: #d9cfee; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #f3c4dc; }
.topbar .items { display: flex; gap: 22px; align-items: center; }
.topbar .item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(42,23,72,.96); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button {
  color: #ece6f7; font-weight: 500; font-size: .96rem; padding: 10px 14px; border-radius: 10px;
  background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .dd > button:hover, .nav .dd:focus-within > button { color: #fff; background: rgba(255,255,255,.08); }
.nav > a[aria-current="page"], .nav .dd.active > button { color: #fff; }
.nav > a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: #e58bbd; border-radius: 2px; position: relative; top: 2px; }
.nav > a[aria-current="page"] { flex-direction: column; gap: 0; }
.nav .dd { position: relative; }
.nav .dd svg { width: 14px; height: 14px; transition: transform .2s; }
.dd-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; min-width: 260px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav .dd:hover > button svg { transform: rotate(180deg); }
.dd-menu a { display: block; padding: 9px 14px; border-radius: 9px; color: var(--ink); font-size: .94rem; font-weight: 500; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--bg-soft); color: var(--brand); }
.nav .btn { margin-left: 10px; padding: .65em 1.2em; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 10px; }
.menu-toggle svg { width: 28px; height: 28px; }

/* Mobile nav */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--brand-deep); }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--brand-deep); flex-direction: column; align-items: stretch;
    padding: 12px 20px 40px; gap: 2px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { transform: none; visibility: visible; }
  .nav > a, .nav .dd > button { font-size: 1.1rem; padding: 14px 12px; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav > a[aria-current="page"] { flex-direction: row; color: #f3a6cf; }
  .nav > a[aria-current="page"]::after { display: none; }
  .dd-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; padding: 0 0 8px 12px; min-width: 0; display: none; }
  .nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { transform: none; }
  .nav .dd.open .dd-menu { display: block; }
  .nav .dd.open > button svg { transform: rotate(180deg); }
  .nav .dd:hover > button svg { transform: none; }
  .nav .dd.open:hover > button svg { transform: rotate(180deg); }
  .dd-menu a { color: #d9cfee; padding: 10px 12px; }
  .dd-menu a:hover, .dd-menu a[aria-current="page"] { background: rgba(255,255,255,.07); color: #fff; }
  .nav .btn { margin: 20px 0 0; justify-content: center; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .topbar .hours { display: none; }
  .topbar .container { justify-content: center; }
  .brand img { height: 44px; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand-deep); }
.hero-bg { position: absolute; inset: 0; background: url(/assets/hero.jpg) center/cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42,23,72,.92) 0%, rgba(42,23,72,.6) 55%, rgba(168,48,111,.35) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(72px, 11vw, 140px); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 span { background: linear-gradient(90deg, #f6b6d7, #d6c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #e8e0f5; max-width: 38ch; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 22px; color: #fff;
}
.pill b { background: #fff; color: var(--brand-2); border-radius: 999px; padding: 2px 9px; font-size: .75rem; letter-spacing: .04em; }

/* Page header (inner pages) */
.page-head { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px; background: rgba(255,255,255,.07); }
.page-head::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: 140px; bottom: -220px; background: rgba(255,255,255,.05); }
.page-head .container { position: relative; z-index: 1; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.page-head p { color: #f1e8f8; font-size: 1.15rem; margin: 0; max-width: 46ch; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #e9dcf5; }
.crumbs a { color: #fff; opacity: .85; }
.crumbs a:hover { opacity: 1; color: #fff; }
.crumbs span { opacity: .6; margin: 0 6px; }
.head-icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; margin-bottom: 18px; }
.head-icon svg { width: 30px; height: 30px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Quick links strip under hero */
.quick { margin-top: -54px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px; display: flex; gap: 16px; align-items: flex-start;
  color: var(--ink-2); transition: transform .18s;
}
.quick-card:hover { transform: translateY(-4px); color: var(--ink-2); }
.quick-card h3 { margin-bottom: .2em; }
.quick-card p { margin: 0; font-size: .95rem; }
.icon-badge { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.icon-badge svg { width: 24px; height: 24px; }

/* Intro split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.value .icon-badge { width: 42px; height: 42px; border-radius: 11px; }
.value .icon-badge svg { width: 21px; height: 21px; }
.value h3 { font-size: 1.05rem; margin-bottom: .15em; }
.value p { margin: 0; font-size: .95rem; }
.signoff { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.15rem; border-left: 3px solid var(--brand-2); padding-left: 16px; margin-top: 1.6em; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; color: var(--ink-2); transition: border-color .18s, box-shadow .18s, transform .18s;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--ink-2); }
.service-card .icon-badge { margin-bottom: 18px; }
.service-card .tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--brand-2); }
.service-card h3 { margin: .25em 0 .45em; }
.service-card p { font-size: .96rem; flex: 1; }
.more { font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; font-size: .94rem; }
.more svg { width: 16px; height: 16px; transition: transform .18s; }
.service-card:hover .more svg { transform: translateX(4px); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 22px; }
.team-card img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid var(--bg-soft); }
.team-card h3 { margin-bottom: .1em; }
.team-card .role { color: var(--brand-2); font-weight: 600; font-size: .9rem; margin-bottom: .5em; }
.team-card p { margin: 0; font-size: .95rem; }

/* Profiles (about page) */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile + .profile { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.profile-photo { position: sticky; top: 100px; }
.profile-photo img { border-radius: 20px; width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; box-shadow: var(--shadow-lg); }
.profile-photo .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--brand); border: 1px solid var(--line); }
.profile h2 { margin-bottom: .1em; }
.profile .role { color: var(--brand-2); font-weight: 600; margin-bottom: 1.4em; }
.profile blockquote { margin: 1.6em 0 0; padding: 22px 24px; background: var(--bg-soft); border-radius: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); border-left: 4px solid var(--brand-2); }
.profile em.caps { font-style: normal; font-weight: 700; color: var(--brand); }

/* Service detail */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 72px); align-items: start; }
.prose p { font-size: 1.08rem; }
.prose p:first-child { font-size: 1.22rem; color: var(--ink); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.checklist svg { width: 22px; height: 22px; color: var(--brand-2); flex: none; margin-top: 2px; }
.aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.aside-card h3 { font-size: 1rem; margin-bottom: .8em; }
.aside-card.cta { background: var(--grad); color: #fff; border: 0; }
.aside-card.cta h3 { color: #fff; font-size: 1.2rem; }
.aside-card.cta p { color: #f1e8f8; font-size: .95rem; }
.aside-card.cta .btn { width: 100%; justify-content: center; margin-top: 8px; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-size: .95rem; }
.aside-links a:hover { background: var(--bg-soft); color: var(--brand); }
.aside-links a[aria-current="page"] { background: var(--bg-soft); color: var(--brand); font-weight: 600; }
.aside-links svg { width: 15px; height: 15px; opacity: .5; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card .icon-badge { margin-bottom: 18px; }
.contact-card h3 { margin-bottom: .7em; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.contact-list .who { color: var(--muted); font-size: .92rem; }
.contact-list a { font-weight: 600; word-break: break-word; }
address { font-style: normal; line-height: 1.7; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.hours-note { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; margin-top: 10px; }
.hours-note svg { width: 16px; height: 16px; }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 28px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -180px; background: rgba(255,255,255,.08); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #f1e8f8; font-size: 1.08rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Footer */
.site-footer { background: #170d29; color: #b6abcb; font-size: .93rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1em; letter-spacing: 0; }
.site-footer a { color: #ddd3ee; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.social { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.social svg { width: 18px; height: 18px; }
.legal { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0 32px; font-size: .82rem; color: #8f84a6; line-height: 1.7; }
.legal p { margin: 0 0 .3em; }

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .quick { margin-top: -36px; }
  .quick-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .quick-card { padding: 20px; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { position: static; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .cta-band .actions, .cta-band .actions .btn { width: 100%; justify-content: center; }
  .team-card { flex-direction: column; text-align: center; }
  .map iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
