/* Ray Barrett CPA — shared visual system */
:root {
  color-scheme: light;
  --navy: #142d40;
  --navy-deep: #102535;
  --ink: #203444;
  --muted: #4b5e69;
  --gold: #bba071;
  --gold-dark: #80633b;
  --paper: #faf9f6;
  --white: #ffffff;
  --line: #dedfdc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font: 16px/1.7 var(--sans); }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }
a:focus-visible { outline: 3px solid #b38644; outline-offset: 5px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { line-height: 1.18; color: var(--navy); font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(42px, 5.4vw, 71px); letter-spacing: -.035em; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 3.7vw, 43px); letter-spacing: -.025em; margin-bottom: 20px; }
h3 { font-size: 27px; margin-bottom: 14px; }
p { margin-bottom: 18px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -100px; background: var(--white); color: var(--navy); padding: 10px 15px; z-index: 10; }
.skip-link:focus { top: 10px; }
.eyebrow, .small-label { color: var(--gold-dark); font-family: var(--sans); font-size: 11px; font-weight: 750; letter-spacing: .14em; line-height: 1.5; }
.eyebrow { margin-bottom: 20px; }
.small-label { display: block; margin-bottom: 8px; }
.lead { font-size: 19px; color: var(--muted); max-width: 660px; margin-bottom: 0; }

/* Navigation */
.utility { background: var(--navy-deep); color: #e6e9eb; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; font-size: 12px; gap: 20px; }
.utility a:hover { color: #f2dfb5; }
.site-header { border-bottom: 1px solid var(--line); }
.navigation { min-height: 98px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; color: var(--navy); }
.brand:hover { color: var(--navy); }
.monogram { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--navy); font: 25px/1 var(--serif); letter-spacing: -.08em; padding-right: 2px; }
.brand-name { display: block; font: 27px/1.08 var(--serif); white-space: nowrap; letter-spacing: -.035em; }
.brand-sub { display: block; font: 650 9px/1.3 var(--sans); letter-spacing: .12em; margin-top: 6px; }
nav { display: flex; gap: clamp(15px, 2vw, 29px); align-items: center; margin-left: auto; }
nav a { font-size: 14px; padding: 10px 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { border-bottom-color: var(--gold-dark); font-weight: 650; }
.header-cta { background: var(--navy); color: var(--white); font-size: 12px; font-weight: 650; padding: 12px 15px; text-align: center; }
.header-cta:hover { background: #25485d; color: var(--white); }

/* Home */
.hero { background: var(--paper); padding-block: clamp(60px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: clamp(36px, 6vw, 82px); align-items: center; }
.hero-lead { color: var(--muted); font-size: 19px; max-width: 520px; margin-bottom: 31px; }
.gold-period { color: var(--gold-dark); }
.hero-panel { min-width: 0; background: var(--navy); border: 1px solid var(--navy); color: #e6d6b6; padding: 22px; position: relative; }
.hero-art { border: 1px solid #bba07170; min-height: 250px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 55%,#28475a 0%,var(--navy) 76%); }
.hero-art svg { width: 100%; max-width: 450px; height: auto; display: block; }
.panel-label { display: flex; gap: 10px; justify-content: space-between; font-size: 10px; letter-spacing: .12em; padding-top: 18px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; font-weight: 650; min-height: 48px; border: 1px solid transparent; padding: 11px 20px; text-align: left; }
.button.primary { background: var(--navy); color: var(--white); }
.button.primary:hover { background: #25485d; color: var(--white); }
.button.outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button.outline:hover { background: var(--paper); }
.button.light { color: var(--navy); background: #f6eee0; }
.button.light:hover { background: var(--white); }
.text-link { font-size: 14px; font-weight: 650; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.quick-contact { border-block: 1px solid var(--line); }
.quick-inner { display: grid; grid-template-columns: 1fr 1.3fr 1fr; padding-block: 25px; }
.quick-inner > div { padding-inline: 28px; border-left: 1px solid var(--line); }
.quick-inner > div:first-child { padding-left: 0; border-left: 0; }
.quick-inner a { font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }

/* Sections and service pages */
.section { padding-block: clamp(54px, 7vw, 88px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.service-card { padding: 32px 34px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; align-items: flex-start; }
.service-icon { width: 43px; height: 43px; color: var(--gold-dark); margin-bottom: 21px; }
.service-card p { color: var(--muted); max-width: 475px; margin-bottom: 25px; }
.service-card a { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--navy); }
.service-card a:hover { color: var(--gold-dark); }
.contact-band { background: var(--navy); color: var(--white); }
.band-inner { padding-block: 49px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.band-inner h2 { color: var(--white); font-size: clamp(28px,3.2vw,38px); margin-bottom: 9px; }
.band-inner p { color: #e2e8ec; margin-bottom: 0; }
.band-inner .button { flex-shrink: 0; }
.page-intro { padding-block: clamp(55px,7vw,92px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(40px,5vw,61px); }
.two-column, .detail-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px,7vw,90px); align-items: start; }
.prose { font-size: 17px; color: var(--muted); max-width: 690px; }
.prose .button { margin-top: 8px; }
.detail-row + .detail-row { border-top: 1px solid var(--line); padding-top: 48px; margin-top: 48px; }
.detail-row { scroll-margin-top: 25px; }

/* Calendar and contact */
.calendar-layout, .contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.calendar-box, .appointment-box, .contact-aside { border: 1px solid var(--line); padding: clamp(23px,4vw,36px); }
.calendar-box h2, .appointment-box h2, .contact-aside h2 { font-size: 32px; }
.appointment-box, .contact-aside { background: var(--paper); }
.notice { background: var(--paper); border-left: 3px solid var(--gold); padding: 21px 24px; }
.notice h3 { font-size: 23px; }
.notice p { margin-bottom: 0; color: var(--muted); }
.appointment-box > p:not(.eyebrow), .contact-aside > p:not(.eyebrow) { color: var(--muted); }
.appointment-options { display: grid; gap: 10px; margin-block: 23px; }
.appointment-options a { padding: 14px 18px; background: var(--white); border: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; align-items: center; font-weight: 650; }
.appointment-options a:hover { border-color: var(--gold-dark); }
.small-note { font-size: 13px; color: var(--muted); }
.small-note a { text-decoration: underline; text-underline-offset: 3px; }
.contact-item { border-bottom: 1px solid var(--line); padding-block: 12px 25px; margin-bottom: 18px; }
.contact-value { font: clamp(25px,3vw,33px)/1.3 var(--serif); color: var(--navy); overflow-wrap: anywhere; }
.email-value { font-size: clamp(19px,2.5vw,29px); }
.contact-item p { margin: 12px 0 0; color: var(--muted); }
.contact-aside .small-note { margin-top: 25px; margin-bottom: 0; }

/* Footer */
.footer { background: #f5f4f0; border-top: 1px solid var(--line); }
.footer-grid { padding-block: 42px; display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 28px; }
.footer-grid h2 { font: 700 13px/1.6 var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid > div > a:not(.brand) { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; overflow-wrap: anywhere; }
.footer-grid > div > a:hover:not(.brand) { color: var(--gold-dark); }
.footer-grid p { font-size: 14px; margin: 16px 0 0; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; padding-block: 18px; font-size: 12px; color: var(--muted); }

/* Responsive layout */
@media (max-width: 1060px) {
  .navigation { flex-wrap: wrap; padding-block: 18px; gap: 15px; }
  .navigation nav { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; gap: 28px; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid, .service-grid, .two-column, .detail-row, .calendar-layout, .contact-layout { grid-template-columns: 1fr; gap: 26px; }
  .hero-panel { max-width: 500px; }
  .hero-art { min-height: 0; }
  .hero h1 br { display: none; }
  .quick-inner { grid-template-columns: 1fr; gap: 16px; }
  .quick-inner > div { border-left: 0; padding: 0; }
  .band-inner { flex-direction: column; align-items: flex-start; gap: 21px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .section-heading { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .utility-inner { justify-content: flex-end; }
  .utility-inner > span { display: none; }
  .navigation { gap: 12px; }
  .navigation nav { justify-content: space-between; gap: 9px; }
  .navigation nav a { font-size: 13px; }
  .header-cta { display: none; }
  .brand-name { font-size: 25px; }
  .service-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Professional credentials and experience */
.credentials-panel { padding: 22px; }
.credentials-inner { border: 1px solid #bba07180; padding: clamp(24px,3.5vw,42px); }
.credentials-inner .eyebrow { color: #dbc49b; margin-bottom: 25px; }
.credentials-number { font: 400 clamp(72px,9vw,112px)/.95 var(--serif); letter-spacing: -.06em; color: #faf9f6; margin: 0 0 14px; }
.credentials-number span { font-size: .58em; vertical-align: .28em; color: #dbc49b; }
.credentials-label { color: #faf9f6; font-size: 18px; margin-bottom: 24px; }
.credentials-rule { height: 1px; background: #bba07170; margin-block: 26px; }
.credentials-degree { font: 24px/1.2 var(--serif); color: #faf9f6; margin-bottom: 8px; }
.credentials-school { font-size: 14px; margin-bottom: 26px; }
.credentials-link { color: #f4e6cb; font-weight: 650; font-size: 14px; border-bottom: 1px solid #bba071; padding-bottom: 4px; }
.credentials-link:hover { color: #fff; }
.experience-section { background: var(--paper); border-block: 1px solid var(--line); }
.experience-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px,7vw,90px); }
.career-entry + .career-entry { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 30px; }
.career-date { color: var(--gold-dark); font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.career-role { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 10px; color: var(--ink); font-size: 15px; }
.career-role span { color: var(--muted); font-size: 14px; }
.career-disclaimer { margin-top: 24px; margin-bottom: 0; }
.education-card { border-left: 2px solid var(--gold); padding-left: 24px; }
.education-card p:last-child { margin-bottom: 0; color: var(--muted); }
@media(max-width:760px) { .experience-layout { grid-template-columns: 1fr; gap: 28px; } }
