:root {
  --footer-gap: 24px;
  --footer-bg: #0b0f12;
  --footer-text: #e7eef3;
  --footer-muted: #9fb3bf;
  --card-bg: #12232d;
  --card-radius: 16px;
  --underline-speed: 0.45s;
  /* Button styles variables */
  --blue-200: #B5E1EC;
  --blue-300: #82CADE;
  --blue-400: #48ABC8;
  --blue-500: #2DBFAD;
  --blue-950: #132A39;
}

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

/* App card: content TOP, media BOTTOM */
.app-download-card {
  width: 430px;
  height: 850px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-card-inner {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.app-card-inner h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

.app-card-inner p {
  margin: 0;
  color: var(--footer-muted);
  line-height: 1.5;
}

.store-buttons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1c3442;
  border: 1px solid #1f4153;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.25s ease;
}

.store-badge:hover {
  background: #234551;
}

.app-card-media {
  margin-top: auto;
  height: 430px;
  display: grid;
  align-items: start; /* Changed from center to start */
  padding-top: 0px; /* Optional: if you need more control */
}

.app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateY(-100px);
}

/* 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: #cfe3ee;
  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;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--underline-speed) ease;
}

.footer-column li a:hover,
.footer-column li a:focus-visible {
  background-size: 100% 1px;
  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(--blue-950);
  color: #fff;
  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(--blue-500);
}

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