/* ruccilaw.com look, loaded after the shared site.css (SITE_CSS in site.py). Law-firm style: deep navy with a faint
   street-map texture, burgundy actions, light-blue accents on dark, Playfair Display headings, light content pages. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #14204a;
  --navy-deep: #0e1736;
  --burgundy: #8c1d40;
  --burgundy-hover: #a5264f;
  --sky: #a9bdf5;
  --ink: #14204a;
  --ink-2: #14204a;
  --ink-3: #1d2c62;
  --paper: #ffffff;
  --paper-2: #f6f4ef;
  --surface: #ffffff;
  --line: #e3dfd6;
  --text: #262b38;
  --muted: #5d6474;
  --teal: #a9bdf5;            /* the shared sheet's accent: used on dark backgrounds here */
  --teal-ink: #8c1d40;
  --magenta: #8c1d40;
  --heading: #14204a;
  --link: #8c1d40;
  --link-hover: #14204a;
  --accent-text: #8c1d40;
  --card-dark: #14204a;
  --chip-on-bg: #14204a;
  --chip-on-text: #ffffff;
  --shadow: rgba(20,32,74,.12);
  --on-dark: #eef1f8;
  --on-dark-muted: #b9c3da;
  --radius: 4px;
  --head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-weight: 800; letter-spacing: 0; }
h4, h5, h6 { font-family: var(--ui); }
:focus-visible { outline-color: var(--burgundy); }
.site-header :focus-visible, .hero :focus-visible, .page-head :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }
.skip { background: var(--burgundy); color: #fff; }

/* buttons: squared, burgundy */
.btn { background: var(--burgundy); border-color: var(--burgundy); color: #fff; border-radius: 2px; font: 600 1rem/1 var(--ui); padding: 1em 1.5em; }
.btn:hover { background: var(--burgundy-hover); border-color: var(--burgundy-hover); color: #fff; }
.btn .arrow { display: inline-block; margin-left: .6em; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.more { font-family: var(--ui); color: var(--burgundy); }

/* header: phone strip on top, then logo and menu */
.site-header { background: var(--navy-deep); border-bottom: 0; }
.topbar { border-bottom: 1px solid rgba(255,255,255,.14); }
.topbar-row { display: flex; justify-content: center; align-items: baseline; gap: 14px; padding-top: 7px; padding-bottom: 6px; }
.topbar-label { font: italic 600 .9rem/1 var(--head); color: #fff; }
.topbar-phone { font: 700 1.15rem/1 var(--head); color: var(--sky); text-decoration: none; letter-spacing: .02em; }
.topbar-phone:hover { color: #fff; }
.brand img { width: 190px; }
.site-nav a { font: 700 .95rem/1 var(--ui); color: #fff; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--sky); }
.site-nav .btn-call { color: #fff; }
.nav-open .site-nav { background: var(--navy-deep); }
@media (min-width: 900px) {
  .topbar-row { justify-content: flex-end; padding-top: 10px; padding-bottom: 8px; }
  .topbar-label { font-size: 1rem; }
  .topbar-phone { font-size: 1.55rem; }
  .brand img { width: 230px; }
  .site-nav ul { gap: 22px; }
  .header-row { min-height: 78px; }
}

/* hero: map texture, scales watermark, framed portrait on the left */
.hero-law { background: radial-gradient(ellipse at 72% 38%, rgba(60,86,170,.35), transparent 62%), url("map-navy.webp") center / cover, var(--navy);
  border-bottom: 4px solid var(--burgundy); }
.hero-law::before { background: url("scales.webp") no-repeat 6% 70% / auto 92%; opacity: .07; }
.hero-law .hero-grid { padding-top: 40px; gap: 8px; }
.hero-law .hero-copy { order: -1; }
.hero-law .eyebrow { color: var(--sky); font-family: var(--ui); }
.hero-law h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem); line-height: 1.15; max-width: 23ch; color: #fff; }
.hero-law .hero-sub { color: #dfe5f3; max-width: 46ch; }
.hero-law .hero-cta { padding-bottom: 28px; }
.hero-law .hero-photo { position: relative; max-width: 330px; align-self: end; justify-self: center; margin-top: 12px; }
.hero-law .hero-photo::before { content: ""; position: absolute; left: -26px; right: -26px; top: 36%; bottom: 0;
  border: 2px solid rgba(255,255,255,.82); border-bottom: 0; }
.hero-law .hero-photo img { position: relative; filter: drop-shadow(0 16px 36px rgba(0,0,0,.45)); }
@media (min-width: 900px) {
  .hero-law .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; padding-top: 56px; gap: 56px; }
  .hero-law .hero-copy { order: 0; padding: 24px 0 64px; }
  .hero-law .hero-photo { max-width: 400px; justify-self: start; margin: 0 0 0 30px; }
  .hero-law .hero-photo::before { left: -44px; right: -40px; top: 34%; }
}

/* sections */
.band { padding: 56px 0; }
.band-alt { background: var(--paper-2); border-top: 0; }
.section-head { margin-bottom: 26px; }
.section-head h2, .rule-h { position: relative; padding-bottom: 14px; }
.section-head h2::after, .rule-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--burgundy); }

/* page title band */
.page-head { background: radial-gradient(ellipse at 80% 20%, rgba(60,86,170,.3), transparent 60%), url("map-navy.webp") center / cover, var(--navy);
  border-bottom: 4px solid var(--burgundy); padding: 40px 0 36px; }
.page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; }
.page-head a { color: var(--sky); }

/* text */
.prose a { color: var(--burgundy); }
.prose a:hover { color: var(--navy); }
.prose blockquote { border-left-color: var(--burgundy); font-family: var(--head); font-style: italic; color: var(--text); }
.prose h2, .prose h3 { color: var(--navy); }

/* cards */
.pcard a { border-radius: 4px; border-top: 3px solid var(--line); }
.pcard a:hover { border-color: var(--line); border-top-color: var(--burgundy); box-shadow: 0 10px 28px var(--shadow); }
.pcard .pmeta { font-family: var(--ui); color: var(--burgundy); }
.ptitle { font: 700 1.18rem/1.3 var(--head); }
.vtitle { font: 700 1.02rem/1.3 var(--head); }
.mini-v .vtitle { font: 600 .9rem/1.3 var(--ui); }
.vcard .thumb { border-radius: 3px; }
.vcard a:hover .play { background: var(--burgundy); }
.cta-card { background: var(--navy); border-top: 4px solid var(--burgundy); border-radius: 4px; }
.cta-card a:not(.btn) { color: var(--sky); }
.side-card { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--burgundy); border-radius: 4px; }
.contact-card { background: var(--navy); border-top: 4px solid var(--burgundy); border-radius: 4px; }
.contact-card a:not(.btn) { color: var(--sky); }
.prevnext a { border-radius: 4px; }
.prevnext a:hover { border-color: var(--burgundy); }
.sub-h { font-family: var(--ui); }
.filter-bar input { border-radius: 3px; }
.chip { border-radius: 3px; font-family: var(--ui); }
.form-note.ok { border-color: var(--navy); }
.gallery figure { border-radius: 4px; }

/* footer */
.site-footer { background: var(--navy-deep); border-top: 4px solid var(--burgundy); }
.site-footer a:hover { color: var(--sky); }
.foot-h { font: 700 1.15rem/1.2 var(--head); text-transform: none; letter-spacing: 0; }

/* practice areas page */
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pa-head .lede { color: #dfe5f3; font-size: 1.15rem; max-width: 70ch; }
.pa-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pa-card > a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.pa-card > a:hover { box-shadow: 0 14px 34px var(--shadow); transform: translateY(-3px); color: var(--text); }
.pa-img { position: relative; display: block; aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.pa-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.pa-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,74,0) 45%, rgba(20,32,74,.55)); }
.pa-card a:hover .pa-img img { transform: scale(1.05); }
.pa-body { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 40px 24px 24px; }
.pa-icon { position: absolute; top: -30px; left: 24px; width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--burgundy); color: #fff; border-radius: 2px; box-shadow: 0 8px 20px rgba(140,29,64,.35); }
.pa-title { font: 800 1.45rem/1.2 var(--head); color: var(--navy); }
.pa-text { font-size: .97rem; color: var(--muted); }
.pa-more { margin-top: auto; padding-top: 6px; font: 700 .95rem/1 var(--ui); color: var(--burgundy); }
.pa-more::after { content: " →"; transition: margin .15s; }
.pa-card a:hover .pa-more::after { margin-left: 4px; }
/* the last card in the practice grid: call to action */
.pa-cta-box { position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 28px;
  background: var(--navy) url("map-navy.webp") center / cover; border: 1px solid var(--navy); border-top: 4px solid var(--burgundy);
  border-radius: 4px; color: var(--on-dark); }
.pa-cta-box::after { content: ""; position: absolute; right: -36px; bottom: -24px; width: 78%; aspect-ratio: 1113 / 900;
  background: url("scales.webp") no-repeat center / contain; opacity: .08; pointer-events: none; }
.pa-cta .pa-icon { position: static; margin-bottom: 6px; }
.pa-cta .pa-title { color: #fff; margin: 0; font-size: 1.6rem; }
.pa-cta .pa-text { color: #dfe5f3; margin: 0; font-size: 1.05rem; }
.pa-cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 10px; }
.pa-cta-actions .btn { min-width: 220px; text-align: center; }

/* qualifications strip */
.creds { background: radial-gradient(ellipse at 20% 0%, rgba(60,86,170,.35), transparent 60%), url("map-navy.webp") center / cover, var(--navy);
  color: var(--on-dark); padding: 56px 0 60px; border-top: 4px solid var(--burgundy); }
.creds h2 { color: #fff; margin: 0 0 30px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat { border: 1px solid rgba(255,255,255,.18); border-top: 3px solid var(--sky); padding: 22px 20px; background: rgba(14,23,54,.45); }
.stat-num { display: block; font: 800 2.6rem/1 var(--head); color: var(--sky); }
.stat-label { display: block; margin-top: 10px; color: #fff; font-size: 1rem; line-height: 1.4; }
.stat a { display: inline-block; margin-top: 12px; color: var(--sky); font: 600 .9rem/1 var(--ui); }

/* closing call to action */
.cta-band { text-align: center; }
.cta-band h2 { margin: 0 0 .4em; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.cta-band p { color: var(--muted); margin: 0 0 1.4em; }
.cta-band .hero-cta { justify-content: center; }

/* practice-area pages: the other areas in the sidebar */
.pa-nav ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.pa-nav li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 3px; text-decoration: none; color: var(--navy); font: 600 .97rem/1.2 var(--ui); }
.pa-nav li a svg { width: 22px; height: 22px; color: var(--burgundy); flex: none; }
.pa-nav li a:hover { background: #fff; }
.pa-nav li a[aria-current] { background: var(--navy); color: #fff; }
.pa-nav li a[aria-current] svg { color: var(--sky); }

/* contact page: hero like the home page, office details as cards, the form in a card */
.contact-hero .hero-photo { max-width: 300px; }
.contact-hero .crumbs { color: var(--on-dark-muted); }
.contact-hero .crumbs a { color: var(--sky); }
.contact-hero h1 { max-width: 16ch; }
@media (min-width: 900px) {
  .contact-hero .hero-photo { max-width: 340px; }
  .contact-hero .hero-copy { padding: 16px 0 56px; }
}
.info-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.info-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--burgundy); border-radius: 4px; padding: 24px; box-shadow: 0 6px 20px var(--shadow); }
.info-card .pa-icon { position: static; width: 52px; height: 52px; margin-bottom: 8px; }
.info-label { font: 700 .8rem/1 var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-value { font: 700 1.5rem/1.25 var(--head); color: var(--navy); text-decoration: none; }
a.info-value:hover { color: var(--burgundy); }
.info-address { font-size: 1.15rem; line-height: 1.4; }
.info-note { font: italic 600 .95rem/1.3 var(--head); color: var(--burgundy); }
.info-address { font-size: 1.1rem; }
.info-note .info-link { font: 700 .95rem/1 var(--ui); font-style: normal; color: var(--burgundy); }
.info-note .info-link::after { content: " →"; }
.contact-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; } }
.contact-intro h2 { margin-top: 0; }
.contact-intro p { color: var(--text); }
.contact-intro .small { color: var(--muted); font-size: .95rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--burgundy); border-radius: 4px;
  padding: 28px; box-shadow: 0 12px 32px var(--shadow); }
.contact-form input, .contact-form textarea { border-radius: 3px; border-color: #d4cfc4; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.contact-form label { font-family: var(--ui); }

/* the message form sits in a full-width blue row */
.contact-message { background: linear-gradient(120deg, rgba(42,72,150,.94) 0%, rgba(28,48,108,.95) 55%, rgba(20,32,74,.97) 100%),
  url("map-navy.webp") center / cover, #1f3577; color: var(--on-dark); border-top: 4px solid var(--burgundy); padding: 64px 0 72px; }
.contact-message .contact-intro h2 { color: #fff; }
.contact-message .contact-intro h2::after { background: var(--sky); }
.contact-message .contact-intro p { color: #e3e9f7; font-size: 1.08rem; }
.contact-message .contact-intro a { color: #fff; }
.contact-message .contact-intro a:hover { color: var(--sky); }
.contact-message .form-card { border-top-color: var(--burgundy); box-shadow: 0 18px 44px rgba(8,14,36,.45); }
@media (min-width: 900px) { .contact-message .contact-intro { padding-top: 12px; } }

/* three practice areas: the call-to-action card runs across the grid under them */
@media (min-width: 900px) {
  .pa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pa-cta { grid-column: 1 / -1; }
  .pa-cta-box { flex-direction: row; align-items: center; gap: 28px; padding: 30px 36px; }
  .pa-cta .pa-icon { margin: 0; flex: none; width: 64px; height: 64px; }
  .pa-cta-text { flex: 1; display: grid; gap: 6px; }
  .pa-cta-actions { flex-direction: row; align-items: center; margin-top: 0; padding-top: 0; }
  .pa-cta-box::after { right: auto; left: 38%; bottom: -60px; width: 34%; }
}
.site-nav a { white-space: nowrap; }
/* mid-size screens: seven menu items, a wide logo and the call button share the row; the logo never shrinks */
.brand { flex: none; }
@media (min-width: 900px) and (max-width: 1180px) {
  .brand img { width: 176px; }
  .site-nav { gap: 16px; }
  .site-nav ul { gap: 14px; }
  .site-nav li:first-child { display: none; }  /* "Home": the logo links home */
  .site-nav a { font-size: .88rem; }
  .site-nav .btn-call { padding: .8em 1em; font-size: .9rem; }
}

/* video libraries: links between them in the title band, and their cards on the home page */
.lib-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lib-tabs a { font: 600 .88rem/1 var(--ui); padding: .65em 1em; border-radius: 3px; border: 1px solid rgba(169,189,245,.55); color: #fff; text-decoration: none; }
.lib-tabs a span { color: var(--sky); font-weight: 400; margin-left: 2px; }
.lib-tabs a:hover { border-color: #fff; color: #fff; }
.lib-tabs a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--navy); }
.lib-tabs a[aria-current="page"] span { color: var(--burgundy); }
.lib-card .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 58px; height: 40px; transform: translate(-50%, -50%); background: rgba(20,32,74,.85); border-radius: 10px; }
.lib-card .play::after { content: ""; position: absolute; left: 23px; top: 11px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.lib-card a:hover .play { background: var(--burgundy); }

/* the portrait includes his full right shoulder (an extra strip on the left, 240 of its 1120 px): the photo box and
   its frame keep their size and place, the image is 127.27% of the box and shifted left by that strip */
.hero-law .hero-photo img { width: 127.27%; max-width: none; margin-left: -27.27%; }
