/* Shared styles for Karobar Group, Karobar Business Consulting and Karobar Investment Advisory.
   Each page sets its accent colour with a body class: .theme-group, .theme-consulting, .theme-advisory. */
:root {
  --navy: #0f1d33;
  --navy-2: #16294a;
  --navy-3: #1f3660;
  --ink: #1b2436;
  --muted: #5d6b82;
  --line: #e4e8ef;
  --bg: #ffffff;
  --tint: #f6f7f9;
  --accent: #c8891c;
  --accent-2: #e0a53a;
  --accent-soft: #f6ecd9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 29, 51, .08);
  --shadow-lg: 0 24px 60px rgba(15, 29, 51, .18);
  --serif: "Playfair Display", Georgia, serif;
  --brand: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.theme-consulting { --accent: #0e7c86; --accent-2: #19a3ad; --accent-soft: #dff2f3; }
.theme-advisory { --accent: #1d7a55; --accent-2: #2ea574; --accent-soft: #e0f2e9; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--accent); }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; display: inline-flex; align-items: center; gap: .8em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem var(--sans); padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn--accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--accent:hover { transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { padding: .6em 1.2em; font-size: .88rem; }
.btn--block { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(15, 29, 51, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-family: var(--brand); font-weight: 600; font-size: 1.3rem; letter-spacing: .05em; color: var(--navy); white-space: nowrap; }
.brand__name span { color: var(--accent); }
.brand__sub { font-family: var(--brand); font-size: .56rem; letter-spacing: .16em; color: var(--muted); margin-top: 4px; white-space: nowrap; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--navy); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .nav__parent { color: var(--muted); font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: center; padding: 120px 0 80px; color: #fff; background: var(--navy) center / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 20, 38, .94) 0%, rgba(15, 29, 51, .8) 50%, rgba(15, 29, 51, .45) 100%); }
.hero__content { position: relative; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); margin-bottom: .45em; }
.hero h1 .accent { color: var(--accent-2); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .85); max-width: 38em; margin-bottom: 2em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: .4em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .82rem; color: rgba(255, 255, 255, .9); }
.hero__badge a { color: var(--accent-2); font-weight: 600; }

/* Sections */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: radial-gradient(circle at 15% 0%, var(--navy-3), var(--navy) 60%); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section__lead { color: var(--muted); font-size: 1.07rem; }
.section--navy .section__lead { color: rgba(255, 255, 255, .72); }

/* Group home: short hero with the company cards overlapping it, so all three companies show on first view */
.hero--compact { min-height: 0; padding: 104px 0 128px; }
.hero--compact .hero__content { max-width: 820px; margin-inline: auto; text-align: center; }
.hero--compact .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero--compact h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: .3em; }
.hero--compact .hero__lead { margin: 0 auto; }
.companies-wrap { position: relative; z-index: 2; margin-top: -96px; padding-bottom: clamp(60px, 8vw, 96px); }
.companies-wrap .ticks { display: none; }
.companies-wrap .company__body { padding-top: 36px; }
.companies-wrap .company__body > p:not(.company__tag) { margin-bottom: 14px; }
.companies-wrap .company__media { aspect-ratio: 2 / 1; }

/* Company cards (group home) */
.companies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.company { --accent: var(--c-accent); --accent-2: var(--c-accent-2); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; border-top: 4px solid var(--accent); }
.company:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.company--estate { --c-accent: #c8891c; --c-accent-2: #e0a53a; }
.company--consulting { --c-accent: #0e7c86; --c-accent-2: #19a3ad; }
.company--advisory { --c-accent: #1d7a55; --c-accent-2: #2ea574; }
.company__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.company__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.company:hover .company__media img { transform: scale(1.06); }
.company__icon { position: absolute; left: 20px; top: -28px; width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow); font-size: 1.5rem; }
.company__icon img { width: 44px; height: 44px; }
.company__body { position: relative; padding: 40px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.company__body h3 { font-size: 1.45rem; margin-bottom: .2em; }
.company__tag { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .8em; }
.company__body > p { color: var(--muted); font-size: .96rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: .93rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft, #eee); color: var(--accent); font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.company .ticks li::before { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.company__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.company__link svg { transition: transform .2s; }
.company:hover .company__link svg { transform: translateX(4px); }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 16px; }
.service h3 { font-size: 1.2rem; margin-bottom: .35em; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--accent-2); display: block; margin-bottom: 8px; line-height: 1; }
.step h3 { font-size: 1.15rem; margin-bottom: .35em; }
.step p { color: rgba(255, 255, 255, .72); font-size: .94rem; margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { border-radius: 22px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.split__text > p { color: var(--muted); font-size: 1.04rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { padding: .45em 1em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .86rem; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.value .service__icon { margin: 0 auto 14px; }
.value h3 { font-size: 1.1rem; }
.value p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Notice (regulatory disclaimer) */
.notice { display: flex; gap: 14px; align-items: flex-start; background: #fff8e6; border: 1px solid #f1dca4; border-radius: 14px; padding: 18px 20px; color: #6a5520; font-size: .9rem; }
.notice svg { color: #b8861b; margin-top: 3px; }
.notice p { margin: 0; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 0; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .78); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__list a, .contact__list span { font-weight: 600; color: var(--navy); }
.ci { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: 500 .95rem var(--sans); color: var(--ink); background: #f7f8fb; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field.has-error input { border-color: #d64545; }
.form-note { margin: 0; text-align: center; font-size: .9rem; min-height: 1.4em; color: var(--accent); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.footer { background: #0a1426; color: rgba(255, 255, 255, .68); padding: 64px 0 0; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: rgba(255, 255, 255, .5); }
.footer__about { margin-top: 16px; max-width: 30em; }
.footer h5 { font-family: var(--serif); font-size: 1.08rem; color: #fff; margin: 0 0 14px; }
.footer__grid a:not(.brand) { display: block; margin-bottom: 9px; transition: color .2s; }
.footer__grid a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .companies, .services { grid-template-columns: repeat(2, 1fr); }
  .steps, .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 10px 16px 20px; box-shadow: 0 20px 30px rgba(15, 29, 51, .12); transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s; z-index: -1; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle { display: block; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .companies, .services, .steps, .values, .row2 { grid-template-columns: 1fr; }
  /* Phones: compact company rows so all three fit on the first screen */
  .hero--compact { padding: 100px 0 96px; }
  .hero--compact .hero__lead { font-size: .95rem; }
  .companies-wrap { margin-top: -64px; }
  .companies-wrap .companies { gap: 12px; }
  .companies-wrap .company { flex-direction: row; border-top: 0; border-left: 4px solid var(--accent); border-radius: 16px; }
  .companies-wrap .company__media { flex: 0 0 104px; aspect-ratio: auto; }
  .companies-wrap .company__body { padding: 14px 14px 14px 16px; }
  .companies-wrap .company__icon, .companies-wrap .company__body > p:not(.company__tag), .companies-wrap .ticks { display: none; }
  .companies-wrap .company__body h3 { font-size: 1.12rem; }
  .companies-wrap .company__tag { margin-bottom: .4em; font-size: .82rem; }
  .companies-wrap .company__link { font-size: .88rem; }
  .brand__name { font-size: 1.08rem; }
  .brand__mark { width: 40px; height: 40px; }
  .form { padding: 24px 18px; }
  .hero { min-height: auto; padding: 116px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

.footer__privacy { font-size: .74rem; color: rgba(255, 255, 255, .45); margin: 0; padding: 0 0 18px; }
