/* Prestige Accountants Ltd — site styles
   Palette: cream #F6F0E5 | hero #F1E9DA | services #FAF5EC
   Green #1E3B33 / #17352C | Gold #D6AC79 / #C4873A / #BE9256 */

:root {
  --cream: #F6F0E5;
  --hero-bg: #F1E9DA;
  --services-bg: #FAF5EC;
  --green: #1E3B33;
  --green-dark: #17352C;
  --gold: #D6AC79;
  --gold-hover: #BE9256;
  --ink: #33473F;
  --ink-soft: #2A4038;
  --line: #E4D9C4;
  --max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

h1, h2, h3 { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--green-dark); color: #fff;
  padding: 10px 18px; border-radius: 4px; z-index: 100;
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,246,238,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,59,51,0.08);
}
.header-inner {
  display: flex; align-items: center;
  gap: 18px 32px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--green); }
.brand-mark { width: 66px; height: 66px; }
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name-1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; font-size: 30px; letter-spacing: 0.28em;
  color: var(--green); line-height: 1;
}
.brand-name-2 {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.52em;
  color: var(--gold); line-height: 1;
}

.site-nav {
  display: flex; align-items: center; gap: 36px;
  flex: 1; justify-content: flex-end; flex-wrap: wrap;
}
.site-nav a {
  font-size: 15px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--green); padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
.site-nav a:hover { color: var(--green); border-bottom-color: var(--gold); }
.site-nav a.is-active { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px; border-radius: 6px;
}
.nav-toggle-bar {
  display: block; height: 2px; width: 100%;
  background: var(--green); border-radius: 2px;
  margin: 4px 0; transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); }
.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
  padding-top: 56px; padding-bottom: 64px;
}
.hero-copy { max-width: 560px; position: relative; z-index: 1; padding-right: 32px; }
.hero-copy h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.14; color: var(--green-dark); text-wrap: pretty;
}
.divider { display: flex; align-items: center; margin: 28px 0; }
.divider-line { height: 1px; width: 128px; background: var(--gold); }
.divider-diamond { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); margin: 0 2px; }
.lead {
  margin: 0; font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65; color: var(--ink-soft); text-wrap: pretty;
}
.hero-img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, #000 30%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, #000 30%);
}

/* ---------- Services ---------- */
.services {
  background: var(--services-bg);
  border-top: 1px solid rgba(30,59,51,0.06);
  border-bottom: 1px solid rgba(30,59,51,0.06);
  scroll-margin-top: 96px;
}
.services .container { padding-top: 48px; padding-bottom: 56px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  row-gap: 40px; overflow: hidden;
}
.service { padding: 8px 28px; border-left: 1px solid var(--line); margin-left: -1px; }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.service-head h3 {
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--green); text-transform: uppercase;
}
.service .icon { flex: none; }
.service ul {
  margin: 0; padding-left: 16px; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px; color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px; align-items: center;
  padding-top: 56px;
}
.footer-about h2, .footer-contact h2 {
  font-size: 17px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--green); text-transform: uppercase; margin-bottom: 16px;
}
.footer-contact h2 { margin-bottom: 20px; }
.footer-about p { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.creds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.creds-list li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--gold); }
.creds-ring { flex: none; width: 14px; height: 14px; }
.footer-logo { display: flex; justify-content: center; }
.footer-logo img { width: 132px; height: 132px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list a, .contact-static {
  display: flex; align-items: center; gap: 14px;
  font-size: 16px; color: var(--green);
}
.contact-list a { transition: color 160ms ease; }
.contact-list a:hover { color: var(--gold-hover); }
.contact-list .icon { flex: none; color: var(--green); }

.footer-base {
  border-top: 1px solid rgba(30,59,51,0.12);
  margin-top: 40px; padding: 22px 0 28px;
  text-align: center; font-size: 14px; color: #5A6B63;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-base .credit { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream);
    border-bottom: 1px solid rgba(30,59,51,0.12);
    padding: 8px 0; box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    display: none;
  }
  .site-header { position: sticky; }
  .header-inner { position: relative; flex-wrap: nowrap; }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 24px; border-bottom: 1px solid rgba(30,59,51,0.06);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.is-active { border-bottom-color: rgba(30,59,51,0.06); background: rgba(185,133,62,0.08); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero-inner { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .hero-copy { padding-right: 0; }
  .hero-img { -webkit-mask-image: none; mask-image: none; border-radius: 6px; }
}

@media (max-width: 560px) {
  .brand-name-1 { font-size: 24px; letter-spacing: 0.22em; }
  .brand-name-2 { font-size: 11px; letter-spacing: 0.42em; }
  .brand-mark { width: 54px; height: 54px; }
  .footer-grid { text-align: center; }
  .contact-list a, .contact-static { justify-content: center; }
  .creds-list li { justify-content: center; }
}

/* ---------- Sub-pages (Insights) ---------- */
.page-head { background: var(--hero-bg); border-bottom: 1px solid rgba(30,59,51,0.06); }
.page-head .container { padding-top: 56px; padding-bottom: 52px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.14; color: var(--green-dark); text-wrap: pretty;
}
.page-intro {
  margin: 18px 0 0; max-width: 640px; font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65; color: var(--ink-soft); text-wrap: pretty;
}
.page-meta { margin: 16px 0 0; font-size: 14.5px; letter-spacing: 0.02em; color: #5A6B63; }

/* Insights landing list */
.insights-list { padding-top: 44px; padding-bottom: 64px; }
.insights-list .inner { max-width: 820px; }
.insight-card { padding: 30px 0; border-top: 1px solid var(--line); }
.insight-card:first-child { border-top: 0; padding-top: 6px; }
.insight-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--green-dark); text-wrap: pretty;
}
.insight-card p { margin: 12px 0 18px; font-size: 16px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.read-more:hover { color: var(--gold-hover); }
.read-more .arrow { transition: transform 160ms ease; }
.read-more:hover .arrow { transform: translateX(3px); }

/* Article */
.article { padding-top: 44px; padding-bottom: 24px; }
.article .inner { max-width: 720px; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0 0 20px; text-wrap: pretty; }
.article-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(23px, 2.4vw, 30px); line-height: 1.25; color: var(--green-dark); margin: 34px 0 14px;
}
.summary { background: var(--services-bg); border: 1px solid var(--line); border-radius: 6px; padding: 24px 28px; margin: 0 0 30px; }
.summary h2 {
  margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); font-family: 'Poppins', sans-serif;
}
.summary ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.summary li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.summary li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* Related insights + legal */
.article-foot { padding-bottom: 64px; }
.article-foot .inner { max-width: 720px; }
.related { border-top: 1px solid var(--line); padding-top: 28px; }
.related h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.related a { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; color: var(--gold); }
.related a:hover { color: var(--gold-hover); }
.related .arrow { transition: transform 160ms ease; }
.related a:hover .arrow { transform: translateX(3px); }
.legal { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.legal p { font-size: 13px; line-height: 1.7; color: #5A6B63; margin: 0 0 14px; }
.legal p:last-child { margin-bottom: 0; }

.article-figure { margin: 30px 0; }
.article-figure a { display: block; cursor: zoom-in; }
.article-figure img { display: block; width: 100%; max-width: 100%; height: auto !important; aspect-ratio: 1100 / 1240; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.article-figure.figure-tall img { aspect-ratio: 1100 / 1694; }
.article-figure figcaption { margin-top: 10px; font-size: 13px; letter-spacing: 0.02em; color: #5A6B63; text-align: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(23,53,44,0.92); }
.lightbox.is-open { display: flex; }
.lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 20px; z-index: 10; width: 52px; height: 52px; border: 0; border-radius: 9999px; background: rgba(255,255,255,0.16); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.26); }
.lightbox-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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