:root {
  /* Footer Palette overrides if needed, but using global tokens is safer */
  --footer-gap: 24px;
  --footer-bg: var(--palette-black);
  --footer-text: var(--palette-white);
  --footer-muted: var(--palette-gray-4);
  /* #B0B0B0 */
  --card-bg: var(--palette-gray-1);
  /* Slightly lighter than black for cards if needed, or keeping black */
  --card-radius: 16px;
  --underline-speed: 0.45s;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.hawaa-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 20px 20px 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  margin-bottom: 0;
}

.hawaa-footer a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hawaa-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hawaa-footer-content {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: var(--footer-gap);
  align-items: start;
}

/* Company Info Card */
.company-info-card {
  width: 360px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.company-card-inner {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-logo {
  display: inline-block;
  width: fit-content;
}

.company-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.company-tagline {
  font-size: 16px;
  color: var(--footer-muted);
  margin: 0;
  line-height: 1.5;
}

.company-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--footer-muted);
}

.company-address .material-symbols-rounded {
  font-size: 20px;
  color: var(--footer-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.company-address address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--footer-muted);
}

.company-contact {
  display: flex;
  gap: 12px;
  align-items: center;
}

.company-contact .material-symbols-rounded {
  font-size: 20px;
  color: var(--footer-muted);
  flex-shrink: 0;
}

.company-contact a {
  font-size: 15px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.company-contact a:hover {
  color: #2563EB;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gray-600);
  border: 1px solid var(--gray-600);
  font-weight: 600;
  font-size: 14px;
  color: var(--footer-text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.store-badge:hover {
  background: var(--palette-gray-1);
}

/* Right wrapper */
.footer-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Links grid (desktop) */
.footer-links-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--footer-gap);
  align-content: start;
}

/* Desktop: Hide accordion icons and make headers non-interactive */
.footer-column h3 {
  margin: 0;
}

.accordion-trigger {
  appearance: none;
  background: none;
  border: 0;
  color: var(--palette-gray-4);
  /* Accordion trigger color */
  width: 100%;
  text-align: left;
  padding: 0 0 10px 0;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: default;
  /* Desktop: no pointer cursor */
}

/* Desktop: Hide chevron icons */
.accordion-trigger .chev {
  display: none;
}

/* Desktop: Show all panels */
.accordion-panel {
  overflow: visible;
  max-height: none;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-column li a {
  font-size: 15px;
  line-height: 1.5;
  display: inline-block;
  color: var(--footer-muted);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.footer-column li a:hover,
.footer-column li a:focus-visible {
  background-size: 100% 1px;
  color: var(--footer-text);
  outline: none;
}

.footer-column .subtitle {
  display: block;
  font-size: 12px;
  color: var(--footer-muted);
  margin-top: 2px;
}

/* Social 3D row - Updated with unified button styles */
.social-row {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Updated social button styles to match primary icon button */
.social-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--palette-black);
  color: var(--palette-white);
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--palette-gray-2);
}

.social-btn:hover svg {
  transform: translateX(5px);
}

/* Giant bottom typography */
.footer-giant-type {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 36px;
  pointer-events: none;
  user-select: none;
}

.footer-giant-type .word {
  width: 100%;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: capitalize;
  font-size: clamp(56px, 13vw, 220px);
  color: rgba(231, 238, 243, 0.06);
}

/* Tablet & below */
@media (max-width: 1024px) {
  .hawaa-footer-content {
    grid-template-columns: 1fr;
  }

  .app-download-card {
    width: 100%;
    height: auto;
    min-height: 500px;
  }

  .app-card-media {
    height: 420px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: Enable accordion functionality and full visibility */
@media (max-width: 640px) {
  body {
    overflow-x: auto;
  }

  .hawaa-footer {
    padding: 16px 16px 0;
    min-height: 100vh;
    /* Ensure footer is fully visible */
  }

  .hawaa-footer-container {
    min-height: calc(100vh - 32px);
    /* Account for padding */
    display: flex;
    flex-direction: column;
  }

  .hawaa-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex: 1;
  }

  .footer-right {
    width: 100%;
    max-width: 360px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 360px;
  }

  /* App card exact mobile size: 360×672 with 360×360 media at bottom */
  .app-download-card {
    width: 360px;
    height: 672px;
    min-height: 672px;
    flex-shrink: 0;
  }

  .app-card-inner {
    height: 312px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .app-card-media {
    height: 360px;
  }

  /* Mobile: Enable accordion functionality */
  .accordion-trigger {
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Mobile: Show chevron icons */
  .accordion-trigger .chev {
    display: block;
    opacity: 0.9;
    transition: transform 0.25s ease;
  }

  .footer-column.open .accordion-trigger .chev {
    transform: rotate(180deg);
  }

  /* Mobile: Enable accordion panel behavior */
  .accordion-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
  }

  .footer-column.open .accordion-panel {
    max-height: 600px;
  }

  .social-row {
    margin-top: 18px;
  }

  .footer-giant-type {
    margin-top: 24px;
    margin-bottom: 20px;
    /* Add bottom margin for mobile */
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .app-download-card {
    width: calc(100vw - 32px);
    min-width: 320px;
  }

  .footer-right {
    max-width: calc(100vw - 32px);
  }

  .footer-links-grid {
    max-width: calc(100vw - 32px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-column li a {
    transition: none;
  }

  .accordion-panel {
    transition: none;
  }

  .social-btn {
    transition: none;
  }

  .accordion-trigger .chev {
    transition: none;
  }

  .social-btn:hover svg {
    transform: none;
  }
}