/* ==========================================================================
   Ayia Thekla Supermarket — Global Styles
   Baseline extracted from brand style guide (Poppins / Red-Blue palette)
   ========================================================================== */



:root {
  /* ---------- Color palette ---------- */
  --color-text: #000000;          /* Text */
  --color-heading: #012169;       /* Headings — Dark Blue */
  --color-bg-light: #8bb2fd;      /* Background — Light Blue */
  --color-accent: #e51926;        /* Icons & buttons — Red */
  --color-bg: #ffffff;            /* Background */
  --color-text-on-dark: #ffffff;  /* Text on dark/colored surfaces */

  /* ---------- Typography ---------- */
  --font-family-base: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-h1: 64px;
  --fs-h2: 48px;
  --fs-h3: 36px;
  --fs-body: 18px;
  --fs-small: 16px;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --lh-heading: 1.15;
  --lh-body: 1.6;

  /* ---------- Spacing scale (8px base) ---------- */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* ---------- Radius ---------- */
  --radius-base: 45px;   /* corner rounding per style guide */
  --radius-pill: 999px;  /* fully rounded buttons */

  /* ---------- Layout ---------- */
  --container-width: 1200px;
  --container-padding: var(--space-md);

  /* ---------- Misc ---------- */
  --transition-base: 0.2s ease-in-out;
}

/* Mobile type scale, per brand style guide: H1 40 / H2 32 / H3 24 /
   Paragraph 16 / Small 14. Overriding the tokens here rescales every
   h1/h2/h3/p/small sitewide, since they're all built on these vars. */
@media (max-width: 700px) {
  :root {
    --fs-h1: 40px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-body: 16px;
    --fs-small: 14px;
  }
}

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

html {
  scroll-behavior: smooth;
  /* Keeps anchor-linked sections (nav, logo, footer) from landing
     underneath the sticky header, which is ~88-96px tall. */
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-family-base);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typography hierarchy ---------- */
h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  line-height: var(--lh-heading);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
}

p {
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
}

small,
.text-small {
  font-size: var(--fs-small);
  font-weight: var(--fw-light);
}

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

.section {
  padding-block: var(--space-3xl);
}

.section--light {
  background-color: var(--color-bg-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base),
    color var(--transition-base), border-color var(--transition-base);
}

/* Primary — filled red, turns white with red text on hover */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-on-dark);
}

.btn--primary:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

/* ---------- Icons ---------- */
.icon {
  color: var(--color-accent);
  fill: var(--color-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--color-bg-light);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 4px 16px rgba(1, 33, 105, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: clamp(36px, 4vw, 48px);
  width: auto;
}

.logo__img--icon { display: none; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  list-style: none;
}

.nav__menu a {
  color: var(--color-text-on-dark);
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
  padding-block: var(--space-xs);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-base);
}

.nav__menu a:hover,
.nav__menu a[aria-current="page"] { border-color: var(--color-text-on-dark); }

.lang-switch {
  display: flex;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(1, 33, 105, 0.15);
  flex-shrink: 0;
}

.lang-switch svg {
  width: 30px;
  height: 20px;
}

/* Language switcher shown inside the mobile dropdown menu instead */
.nav__menu-lang { display: none; }

.lang-switch__flag {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(1, 33, 105, 0.15);
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; order: 3; }

  /* Icon-only logo on mobile; the flag moves into the burger menu below */
  .logo { order: 1; }
  .logo__img--full { display: none; }
  .logo__img--icon { display: block; }

  .header__right { gap: var(--space-sm); order: 2; }

  .header__right > .lang-switch { display: none; }

  .nav__menu-lang { display: block; }

  .nav__menu {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg-light);
    box-shadow: 0 12px 24px rgba(1, 33, 105, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__menu.is-open { max-height: 320px; }

  .nav__menu li { width: 100%; }

  .nav__menu a {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--container-padding);
    border-bottom: 1px solid rgba(1, 33, 105, 0.15);
    border-left: 2px solid transparent;
  }

  .nav__menu a:hover,
  .nav__menu a[aria-current="page"] {
    border-color: rgba(1, 33, 105, 0.15);
    border-left-color: var(--color-heading);
  }

  .nav__menu-lang a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hero-padding-bottom: clamp(3rem, 8vw, 5rem);
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
  padding-bottom: var(--hero-padding-bottom);
}

.hero__inner {
  --hero-inner-padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding-block: var(--hero-inner-padding);
}

.hero__eyebrow {
  margin-bottom: var(--space-xs);
  color: var(--color-heading);
  font-weight: var(--fw-medium);
  font-size: clamp(1.5rem, 2vw + 1rem, var(--fs-h3));
  line-height: 1.2;
}

.hero__title {
  margin-bottom: var(--space-md);
  color: var(--color-text-on-dark);
  font-size: clamp(2.25rem, 5vw + 1rem, var(--fs-h1));
  text-wrap: balance;
}

.hero__text {
  max-width: 42ch;
  margin-bottom: var(--space-lg);
  color: var(--color-text-on-dark);
  opacity: 0.95;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-self: end;
  /* Pull the billboard down past both the row's own bottom padding and the
     section's bottom padding so it sits flush against the bottom edge of
     the blue background. */
  margin-bottom: calc(-1 * (var(--hero-inner-padding) + var(--hero-padding-bottom)));
}

.hero__billboard {
  width: 100%;
  max-width: 480px;
  height: auto;
}

@media (min-width: 861px) {
  .hero__billboard {
    max-width: 800px;
  }
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  line-height: 0;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__media { display: none; }
}

/* The hero title has its own responsive clamp() that would otherwise
   override the H1 mobile type-scale token — pin it to the token. */
@media (max-width: 700px) {
  .hero__title {
    font-size: var(--fs-h1);
  }
}

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

/* ==========================================================================
   About / "Our Supermarket"
   ========================================================================== */
.about {
  background: var(--color-bg);
  padding-block: clamp(3rem, 8vw, var(--space-3xl));
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 6vw, var(--space-2xl));
}

.about__media {
  display: flex;
  justify-content: center;
}

.about__img {
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-base);
  box-shadow: 0 24px 48px rgba(1, 33, 105, 0.18);
}

.about__content h2 {
  margin-bottom: var(--space-sm);
}

/* .about__lead {
  font-weight: var(--fw-light);
  margin-bottom: var(--space-md);
} */

.about__content p {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: var(--space-md);
  max-width: 62ch;
}

.about__tagline {
  color: var(--color-heading);
  font-weight: var(--fw-medium);
  text-align: left;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .about__inner {
    grid-template-columns: 1fr;
    /* The grid gap would otherwise land between every unboxed item
       below (including between each paragraph) — spacing is handled
       by their own margins instead. */
    gap: 0;
    text-align: left;
  }

  /* Unbox .about__content so its heading and body text can be
     reordered independently around the image: heading, then image,
     then the paragraphs. */
  .about__content {
    display: contents;
  }

  .about__content h2 {
    order: 1;
    margin-bottom: var(--space-md);
  }

  .about__media {
    order: 2;
    margin-bottom: var(--space-md);
  }

  .about__content p {
    order: 3;
    text-align: left;
    margin-bottom: var(--space-sm);
  }

  .about__img {
    max-width: 100%;
  }
}

/* ==========================================================================
   In Store
   ========================================================================== */
.instore {
  background: var(--color-bg);
  padding-block: clamp(3rem, 8vw, var(--space-3xl));
}

.instore__subtitle {
  max-width: 55ch;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
}

.instore__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.instore__card {
  background: var(--color-bg);
  border-radius: 24px;
  padding: var(--space-lg);
  box-shadow: 0 16px 32px rgba(1, 33, 105, 0.12);
}

.instore__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
}

.instore__icon img {
  width: 56px;
  height: 56px;
}

.instore__card h3 {
  color: var(--color-heading);
  font-weight: var(--fw-semibold);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.instore__card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

  /* Flatter, horizontal cards: icon on the left, heading + text on the
     right, instead of icon-on-top. */
  .instore__card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .instore__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .instore__text h3 {
    margin-bottom: 2px;
  }

  .instore__text p {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews {
  background: var(--color-bg-light);
  padding-block: clamp(3rem, 8vw, var(--space-3xl));
}

.reviews__layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  grid-template-areas:
    "intro cards"
    "cta   cards";
  gap: var(--space-md) clamp(2rem, 6vw, var(--space-2xl));
  align-items: start;
}

.reviews__intro {
  grid-area: intro;
  align-self: end;
}

.reviews__carousel {
  grid-area: cards;
}

.reviews__cta {
  grid-area: cta;
  align-self: start;
  justify-self: start;
}

.reviews__intro h2 {
  color: var(--color-heading);
  margin-bottom: var(--space-md);
}

.reviews__subtitle {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  line-height: 1.7;
}

.reviews__cta {
  gap: var(--space-sm);
  padding-left: var(--space-xs);
}

.reviews__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: 0 0 0 1px rgba(1, 33, 105, 0.08);
  flex-shrink: 0;
}

.reviews__cta-icon svg {
  width: 20px;
  height: 20px;
}

.reviews__carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.review-card {
  background: var(--color-bg);
  border-radius: 24px;
  padding: var(--space-md);
  box-shadow: 0 16px 32px rgba(1, 33, 105, 0.12);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-sm);
}

.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-heading);
  color: #fff;
  font-weight: var(--fw-medium);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-card__name {
  color: var(--color-text);
  font-weight: var(--fw-medium);
  font-size: 1rem;
}

.review-card__meta {
  font-size: 0.85rem;
  color: var(--color-text);
  opacity: 0.7;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.review-card__stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 1rem;
}

.review-card__date {
  font-size: 0.85rem;
  color: var(--color-text);
  opacity: 0.7;
}

.review-card__badge {
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  border: 1px solid rgba(1, 33, 105, 0.15);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
}

.review-card__text {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .reviews__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "cta"
      "cards";
  }

  .reviews__intro {
    text-align: left;
    align-self: auto;
  }

  .reviews__cta {
    margin-inline: 0;
    align-self: auto;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  background: var(--color-bg);
  padding-block: clamp(3rem, 8vw, var(--space-3xl));
}

.gallery__subtitle {
  max-width: 55ch;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.gallery__item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--color-bg-light);
  opacity: 0.5;
}

img.gallery__item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.gallery__item--dark {
  filter: brightness(0.85);
}

/* Homepage preview shows only the first 4 tiles (2x2); "View more"
   links to the full gallery page instead of expanding in place. */
.gallery__grid .gallery__item:nth-child(n + 5) {
  display: none;
}

.gallery__more {
  display: flex;
  width: fit-content;
  margin: var(--space-xl) auto 0;
}

/* ---------- Standalone "Photo Gallery" page ----------
   Reuses the hero's exact look (background, padding rhythm, wave
   divider, text colors) so the banner matches the homepage design
   precisely, instead of a separately-tuned one-off. */
.page-header {
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.page-header__inner {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.page-header h1 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--color-text-on-dark);
  opacity: 0.95;
  max-width: 55ch;
}

.gallery-page {
  background: var(--color-bg);
  padding-block: clamp(3rem, 8vw, var(--space-3xl));
}

.gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

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

@media (max-width: 480px) {
  .gallery-page__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Come visit us
   ========================================================================== */
.visit {
  background: var(--color-bg);
  padding-block: clamp(3rem, 8vw, var(--space-3xl));
}

.visit__subtitle {
  max-width: 55ch;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
  line-height: 1.6;
}

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, var(--space-2xl));
  align-items: start;
}

.visit__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.visit__block h3,
.visit__location h3 {
  color: var(--color-heading);
  font-weight: var(--fw-semibold);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.visit__label {
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-xs);
}

.visit__hours {
  margin: 0;
}

.visit__hours-row {
  display: flex;
  gap: var(--space-lg);
  padding-block: 0.15rem;
}

.visit__hours-row dt {
  min-width: 5rem;
}

.visit__hours-row dd {
  margin: 0;
}

.visit__link {
  color: var(--color-text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.visit__link:hover {
  border-color: currentColor;
}

.visit__socials {
  display: flex;
  gap: var(--space-sm);
}

.visit__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.visit__social svg {
  width: 22px;
  height: 22px;
}

.visit__social:hover {
  transform: translateY(-2px);
}

.visit__social--facebook {
  background: #1877f2;
}

.visit__social--instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}

.visit__location p {
  margin-bottom: var(--space-md);
}

.visit__map {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(1, 33, 105, 0.12);
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-light);
  padding-block: clamp(3rem, 8vw, var(--space-3xl)) var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
}

.footer__brand {
  justify-self: start;
}

.footer__nav {
  justify-self: center;
}

.footer__contact {
  justify-self: end;
}

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__logo {
  height: 64px;
  width: auto;
}

.footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav a {
  color: var(--color-text-on-dark);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer__nav a:hover {
  border-color: var(--color-text-on-dark);
}

.footer__contact p {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-xs);
}

.footer__contact a {
  color: var(--color-text-on-dark);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer__social {
  display: flex;
  width: 44px;
  height: 44px;
  transition: transform 0.2s ease;
}

.footer__social:hover {
  transform: translateY(-2px);
}

.footer__social img {
  width: 44px;
  height: 44px;
}

@media (max-width: 700px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer__brand,
  .footer__nav,
  .footer__contact {
    justify-self: start;
  }

  .footer__nav ul {
    align-items: flex-start;
  }

  .footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-bg-light);
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(1, 33, 105, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 40;
}

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

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-on-dark);
  transition: stroke 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-bg);
  border-color: var(--color-bg-light);
}

.back-to-top:hover svg,
.back-to-top:focus-visible svg {
  stroke: var(--color-bg-light);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.01ms, visibility 0.01ms;
  }
}
