/* Base elements, layout primitives and shared UI pieces (buttons, section heading, notices). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--c-text);
  font-family: var(--f-system);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary-aa); text-decoration: none; }
a:hover { color: var(--c-heading-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--c-primary-bright); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.container > .pad, .pad { padding-left: var(--gutter); padding-right: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 1000; padding: 10px 16px;
  background: var(--c-heading-dark); color: #fff;
}
.skip-link:focus { top: 10px; color: #fff; }

/* ---------- Buttons (spec §2.4) */
.btn {
  display: inline-block; border: 0; border-radius: var(--radius-btn);
  font-family: var(--f-poppins); font-size: 16px; font-weight: 500; line-height: 1;
  text-align: center; color: #fff; background: var(--c-primary-aa);
  padding: 17px 40px; transition: background-color var(--t-fast), opacity var(--t-fast);
}
.btn:hover { color: #fff; background: var(--c-heading-dark); }
.btn--bright { background: var(--c-primary-bright-aa); }
.btn--small { font-family: var(--f-system); padding: 10px 20px; }
.btn--outline {
  background: transparent; color: #404040; border: .8px solid #585858; padding: 22px 40px;
}
.btn--outline:hover { background: transparent; color: var(--c-primary-aa); border-color: var(--c-primary-aa); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--static { cursor: default; } /* buttons that have no link on the reference */
.btn--static:hover { background: var(--c-primary-bright-aa); }

/* ---------- Section heading (component C13): H2 + 10% divider + intro */
.section-heading { text-align: center; }
.section-heading__title {
  font-family: var(--f-poppins); font-size: var(--fs-section-h2); line-height: var(--lh-section-h2);
  font-weight: 700; color: var(--c-heading-section);
}
.section-heading__divider {
  width: 10%; height: 0; border-top: 1.6px solid var(--c-accent-divider); margin: 45px auto 0;
}
.section-heading__intro {
  width: var(--intro-w, 60%); margin: 45px auto 0;
  font-family: var(--f-poppins); font-size: var(--fs-intro); line-height: var(--lh-intro);
  font-weight: 500; letter-spacing: .5px; color: var(--c-muted);
}

/* ---------- Coloured page hero (C27) */
.page-hero { background: var(--c-primary); color: #fff; text-align: center; padding: 70px 10px; }
.page-hero__title {
  font-family: var(--f-poppins); font-size: clamp(2.25rem, 1.5682rem + 3.409vw, 3.75rem); /* 36 → 60px */ line-height: 1.1; font-weight: 700; color: #fff;
}

/* ---------- Breadcrumb (C18) */
.breadcrumb { font-family: var(--f-arial); font-size: 13px; color: #767676; margin: 0; }
.breadcrumb a { color: #767676; }
.breadcrumb a:hover { color: var(--c-primary-aa); }

/* ---------- Star rating */
.stars { display: inline-flex; gap: 1px; color: var(--c-star); line-height: 1; }
.stars svg { width: 13.7px; height: 13.7px; }
.stars--empty { color: #3a3a3a; }

/* ---------- Notices (C39) */
.notice {
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 16px 20px;
  background: #f7f6f7; border-top: 3px solid var(--c-primary); color: #515151; font-size: 15px;
}
.notice svg { width: 18px; height: 18px; color: var(--c-primary); flex: none; }

/* ---------- Prototype markers: never mistake these for final content */
.is-pending { text-decoration: underline dotted var(--c-pending); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.placeholder-text {
  display: inline-block; padding: 2px 6px; border: 1px dashed var(--c-pending); border-radius: 3px;
  color: var(--c-pending); background: #FFFBEB; font-size: 13px; line-height: 1.5;
}
.proto-note {
  margin: 0 0 20px; padding: 12px 16px; border: 1px dashed var(--c-pending); border-radius: 4px;
  background: #FFFBEB; color: #78350F; font-size: 14px; line-height: 1.5;
}
.placeholder-img { background: var(--c-card-bg); }

/* ---------- Floating widgets (spec §3.5) */
.float-whatsapp {
  position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 60px; height: 60px; border: 0;
  border-radius: 50%; background: var(--c-whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.float-whatsapp svg { width: 32px; height: 32px; }
.scroll-top {
  position: fixed; left: 30px; bottom: 30px; z-index: 90; width: 31px; height: 31px; border: 0;
  border-radius: 2px; background: var(--c-primary); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast), visibility var(--t-fast);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top svg { width: 14px; height: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 4px; background: var(--c-heading-dark);
  color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 767px) {
  .section-heading__intro { width: 100%; }
  .float-whatsapp { right: 16px; bottom: 16px; }
  .scroll-top { left: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
