/* Reeds Advisory Services Limited - site styles
   Palette taken from the company logo (assets/img/reeds-advisory-logo.png):
   lime #A3C900, black, greys #797979 / #333333 */

:root {
  --lime: #A3C900;
  --lime-dark: #5C7300;      /* lime for text on white (readable) */
  --lime-soft: #F1F7D6;
  --ink: #1A1A1A;
  --text: #333333;
  --muted: #5F5F5F;
  --line: #E4E6DF;
  --bg: #FFFFFF;
  --bg-alt: #F6F7F2;
  --dark: #111111;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --max: 1160px;
  --surface: #FFFFFF;                      /* cards, form fields, dropdowns */
  --header-bg: rgba(255, 255, 255, 0.96);
  --lime-text: #5C7300;                    /* lime for text, readable on light */
  color-scheme: light;
}

/* Dark theme: applied when the visitor chooses it (defaults to light) */
:root[data-theme="dark"] {
  --lime: #A3C900;
  --lime-text: #B9DF1C;                    /* lime for text, readable on dark */
  --lime-soft: #262E0E;
  --ink: #F2F2F2;
  --text: #CFCFCF;
  --muted: #A5A5A5;
  --line: #2A2C30;
  --bg: #0E0F11;
  --bg-alt: #16181B;
  --dark: #060607;
  --surface: #1A1C20;
  --header-bg: rgba(14, 15, 17, 0.92);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime-text); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-text);
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  font-size: 0.98rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #b6dc0a; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lime-soft); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 16px;
}
.brand img { height: 64px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.55rem 0.9rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--lime-soft); color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Theme ---------- */
body { transition: background-color .3s ease, color .3s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(163, 201, 0, 0.22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(163, 201, 0, 0.15), transparent 60%),
    var(--bg);
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--lime-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-visual {
  position: relative; border-radius: 28px; background: var(--dark); color: #fff;
  padding: 36px; box-shadow: var(--shadow); min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-visual::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: var(--lime); opacity: .9; z-index: 0;
}
.hero-visual > * { position: relative; z-index: 1; }
.hero-visual img { width: 220px; height: auto; }
.hero-visual p { color: #cfcfcf; font-size: 0.95rem; margin: 0; }
.hero-visual .quote { font-size: 1.15rem; color: #fff; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 2.1rem; color: var(--ink); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--lime); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--lime-soft);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--ink);
  font-weight: 800;
}
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Split / feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--lime);
  box-shadow: inset 0 0 0 4px #fff;
}
.panel {
  background: var(--dark); color: #e9e9e9; border-radius: 22px; padding: 40px;
  box-shadow: var(--shadow);
}
.panel h3, .panel h2 { color: #fff; }
.panel p { color: #cfcfcf; }

/* ---------- Affiliations ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 0.9rem; color: var(--ink);
}

/* ---------- Services accordion (native details) ---------- */
.accordion details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.accordion summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--lime-text); line-height: 1;
  transition: transform .25s ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 24px 24px; }
.accordion .acc-body ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.accordion .acc-body li { margin-bottom: 6px; }
.accordion .acc-body p { color: var(--muted); }

/* ---------- Team ---------- */
.team-card { display: flex; flex-direction: column; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.role { color: var(--lime-text); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.team-card details { margin-top: 10px; }
.team-card summary { cursor: pointer; color: var(--lime-text); font-weight: 600; }
.team-card details p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

/* ---------- Clients ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: center; }
.toolbar input, .toolbar select {
  font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid #cfd3c4; background: var(--surface); color: var(--ink);
}
.toolbar input { flex: 1 1 260px; }
.client-count { color: var(--muted); font-size: 0.92rem; margin-left: auto; }
.client-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.client-table th, .client-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.client-table th { background: var(--dark); color: #fff; font-size: 0.9rem; letter-spacing: 0.02em; }
.client-table td { font-size: 0.95rem; }
.client-table tr:hover td { background: var(--lime-soft); }
.tag { display: inline-block; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 32px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.info-card { background: var(--dark); color: #e6e6e6; border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.info-card h3 { color: #fff; }
.info-card a { color: var(--lime); }
.info-card .row { margin-bottom: 18px; }
.info-card .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em; color: #9b9b9b; }
form.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd3c4; background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus {
  outline: 3px solid var(--lime); outline-offset: 1px; border-color: var(--lime-dark);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--lime); color: var(--ink); border-radius: 26px; padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: var(--ink); margin: 0; }
.cta-band p { margin: 6px 0 0; color: #2a2a2a; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  border-radius: 50%; background: var(--lime); opacity: .18;
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.1rem); position: relative; }
.page-hero p { color: #d2d2d2; max-width: 680px; position: relative; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--lime); position: relative; }
.breadcrumb { font-size: 0.88rem; color: #bdbdbd; margin-bottom: 14px; position: relative; }
.breadcrumb a { color: #e5e5e5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #bdbdbd; padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: #d7d7d7; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid #2a2a2a; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 0.86rem; color: #8f8f8f;
}

/* ---------- Fluid scroll effects ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--lime), #D8F25A);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.fluid {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.fluid .blob {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #E4F77A 0%, var(--lime) 48%, rgba(163, 201, 0, 0) 72%);
  filter: blur(14px) hue-rotate(var(--hue, 0deg));
  opacity: 0.55; will-change: transform, border-radius, filter;
}
.fluid .b1 { top: -180px; right: -150px; }
.fluid .b2 { bottom: -240px; left: -200px; width: 620px; height: 620px; opacity: 0.32; }
.fluid .b3 { top: 35%; left: 42%; width: 300px; height: 300px; opacity: 0.22; }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.cta-band { position: relative; overflow: hidden; }
.cta-band > * { position: relative; z-index: 1; }
.hero, .page-hero { overflow: hidden; }

/* ---------- Photography ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img {
  width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo { margin: 0; }
.photo img {
  width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow);
}
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Accessibility helpers ---------- */
.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;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .accordion .acc-body ul { columns: 1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden; opacity: 0;
  }
  .nav-links.open { transform: none; visibility: visible; opacity: 1; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery, .photo-pair { grid-template-columns: 1fr; }
  .gallery img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; padding: 26px; }
  .panel, form.contact-form, .info-card { padding: 24px; }
  .client-count { margin-left: 0; width: 100%; }
  .client-table th:nth-child(3), .client-table td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
