/* Aird Walker & Ralston Ltd – static site stylesheet
   Recreates the former Drupal "awrweb" theme without Bootstrap/jQuery. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --coral: #ef5f5a;
  --coral-dark: #c8403b;   /* links on white: better contrast */
  --coral-pale: #ffc9c6;   /* links on the grey footer */
  --ink: #2b2b2b;
  --page-grey: #e4e4e4;
  --services-blue: #d0edff;
  --footer-grey: #707070;
  --header-h: 96px;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page-grey);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; }
ul { padding-left: 1.3em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Header (fixed, translucent like the original) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 48px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img { width: 72px; height: 72px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.9rem; font-weight: 700; color: var(--coral); line-height: 1.15; }
.brand-slogan { font-size: 1.05rem; color: #222; }
.primary-nav a { color: #222; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.02em; }
.primary-nav a[aria-current="page"] { color: var(--coral); }

main { padding-top: var(--header-h); }

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; background: #333; aspect-ratio: 1400 / 600; max-height: 78vh; width: 100%; }
.slides { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform 0.6s ease; }
.slide { position: relative; flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-caption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, 86%);
  background: rgba(60, 60, 60, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px;
  color: #fff; padding: 18px 22px;
}
.slide-caption h2 { margin: 0 0 10px; font-size: 1.65rem; font-weight: 400; text-transform: uppercase; }
.slide-caption p { margin: 0 0 12px; font-size: 0.92rem; }
.slide-caption a { color: #ff8580; font-size: 0.85rem; text-transform: uppercase; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 10px;
  color: rgba(40, 40, 40, 0.75); font-size: 2.6rem; line-height: 1;
  opacity: 0; transition: opacity 0.3s;
}
.slider:hover .slider-btn, .slider-btn:focus-visible { opacity: 1; }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, 0.55); }
.slider-dots button[aria-current="true"] { background: #fff; }

/* ---------- Content panels ---------- */
.band { padding: 20px 0; }
.band-grey { background: var(--page-grey); }
.panel { background: rgba(255, 255, 255, 0.9); padding: 26px 30px; max-width: 850px; margin: 0 auto; }
.inner .band-grey { padding: 30px 0; min-height: 40vh; }
.inner .panel { max-width: 900px; }
.panel h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 14px; color: #222; }
.panel h2 { font-size: 1.05rem; margin: 1.4em 0 0.3em; }
.panel p { margin: 0 0 0.9em; }
.home-intro .panel { max-width: 850px; padding: 30px 60px 22px 150px; }

/* Services grid */
.band-services { background: var(--services-blue); padding: 26px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.services-grid a { display: flex; flex-direction: column; align-items: center; color: #111; font-weight: 700; font-size: 0.92rem; text-align: center; }
.services-grid img { width: 180px; background: #fafafa; border-radius: 4px; margin-bottom: 8px; transition: transform 0.2s; }
.services-grid a:hover { text-decoration: none; }
.services-grid a:hover img { transform: translateY(-3px); }

/* Accreditations band */
.band-accred { background: url("../img/accreditation-bg.jpg") center / cover no-repeat; padding: 14px 0; }
.band-accred .panel { background: rgba(255, 255, 255, 0.6); max-width: 850px; padding: 16px 30px; }
.accred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; list-style: none; margin: 0; padding: 0; justify-items: center; align-items: center; }
.accred-grid li { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; padding: 6px; }
.accred-grid li.wide { height: 56px; align-self: start; }
.accred-grid img { max-height: 100%; object-fit: contain; }

/* Document lists (certificates, policies) */
.doc-list { columns: 1; padding-left: 1.2em; }
.doc-list li { margin: 0.15em 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-grey); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding: 30px 20px 40px; }
.site-footer h2 { font-size: 0.95rem; font-weight: 700; margin: 0 0 6px; color: #111; }
.site-footer h3 { font-size: 0.95rem; font-weight: 700; margin: 10px 0 2px; color: #111; }
.site-footer p { margin: 0 0 8px; font-size: 0.9rem; }
.site-footer a { color: var(--coral-pale); }
.hours { white-space: nowrap; }
.footer-menu { margin: 0; font-size: 0.9rem; }
.footer-menu ul { padding-left: 1.1em; }

.map { background: #e8e8e8; color: var(--ink); border-radius: 2px; min-height: 210px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.map p { margin: 0; }
.map a { color: var(--coral-dark); }
.map-load { font: inherit; font-size: 0.9rem; background: #fff; border: 1px solid #bbb; border-radius: 3px; padding: 6px 14px; cursor: pointer; }
.map-load:hover { background: #f4f4f4; }
.map-note { font-size: 0.75rem !important; color: #555; }
.map.loaded { padding: 0; display: block; }
.map iframe { display: block; width: 100%; height: 210px; border: 0; }

.copyright { background: #000; }
.copyright p { margin: 0; padding: 6px 0; font-size: 0.8rem; color: #ccc; }

/* ---------- Load / scroll animations (replace animate.css + WOW.js) ---------- */
@keyframes bounceInUp {
  0% { opacity: 0; transform: translateY(400px); }
  60% { opacity: 1; transform: translateY(-20px); }
  75% { transform: translateY(10px); }
  90% { transform: translateY(-5px); }
  100% { transform: none; }
}
@keyframes bounceInDown {
  0% { opacity: 0; transform: translateY(-400px); }
  60% { opacity: 1; transform: translateY(25px); }
  75% { transform: translateY(-10px); }
  90% { transform: translateY(5px); }
  100% { transform: none; }
}
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: 1s both; animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
.js .reveal-up.is-visible { animation-name: bounceInUp; }
.js .reveal-down.is-visible { animation-name: bounceInDown; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .js .reveal.is-visible { animation: none; }
  .slides { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .brand { gap: 16px; }
  .brand img { width: 54px; height: 54px; }
  .brand-name { font-size: 1.35rem; }
  .brand-slogan { font-size: 0.85rem; }
  .home-intro .panel { padding: 24px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > nav { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 92px; }
  .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; }
  .brand-name { font-size: 1.15rem; }
  .primary-nav { width: 100%; text-align: right; margin-top: -4px; }
  .slider { aspect-ratio: 4 / 3; }
  .slide-caption { padding: 12px 14px; }
  .slide-caption h2 { font-size: 1.15rem; }
  .slide-caption p { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .services-grid img { width: 140px; }
  .accred-grid { grid-template-columns: repeat(2, 1fr); }
  .accred-grid li.wide { align-self: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px 18px; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
