/* =========================================================
   ZENDIA Inc. Corporate Site — style.css
   ========================================================= */

:root {
  --color-white: #ffffff;
  --color-gray-bg: #f4f4f5;
  --color-line: #e1e2e4;
  --color-ink: #17181b;
  --color-ink-soft: #5a5f66;

  /* Navy sampled directly from images/zendia-logo.png. */
  --color-navy: #0d2942;
  --color-navy-soft: #1c3450;

  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Georgia", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;

  --max-width: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul {
  margin: 0;
}

/* Avoids a lone short fragment (e.g. "す。") stranded on the last
   line of a paragraph. Progressive enhancement — browsers without
   support just fall back to normal wrapping. */
p {
  text-wrap: pretty;
}

/* Keeps a katakana loanword (e.g. 海外パートナー) from breaking
   mid-word at narrow widths — Japanese line-wrapping otherwise allows
   a break between any two characters. */
.nowrap {
  white-space: nowrap;
}

ul {
  list-style: none;
  padding: 0;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

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

/* -----------------------------------------
   Header
   ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

/* Height-constrained, width auto: scales the logo's own aspect ratio
   uniformly and never stretches it. Enlarged ~1.5x from the previous
   size; header padding was trimmed to match so the bar itself stays
   compact rather than growing by the same amount. */
.logo-img {
  display: block;
  height: 50px;
  width: auto;
}

@media (min-width: 760px) {
  .logo-img {
    height: 64px;
  }
}

.global-nav {
  display: none;
}

.global-nav ul {
  display: flex;
  gap: 1.75rem;
}

.global-nav a {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-ink-soft);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.global-nav a:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

@media (min-width: 900px) {
  .global-nav {
    display: block;
  }
}

/* -----------------------------------------
   Layout helpers
   ----------------------------------------- */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section-head {
  max-width: 40em;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.875rem);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--color-ink-soft);
  font-size: 1rem;
}

/* -----------------------------------------
   Buttons
   ----------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.9em 2em;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

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

/* For use on light backgrounds, where .btn-primary (white on white)
   would have no contrast. */
.btn-dark {
  background-color: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

.btn-dark:hover {
  background-color: var(--color-navy-soft);
  border-color: var(--color-navy-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 0.2em;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-color: var(--color-navy);
}

.text-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover .arrow {
  transform: translateX(0.2em);
}

/* -----------------------------------------
   Media (real photo frame)
   ----------------------------------------- */
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--color-gray-bg);
}

.media-frame img.media-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -----------------------------------------
   Hero — full-bleed photo, quiet overlay text
   ----------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: clamp(560px, 82vh, 820px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 50% 50%;
  animation: hero-zoom 12s var(--ease-soft) both;
}

@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo {
    animation: none !important;
    transform: none !important;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13, 41, 66, 0.72) 0%, rgba(13, 41, 66, 0.22) 45%, transparent 72%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4rem);
  color: #ffffff;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.4vw, 2.875rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 32em;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
}

/* -----------------------------------------
   私たちの事業 (Business) — three pillars,
   one grid, read together as a single group.
   ----------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.pillar-media {
  margin-bottom: 1.1rem;
}

.pillar-media .media-frame {
  aspect-ratio: 4 / 3;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* -----------------------------------------
   Zendiaについて (About)
   ----------------------------------------- */
.about-row {
  display: grid;
  gap: 2rem;
}

.about-media {
  order: 1;
}

.about-text {
  order: 2;
}

.about-text .section-lead {
  font-weight: 500;
}

.about-text .section-lead + .section-lead {
  margin-top: 1rem;
}

.about-media .media-frame {
  aspect-ratio: 4 / 3;
}

@media (min-width: 860px) {
  .about-row {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 4rem;
  }

  .about-media {
    order: 2;
  }

  .about-text {
    order: 1;
  }
}

/* Company page's About has more (and longer) copy than the
   homepage's. Its first line needs ~490px to stay on one line, which
   doesn't fit a two-column split until closer to 960px — so it keeps
   the single-column stack a little longer, then gives the text
   column extra room (and the photo less) once it splits. */
@media (min-width: 860px) and (max-width: 959px) {
  .about-row--profile {
    grid-template-columns: 1fr;
  }

  .about-row--profile .about-media {
    order: 1;
  }

  .about-row--profile .about-text {
    order: 2;
  }
}

@media (min-width: 960px) {
  .about-row--profile {
    grid-template-columns: 1.4fr 0.85fr;
    gap: 2.5rem;
  }
}

/* -----------------------------------------
   zendia.jp CTA — full-bleed photo, quiet overlay
   ----------------------------------------- */
.cta {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cta-media {
  position: relative;
  width: 100%;
  height: clamp(420px, 55vw, 560px);
  overflow: hidden;
}

.cta-media .media-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* Even coverage rather than a bottom-only fade, so the centered
   content below reads clearly against any part of the photo. */
.cta-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 41, 66, 0.68) 0%, rgba(13, 41, 66, 0.8) 100%);
  pointer-events: none;
}

/* Shooting stars — thin, pale streaks generated one at a time by
   script.js (Web Animations API), confined to the upper "sky" band of
   the photo. Sits above the scrim so they stay visible, below
   .cta-content so text is never touched. */
.cta-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.cta-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--gutter);
  color: #ffffff;
}

.cta-content .section-title {
  color: #ffffff;
  font-size: clamp(1.625rem, 3.6vw, 2.375rem);
  max-width: 18em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.cta-content .section-lead {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  max-width: 30em;
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.cta-content .btn-primary {
  padding: 1.1em 3em;
  font-size: 1rem;
}

/* -----------------------------------------
   Inner-page hero (Company page etc.) —
   text-only navy band; no photo, unlike the
   homepage's full-bleed Hero.
   ----------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* Slow, quiet horizontal drift — thin white lines, never gold or any
   other accent, kept in the site's navy/white/gray-only palette.
   Reused as-is (same .hw markup/animation) inside the footer. */
.page-hero-waves,
.footer-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hw {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 100%;
}

.hw svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes hero-wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.js .hw-1 { animation: hero-wave-scroll 26s linear infinite; }
.js .hw-2 { animation: hero-wave-scroll 34s linear infinite; animation-delay: -12s; }
.js .hw-3 { animation: hero-wave-scroll 30s linear infinite; animation-delay: -7s; }

@media (prefers-reduced-motion: reduce) {
  .js .hw-1,
  .js .hw-2,
  .js .hw-3 {
    animation: none !important;
  }
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: #ffffff;
}

.page-hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.page-hero-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32em;
}

/* NEWS page-hero lead lists several categories in one sentence — wider
   than the shared 32em cap so it can sit on one line at typical desktop
   widths instead of wrapping. Scoped to this one paragraph only; the
   Company/Privacy/Security page-heroes keep the narrower default. */
.page-hero-lead--wide {
  max-width: none;
}

/* -----------------------------------------
   事業概要 (Business Overview) — Company page
   ----------------------------------------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.overview-grid li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}

.overview-grid p {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.6;
}

@media (min-width: 700px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .overview-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.75rem;
  }

  .overview-grid p {
    font-size: 0.9375rem;
    white-space: nowrap;
  }
}

/* -----------------------------------------
   会社概要 (Company Profile) — Company page
   ----------------------------------------- */
.profile-table {
  border-top: 1px solid var(--color-line);
  max-width: 58em;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.profile-row dt {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.profile-row dd {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.profile-row dd a {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-line);
  transition: border-color 0.2s ease;
}

/* Representative's name is a rasterized image, not text, so it can't
   be harvested by scrapers. Sized to sit inline at text height. */
.rep-name-img {
  display: inline-block;
  height: 1.05em;
  width: auto;
  vertical-align: -0.18em;
}

.profile-row--address dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.address-photo {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

.profile-row dd a:hover {
  border-color: var(--color-navy);
}

@media (min-width: 620px) {
  .profile-row {
    grid-template-columns: 10em 1fr;
    align-items: baseline;
    gap: 1.5rem;
  }
}

/* -----------------------------------------
   問い合わせ先 (Contact) — Company page
   ----------------------------------------- */
.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact-note {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.contact-note a {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-line);
  transition: border-color 0.2s ease;
}

.contact-note a:hover {
  border-color: var(--color-navy);
}

/* -----------------------------------------
   NEWS — homepage section, list page, detail pages
   ----------------------------------------- */
.news-list {
  border-top: 1px solid var(--color-line);
}

.news-item {
  border-bottom: 1px solid var(--color-line);
}

.news-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding: 1.25rem 0;
}

.news-date {
  flex: 0 0 auto;
  width: 6.5em;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;
}

.news-tag {
  flex: 0 0 auto;
  width: 7em;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-navy);
  border: 1px solid var(--color-line);
  padding: 0.3em 0.85em;
}

.news-title {
  flex: 1 1 260px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: color 0.2s ease;
}

.news-link:hover .news-title {
  color: var(--color-navy);
}

.news-more {
  margin-top: 2rem;
}

/* Date/tag reused inside the navy page-hero (detail pages) need
   light-on-dark colors instead of their default light-background ones. */
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.page-hero-meta .news-date {
  width: auto;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero-meta .news-tag {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

/* NEWS detail pages read as long-form articles, so their hero content
   (eyebrow / date+tag / title) uses the same narrower, centered column
   as the article body below it, rather than the wider default used by
   Company / Privacy / Security page-heroes. */
.page-hero-inner--article {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------
   Legal document body (Privacy / Security policy),
   also reused as the NEWS detail article body.
   ----------------------------------------- */
.legal-content {
  max-width: 42em;
}

/* Wider than .legal-content and explicitly centered — a NEWS article is
   read at a glance, not studied like a policy document, so it can take
   a slightly longer line length while still staying off the page edges
   on wide screens. */
.news-body {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.legal-lead {
  color: var(--color-ink-soft);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.legal-content h2,
.news-body h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.news-body p {
  color: var(--color-ink-soft);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.legal-content ul,
.news-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li,
.news-body li {
  list-style: disc;
  color: var(--color-ink-soft);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.news-body a {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-line);
  transition: border-color 0.2s ease;
}

.news-body a:hover {
  border-color: var(--color-navy);
}

/* Certification badge (e.g. SECURITY ACTION logo) inside a NEWS article */
.news-badge {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--color-gray-bg);
}

.news-badge img {
  width: 96px;
  height: auto;
}

.news-badge p {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-ink-soft);
}

.legal-contact-card {
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: var(--color-gray-bg);
}

.legal-contact-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-ink);
  line-height: 1.8;
}

.legal-contact-card a {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-line);
  transition: border-color 0.2s ease;
}

.legal-contact-card a:hover {
  border-color: var(--color-navy);
}

.legal-date {
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.legal-badge {
  margin-top: 1.5rem;
}

.legal-badge p {
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  margin: 0;
}

.legal-badge a {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-line);
  transition: border-color 0.2s ease;
}

.legal-badge a:hover {
  border-color: var(--color-navy);
}

.legal-back {
  margin-top: 3rem;
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */
/* A lighter navy than the CTA photo's darkened scrim, plus a bright
   top edge, so the footer reads as its own block rather than a
   continuation of the CTA panel above it. */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy-soft);
  color: #dde2ea;
  border-top: 2px solid rgba(255, 255, 255, 0.16);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2.25rem;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.footer-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c3cbd8;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #dde2ea;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-compliance {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c3cbd8;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
}

/* Policy links: readable but deliberately quieter than .footer-nav —
   supplementary, not primary navigation. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer-legal a {
  color: #98a1b3;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #dde2ea;
}

.footer-copyright {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #98a1b3;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand nav"
      "compliance compliance"
      "legal legal"
      "copyright copyright";
    align-items: start;
  }

  .footer-brand { grid-area: brand; }
  .footer-nav { grid-area: nav; justify-self: end; }
  .footer-compliance { grid-area: compliance; }
  .footer-legal { grid-area: legal; }
  .footer-copyright { grid-area: copyright; }
}

/* -----------------------------------------
   Scroll reveal animation (progressive enhancement)
   ----------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay-1 { transition-delay: 0.12s; }

.js .reveal-zoom .media-frame {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 1.8s var(--ease-soft);
}

.js .reveal-zoom.is-visible .media-frame {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-zoom .media-frame {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
