/* Panda United — visual system per website specification §12 */

:root {
  --pu-blue: #5295D7;
  --pu-cyan: #45B5DB;
  --pu-navy: #132331;
  --pu-ink: #111111;
  --pu-muted: #5D6872;
  --pu-pale: #EAF5FB;
  --pu-surface: #F3F6F8;
  --pu-white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --section-space: clamp(72px, 9vw, 128px);
  --shadow: 0 18px 55px rgba(19, 35, 49, .10);
  /* System font stack by design: no webfont downloads, no FOUT. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--pu-ink);
  background: var(--pu-white);
}
@media (max-width: 760px) { body { font-size: 16px; line-height: 1.55; } }

h1, h2, h3 { font-family: var(--font-head); color: var(--pu-navy); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.02; }
@media (max-width: 760px) { h1 { font-size: 2.35rem; } }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--pu-ink); }
a { color: var(--pu-blue); }
ul, ol { padding-left: 1.25em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 760px) { .container { padding: 0 20px; } }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--pu-cyan);
  margin-bottom: .75em;
}

/* ---------- Header ---------- */
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  background: var(--pu-white);
  border-bottom: 1px solid rgba(19, 35, 49, .08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pu-navy);
  text-decoration: none;
  white-space: nowrap;
}
.logo img { display: block; height: 32px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--pu-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.nav a.active { color: var(--pu-blue); }
.nav a:hover { color: var(--pu-blue); }
/* .nav a / .nav a:hover otherwise win over .btn-primary's color (same or higher specificity) */
.nav a.btn.btn-primary,
.nav a.btn.btn-primary:hover,
.nav a.btn.btn-primary:focus-visible { color: var(--pu-white); }
.nav-lang {
  display: flex;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
}
.nav-lang a { color: var(--pu-muted); text-decoration: none; }
.nav-lang a.current { color: var(--pu-navy); }
.nav-cta {
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .nav { gap: 16px; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; row-gap: 12px; padding: 12px 0; }
  .site-header { height: auto; position: static; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--pu-navy); color: var(--pu-white); }
.btn-primary:hover { background: #0b1620; }
.btn-secondary { background: transparent; color: var(--pu-navy); border-color: var(--pu-navy); }
.btn-secondary:hover { background: var(--pu-pale); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--pu-blue);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; }
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0 16px; }
.trust-line { color: var(--pu-muted); font-size: .92rem; }
.hero-graphic img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section { padding: var(--section-space) 0; }
.section-surface { background: var(--pu-surface); }
.section-title { max-width: 44ch; }
.section-intro { max-width: 68ch; color: var(--pu-muted); font-size: 1.05rem; }
.section-cta { margin-top: 32px; }

.page-hero { padding: clamp(48px, 7vw, 96px) 0 24px; background: var(--pu-pale); }
.page-hero-compact { padding: 40px 0; }
.page-hero p { max-width: 68ch; color: var(--pu-muted); }

.container-narrow { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid rgba(19, 35, 49, .12);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--pu-white);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.about-founder-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 896 / 1088;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
@media (max-width: 760px) {
  .about-founder-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 220px; }
}

.service-detail {
  padding: 28px 0;
  border-bottom: 1px solid rgba(19, 35, 49, .1);
}
.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: none; }
.service-detail h2 { font-size: 1.3rem; margin-bottom: .4em; }

/* ---------- Comparison / formats tables ---------- */
.compare-table, .formats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: .95rem;
}
.compare-table th, .compare-table td,
.formats-table th, .formats-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(19, 35, 49, .1);
  vertical-align: top;
}
.compare-table thead th, .formats-table thead th {
  background: var(--pu-navy);
  color: var(--pu-white);
  font-family: var(--font-head);
  font-weight: 700;
}
.formats-table .row-label { font-weight: 700; color: var(--pu-navy); white-space: nowrap; }
@media (max-width: 760px) {
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td,
  .formats-table, .formats-table tbody, .formats-table tr, .formats-table td { display: block; width: 100%; }
  .compare-table thead, .formats-table thead { display: none; }
  .compare-table tr, .formats-table tr {
    border: 1px solid rgba(19, 35, 49, .12);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    padding: 12px 16px;
  }
  .compare-table td, .formats-table td { border-bottom: none; padding: 6px 0; }
}

/* ---------- Process steps ---------- */
.process-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
  .process-steps, .process-steps-5 { grid-template-columns: 1fr; }
}
.process-steps li {
  border-left: 3px solid var(--pu-cyan);
  padding-left: 18px;
}
.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--pu-cyan);
  font-size: .85rem;
  margin-bottom: 6px;
}

/* ---------- Lists / callouts ---------- */
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(19, 35, 49, .08);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pu-blue);
}
.callout {
  background: var(--pu-pale);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 28px;
}
.callout-label { font-weight: 800; color: var(--pu-navy); margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 24px; }
.faq-item {
  border-bottom: 1px solid rgba(19, 35, 49, .12);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--pu-navy);
  font-family: var(--font-head);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--pu-blue); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--pu-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--pu-navy);
  color: var(--pu-white);
  padding: var(--section-space) 0;
  text-align: left;
}
.cta-band .section-title, .cta-band h2 { color: var(--pu-white); }
.cta-band .section-intro { color: rgba(255, 255, 255, .78); }
.cta-band .btn-primary { background: var(--pu-cyan); color: var(--pu-navy); }
.cta-band .btn-primary:hover { background: #6ec4e3; }

/* ---------- Fact list (About) ---------- */
.fact-list { margin-top: 24px; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(19, 35, 49, .1);
}
.spec-row dt { font-weight: 700; color: var(--pu-navy); }
.spec-row dd { margin: 0; color: var(--pu-muted); }
@media (max-width: 760px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Forms ---------- */
.enquiry-form { max-width: 100%; }
.required-note { color: var(--pu-muted); font-size: .88rem; }
.form-group { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 700; color: var(--pu-navy); font-size: .92rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(19, 35, 49, .25);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--pu-white);
  color: var(--pu-ink);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--pu-blue);
}
.field-help { margin: 0; font-size: .82rem; color: var(--pu-muted); }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--pu-ink); }
.checkbox-label input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.form-group-consent { margin-bottom: 28px; }
.form-status { margin-top: 16px; font-weight: 700; }
.form-status.success { color: #157347; }
.form-status.error { color: #b3261e; }

/* Honeypot — off-screen, not display:none (keeps it in the accessibility/bot-visible DOM
   for detection purposes while remaining invisible and unreachable to real visitors). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pu-navy);
  color: rgba(255, 255, 255, .75);
  padding: 40px 0;
  margin-top: var(--section-space);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-links a:hover { color: var(--pu-cyan); }

/* ---------- Language switcher ---------- */
.lang-dropdown { position: relative; }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--pu-white);
  border: 1px solid rgba(19, 35, 49, .12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 140px;
  z-index: 60;
}
.lang-dropdown-menu.open { display: block; }
.lang-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--pu-ink);
  font-size: .9rem;
}
.lang-dropdown-menu a:hover { background: var(--pu-surface); }
.lang-dropdown-menu a.current { color: var(--pu-blue); font-weight: 700; }

.reviewed-note { color: var(--pu-muted); font-size: .85rem; }

/* ---------- Cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--pu-navy);
  color: var(--pu-white);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
}
.consent-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.consent-banner p { margin: 0; max-width: 68ch; font-size: .92rem; color: rgba(255, 255, 255, .9); }
.consent-banner a { color: var(--pu-cyan); }
.consent-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.consent-banner .btn-secondary { background: transparent; color: var(--pu-white); border-color: rgba(255, 255, 255, .5); }
.consent-banner .btn-secondary:hover { background: rgba(255, 255, 255, .1); }
.consent-banner .btn-primary { background: var(--pu-cyan); color: var(--pu-navy); }
.consent-banner .btn-primary:hover { background: #6ec4e3; }
@media (max-width: 760px) {
  .consent-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .consent-banner-actions { justify-content: flex-end; }
}

/* ---------- Guides ---------- */
.guide-card { padding: 28px 0; border-bottom: 1px solid var(--pu-surface); }
.guide-card:last-child { border-bottom: none; }
.guide-card h2 { font-size: 1.35rem; margin-bottom: .35em; }
.guide-card h2 a { color: var(--pu-navy); text-decoration: none; }
.guide-card h2 a:hover { color: var(--pu-blue); }
.guide-card p { margin-bottom: 0; }
.guide-date, .article-meta { color: var(--pu-muted); font-size: .92rem; margin-bottom: .6em; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
