/*
Theme Name: RCAS & CO
Theme URI: https://myrcas.com
Author: RCAS & CO.
Description: An elegant, ledger-inspired sans-serif theme for RCAS & CO., Chartered Accountants.
Version: 3.0
Text Domain: rcas-co
*/

:root {
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --forest: #FF1900;
  --forest-deep: #C81400;
  --forest-tint: #FFEAE5;
  --ivory: #FFFFFF;
  --parchment: #F2F2F2;
  --line: #E5E5E5;
  --line-dark: rgba(255,255,255,0.14);
  --text: #222222;
  --muted: #6B6B6B;
  --white: #FFFFFF;
  --font-heading: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  margin: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.tracked { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* Header */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 26px 40px; flex-wrap: wrap; }
.logo-block .brand { font-family: var(--font-heading); font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }
.logo-block .tagline { font-size: 10px; letter-spacing: 0.18em; color: var(--forest); text-transform: uppercase; margin-top: 4px; font-weight: 700; }
nav.main-nav ul { display: flex; list-style: none; align-items: center; font-size: 12.5px; color: var(--ink); margin: 0; padding: 0; flex-wrap: wrap; }
nav.main-nav ul li { position: relative; margin-left: 36px; }
nav.main-nav ul li:first-child { margin-left: 0; }
nav.main-nav ul li > a { padding: 6px 0; border-bottom: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
nav.main-nav ul li > a:hover { border-bottom-color: var(--forest); color: var(--forest); }
nav.main-nav ul li ul.sub-menu {
  display: none; position: absolute; top: 34px; left: -10px; background: var(--white);
  border: 1px solid var(--line); min-width: 250px; padding: 8px 0; z-index: 20;
}
nav.main-nav ul li:hover > ul.sub-menu { display: block; }
nav.main-nav ul li ul.sub-menu li { margin-left: 0; }
nav.main-nav ul li ul.sub-menu a { display: block; padding: 12px 20px; font-size: 12px; color: var(--text); border-bottom: none; text-transform: none; letter-spacing: 0; font-weight: 500; }
nav.main-nav ul li ul.sub-menu a:hover { background: var(--forest-tint); color: var(--forest-deep); }
.cta-btn {
  background: var(--ink); color: var(--white) !important; padding: 14px 26px; border-radius: 0;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: inline-block; border: 1px solid var(--ink);
}
.cta-btn:hover { background: var(--ink-soft); }
.cta-btn.accent { background: var(--forest); border-color: var(--forest); color: var(--white) !important; }
.cta-btn.accent:hover { background: var(--forest-deep); }

/* Hero — two column, ledger panel, subtle texture */
.hero {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 68px);
  color: var(--white);
  padding: 120px 40px;
}
.hero-grid { display: flex; align-items: center; flex-wrap: wrap; }
.hero-grid > div { width: 54%; }
.hero-grid > div:last-child { width: 38%; margin-left: 8%; }
.hero .eyebrow { color: #9DBBAC; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 22px; font-weight: 700; }
.hero h1 { color: var(--white); font-size: 46px; margin: 0 0 24px; line-height: 1.18; font-weight: 700; }
.hero p { color: #B9C0BA; margin: 0 0 36px; font-size: 16.5px; max-width: 470px; line-height: 1.75; }
.ledger-panel { border: 1px solid var(--line-dark); }
.ledger-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line-dark); }
.ledger-row:last-child { border-bottom: none; }
.ledger-row .num { font-family: var(--font-heading); font-size: 25px; color: var(--white); font-weight: 800; font-variant-numeric: tabular-nums; }
.ledger-row .lbl { font-size: 12px; color: #9DA69E; max-width: 190px; text-align: right; letter-spacing: 0.02em; }

/* Section titles */
.section-eyebrow { text-align: left; color: var(--forest); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.section-title h2 { font-size: 32px; margin: 0 0 16px; }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 0 50px; font-size: 16px; line-height: 1.75; }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: 36px; margin-bottom: 12px; }

/* Intro */
.intro { padding: 120px 40px; background: var(--ivory); }
.intro-grid { display: flex; align-items: flex-start; flex-wrap: wrap; }
.intro-grid > div { width: 46%; }
.intro-grid > div:first-child { margin-right: 8%; }
.intro-grid h2 { font-size: 30px; margin-bottom: 20px; }
.intro-grid p { margin-bottom: 18px; color: var(--text); font-size: 16px; }
.intro-list { list-style: none; margin-top: 0; padding: 0; border-top: 1px solid var(--line); }
.intro-list li { padding: 16px 4px; font-size: 14.5px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; letter-spacing: 0.01em; }
.intro-panel { background: var(--parchment); padding: 8px; }

/* Services — ledger rows, not cards */
.services { background: var(--ivory); padding: 120px 40px; }
.service-row { display: flex; align-items: flex-start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.service-row:first-of-type { border-top: 1px solid var(--line); }
.service-num { font-family: var(--font-heading); font-size: 13px; color: var(--forest); font-weight: 800; width: 80px; flex-shrink: 0; padding-top: 5px; letter-spacing: 0.05em; }
.service-body { flex: 1; }
.service-body h3 { font-size: 20px; margin: 0 0 10px; }
.service-body p { font-size: 15.5px; color: var(--muted); margin: 0 0 14px; max-width: 640px; line-height: 1.75; }
.service-body .read-more { font-size: 11.5px; color: var(--forest-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.service-row:hover .service-body h3 { color: var(--forest-deep); }

/* Sub-services (individual service pages) */
.subservices { padding: 90px 40px; }
.subservices-grid { display: flex; flex-wrap: wrap; }
.subservice-card { width: 47%; margin-right: 6%; margin-bottom: 46px; border-top: 2px solid var(--forest); padding-top: 18px; }
.subservice-card:nth-child(2n) { margin-right: 0; }
.subservice-card h3 { font-size: 18px; margin-bottom: 12px; }
.subservice-card p { font-size: 15.5px; color: var(--text); }

/* Why choose us */
.why { padding: 120px 40px; background: var(--parchment); }
.why-grid { display: flex; flex-wrap: wrap; }
.why-item { width: 22%; margin-right: 4%; }
.why-item:nth-child(4n) { margin-right: 0; }
.why-item .why-icon { width: 40px; height: 40px; margin-bottom: 22px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--ink); font-family: var(--font-heading); font-size: 15px; font-weight: 800; }
.why-item h3 { font-size: 16px; margin-bottom: 10px; }
.why-item p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* Team */
.team { padding: 120px 40px; background: var(--ivory); }
.team-grid { display: flex; flex-wrap: wrap; }
.team-card { width: 30.66%; margin-right: 4%; margin-bottom: 40px; border-top: 2px solid var(--ink); padding-top: 24px; }
.team-card:nth-child(3n) { margin-right: 0; }
.team-card .avatar { width: 44px; height: 44px; background: var(--ink); color: var(--forest-tint); font-family: var(--font-heading); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.team-card h3 { font-size: 16px; margin-bottom: 3px; }
.team-card .qual { font-size: 11px; color: var(--forest-deep); margin-bottom: 14px; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase; }
.team-card p.bio { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* Clients */
.clients { background: var(--parchment); padding: 100px 40px; }
.clients-strip { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.clients-strip img { height: 50px; max-width: 140px; object-fit: contain; filter: grayscale(100%); opacity: 0.55; transition: filter .2s, opacity .2s; margin: 20px 34px 20px 0; }
.clients-strip img:hover { filter: grayscale(0%); opacity: 1; }

/* CTA band */
.cta-band-section { background: var(--ink); padding: 76px 40px; }
.cta-band { color: var(--white); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.cta-band h2 { color: var(--white); font-size: 25px; margin: 0; max-width: 560px; font-weight: 700; }

/* Contact */
.contact-section { padding: 100px 40px; }
.contact-grid { display: flex; flex-wrap: wrap; }
.contact-grid > div { width: 47%; margin-right: 6%; }
.contact-grid > div:last-child { margin-right: 0; }
.contact-info-row { margin-bottom: 22px; font-size: 15.5px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-info-row strong { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-deep); margin-bottom: 8px; font-weight: 700; }
.contact-info-row a { color: var(--ink); font-weight: 500; }
.locations-list { list-style: none; padding: 0; }
.locations-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Generic page template */
.page-banner { background: var(--ink); color: var(--white); padding: 64px 40px; }
.page-banner h1 { color: var(--white); font-size: 30px; margin: 0; }
.page-content-wrap { padding: 90px 40px; max-width: 800px; margin: 0 auto; }
.page-content-wrap h2 { font-size: 24px; margin: 36px 0 16px; }
.page-content-wrap p { font-size: 16px; margin-bottom: 18px; }
.page-content-wrap ul { padding-left: 20px; margin-bottom: 22px; }
.page-content-wrap li { margin-bottom: 9px; font-size: 15.5px; }

/* Footer */
.site-footer { background: var(--ink); color: #9CA79E; padding: 76px 40px 30px; font-size: 14px; border-top: 2px solid var(--forest); }
.footer-grid { display: flex; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-grid > div { width: 22%; margin-right: 4%; }
.footer-grid > div:first-child { width: 32%; }
.footer-grid > div:last-child { margin-right: 0; }
.footer-grid h4 { color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 12.5px; margin-bottom: 20px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-grid p, .footer-grid li { color: #9CA79E; font-size: 13.5px; margin-bottom: 12px; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-brand { font-family: var(--font-heading); color: var(--white); font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.footer-bottom { text-align: center; padding-top: 24px; font-size: 11.5px; color: #62695F; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .hero-grid > div, .hero-grid > div:last-child { width: 100%; margin-left: 0; margin-bottom: 34px; }
  .intro-grid { flex-direction: column; }
  .intro-grid > div { width: 100%; margin-right: 0; margin-bottom: 34px; }
  .subservice-card, .team-card { width: 100%; margin-right: 0; }
  .why-item { width: 47%; margin-right: 0; margin-bottom: 28px; }
  .footer-grid > div, .contact-grid > div { width: 100%; margin-right: 0; margin-bottom: 28px; }
  .service-row { flex-direction: column; }
  .service-num { margin-bottom: 10px; }
  nav.main-nav { display: none; }
}

/* Motion: scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2,0.6,0.2,1), transform 0.7s cubic-bezier(0.2,0.6,0.2,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }

/* Motion: hover micro-interactions */
.service-row, .team-card, .subservice-card, .why-item { transition: transform 0.25s ease; }
.service-row:hover { transform: translateX(6px); }
.team-card:hover, .subservice-card:hover { transform: translateY(-3px); }
.cta-btn { transition: background-color 0.2s ease, transform 0.15s ease; }
.cta-btn:hover { transform: translateY(-2px); }
.clients-strip img { transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease; }
.clients-strip img:hover { transform: translateY(-3px); }
.ledger-row .num { transition: color 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .service-row:hover, .team-card:hover, .subservice-card:hover, .cta-btn:hover, .clients-strip img:hover { transform: none !important; }
}
