/* ==========================================================================
   BONAL, Celovite poslovne storitve
   Stylesheet v2, logo-derived design system (teal palette)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* ---- Logo puzzle piece reference colours ---- */
  --puzzle-orange:     #D97030;
  --puzzle-teal:       #38AFA2;
  --puzzle-blue:       #4090C8;
  --puzzle-lime:       #A8BA24;

  /* ---- Brand palette (derived from logo) ---- */
  /* Dark backgrounds, replaces the old navy scale */
  --brand-950: #1E332F;
  --brand-900: #25423D;
  --brand-800: #2F5650;
  --brand-700: #3B675F;
  --brand-600: #4E7C72;

  /* Teal (primary interactive colour), replaces the old blue scale */
  --teal-700:  #1A7A6E;
  --teal-600:  #219080;
  --teal-500:  #28A896;
  --teal-400:  #4EC4B6;
  --teal-100:  #C8E8E4;
  --teal-50:   #E6F5F2;

  /* ---- Backward-compatible aliases for inline styles in HTML ---- */
  --navy-950:  var(--brand-950);
  --navy-900:  var(--brand-900);
  --navy-800:  var(--brand-800);
  --navy-700:  var(--brand-700);
  --blue-600:  var(--teal-700);
  --blue-500:  var(--teal-600);
  --blue-400:  var(--teal-400);
  --blue-100:  var(--teal-100);
  --blue-50:   var(--teal-50);

  /* ---- Neutral greys (slightly warm/teal-tinted) ---- */
  --gray-50:   #F2F6F5;
  --gray-100:  #E9EFED;
  --gray-200:  #D6E2DF;
  --gray-300:  #BFCFCB;
  --gray-500:  #5C7070;
  --gray-600:  #405454;
  --gray-700:  #2D3D3C;
  --white:     #ffffff;

  /* ---- Semantic tokens ---- */
  --ink:        var(--brand-800);
  --muted:      var(--gray-500);
  --border:     var(--gray-200);
  --surface:    var(--white);
  --surface-alt: var(--gray-50);

  /* Typography, system font stack only (no third-party font requests before consent) */
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing / shape */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --container:  1180px;
  --shadow-sm:  0 1px 2px rgba(15, 34, 32, 0.07), 0 1px 1px rgba(15, 34, 32, 0.05);
  --shadow-md:  0 8px 24px rgba(15, 34, 32, 0.10);
  --shadow-lg:  0 24px 60px rgba(15, 34, 32, 0.15);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--brand-800);
  line-height: 1.2;
  font-weight: 700;
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--brand-800);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal-700);
  display: inline-block;
  border-radius: 2px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(26, 122, 110, 0.28);
}

.btn-primary:hover {
  background: var(--teal-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 122, 110, 0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-800);
  border-color: var(--gray-300);
}

.btn-ghost:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.40);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand-800);
  flex-shrink: 0;
}

/* Logo image (SVG puzzle mark, used in footer) */
.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

/* Full logo PNG (header) */
.brand-logo-full {
  height: 72px;
  width: auto;
  display: block;
  flex-shrink: 0;
  max-width: 420px;
}

@media (max-width: 768px) {
  .brand-logo-full { height: 60px; max-width: 335px; }
}

@media (max-width: 480px) {
  .brand-logo-full { height: 52px; max-width: 270px; }
}

/* Legacy brand-mark kept for fallback safety; hidden when logo-img present */
.brand-mark {
  display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  padding: 0.4rem 0.1rem;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--teal-700);
  transition: width var(--transition);
  border-radius: 2px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--brand-800);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.main-nav .btn-primary {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-800);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.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);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 24px;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    width: 100%;
    padding: 0.9rem 0.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .main-nav .btn-primary {
    display: inline-flex;
    margin-top: 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-950) 0%, var(--brand-900) 55%, var(--brand-800) 100%);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 8rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56, 175, 162, 0.30), transparent 70%);
  top: -180px;
  right: -160px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(78, 196, 182, 0.18), transparent 70%);
  bottom: -220px;
  left: -140px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--teal-400);
}

.hero-copy .eyebrow::before {
  background: var(--teal-400);
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-copy h1 span {
  color: var(--teal-400);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 2.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.hero-actions .btn-primary {
  font-size: 1.08rem;
  padding-inline: 1.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--white);
}

.hero-stats div span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-inline: 1px solid var(--border);
}

.trust-grid div {
  background: var(--surface);
  padding: 1.35rem 1.5rem;
}

.trust-grid strong {
  display: block;
  color: var(--brand-800);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.trust-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.hero-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-card li svg {
  width: 20px;
  height: 20px;
  color: var(--teal-400);
  flex-shrink: 0;
}


@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-actions .btn-primary {
    font-size: 1rem;
    padding-inline: 1.5rem;
  }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--brand-950), var(--brand-800));
  color: var(--white);
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 175, 162, 0.25), transparent 70%);
  top: -160px;
  right: -100px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: 1.1rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 0.9rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  font-size: 1.05rem;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background var(--transition), color var(--transition);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .card-icon {
  background: var(--teal-700);
  color: var(--white);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-700);
}

.card a.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card a.card-link:hover svg {
  transform: translateX(4px);
}

/* Service detail sections (storitve.html) */
.service-detail {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.6rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 190px;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail .card-icon {
  margin-bottom: 0;
  width: 64px;
  height: 64px;
}

.service-detail .card-icon svg {
  width: 30px;
  height: 30px;
}

.service-detail h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.service-detail p {
  color: var(--muted);
}

.service-detail .tools {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--teal-50);
  color: var(--brand-700);
  border: 1px solid var(--teal-100);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

@media (max-width: 620px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--teal-100);
  font-weight: 800;
  display: block;
  margin-bottom: 0.6rem;
}

.step h4 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- About page ---------- */
.about-lead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .about-lead {
    grid-template-columns: 1fr;
  }
}

.about-lead p + p {
  margin-top: 1rem;
}

.about-lead h2 {
  margin-bottom: 1.35rem;
}

.about-lead .lead-text,
.about-lead .lead-text + p {
  font-size: 1.1rem;
  color: var(--gray-700);
}

.quote-block {
  background: var(--brand-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
}

.quote-block svg {
  width: 34px;
  height: 34px;
  color: var(--teal-400);
  margin-bottom: 1rem;
}

.quote-block p {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
}

.quote-block cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--teal-400);
  font-size: 0.95rem;
}

/* ---------- Founder block in hero (homepage) ---------- */
.hero-founder {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  backdrop-filter: blur(6px);
  text-align: center;
  margin-bottom: 1.25rem;
}

.hero-founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.hero-founder-name {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-founder-role {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .hero-founder-photo {
    width: 130px;
    height: 130px;
  }
}

/* Single-column variant of about-lead (when no right column) */
.about-lead--solo {
  grid-template-columns: 1fr;
  max-width: 740px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.info-table tr:not(:last-child) th,
.info-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 1rem 1.3rem;
  font-size: 0.95rem;
}

.info-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
}

.info-table td {
  font-weight: 600;
  color: var(--brand-800);
}

.team-member {
  text-align: center;
  padding: 2rem 1.4rem;
}

.avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-800), var(--teal-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 1.1rem;
}

.team-member h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.team-member span {
  color: var(--teal-700);
  font-size: 0.85rem;
  font-weight: 600;
}

.values-list li {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list svg {
  width: 22px;
  height: 22px;
  color: var(--teal-700);
  flex-shrink: 0;
  margin-top: 2px;
}

.values-list h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.values-list p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-info-item a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-800);
}

.form-field input,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal-700);
  background: var(--white);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field .error-msg {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1.1em;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #c0392b;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  background: #e8f6ee;
  border: 1px solid #b9e6c9;
  color: #1e7e42;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.form-error {
  display: none;
  align-items: center;
  gap: 0.7rem;
  background: #fdecec;
  border: 1px solid #f3b9b9;
  color: #a12626;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-error.is-visible {
  display: flex;
}

.form-error svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.form-error a {
  color: #a12626;
  text-decoration: underline;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.team-directory {
  margin-top: 1rem;
}

.team-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  background: var(--surface);
  transition: box-shadow var(--transition), transform var(--transition);
}

.team-row:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.team-row .name {
  font-weight: 700;
  color: var(--brand-800);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.team-row .name .avatar {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  margin: 0;
}

.team-row a {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.team-row a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.review-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  background: var(--teal-50);
}

.review-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.review-card p {
  color: var(--gray-700);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .team-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ---------- Links page ---------- */
.link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.link-card .card-icon {
  background: var(--brand-800);
  color: var(--teal-400);
}

.link-card:hover .card-icon {
  background: var(--teal-700);
  color: var(--white);
}

.link-card .url-pill {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--teal-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link-card .url-pill svg {
  width: 15px;
  height: 15px;
}

.notice-box {
  display: flex;
  gap: 1rem;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.notice-box svg {
  width: 24px;
  height: 24px;
  color: var(--teal-700);
  flex-shrink: 0;
}

.notice-box p {
  color: var(--gray-700);
  font-size: 0.94rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.70);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .brand {
  color: var(--white);
}

/* Logo in dark footer, puzzle pieces are fully coloured, no adjustment needed */
.footer-brand .brand-logo {
  filter: none;
}

.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.50);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.footer-cookie-link:hover {
  color: var(--white);
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 400;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal-700);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--gray-100);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 34, 32, 0.10);
  padding: 1.5rem 24px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cookie-banner-text p {
  color: var(--gray-600);
  font-size: 0.92rem;
  max-width: 640px;
}

.cookie-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal-700);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  white-space: nowrap;
  background: var(--brand-800);
  color: var(--white);
  border-color: var(--brand-800);
}

.cookie-btn:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ---------- Cookie settings modal ---------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 25, 22, 0.58);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal-overlay[hidden] {
  display: none;
}

.cookie-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}

.cookie-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-800);
  flex-shrink: 0;
}

.cookie-modal-close:hover {
  background: var(--gray-200);
}

.cookie-modal-close svg {
  width: 18px;
  height: 18px;
}

.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-right: 2.5rem;
}

.cookie-modal-subtitle {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.cookie-modal > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-modal h3 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.cookie-category-text p {
  font-size: 0.86rem;
  color: var(--muted);
}

.cookie-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.toggle-state {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 600;
  white-space: nowrap;
  min-width: 62px;
}

.cookie-save {
  margin-top: 1.75rem;
}

.cookie-privacy-contact {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cookie-privacy-contact a {
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .cookie-category {
    flex-direction: column;
  }

  .cookie-toggle-wrap {
    padding-top: 0;
  }
}

/* ---------- Toggle switch ---------- */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  inset: 0;
  cursor: pointer;
  z-index: 1;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 999px;
  transition: background var(--transition);
}

.toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-track {
  background: #1e9e6f;
}

.toggle-switch input:checked + .toggle-track::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled {
  cursor: not-allowed;
}

.toggle-switch input:focus-visible + .toggle-track {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
}

/* ---------- Map consent placeholder ---------- */
.map-wrap {
  position: relative;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  min-height: 380px;
  padding: 2rem;
  background: var(--surface-alt);
}

.map-placeholder[hidden] {
  display: none;
}

.map-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--teal-700);
}

.map-placeholder p {
  color: var(--muted);
  max-width: 380px;
  font-size: 0.94rem;
}

#map-iframe[hidden] {
  display: none;
}
