/*
Theme Name: Haris & Co. Accountants
Theme URI: https://harisandco.co.uk
Author: Haris & Co.
Description: A cinematic, premium corporate theme for accounting, audit, tax and advisory firms. Every element — header, logo, hero, sections, colours, fonts and footer — is editable from Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harisco
Tags: business, corporate, one-column, custom-logo, custom-menu, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, full-width-template
*/

/* ---------- Tokens (overridden by the Customizer) ---------- */
:root {
  --hc-background: #0d0f12;
  --hc-surface: #16191f;
  --hc-foreground: #f4f6f8;
  --hc-muted: #a7b0bb;
  --hc-primary: #39c6d6;
  --hc-navy: #131c2e;
  --hc-border: #252b34;
  --hc-font-display: "Instrument Serif", Georgia, serif;
  --hc-font-sans: "Inter Tight", Inter, system-ui, sans-serif;
  --hc-max: 1400px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--hc-background);
  color: var(--hc-foreground);
  font-family: var(--hc-font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hc-primary); }
h1, h2, h3 { font-family: var(--hc-font-display); font-weight: 400; letter-spacing: -0.015em; margin: 0 0 0.4em; }
p { margin: 0 0 1rem; }
.hc-skip { position: absolute; left: -9999px; }
.hc-skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--hc-primary); color: #06121a; padding: .6rem 1rem; border-radius: 999px; }

.hc-container { width: 100%; max-width: var(--hc-max); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .hc-container { padding: 0 2.5rem; } }
.hc-narrow { max-width: 860px; }
.hc-center { text-align: center; }
.hc-center-actions { justify-content: center; }
.hc-mt { margin-top: 3rem; }
.hc-muted { color: var(--hc-muted); }
.hc-lead { max-width: 62ch; font-size: 1.05rem; }
.hc-h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; }
.hc-h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.08; }
.hc-h3 { font-size: 1.2rem; line-height: 1.25; }
.hc-eyebrow { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--hc-primary); margin: 0 0 1rem; }
.hc-disclaimer { margin-top: 2rem; font-size: 0.78rem; color: var(--hc-muted); opacity: .8; }

.hc-section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.hc-section--navy { background: var(--hc-navy); }
.hc-section--head { padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: 2rem; }

.hc-grid { display: grid; gap: 1.25rem; }
.hc-grid--2 { grid-template-columns: 1fr; }
.hc-grid--3 { grid-template-columns: 1fr; }
.hc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .hc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .hc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hc-split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .hc-split { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; } }

/* ---------- Buttons ---------- */
.hc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  transition: transform .3s cubic-bezier(.16,1,.3,1), background-color .3s, color .3s, border-color .3s;
  border: 1px solid transparent; cursor: pointer;
}
.hc-btn:hover { transform: translateY(-2px); }
.hc-btn--solid { background: var(--hc-primary); color: #06121a; }
.hc-btn--solid:hover { color: #06121a; filter: brightness(1.08); }
.hc-btn--ghost { border-color: color-mix(in srgb, var(--hc-primary) 60%, transparent); color: var(--hc-primary); }
.hc-btn--ghost:hover { background: var(--hc-primary); color: #06121a; }

/* ---------- Nav ---------- */
.hc-nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color .5s, border-color .5s; border-bottom: 1px solid transparent; }
.hc-nav.is-scrolled { background: color-mix(in srgb, var(--hc-background) 78%, transparent); backdrop-filter: blur(18px); border-bottom-color: var(--hc-border); }
.hc-nav__inner { max-width: var(--hc-max); margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 1024px) { .hc-nav__inner { padding: 1rem 2.5rem; } }
.hc-brand__text { display: block; line-height: 1.05; }
.hc-brand__top { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.3em; }
.hc-brand__bottom { display: block; font-size: 0.6rem; letter-spacing: 0.42em; color: var(--hc-muted); }
.custom-logo { max-height: 46px; width: auto; }
.hc-nav__menu { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1180px) { .hc-nav__menu { display: flex; } }
.hc-menu { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.hc-menu a { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--hc-muted); }
.hc-menu .current-menu-item > a, .hc-menu a:hover { color: var(--hc-foreground); }
.hc-menu .sub-menu { display: none; position: absolute; background: var(--hc-surface); border: 1px solid var(--hc-border); padding: .75rem 1rem; list-style: none; border-radius: 8px; }
.hc-menu li { position: relative; }
.hc-menu li:hover > .sub-menu { display: block; }

.hc-burger { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; }
@media (min-width: 1180px) { .hc-burger { display: none; } }
.hc-burger span { display: block; width: 24px; height: 1px; background: var(--hc-foreground); transition: transform .3s; }
.hc-burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hc-burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hc-mobile { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .4s; background: color-mix(in srgb, var(--hc-background) 95%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--hc-border); }
.hc-mobile.is-open { max-height: 640px; opacity: 1; }
.hc-mobile__menu { list-style: none; margin: 0; padding: .5rem 1.5rem; }
.hc-mobile__menu a { display: block; padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--hc-border) 70%, transparent); font-family: var(--hc-font-display); font-size: 1.25rem; }
.hc-mobile__cta { margin: 1.25rem 1.5rem 1.75rem; }

/* ---------- Hero ---------- */
.hc-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hc-hero__media { position: absolute; inset: -6%; background-size: cover; background-position: center; transform: scale(1.08); will-change: transform; }
.hc-hero__veil { position: absolute; inset: 0; background:
  linear-gradient(to top, var(--hc-background) 4%, color-mix(in srgb, var(--hc-background) 55%, transparent) 55%, color-mix(in srgb, var(--hc-background) 82%, transparent) 100%); }
.hc-hero__inner { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 4rem; }
.hc-hero__title { font-size: clamp(2.6rem, 7.5vw, 6rem); line-height: .98; margin-bottom: 1.5rem; }
.hc-hero__title span { display: block; }
.hc-hero__title-accent { color: var(--hc-primary); }
.hc-hero__sub { max-width: 60ch; color: var(--hc-muted); font-size: 1.02rem; }
.hc-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 2.5rem; }
.hc-hero__trust { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hc-muted); }

/* ---------- Cards & sections ---------- */
.hc-card { position: relative; padding: 1.75rem; border: 1px solid var(--hc-border); border-radius: 14px; background: color-mix(in srgb, var(--hc-surface) 85%, transparent); transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s; }
.hc-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--hc-primary) 45%, transparent); }
.hc-card--glass { background: color-mix(in srgb, var(--hc-surface) 55%, transparent); backdrop-filter: blur(18px); }
.hc-card__index { font-size: .7rem; letter-spacing: .3em; color: var(--hc-primary); }
.hc-card__media { display: block; margin: -1.75rem -1.75rem 1.25rem; overflow: hidden; border-radius: 14px 14px 0 0; }

.hc-metric__value { font-family: var(--hc-font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; margin: 0 0 .5rem; }
.hc-metric__label { font-size: .8rem; color: var(--hc-muted); margin: 0; }
.hc-metrics { border-top: 1px solid var(--hc-border); border-bottom: 1px solid var(--hc-border); padding: 3.5rem 0; }

.hc-chain { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; margin: 3rem 0 0; }
.hc-chain li { padding: .55rem 1.1rem; border: 1px solid var(--hc-border); border-radius: 999px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hc-muted); }

.hc-step__no { font-family: var(--hc-font-display); font-size: 2.4rem; color: color-mix(in srgb, var(--hc-primary) 75%, transparent); display: block; }
.hc-process .hc-step { border-top: 1px solid var(--hc-border); padding-top: 1.25rem; }

.hc-founder__media img { border-radius: 16px; border: 1px solid var(--hc-border); width: 100%; object-fit: cover; }
.hc-founder__name { font-family: var(--hc-font-display); font-size: 2rem; margin: 1.5rem 0 .25rem; }
@media (min-width: 900px) { .hc-split--media { grid-template-columns: 0.85fr 1fr; } }

.hc-quote__name { display: block; font-weight: 600; margin-top: 1rem; }
blockquote { margin: 0; font-family: var(--hc-font-display); font-size: 1.15rem; line-height: 1.45; }

/* ---------- Dashboard ---------- */
.hc-terminal { margin-top: 2.5rem; border: 1px solid var(--hc-border); border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--hc-surface) 70%, transparent); backdrop-filter: blur(18px); }
.hc-terminal__bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--hc-border); }
.hc-terminal__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--hc-border); }
.hc-terminal__bar p { margin: 0 0 0 .75rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--hc-muted); }
.hc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .hc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hc-tile { padding: 1.25rem; border-right: 1px solid var(--hc-border); border-bottom: 1px solid var(--hc-border); }
.hc-tile__label { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hc-muted); margin: 0 0 .5rem; }
.hc-tile__value { font-family: var(--hc-font-display); font-size: 1.6rem; margin: 0; }
.hc-tile__delta { font-size: .74rem; color: var(--hc-primary); margin: .25rem 0 0; }
.hc-chart { width: 100%; height: 140px; display: block; }
.hc-chart__line { fill: none; stroke: var(--hc-primary); stroke-width: 2; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: hc-stream 2.6s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes hc-stream { to { stroke-dashoffset: 0; } }

/* ---------- FAQ ---------- */
.hc-faq__item { border-bottom: 1px solid var(--hc-border); }
.hc-faq__q { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: none; border: 0; color: inherit; text-align: left; padding: 1.15rem 0; font-size: 1rem; font-family: inherit; cursor: pointer; }
.hc-faq__q i { width: 12px; height: 12px; position: relative; flex: none; }
.hc-faq__q i::before, .hc-faq__q i::after { content: ""; position: absolute; background: var(--hc-primary); transition: transform .3s; }
.hc-faq__q i::before { inset: 5px 0 auto 0; height: 1px; }
.hc-faq__q i::after { inset: 0 5px 0 auto; width: 1px; }
.hc-faq__item.is-open .hc-faq__q i::after { transform: rotate(90deg); }
.hc-faq__a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.hc-faq__item.is-open .hc-faq__a { max-height: 400px; }
.hc-faq__a p { color: var(--hc-muted); padding-bottom: 1.15rem; margin: 0; }

/* ---------- Forms ---------- */
.hc-form label { display: block; margin-bottom: 1rem; }
.hc-form label span { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hc-muted); margin-bottom: .5rem; }
.hc-form input, .hc-form select, .hc-form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 10px;
  background: color-mix(in srgb, var(--hc-background) 70%, transparent);
  border: 1px solid var(--hc-border); color: var(--hc-foreground); font: inherit;
}
.hc-form input:focus, .hc-form select:focus, .hc-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--hc-primary) 60%, transparent); outline-offset: 1px; }
.hc-hp { position: absolute; left: -9999px; }
.hc-notice { padding: .85rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--hc-primary) 16%, transparent); font-size: .9rem; }
.hc-notice--error { background: color-mix(in srgb, #ff6b6b 18%, transparent); }
.hc-contact__list { list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--hc-muted); }
.hc-contact__list li { padding: .35rem 0; }

/* ---------- Footer ---------- */
.hc-footer { border-top: 1px solid var(--hc-border); background: color-mix(in srgb, var(--hc-background) 88%, #000); padding: 4.5rem 0 2.5rem; }
.hc-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .hc-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.hc-footer__name { font-size: .82rem; font-weight: 600; letter-spacing: .28em; margin: 0 0 .6rem; }
.hc-footer__line, .hc-footer__contact { color: var(--hc-muted); font-size: .9rem; }
.hc-footer__tagline { font-family: var(--hc-font-display); font-size: 1.4rem; margin-top: 1.75rem; }
.hc-footer__menu, .hc-footer__contact, .hc-footer__legal { list-style: none; padding: 0; margin: 0; }
.hc-footer__menu a { display: block; padding: .35rem 0; color: var(--hc-muted); font-size: .9rem; }
.hc-footer__contact li { padding: .3rem 0; }
.hc-footer__social { display: flex; gap: 1.25rem; margin-top: 1.25rem; font-size: .85rem; color: var(--hc-muted); }
.hc-footer__bar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--hc-border); margin-top: 3.5rem; padding-top: 1.75rem; font-size: .75rem; color: var(--hc-muted); }
.hc-footer__legal { display: flex; gap: 1rem; }
.hc-widget { margin-top: 1.5rem; font-size: .9rem; color: var(--hc-muted); }

/* ---------- Content / prose ---------- */
.hc-prose { color: var(--hc-muted); }
.hc-prose h1, .hc-prose h2, .hc-prose h3 { color: var(--hc-foreground); }
.hc-prose a { color: var(--hc-primary); text-decoration: underline; }
.hc-prose img { border-radius: 12px; margin: 1.5rem 0; }
.hc-pagination { margin-top: 3rem; }
.hc-pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--hc-border); border-radius: 8px; margin-right: .4rem; display: inline-block; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; }

/* ---------- Reveal ---------- */
.hc-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.hc-reveal[data-visible="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hc-reveal { opacity: 1; transform: none; }
}
