/* HenzoSEO — frontend styles (rebuilt from the Elementor template).
   Colours are CSS variables overridden from Dashboard → Settings → Brand colours. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #FF6D00;
  --accent-dark: #E05F00;
  --primary: #244668;
  --secondary: #1D3653;
  --heading: #17243B;
  --hero-heading: #1D3557;
  --text: #5B6577;
  --light: #F7FAFC;
  --tint: #EAF2FF;
  --border: #DCE3EA;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 0 13px -9px rgba(0, 0, 0, .5);
  --shadow-hover: 0 14px 34px -18px rgba(23, 36, 59, .45);
  --container: 1160px;
  --gutter: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--heading); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--light { background: var(--light); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--secondary); color: #E2EBF2; }

.icon { width: 29px; height: 29px; color: var(--accent); flex: none; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 13px; line-height: 1.6; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); margin: 0; }
.section-head { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.section-head h2 { font-size: 34px; margin-bottom: 16px; }
.section-head .lead { font-size: 17px; }
.section-head--left { text-align: left; margin-left: 0; }
.lead { font-size: 18px; line-height: 1.6; }
.display { font-size: 56px; line-height: 1.2; color: var(--hero-heading); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  text-align: center;
}
.btn .icon { width: 18px; height: 18px; color: currentColor; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(255, 109, 0, .7); }
.btn--outline { background: #fff; color: var(--heading); border-color: var(--border); }
.btn--outline:hover { border-color: var(--heading); }
.btn--pill { border-radius: 999px; padding: 14px 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 6px 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(23, 36, 59, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--heading); letter-spacing: -0.02em; }
.brand img { height: auto; width: auto; max-height: 52px; object-fit: contain; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-mark .icon { width: 20px; height: 20px; color: #fff; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 10px 14px; font-weight: 500; font-size: 15px; color: var(--heading); border-radius: 8px; transition: color .2s, background-color .2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); }
.nav-panel { display: flex; align-items: center; gap: 22px; }
.nav-toggle, .nav-close { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--light); padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; padding: 35px 0; }
.hero-copy h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.15; color: var(--hero-heading); }
.hero-copy .lead { margin: 0; }
.hero-note { font-size: 14px; color: var(--secondary); margin: 0; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.workspace { display: flex; flex-direction: column; gap: 14px; }
.workspace h2 { font-size: 24px; }
.workspace > p { font-size: 15px; margin: 0; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { background: var(--light); border-radius: var(--radius); padding: 25px 24px; display: flex; flex-direction: column; gap: 12px; }
.mini h3 { font-size: 22px; }
.mini p { font-size: 15px; margin: 0; }
.dark-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.dark-box h3 { color: #fff; font-size: 22px; }
.dark-box p { font-size: 15px; margin: 0; color: #fff; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 16px; padding-top: 12px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 25px 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.box h3 { font-size: 22px; }
.box p { font-size: 15px; margin: 0; }
a.box:hover, .box--hover:hover { border-color: #c7d2dd; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.box-link { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.box-link .icon { width: 16px; height: 16px; }
.center { text-align: center; margin-top: 32px; }

/* ---------- Priorities ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 18px; padding: 35px 0; }
.split-copy .btn { align-self: flex-start; }
.report { display: flex; flex-direction: column; gap: 14px; }
.report h3 { font-size: 24px; }
.report > div p { font-size: 15px; }
.check-item { position: relative; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 20px 48px; }
.check-item .icon { position: absolute; left: 14px; top: 22px; width: 22px; height: 22px; }
.check-item h4 { font-size: 18px; margin-bottom: 6px; }
.check-item p { font-size: 15px; margin: 0; }

/* ---------- Process ---------- */
.step-no { font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; }
.step h3 { font-size: 28px; color: var(--secondary); }

/* ---------- Approach (dark) ---------- */
.section--dark h2 { color: #fff; font-size: 34px; margin-bottom: 16px; }
.section--dark .section-head { margin-bottom: 32px; }
.section--dark .lead { color: #E2EBF2; font-size: 17px; }
.box--dark { background: var(--primary); border-color: rgba(255, 255, 255, .08); padding: 30px; }
.box--dark h3 { color: #fff; font-size: 28px; }
.box--dark p { color: #fff; opacity: .92; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: #c7d2dd; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; font-weight: 600; font-size: 17px; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; }
.faq .i-minus { display: none; }
.faq details[open] .i-plus { display: none; }
.faq details[open] .i-minus { display: block; }
.faq .answer { padding: 0 20px 20px; font-size: 16px; }
.faq h3 { font-size: inherit; color: inherit; letter-spacing: 0; line-height: 1.4; }

/* ---------- Enquiry / form ---------- */
.enquiry-card { display: flex; flex-direction: column; gap: 14px; }
.enquiry-card h3 { font-size: 24px; }
.enquiry-card > p { font-size: 15px; margin: 0; }
.form { display: grid; gap: 16px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--heading); padding: 0; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--heading); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 109, 0, .15); }
.field .hint { font-size: 13px; color: var(--text); }
.field .error { font-size: 13px; color: #C62828; }
.field.has-error input, .field.has-error select { border-color: #C62828; }
.field label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--text); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); text-decoration: underline; }
.form .btn { width: 100%; }
.form-note { font-size: 12px; color: var(--text); margin: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 14px 16px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.alert .icon { width: 22px; height: 22px; }
.alert--success { background: #E8F6EE; color: #17643A; border: 1px solid #BFE5CF; }
.alert--success .icon { color: #17643A; }
.alert--error { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: #CED8E2; padding: 72px 0 28px; }
.footer-wrap { display: flex; flex-direction: column; gap: 48px; }
.footer-cta { background: var(--primary); border: 1px solid #35597F; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-cta-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; }
.footer-cta .kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 2px; line-height: 1.25; }
.footer-cta .title { color: #fff; font-size: 30px; font-weight: 700; line-height: 1.25; }
.footer-cta p { color: #C8D3DF; font-size: 16px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.btn--white { background: #fff; color: var(--secondary); }
.btn--white:hover { background: #E4ECF5; }
.btn--ghost { background: transparent; color: #fff; border-color: #7E9BBA; }
.btn--ghost:hover { background: #2E5683; }
.footer-cols { display: grid; grid-template-columns: 34fr 19fr 19fr 19fr; gap: 24px; justify-content: space-between; }
.footer-cols .footer-brand { color: #fff; font-size: 26px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.footer-cols p { font-size: 15px; }
.footer-title { color: var(--light); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #35597F; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: #C8D3DF; }
.footer-bottom p { margin: 0; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--light); padding: 56px 0 64px; }
.page-hero-inner { max-width: 860px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 48px); color: var(--hero-heading); line-height: 1.15; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 14px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #9AA6B6; }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); }

.prose { max-width: 780px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: #3E4859; }
.prose--narrow { max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; }
.prose h3 { font-size: 23px; margin-top: 1.6em; }
.prose h4 { font-size: 19px; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--heading); }
.prose strong { color: var(--heading); }
.prose blockquote { margin-left: 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--light); border-radius: 0 10px 10px 0; color: var(--heading); }
.prose img { border-radius: 12px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--text); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--light); color: var(--heading); }
.prose code { background: var(--light); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--heading); color: #E2EBF2; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }

.cta-band { background: var(--tint); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; max-width: 980px; margin: 0 auto; }
.cta-band h2 { font-size: 28px; }

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2, .post-card h3 { font-size: 21px; line-height: 1.3; }
.meta { font-size: 14px; color: var(--text); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tag { display: inline-block; background: var(--tint); color: var(--secondary); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.post-cover { max-width: 980px; margin: -24px auto 40px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; color: var(--heading); background: #fff; }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .disabled { opacity: .45; }

.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-size: 96px; font-weight: 700; color: var(--accent); line-height: 1; }
.error-page h1 { font-size: 36px; margin: 16px 0; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-copy, .split-copy { padding: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .display { font-size: 44px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .footer-cta-actions { justify-content: flex-start; }
  .box--dark h3, .step h3 { font-size: 25px; }

}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 0; background: var(--light); color: var(--heading); cursor: pointer; }
  .nav-toggle .icon { color: var(--heading); width: 26px; height: 26px; }
  .nav-panel {
    position: fixed; inset: 0; z-index: 100; background: #fff; padding: 88px 24px 32px;
    display: flex; flex-direction: column; gap: 24px; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav-panel.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { font-size: 25px; font-weight: 600; padding: 12px 0; }
  .nav-close { display: inline-flex; position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 10px; border: 0; background: var(--accent); color: var(--light); align-items: center; justify-content: center; cursor: pointer; }
  .nav-close .icon { color: var(--light); width: 24px; height: 24px; }
  .nav-panel .btn { align-self: flex-start; }
  body.nav-open { overflow: hidden; }

  html { scroll-padding-top: 76px; }
  .section { padding: 56px 0; }
  .header-inner { min-height: 72px; }
  .hero { padding: 28px 0 48px; }
  .hero-copy h1 { font-size: 34px; }
  .btn-row .btn { width: 100%; }
  .mini-grid, .grid--2, .grid--3, .grid--4, .form-row { grid-template-columns: 1fr; }
  .card { padding: 28px 20px; }
  .mini, .box { padding: 28px 20px; }
  .section-head h2, .section--dark h2 { font-size: 28px; }
  .display { font-size: 35px; }
  .split-copy .btn { align-self: stretch; }
  .box--dark h3 { font-size: 22px; }
  .step h3 { font-size: 24px; }
  .site-footer { padding: 48px 0 24px; }
  .footer-cta { padding: 28px 24px; }
  .footer-cta .title { font-size: 24px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 36px 0 44px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 25px; }
  .cta-band { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-panel { display: none; }
}

/* Two white sections in a row: don't double the spacing */
.section:not(.section--tint):not(.section--dark):not(.section--light) + .section:not(.section--tint):not(.section--dark):not(.section--light) { padding-top: 0; }
