/* =====================================================================
   Ashley Richmond Accountants — site styles
   Built on Bootstrap 5.3.3. Design tokens live in :root; change a brand
   colour once and every component follows.
   ===================================================================== */

:root {
  /* brand — taken from the client's logo (maroon monogram, charcoal tagline) */
  --wine-950: #3B0709;      /* footer, deep bands */
  --wine-800: #800000;      /* logo maroon: headings, primary buttons */
  --wine-700: #660000;      /* hover state of primary */
  --red-600:  #A61E2A;      /* links, focus rings */
  --gold-500: #C6A15B;      /* single accent: rules, icons, stars */
  --gold-300: #E7D5AE;
  --mist:     #F8F1F1;      /* tinted section background (warm blush) */
  --mist-2:   #EFE1E1;
  --paper:    #FCFAFA;      /* page background */
  --white:    #FFFFFF;
  --ink:      #2A2323;      /* body text (warm charcoal, echoes logo tagline #383838) */
  --slate:    #6B5F5F;      /* muted text */
  --line:     #E9DDDD;

  /* type */
  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-body: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* shape + motion */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-lift: 0 18px 40px -18px rgba(128,0,0,.22);
  --header-h: 84px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--ff-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--red-600);
  --bs-link-hover-color: var(--wine-800);
  --bs-border-color: var(--line);
  --bs-primary: var(--wine-800);
  --bs-primary-rgb: 128,0,0;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold-300); color: var(--wine-950); }

/* ---------- type scale ---------- */
h1,h2,h3,h4,.display-serif { font-family: var(--ff-display); color: var(--wine-800); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5,h6 { font-family: var(--ff-body); font-weight: 600; color: var(--wine-800); }
.lead { font-size: 1.2rem; color: var(--slate); font-weight: 400; }
.text-slate { color: var(--slate) !important; }
.text-navy { color: var(--wine-800) !important; }
.text-gold { color: var(--gold-500) !important; }
.fw-500 { font-weight: 500; }
.small-caps { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold-500); }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--red-600); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-weight: 600; --bs-btn-border-radius: 999px; --bs-btn-font-size: .97rem; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s; }
.btn-primary { --bs-btn-bg: var(--wine-800); --bs-btn-border-color: var(--wine-800); --bs-btn-hover-bg: var(--wine-700); --bs-btn-hover-border-color: var(--wine-700); --bs-btn-active-bg: var(--wine-950); --bs-btn-active-border-color: var(--wine-950); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(128,0,0,.6); }
.btn-outline-navy { --bs-btn-color: var(--wine-800); --bs-btn-border-color: var(--wine-800); --bs-btn-hover-bg: var(--wine-800); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--wine-800); --bs-btn-active-bg: var(--wine-950); }
.btn-light-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.55); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--wine-800); --bs-btn-hover-border-color: #fff; }
.btn-gold { --bs-btn-bg: var(--gold-500); --bs-btn-border-color: var(--gold-500); --bs-btn-color: var(--wine-950); --bs-btn-hover-bg: #d4b06d; --bs-btn-hover-border-color: #d4b06d; --bs-btn-hover-color: var(--wine-950); }
.btn .bi { transition: transform .3s var(--ease); }
.btn:hover .bi-arrow-right { transform: translateX(4px); }
.btn-sm { --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1.05rem; --bs-btn-font-size: .9rem; }

/* text link with underline that grows */
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--wine-800); text-decoration: none; position: relative; }
.link-more::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--gold-500); transition: width .3s var(--ease); }
.link-more:hover::after { width: 100%; }
.link-more .bi { transition: transform .3s var(--ease); }
.link-more:hover .bi { transform: translateX(4px); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--wine-950); color: rgba(255,255,255,.82); font-size: .86rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .bi { color: var(--gold-500); }
.topbar .acca { display: inline-flex; align-items: center; gap: .5rem; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(251,252,254,.85); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .35s, border-color .35s, background-color .35s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(59,7,9,.35); }
.site-header .navbar { padding: .9rem 0; transition: padding .35s var(--ease); }
.site-header.is-scrolled .navbar { padding: .45rem 0; }

/* Brand: the client's logo (assets/img/logo.png, transparent background).
   The footer sits on a dark band, so .brand-light renders the same file in white. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 46px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 38px; }
.brand.brand-light .brand-logo { filter: brightness(0) invert(1); opacity: .95; }
@media (max-width: 575.98px) { .brand-logo { height: 32px; } }

.navbar-nav .nav-link { font-weight: 500; color: var(--ink); padding: .55rem .9rem !important; position: relative; }
.navbar-nav .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link.active { color: var(--wine-800); }
.navbar-toggler { border: 0; padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* mega menu */
.mega { position: static; }
/* Bootstrap's border caret would clash with the underline ::after, so the toggle carries a real chevron icon */
.mega .dropdown-toggle::after { border: 0; }
.nav-caret { font-size: .62em; margin-left: .38em; vertical-align: .15em; display: inline-block; transition: transform .3s var(--ease); }
.mega.open .nav-caret, .mega .dropdown-toggle[aria-expanded="true"] .nav-caret, .mega .dropdown-toggle.show .nav-caret { transform: rotate(180deg); }
.mega .dropdown-menu { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(59,7,9,.45); padding: 1.4rem; margin-top: .6rem; }
.mega .mega-group h6 { color: var(--gold-500); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.mega .dropdown-item { border-radius: var(--r-sm); padding: .55rem .7rem; white-space: normal; display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.mega .dropdown-item .bi { color: var(--wine-800); font-size: 1.05rem; margin-top: .1rem; flex: none; }
.mega .dropdown-item small { display: block; color: var(--slate); font-size: .82rem; line-height: 1.35; }
.mega .dropdown-item:hover, .mega .dropdown-item:focus { background: var(--mist); color: var(--wine-800); }
.mega .mega-side { background: var(--wine-800); color: #fff; border-radius: var(--r-md); padding: 1.4rem; height: 100%; }
.mega .mega-side h4 { color: #fff; }
@media (min-width: 992px) {
  .mega .dropdown-menu { width: min(980px, calc(100vw - 2rem)); top: calc(100% - 4px); margin-top: 0; left: 50%; transform: translateX(-50%) translateY(8px); opacity: 0; display: block; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .mega:hover .dropdown-menu, .mega.open .dropdown-menu, .mega:focus-within .dropdown-menu, .mega .dropdown-menu.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}
/* desktop: the offcanvas renders inline as the normal navbar row */
@media (min-width: 992px) {
  .site-header .offcanvas-body { flex-grow: 1; align-items: center; }
}
/* mobile: slide-in drawer from the left with the contact details at the bottom */
@media (max-width: 991.98px) {
  /* backdrop-filter would make the fixed drawer position relative to the header, so drop it on mobile */
  /* the drawer is a child of the sticky header, so the header must sit above the offcanvas backdrop (z 1040) */
  .site-header { z-index: 1045; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(252,250,250,.97); }
  .site-header .offcanvas { width: min(86vw, 380px); background: var(--paper); border-right: 1px solid var(--line); box-shadow: 30px 0 60px -30px rgba(59,7,9,.45); }
  .site-header .offcanvas:focus-visible { outline: none; }
  .site-header .offcanvas-header { padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
  .site-header .offcanvas-header .brand-logo { height: 34px; }
  .site-header .offcanvas-body { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.5rem; }
  .site-header .navbar-nav { width: 100%; margin: 0; }
  .site-header .navbar-nav .nav-link { padding: .85rem 0 !important; font-size: 1.06rem; border-bottom: 1px solid var(--line); }
  .site-header .navbar-nav .nav-item:last-child .nav-link { border-bottom: 0; }
  .site-header .mega .dropdown-toggle { display: flex; justify-content: space-between; align-items: center; }
  .site-header .mega .nav-caret { font-size: .8em; margin: 0; }
  .site-header .navbar-nav .nav-link.active { color: var(--wine-800); }
  .site-header .btn-primary { width: 100%; }
  .drawer-contact { margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .95rem; }
  .drawer-contact h6 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); margin-bottom: .9rem; }
  .drawer-contact > a, .drawer-contact > span { display: flex; align-items: flex-start; gap: .8rem; color: var(--ink); text-decoration: none; margin-bottom: .75rem; line-height: 1.4; }
  .drawer-contact > a:hover { color: var(--wine-800); }
  .drawer-contact .bi { color: var(--wine-800); font-size: 1.05rem; flex: none; margin-top: .1rem; }
  .drawer-contact .drawer-acca { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .82rem; color: var(--slate); }
  .drawer-contact .drawer-acca .bi { color: var(--gold-500); margin: 0; }
  .navbar-nav .nav-link::after { display: none; }
  .mega .dropdown-menu { border: 0; box-shadow: none; padding: .25rem 0 .5rem .5rem; margin: 0; }
  .mega .mega-side { display: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--wine-800); color: rgba(255,255,255,.85); }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4 { color: #fff; }
.bg-navy-deep { background: var(--wine-950); color: rgba(255,255,255,.85); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: .9rem; }
.section-head p { color: var(--slate); font-size: 1.1rem; }
.gold-rule { display: block; width: 56px; height: 3px; background: var(--gold-500); border-radius: 2px; margin-bottom: 1.2rem; }
.text-center .gold-rule { margin-left: auto; margin-right: auto; }
.bg-navy .section-head p { color: rgba(255,255,255,.72); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 0; background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(128,0,0,.08) 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 34rem; margin-bottom: 1.9rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--slate); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .bi { color: var(--gold-500); }

.hero-media { position: relative; margin-top: 2.5rem; }
.hero-media .frame { position: relative; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 40px 80px -40px rgba(59,7,9,.5); }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .float-card { position: absolute; left: .75rem; bottom: 2.25rem; background: #fff; border-radius: var(--r-md); padding: 1rem 1.2rem; box-shadow: var(--shadow-lift); border: 1px solid var(--line); max-width: 270px; }
.hero-media .float-card .n { font-family: var(--ff-display); font-size: 2.2rem; line-height: 1; color: var(--wine-800); }
.hero-media .float-card .n sup { color: var(--gold-500); font-size: .55em; top: -.6em; }
.hero-media .float-card p { font-size: .86rem; color: var(--slate); margin: .25rem 0 0; }
.hero-media .float-card.right { left: auto; right: -1rem; top: 2rem; bottom: auto; display: flex; gap: .8rem; align-items: center; max-width: 250px; }
.hero-media .float-card .ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--wine-800); flex: none; }
@media (min-width: 992px) {
  .hero { padding-bottom: 0; }
  .hero-media { margin-top: 0; padding-left: 2rem; }
  .hero-media .frame { aspect-ratio: 5/4.4; }
  .hero-media .float-card { left: 0; }
}
@media (max-width: 575.98px) { .hero-media .float-card { max-width: 220px; } .hero-media .float-card.right { right: .75rem; } }

/* page-load choreography (home hero only) */
.intro { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.intro.d1 { animation-delay: .1s } .intro.d2 { animation-delay: .22s } .intro.d3 { animation-delay: .34s } .intro.d4 { animation-delay: .48s } .intro.d5 { animation-delay: .62s }
.intro-media { clip-path: inset(0 0 100% 0 round 22px); animation: unveil 1.1s var(--ease) .3s forwards; }
.intro-card { opacity: 0; transform: translateY(14px) scale(.96); animation: pop .7s var(--ease) 1.05s forwards; }
.intro-card.late { animation-delay: 1.25s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- marquee ---------- */
.marquee { --gap: 3rem; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: .95rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: var(--gap); width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item { display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap; font-family: var(--ff-display); font-size: 1.15rem; color: var(--wine-800); }
.marquee .item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
@keyframes scroll { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- service cards ---------- */
.service-card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.75rem 1.6rem 1.5rem; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.service-card:hover::before { transform: scaleX(1); }
.icon-tile { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--wine-800); font-size: 1.45rem; margin-bottom: 1.2rem; transition: background-color .35s, color .35s, transform .35s var(--ease); }
.service-card:hover .icon-tile { background: var(--wine-800); color: #fff; transform: rotate(-4deg); }
.service-card h3 { font-size: 1.32rem; margin-bottom: .5rem; }
.service-card p { color: var(--slate); font-size: .96rem; margin-bottom: 1.1rem; }
.service-card .link-more { font-size: .92rem; }
.service-card.compact { padding: 1.3rem 1.25rem; }
.service-card.compact .icon-tile { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: .8rem; }
.service-card.compact h3 { font-size: 1.12rem; }
.service-card.compact p { font-size: .9rem; margin-bottom: .6rem; }

.group-title { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; }
.group-title h3 { margin: 0; font-size: 1.5rem; }
.group-title span { color: var(--slate); font-size: .95rem; }
.group-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); flex: none; }

/* ---------- why us / values ---------- */
.value-item { display: flex; gap: 1.1rem; }
.value-item .icon-tile { flex: none; margin: 0; background: #fff; border: 1px solid var(--line); }
.value-item h4 { font-size: 1.15rem; margin-bottom: .35rem; }
.value-item p { color: var(--slate); font-size: .96rem; margin: 0; }

.stat { border-left: 2px solid var(--gold-500); padding-left: 1.2rem; }
.stat .num { font-family: var(--ff-display); font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; color: var(--wine-800); font-variant-numeric: tabular-nums; }
.stat .num .suf { color: var(--gold-500); font-size: .6em; }
.stat p { color: var(--slate); margin: .4rem 0 0; font-size: .95rem; max-width: 16rem; }
.bg-navy .stat .num { color: #fff; } .bg-navy .stat p { color: rgba(255,255,255,.72); }

/* photo panel used on about / home about-preview */
.photo-panel { position: relative; }
.photo-panel .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3.2; }
.photo-panel .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-panel::after { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 1px solid var(--gold-500); border-radius: var(--r-lg); z-index: -1; opacity: .7; }
.photo-panel .badge-card { position: absolute; right: -.75rem; bottom: 1.5rem; background: var(--wine-800); color: #fff; border-radius: var(--r-md); padding: .9rem 1.1rem; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: .8rem; }
.photo-panel .badge-card .bi { font-size: 1.6rem; color: var(--gold-500); }
.photo-panel .badge-card small { display: block; opacity: .7; font-size: .78rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .1em; color: var(--gold-500); font-size: 1.1rem; }

/* ---------- process (a real sequence, so numbered) ---------- */
.process { position: relative; }
.process .rail { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); display: none; }
.process .rail span { display: block; height: 100%; width: 0; background: var(--gold-500); transition: width 1.6s var(--ease); }
.process.in-view .rail span { width: 100%; }
.step { position: relative; padding-top: 0; }
.step .n { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--ff-display); font-size: 1.35rem; color: var(--wine-800); margin-bottom: 1.1rem; position: relative; transition: background-color .4s, border-color .4s, color .4s; transition-delay: var(--d, 0s); }
.process.in-view .step .n { background: var(--wine-800); border-color: var(--wine-800); color: #fff; }
.step h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .95rem; margin: 0; }
@media (min-width: 992px) { .process .rail { display: block; } }

/* ---------- testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 2rem 2rem 1.6rem; height: 100%; position: relative; }
.testimonial .quote-mark { font-family: var(--ff-display); font-size: 4.5rem; line-height: .6; color: var(--gold-300); position: absolute; top: 1.4rem; right: 1.6rem; }
.testimonial .stars { color: var(--gold-500); letter-spacing: .1em; margin-bottom: 1rem; font-size: .9rem; }
.testimonial blockquote { font-family: var(--ff-display); font-size: 1.22rem; line-height: 1.5; color: var(--wine-800); margin-bottom: 1.4rem; }
.testimonial .who { display: flex; align-items: center; gap: .8rem; }
.testimonial .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--wine-800); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.testimonial .who strong { display: block; color: var(--ink); font-weight: 600; }
.testimonial .who span { color: var(--slate); font-size: .88rem; }

/* ---------- posts ---------- */
.post-card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--ink); }
.post-card .art { aspect-ratio: 16/9; overflow: hidden; background: var(--mist); }
.post-card .art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.post-card:hover .art img { transform: scale(1.05); }
.post-card .body { padding: 1.4rem 1.5rem 1.5rem; }
.post-card .meta { font-size: .85rem; color: var(--slate); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.post-card p { color: var(--slate); font-size: .95rem; margin-bottom: .9rem; }

.article { max-width: 720px; }
.article p { font-size: 1.1rem; line-height: 1.75; margin-bottom: 1.4rem; }
.article .drop::first-letter { font-family: var(--ff-display); font-size: 3.4em; float: left; line-height: .85; margin: .08em .1em 0 0; color: var(--wine-800); }
.article-hero img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 21/9; object-fit: cover; }

/* ---------- team ---------- */
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.team-card .photo { aspect-ratio: 1/1; background: var(--mist); overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .body { padding: 1.2rem 1.3rem 1.3rem; }
.team-card h3 { font-size: 1.25rem; margin-bottom: .1rem; }
.team-card .quals { color: var(--gold-500); font-weight: 600; font-size: .85rem; }
.team-card .role { color: var(--slate); font-size: .9rem; margin-bottom: .6rem; }
.team-card p { font-size: .92rem; color: var(--slate); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--wine-800); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.2rem); }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(198,161,91,.35); right: -120px; top: -180px; }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(198,161,91,.25); right: 60px; bottom: -160px; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }
.cta-band .phone { font-family: var(--ff-display); font-size: 1.5rem; color: #fff; text-decoration: none; }
.cta-band .phone .bi { color: var(--gold-500); font-size: 1.1rem; margin-right: .4rem; }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--wine-800); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(198,161,91,.35); right: -160px; top: -220px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .9rem; }
.page-hero .lead { color: rgba(255,255,255,.78); max-width: 38rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.4); font-size: .85rem; margin-bottom: 1.4rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero .breadcrumb .active { color: var(--gold-300); }

/* ---------- FAQ accordion ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: var(--r-md) !important; margin-bottom: .75rem; overflow: hidden; background: #fff; }
.faq .accordion-button { font-weight: 600; color: var(--wine-800); padding: 1.1rem 1.3rem; background: #fff; box-shadow: none; font-size: 1.02rem; }
.faq .accordion-button:not(.collapsed) { background: var(--mist); }
.faq .accordion-button::after { background-image: none; content: "\F4FE"; font-family: "bootstrap-icons"; width: auto; height: auto; font-size: 1.1rem; color: var(--gold-500); transition: transform .3s var(--ease); }
.faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.faq .accordion-body { color: var(--slate); padding: 1rem 1.3rem 1.3rem; }

/* ---------- forms ---------- */
.form-control, .form-select { border-radius: var(--r-sm); padding: .8rem 1rem; border-color: var(--line); font-size: .98rem; }
.form-control:focus, .form-select:focus { border-color: var(--red-600); box-shadow: 0 0 0 .2rem rgba(166,30,42,.15); }
.form-label { font-weight: 600; font-size: .92rem; color: var(--wine-800); }
.form-label .req { color: var(--red-600); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-item .icon-tile { flex: none; margin: 0; width: 48px; height: 48px; font-size: 1.25rem; }
.contact-item strong { display: block; color: var(--wine-800); }
.contact-item a { color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--red-600); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--mist); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* service detail sidebar */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.side-card h4 { font-size: 1.15rem; margin-bottom: 1rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; transition: color .2s, padding-left .25s var(--ease); }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover, .side-list a.active { color: var(--wine-800); padding-left: .35rem; font-weight: 600; }
.side-list a .bi { color: var(--gold-500); }
.side-card.navy { background: var(--wine-800); color: rgba(255,255,255,.85); border: 0; }
.side-card.navy h4 { color: #fff; }

.link-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; text-decoration: none; color: var(--ink); height: 100%; transition: transform .3s var(--ease), box-shadow .3s; }
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.link-card h3 { font-size: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; }
.link-card h3 .bi { color: var(--gold-500); font-size: 1rem; }
.link-card p { color: var(--slate); font-size: .93rem; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--wine-950); color: rgba(255,255,255,.72); font-size: .94rem; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .bi-fill { color: var(--gold-500); }
.site-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); margin-right: .4rem; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.site-footer .social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--wine-950); transform: translateY(-2px); }
.site-footer .acca-badge { display: inline-flex; align-items: center; gap: .7rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); padding: .6rem .9rem; color: #fff; }
.site-footer .acca-badge .bi { color: var(--gold-500); font-size: 1.3rem; }
.site-footer .acca-badge small { display: block; opacity: .65; font-size: .75rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .84rem; color: rgba(255,255,255,.55); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: none; }

.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right, .no-js .intro, .no-js .intro-card { opacity: 1; transform: none; }
.no-js .intro-media { clip-path: none; }

/* back to top */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: var(--wine-800); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .25s; z-index: 1020; box-shadow: var(--shadow-lift); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold-500); color: var(--wine-950); }

/* floating call button on small screens */
.call-fab { display: none; }
@media (max-width: 767.98px) {
  .call-fab { display: grid; place-items: center; position: fixed; left: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-500); color: var(--wine-950); z-index: 1020; box-shadow: var(--shadow-lift); text-decoration: none; font-size: 1.2rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro, .intro-media, .intro-card { animation: none; opacity: 1; transform: none; clip-path: none; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; }
  .process .rail span { transition: none; width: 100%; }
  * { transition-duration: .01ms !important; }
}

/* ---------- useful links: category cards + link lists ---------- */
.cat-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.cat-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-card:hover .icon-tile { background: var(--wine-800); color: #fff; transform: rotate(-4deg); }
.cat-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.cat-card p { color: var(--slate); font-size: .93rem; margin-bottom: 1.2rem; }
.cat-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--wine-800); }
.cat-meta .bi { color: var(--gold-500); transition: transform .3s var(--ease); }
.cat-card:hover .cat-meta .bi { transform: translateX(4px); }
.ext-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ext-link { display: flex; align-items: center; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.3rem; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ext-link:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); border-color: var(--gold-300); color: var(--ink); }
.ext-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--wine-800); font-size: 1.2rem; transition: background-color .3s, color .3s; }
.ext-link:hover .ext-ico { background: var(--wine-800); color: #fff; }
.ext-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ext-body strong { font-family: var(--ff-display); font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--wine-800); }
.ext-body span { color: var(--slate); font-size: .92rem; }
.ext-body small { color: var(--gold-500); font-size: .78rem; font-weight: 600; letter-spacing: .03em; overflow-wrap: anywhere; }
.ext-go { flex: none; color: var(--gold-500); transition: transform .3s var(--ease); }
.ext-link:hover .ext-go { transform: translate(2px, -2px); }
.cat-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cat-pager a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--wine-800); transition: border-color .3s, box-shadow .3s; }
.cat-pager a.text-end { align-items: flex-end; }
.cat-pager a:hover { border-color: var(--gold-300); box-shadow: var(--shadow-lift); }
.cat-pager small { color: var(--slate); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.cat-pager a span { font-weight: 600; }
@media (max-width: 575.98px) {
  .ext-link { padding: 1rem; gap: .85rem; }
  .ext-ico { width: 40px; height: 40px; font-size: 1.05rem; }
  .cat-pager { grid-template-columns: 1fr; }
  .cat-pager a.text-end { align-items: flex-start; text-align: left !important; }
}

/* header: keep six menu items + button on one line */
@media (min-width: 992px) {
  .site-header .navbar-nav .nav-link, .site-header .btn { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .navbar-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; font-size: .93rem; }
  .site-header .brand-logo { max-width: 250px; height: auto; }
  .site-header .btn-primary { padding-left: 1rem; padding-right: 1rem; }
}
/* ---------- team: clickable cards + profile pages (team-<first-last>.html) ---------- */
a.team-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
a.team-card:hover { color: var(--ink); }
a.team-card:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.team-card .photo img { transition: transform .6s var(--ease); }
.team-card:hover .photo img { transform: scale(1.04); }
a.team-card .body { flex: 1; display: flex; flex-direction: column; }
a.team-card p { margin-bottom: 1rem; }
a.team-card .link-more { margin-top: auto; align-self: flex-start; font-size: .92rem; }
a.team-card:hover .link-more::after { width: 100%; }
a.team-card:hover .link-more .bi { transform: translateX(4px); }

.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(59,7,9,.35); }
.profile-card .photo { position: relative; aspect-ratio: 1/1; background: var(--mist); overflow: hidden; }
.profile-card .photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-500); }
.profile-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-card .body { padding: 1.5rem; }
.profile-card .role { color: var(--slate); font-size: .95rem; margin-bottom: 1.1rem; }
.profile-facts { list-style: none; padding: 0; margin: 0 0 1.4rem; border-top: 1px solid var(--line); }
.profile-facts li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.45; }
.profile-facts .bi { color: var(--wine-800); font-size: 1.05rem; margin-top: .1rem; flex: none; }
.profile-facts small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; margin-bottom: .1rem; }
.profile-facts strong { color: var(--wine-800); }
.profile-lead { font-family: var(--ff-display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--wine-800); border-left: 3px solid var(--gold-500); padding-left: 1.2rem; margin-bottom: 1.6rem; }
.profile-body p { font-size: 1.05rem; line-height: 1.75; }
.focus-list { display: grid; grid-template-columns: 1fr; column-gap: 2rem; }
.profile-contact { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--mist); border-radius: var(--r-md); padding: 1.4rem 1.5rem; margin-top: 3rem; }
.profile-contact .icon-tile { background: #fff; flex: none; }
.profile-contact p { color: var(--slate); }
.profile-contact a { color: var(--wine-800); font-weight: 600; white-space: nowrap; }
.team-pager { margin-top: 2rem; }
@media (max-width: 575.98px) { .profile-contact { flex-direction: column; gap: .9rem; } }
@media (min-width: 768px) { .focus-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 991.98px) { .profile-card { max-width: 440px; } .profile-card .photo { aspect-ratio: 4/3; } .profile-card .photo img { object-position: center 20%; } }