:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1b2330;
  --muted: #4f5d75;
  --brand: #0f4c81;
  --brand-dark: #0b365d;
  --accent: #f2a900;
  --border: #d8dee8;
  --success: #1f7a3e;
  --danger: #a61b1b;
  --radius: 0.75rem;
  --shadow: 0 8px 24px rgba(15, 28, 44, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.hero img {
  width: 100%;
  max-height: min(60vh, 520px);
  object-fit: cover;
  border-radius: var(--radius);
}

.card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.55rem;
}

.card .card-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0.55rem;
  margin-bottom: 0.75rem;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 94%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 28, 44, 0.06);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.brand span {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
}

.primary-nav {
  display: none;
}

.primary-nav.open {
  display: block;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.8rem;
  display: grid;
  gap: 0.25rem;
}

.primary-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 0.6rem 0.65rem;
  min-height: 44px;
  border-radius: 0.4rem;
  font-weight: 600;
}

.primary-nav a[aria-current="page"] {
  background: #edf4ff;
  color: var(--brand-dark);
}

.header-contact {
  display: none !important;
}

.hero {
  background: linear-gradient(135deg, #eaf2fb 20%, #fdfdfd 100%);
  padding: 3rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

h1 {
  line-height: 1.2;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.9rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0 0 0.8rem;
}

h3 {
  margin: 0.3rem 0 0.5rem;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: #e2eeff;
}

/* Hero CTAs site-wide: WhatsApp brand green; enquiry highlighted (matches homepage) */
.hero a.btn-whatsapp,
.hero-cta-row a.btn-whatsapp {
  color: #fff;
  background: #25d366;
  border: 2px solid #128c7e;
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.35);
}

.hero a.btn-whatsapp:hover,
.hero-cta-row a.btn-whatsapp:hover {
  color: #fff;
  background: #20bd5a;
  border-color: #0f7a6e;
}

.hero a.btn-enquiry,
.hero-cta-row a.btn-enquiry {
  color: var(--brand-dark);
  background: linear-gradient(180deg, #fff9e6 0%, #ffd54f 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(242, 169, 0, 0.35);
}

.hero a.btn-enquiry:hover,
.hero-cta-row a.btn-enquiry:hover {
  color: var(--brand-dark);
  background: linear-gradient(180deg, #fff 0%, #ffcd38 100%);
  border-color: #d68f00;
}

.section {
  padding: clamp(1.6rem, 4vw, 2.2rem) 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-2 {
  grid-template-columns: 1fr;
}

.cards-3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.9rem, 2.4vw, 1.1rem);
  box-shadow: var(--shadow);
}

.list-clean {
  margin: 0;
  padding-left: 1.1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem;
}

.cta-band {
  background: #0f4c81;
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
}

.cta-band a:not(.btn) {
  color: #fff;
}

.cta-band .btn-secondary {
  color: var(--brand-dark);
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.cta-band .btn-secondary:hover {
  background: #f0f7ff;
  border-color: #fff;
}

.site-footer {
  background: #0f1f33;
  color: #e6edf5;
  margin-top: 2rem;
}

body.has-cookie-banner {
  padding-bottom: 118px;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(15, 31, 51, 0.98);
  color: #e6edf5;
  border-top: 1px solid rgba(216, 222, 232, 0.35);
}

.cookie-banner__inner {
  width: min(1120px, 94%);
  margin-inline: auto;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: #d5e8ff;
  font-weight: 600;
}

.cookie-banner__accept {
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 1.8rem 0;
}

.site-footer a {
  color: #d5e8ff;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-page {
  padding-top: 0.5rem;
}

.legal-container {
  width: min(860px, 94%);
}

.legal-content {
  line-height: 1.7;
}

.legal-content h1 {
  margin-bottom: 0.55rem;
}

.legal-content h2 {
  margin-top: 1.6rem;
}

.legal-content h3,
.legal-content h4 {
  margin-top: 1.2rem;
}

.legal-content p {
  margin: 0.7rem 0;
}

.legal-content ul,
.legal-content ol {
  margin: 0.65rem 0 0.9rem;
  padding-left: 1.35rem;
}

.legal-content li + li {
  margin-top: 0.4rem;
}

.footer-legal {
  margin: 0.45rem 0 0;
}

.footer-legal a {
  color: #d5e8ff;
}

p,
li,
a {
  overflow-wrap: anywhere;
}

.staff-link {
  font-size: 0.9rem;
  display: none !important;
}

.form-group {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

input {
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.error {
  color: var(--danger);
  font-size: 0.92rem;
  min-height: 1.25rem;
}

.success {
  color: var(--success);
  font-size: 0.92rem;
  min-height: 1.25rem;
}

@media (min-width: 480px) {
  .hero {
    padding: 3.2rem 0 2.8rem;
  }
}

@media (max-width: 520px) {
  .header-wrap {
    min-height: 68px;
  }

  .brand span {
    font-size: 1rem;
  }

  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 0.55rem 0.7rem;
  }

  .btn-row {
    gap: 0.55rem;
  }

  .btn-row .btn-primary {
    width: 100%;
    text-align: center;
  }

  .btn-row .btn-secondary {
    width: auto;
  }

  .hero .btn-primary,
  .hero .btn-whatsapp,
  .hero .btn-enquiry,
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-whatsapp,
  .hero-cta-row .btn-enquiry {
    width: 100%;
    text-align: center;
  }

  body.has-cookie-banner {
    padding-bottom: 170px;
  }

  .cookie-banner__inner {
    padding: 0.7rem 0;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__accept {
    width: 100%;
    text-align: center;
  }

  .legal-container {
    width: min(1120px, 94%);
  }

  .legal-content h2 {
    margin-top: 1.35rem;
  }
}

@media (min-width: 768px) {
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block !important;
  }

  .primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(1240px, 90%);
  }
}

/* Reusable image gallery system (used across topic pages) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Better framing for standalone (single-image) support sections */
.gallery-grid.gallery-single {
  grid-template-columns: minmax(260px, 760px);
  justify-content: center;
}

.gallery-grid.gallery-single .gallery-item img {
  height: clamp(220px, 34vw, 340px);
}
