/* AccounTech – main stylesheet */

/* ---------- Fonts (self-hosted Manrope, variable 400–800) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #3e95fb;
  --blue-600: #1f78e0;
  --blue-700: #155fb8;
  --navy: #29415e;
  --navy-900: #1a2b40;
  --sky: #ecf5ff;
  --sky-2: #d9eaff;
  --ink: #1f2a37;
  --muted: #5b6878;
  --line: #e3ebf5;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(41, 65, 94, .22);
  --shadow-lg: 0 24px 60px -20px rgba(41, 65, 94, .32);
  --container: 1180px;
  --header-h: 78px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw + .6rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.2vw + .7rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky-2); color: var(--navy); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; 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: -100px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tint { background: var(--sky); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(62, 149, 251, .8); }
.btn--primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--sky-2); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); color: var(--navy); transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(41, 65, 94, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 170px; height: auto; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--navy); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background-color .2s, color .2s;
}
.nav-list a:hover { background: var(--sky); color: var(--blue-600); }
.nav-list a[aria-current="page"] { color: var(--blue-600); background: var(--sky); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 800; font-size: .85rem; text-decoration: none; letter-spacing: .04em;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue-600); }
.nav-actions .btn { min-height: 42px; padding: 8px 18px; font-size: .92rem; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px 16px 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav-actions { justify-content: space-between; }
  .nav-actions .btn { flex: 1; min-height: 48px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand img { width: 140px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 120px;
  background: var(--sky-2); transform: rotate(45deg); opacity: .55; pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.hero-tagline { font-size: clamp(1.1rem, 1vw + .8rem, 1.35rem); font-weight: 700; color: var(--blue-600); margin-bottom: 14px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--blue); }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-media img { width: 100%; filter: drop-shadow(0 30px 40px rgba(41, 65, 94, .12)); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--navy); font-weight: 700; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(48px, 6vw, 80px) 0; }
.page-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 90px;
  background: var(--blue); opacity: .28; transform: rotate(45deg); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.9rem, 3vw + .8rem, 3rem); }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 680px; margin: 0; font-size: 1.1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky-2); }
.card-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px;
  background: var(--sky); color: var(--blue);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-600); font-size: .95rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }
.cards--hero { margin-top: -56px; position: relative; z-index: 2; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .cards--hero { margin-top: -36px; } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); }
.split-media--photo img { box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { max-width: 560px; }
}

/* Results panel (decorative chart + stats) */
.results-panel { padding: 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.chart span {
  flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
  transform-origin: bottom; animation: grow 1s cubic-bezier(.2, .7, .2, 1) both;
}
.chart span:nth-child(2) { animation-delay: .08s; } .chart span:nth-child(3) { animation-delay: .16s; }
.chart span:nth-child(4) { animation-delay: .24s; } .chart span:nth-child(5) { animation-delay: .32s; }
.chart span:nth-child(6) { animation-delay: .4s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 0; }
.stats div { padding: 4px 0; }
.stats dt { font-size: clamp(1.6rem, 2vw + .8rem, 2.1rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e95fb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Services page ---------- */
.service-block + .service-block { margin-top: clamp(64px, 8vw, 110px); }
.service-num { display: block; font-size: .85rem; font-weight: 800; letter-spacing: .14em; color: var(--blue-600); margin-bottom: 10px; }
.service-block h2 { margin-bottom: 18px; }
.service-block .checklist { margin-bottom: 0; }
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.service-nav a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
}
.service-nav a:hover { background: #fff; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 72px); border-radius: 28px; background: linear-gradient(120deg, var(--navy) 0%, #2f5a8c 60%, var(--blue) 140%); color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 70px; background: rgba(255, 255, 255, .08); transform: rotate(45deg); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 680px; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 640px; font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-card time { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--muted); font-size: .96rem; }
.post-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-600); font-size: .95rem; }
.post-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .more svg { transform: translateX(4px); }
.posts--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts, .posts--2 { grid-template-columns: 1fr; } }
.section-foot { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255, 255, 255, .8); font-size: .95rem; margin-top: 6px; }
.article-figure { margin: 0 0 40px; }
.article-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article ul { display: grid; gap: 14px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.article ul li { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--sky); border-left: 4px solid var(--blue); }
.article ul li strong { color: var(--navy); }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; text-decoration: none; }
.article-back svg { width: 18px; height: 18px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.3em; margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .5em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-list { display: grid; gap: 16px; list-style: none; margin: 0 0 28px; padding: 0; }
.contact-item {
  display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
a.contact-item:hover { border-color: var(--blue); transform: translateY(-2px); color: inherit; }
.contact-item .card-icon { margin: 0; flex: none; }
.contact-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.contact-value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--navy); word-break: break-word; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-media { order: -1; max-width: 460px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .75); padding-top: 72px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { width: 180px; padding: 12px 16px; background: #fff; border-radius: 14px; margin-bottom: 18px; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 3px; }
.footer-espa { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: center; }
.footer-espa a { display: inline-block; background: #fff; border-radius: 8px; padding: 6px; }
.footer-espa img { width: 729px; max-width: 100%; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.notfound .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--sky-2); margin-bottom: 10px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}
