/* ==========================================================================
   Bilanz Partners AG - main stylesheet
   Layout: mobile-first, breakpoints 768px / 992px / 1200px
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #39b54a;
  --green-dark: #20892e;
  --green-light: #3ab54a;
  --text: #000;
  --heading: #292929;
  --muted: #b0afaf;
  --bg: #f6f5f5;
  --grey: #e6e6e6;
  --grey-light: #f4f5f4;
  --pill: #d7d7d7;
  --pill-border: #bfbfc1;
  --dark: #383838;
  --darker: #28282a;
  --footer-text: #cccbcb;
  --line-dark: #6e6e6f;
  --header-h: 100px;
  --container: 1170px;
  --radius: 5px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--green-dark); }
a:hover, a:focus { color: var(--green); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 16px; line-height: 1.2; font-weight: 500; color: var(--heading); }
h1 { font-size: 36px; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 20px; }
h5 { font-size: 18px; margin-top: 8px; }

p { margin: 0 0 1.75em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid #ccc; margin: 20px 0; }

ul, ol { margin: 0 0 1.5em; padding-left: 1.4em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 8px 12px; }
.skip-link:focus { left: 10px; top: 10px; }

.green { color: var(--green); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 14px 35px;
  font-size: 18px;
  line-height: 1;
  color: #000;
  background: var(--green-light);
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.button:hover, .button:focus { background: var(--dark); color: #fff; }
.button-sm { padding: 8px 17px; font-size: 15px; font-weight: 500; color: #fff; }
.button.sm { padding: 10px 18px; font-size: 14px; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: block; flex-shrink: 0; }
.logo img { display: block; width: 194px; height: auto; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.header-actions .lang {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: #e2e2e2;
  border-radius: 4px;
  text-decoration: none;
}
.header-actions .lang:hover { background: var(--dark); color: #fff; }
.header-actions .phone { font-weight: 700; color: var(--dark); text-decoration: none; white-space: nowrap; }
.header-actions .phone:hover { color: var(--green); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .sub-toggle {
  display: block;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #303032;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.main-nav a:hover, .main-nav .sub-toggle:hover { color: var(--green-light); }

/* Mobile menu (off-canvas panel) */
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 38px; padding: 9px 10px;
  background: var(--dark); border: 0; border-radius: 4px; cursor: pointer;
}
.menu-toggle .bar { display: block; height: 2px; background: #fff; border-radius: 1px; }

.site-menu {
  position: fixed;
  top: var(--header-h); right: 0; bottom: 0;
  width: 290px; max-width: 100%;
  padding: 20px;
  overflow-y: auto;
  background: var(--dark);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s, visibility .25s;
}
.site-menu.is-open { transform: none; visibility: visible; }
.site-menu .header-actions { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.site-menu .header-actions .phone { color: #fff; width: 100%; }
.site-menu .main-nav a, .site-menu .main-nav .sub-toggle { color: #fff; font-size: 18px; padding: 8px 0; width: 100%; text-align: left; }
.site-menu .sub-menu { display: none; padding-left: 15px; }
.site-menu .has-sub.is-open .sub-menu { display: block; }
.site-menu .sub-menu a { font-size: 16px; font-weight: 400; color: #ddd; }
.sub-toggle::after {
  content: ""; display: inline-block; margin-left: 8px; vertical-align: middle;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid currentColor;
}

@media (min-width: 992px) {
  .menu-toggle { display: none; }
  .site-menu {
    position: static; width: auto; padding: 0; overflow: visible;
    background: none; transform: none; visibility: visible;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  }
  .site-menu .header-actions { margin: 0; flex-wrap: nowrap; }
  .site-menu .header-actions .phone { color: var(--dark); width: auto; }
  .main-nav > ul { display: flex; }
  .site-menu .main-nav a, .site-menu .main-nav .sub-toggle { color: #303032; font-size: 15px; padding: 5px 10px 11px; width: auto; }
  .site-menu .main-nav a:hover, .site-menu .main-nav .sub-toggle:hover { color: var(--green-light); }
  .main-nav li { position: relative; }
  .site-menu .sub-menu {
    display: block;
    position: absolute; top: 100%; left: 50%;
    min-width: 260px; padding: 17px 8px 20px;
    background: var(--darker); border-radius: 3px;
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-menu .sub-menu::before {
    content: ""; position: absolute; left: 50%; top: -7px; margin-left: -6px;
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 7px solid var(--darker);
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .site-menu .sub-menu a { color: #fff; padding: 6px 12px; font-size: 15px; font-weight: 400; }
  .site-menu .sub-menu a:hover { color: var(--green-light); }
}

/* Active page highlighting (body[data-page] set on every page) */
body[data-page="about-us"] .main-nav [data-nav="about-us"] > a,
body[data-page="blog"] .main-nav [data-nav="blog"] > a,
body[data-page="contact"] .main-nav [data-nav="contact"] > a,
body[data-page="accounting"] .main-nav [data-nav="services"] > .sub-toggle,
body[data-page="financial-audit"] .main-nav [data-nav="services"] > .sub-toggle,
body[data-page="tax-solutions"] .main-nav [data-nav="services"] > .sub-toggle,
body[data-page="liquidation"] .main-nav [data-nav="services"] > .sub-toggle,
body[data-page="vat-in-the-eu-countries"] .main-nav [data-nav="services"] > .sub-toggle,
body[data-page="remote-accountancy"] .main-nav [data-nav="services"] > .sub-toggle { color: var(--green-light); }

/* ---------- Page title banner ---------- */
.page-title {
  padding: 40px 0 20px;
  color: #dbdbda;
  background: #2e2e2e url("/assets/img/page-title-bg.jpg") center / cover no-repeat;
}
.page-title h1 { margin: 0; font-size: 26px; font-weight: 500; color: #fff; }
@media (min-width: 768px) {
  .page-title { padding: 60px 0 30px; }
  .page-title h1 { font-size: 30px; }
}
@media (min-width: 992px) {
  .page-title { padding: 110px 0 50px; }
  .page-title h1 { padding-top: 20px; font-size: 60px; line-height: 1; }
}

/* ---------- Home hero ---------- */
.hero {
  padding: 50px 0;
  font-size: 18px;
  font-weight: 300;
  color: #dbdbda;
  background: #2e2e2e url("/assets/img/banner-home.jpg") center / cover no-repeat;
}
.hero .container { display: flex; align-items: center; gap: 40px; }
.hero-graphic { display: none; flex-shrink: 0; width: 404px; }
.hero h1 { margin: 0 0 10px; font-size: 32px; color: #fff; }
.hero p { margin: 0 0 30px; }
@media (min-width: 768px) {
  .hero { padding: 80px 0; font-size: 22px; }
  .hero h1 { font-size: 44px; }
  .hero-graphic { display: block; width: 300px; }
}
@media (min-width: 992px) {
  .hero-graphic { width: 404px; }
}

/* ---------- Featured services menu ---------- */
.featured { background: var(--grey-light); }
.featured ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.featured li { border: 1px solid #fff; }
.featured a {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  height: 100%; padding: 25px 10px;
  font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center; text-transform: uppercase;
  color: #232323; text-decoration: none;
  border-radius: var(--radius);
  transition: background .2s;
}
.featured a::before {
  content: ""; display: block; width: 53px; height: 46px; margin-bottom: 14px;
  background: url("/assets/img/sprite.png") no-repeat;
}
.featured .ico-accounting a::before { background-position: -11px -14px; }
.featured .ico-audit a::before { background-position: -79px -14px; }
.featured .ico-tax a::before { background-position: -148px -14px; }
.featured .ico-liquidation a::before { background-position: -216px -14px; }
.featured .ico-vat a::before { background-position: -286px -14px; }
.featured .ico-remote a::before { background-position: -345px -95px; }
.featured a:hover { background: var(--green); }
@media (min-width: 768px) {
  .featured ul { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .featured ul { grid-template-columns: repeat(6, 1fr); }
  .featured li { border-width: 0 1px; }
  .featured a { min-height: 176px; padding: 40px 10px 20px; font-size: 13px; background: var(--grey-light); }
  .featured a::before { margin-bottom: 16px; }
  body:not([data-page="home"]) .featured { background: #fff; }
  body[data-page="home"] .featured a { min-height: 204px; padding: 55px 16px 20px; font-size: 16px; }
  body[data-page="home"] .featured a::before { margin-bottom: 23px; }
}

/* Below desktop, inner pages show the services menu as compact pills */
@media (max-width: 991px) {
  body:not([data-page="home"]) .featured { background: none; }
  body:not([data-page="home"]) .featured ul { display: flex; flex-wrap: wrap; gap: 6px 4px; padding-top: 12px; }
  body:not([data-page="home"]) .featured li { border: 0; }
  body:not([data-page="home"]) .featured a {
    display: block; min-height: 0; padding: 6px 14px;
    font-size: 13px; font-weight: 400; text-transform: none; color: #0f0f0f;
    background: var(--pill); border: 1px solid var(--pill-border); border-radius: 4px;
  }
  body:not([data-page="home"]) .featured a::before { display: none; }
  body:not([data-page="home"]) .featured a:hover { background: var(--green); }
}
@media (min-width: 768px) and (max-width: 991px) {
  body:not([data-page="home"]) .featured a { font-size: 15px; }
}

body[data-page="accounting"] .featured [data-nav="accounting"] a,
body[data-page="financial-audit"] .featured [data-nav="financial-audit"] a,
body[data-page="tax-solutions"] .featured [data-nav="tax-solutions"] a,
body[data-page="liquidation"] .featured [data-nav="liquidation"] a,
body[data-page="vat-in-the-eu-countries"] .featured [data-nav="vat-in-the-eu-countries"] a,
body[data-page="remote-accountancy"] .featured [data-nav="remote-accountancy"] a { background: var(--green); }

/* ---------- Content sections ---------- */
.section { padding: 30px 0; }
.section.pt0 { padding-top: 0; }
.section.pb0 { padding-bottom: 0; }
.featured + .section { padding-top: 15px; }
/* Keep space between the last element (e.g. "Book a meeting") and the next block */
.section.pb0 > .container > :last-child { margin-bottom: 30px; }
.solidWhiteBg { background: #fff; }
.solidGreyBg { background: var(--grey); }

.section h2 { margin-bottom: 16px; }

@media (min-width: 768px) {
  .columns2 { column-count: 2; column-gap: 50px; text-align: justify; }
  .columns2 h1, .columns2 h2, .columns2 h3, .columns2 h4, .columns2 h5 { text-align: left; break-after: avoid; }
  .columns2 li, .columns2 img { break-inside: avoid; }
}

.grid-2 { display: grid; gap: 0 30px; }
@media (min-width: 992px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Green square bullets */
.advantage ul, .halfBg ul, .features ul { list-style: none; padding: 0; }
.advantage li, .halfBg li, .features li { position: relative; padding-left: 31px; margin-bottom: 4px; }
.advantage li::before, .halfBg li::before, .features li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 4px; background: var(--green);
}

/* Dark patterned sections */
.darkBg, .features {
  color: var(--muted);
  font-weight: 300;
  background: var(--dark) url("/assets/img/dark-bg.jpg");
}
.darkBg h2 { color: #cecece; font-weight: 400; }
.darkBg hr, .features hr { border-color: var(--line-dark); }
.section.darkBg { padding: 50px 0 30px; }

/* Half image / half text */
.halfBg { position: relative; }
.imageLHalf { min-height: 268px; background-size: cover; background-position: 50% 50%; }
.halfBg .content { padding: 30px 0; line-height: 1.7; }
@media (min-width: 768px) {
  .imageLHalf { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; min-height: 0; }
  .halfBg .container { display: flex; justify-content: flex-end; }
  .halfBg .content { width: 50%; padding: 50px 0 50px 35px; }
}

/* Home "Smart Tools" block */
.features .imageLHalf { background-position: 70% 0; }
.features h1 { color: #fff; }
.features h2 { display: flex; align-items: center; font-size: 26px; font-weight: 500; color: #e5e4e4; }
.features h2::before {
  content: ""; flex-shrink: 0; width: 37px; height: 35px; margin-right: 18px;
  background: url("/assets/img/sprite.png") no-repeat -17px -102px;
}
.features h2.director::before { background-position: -71px -102px; }
.features p { font-size: 18px; font-weight: 400; color: var(--muted); }
@media (min-width: 768px) {
  .features .content { padding: 80px 0 80px 35px; }
}

/* Accordion (native details/summary) */
.accordion { margin: 0 0 30px; }
.accordion summary {
  position: relative;
  padding: 1px 10px 1px 23px;
  cursor: pointer;
  list-style: none;
  color: #383838;
  transition: color .2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "\00BB";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px;
  font-size: 14px; font-weight: 700; line-height: 12px; text-align: center; color: var(--dark);
  background: #39c94d; border-radius: 2px;
  transition: transform .3s, background .3s, color .3s;
}
.accordion summary:hover, .accordion details[open] summary { color: var(--green-dark); }
.accordion details[open] summary::before { transform: rotate(90deg); background: var(--dark); color: #39c94d; }
.accordion details > div { padding: 3px 10px 12px 23px; font-size: 15px; font-weight: 300; color: #131313; }

/* ---------- Blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card { display: flex; gap: 20px; padding: 30px 0; border-top: 1px solid #b9b9b9; }
.post-card:first-child { border-top: 0; }
.post-card .thumb { flex-shrink: 0; width: 130px; height: 130px; object-fit: cover; border-radius: 4px; }
.post-card h3 { margin: 6px 0 12px; font-size: 20px; font-weight: 400; }
.post-card h3 a { color: #1a1a1a; text-decoration: none; }
.post-card h3 a:hover { color: var(--green-dark); }
.post-card p { margin-bottom: 1em; font-weight: 300; color: #131313; }
.post-meta { margin: 0; font-size: 15px; color: #686868; }
@media (max-width: 575px) {
  .post-card { flex-direction: column; }
}

.post { max-width: 960px; color: #242021; }
.post-title { margin: 6px 0 24px; font-size: 28px; font-weight: 500; }
.post-image { display: block; margin: 0 0 30px; border-radius: 4px; }
.post-body { margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact {
  padding: 30px 0;
  background: #f5f5f5 url("/assets/img/contact-bg.jpg") 50% 0 / cover no-repeat;
}
.contact-grid { display: grid; gap: 30px; align-items: start; }
.contact-map {
  width: 100%; height: 300px; border: 0; display: block;
  border-radius: var(--radius); background: #f2f1f1;
  box-shadow: 0 -3px 21px rgba(28, 28, 29, .27);
}
.contact-card { padding: 25px; background: rgba(255, 255, 255, .92); border-radius: var(--radius); }
.contact-card dl { margin: 0 0 25px; }
.contact-card dt { font-weight: 500; }
.contact-card dd { margin: 0 0 12px; }
.calendly-inline-widget { min-width: 320px; height: 700px; }
@media (min-width: 992px) {
  .contact { padding: 80px 0; }
  .contact-grid { grid-template-columns: 5fr 4fr; gap: 60px; }
  .contact-map { height: 385px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 50px 0 45px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--footer-text);
  background: var(--dark) url("/assets/img/dark-bg.jpg");
}
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.footer-cols { display: grid; gap: 25px; margin-bottom: 30px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-social .facebook::before {
  content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: middle;
  background: url("/assets/img/sprite.png") no-repeat -396px -196px;
}
.footer-contact dl { margin: 0 0 12px; display: grid; grid-template-columns: 80px 1fr; gap: 0 0; }
.footer-contact dt { font-weight: 400; }
.footer-contact dd { margin: 0 0 10px; }
.footer-contact .footer-cta { font-weight: 700; color: var(--green); }
.copyright { list-style: none; margin: 0; padding: 0; font-size: 13px; font-style: italic; }
.copyright li { display: inline; margin-right: 12px; }
.copyright a { text-decoration: underline; }
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-col { border-left: 1px solid var(--line-dark); padding-left: 20px; }
}
@media (min-width: 992px) {
  .site-footer { padding-top: 77px; }
  .footer-cols { grid-template-columns: 23% 27% 30% }
  .footer-col { min-height: 177px; }
}

/* ---------- 404 ---------- */
.not-found { padding: 60px 0; text-align: center; }
.not-found .code { font-size: 96px; font-weight: 700; line-height: 1; color: var(--green); margin-bottom: 10px; }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 991px) {
  :root { --header-h: 76px; }
  .logo img { width: 150px; }
}
