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

:root {
  --maroon: #8A1639;
  --maroon-light: #A91D4A;
  --maroon-dark: #6B1030;
  --white: #FFFFFF;
  --off-white: #F8F4F5;
  --text: #1A1A1A;
  --text-light: #555;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
}

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

body {
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

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

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

/* === Hero === */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
  background: var(--maroon-dark);
}

.hero__photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  animation: heroZoom 1.8s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.05) 20%,
    transparent 40%,
    transparent 55%,
    rgba(0, 0, 0, 0.50) 75%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.hero__logo {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.55));
  opacity: 1;
}

.hero__text {
  color: var(--white);
  animation: fadeUp 0.8s ease-out 0.4s both;
  margin-bottom: 0.5rem;
}

.hero__name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #E8A4B5;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero__company {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__scroll-hint {
  align-self: center;
  color: var(--white);
  opacity: 0.6;
  animation: bounce 2s ease-in-out 1.5s infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* === V-Notch === */
.vnotch {
  position: relative;
  z-index: 2;
  height: 40px;
  margin-top: -40px;
  background: var(--maroon);
  clip-path: polygon(0 100%, 50% 0%, 100% 100%);
}

/* === Actions Section === */
.actions {
  background: var(--maroon);
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.actions__primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
  padding: 1rem 1.5rem;
  background: var(--white);
  color: var(--maroon);
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.actions__primary:hover,
.actions__primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}

.actions__primary .actions__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.actions__row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  max-width: 340px;
}

.actions__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  min-height: 48px;
}

.actions__btn:hover,
.actions__btn:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.actions__btn svg {
  width: 24px;
  height: 24px;
}

.actions__save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 340px;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.actions__save:hover,
.actions__save:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.actions__save svg {
  width: 20px;
  height: 20px;
}

/* === Company Section === */
.company {
  background: var(--off-white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.company__logo {
  width: 320px;
  height: 320px;
  max-width: 80vw;
  max-height: 80vw;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 4px 16px rgba(138, 22, 57, 0.25));
}

.company__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.company__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 340px;
  margin: 0 auto 2rem;
}

.company__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.company__item:hover,
.company__item:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.company__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--maroon);
}

.company__item--wa svg {
  color: #25D366;
}

.company__social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--maroon);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: var(--maroon);
  color: var(--white);
  transform: scale(1.08);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

/* === Footer === */
.footer {
  background: var(--maroon-dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.78rem;
}

/* === Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in reveal groups */
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-group .reveal:nth-child(7) { transition-delay: 0.48s; }

/* Stagger action buttons */
.actions .reveal:nth-child(1) { transition-delay: 0.05s; }
.actions .reveal:nth-child(2) { transition-delay: 0.15s; }
.actions .reveal:nth-child(3) { transition-delay: 0.25s; }
.actions .actions__row .reveal:nth-child(1) { transition-delay: 0.12s; }
.actions .actions__row .reveal:nth-child(2) { transition-delay: 0.20s; }
.actions .actions__row .reveal:nth-child(3) { transition-delay: 0.28s; }

/* === Focus Styles === */
:focus-visible {
  outline: 2px solid var(--maroon-light);
  outline-offset: 2px;
}

.actions :focus-visible {
  outline-color: var(--white);
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .hero__photo {
    animation: none;
  }
  .hero__text {
    animation: none;
  }
  .hero__scroll-hint {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Desktop === */
@media (min-width: 640px) {
  .hero__overlay {
    padding: 2.5rem 3rem;
  }

  .hero__logo {
    width: 200px;
    height: 200px;
    top: 0.5rem;
    left: 0.5rem;
  }

  .company__logo {
    width: 360px;
    height: 360px;
  }

  .hero__name {
    font-size: 2.5rem;
  }

  .actions {
    padding: 2.5rem 2rem 3rem;
  }

  .actions__primary,
  .actions__row,
  .actions__save {
    max-width: 380px;
  }

  .company {
    padding: 3.5rem 2rem 3rem;
  }

  .company__details {
    max-width: 380px;
  }
}

/* Center content on large screens */
@media (min-width: 768px) {
  .hero {
    max-height: 100vh;
  }

  .hero__name {
    font-size: 2.75rem;
  }

  .hero__title {
    font-size: 1.15rem;
  }
}

/* === Floating Bottom Bar === */
.fab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.fab-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}

.fab-bar__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fab-bar__btn--primary {
  background: var(--maroon);
  color: var(--white);
}

.fab-bar__btn--primary:hover,
.fab-bar__btn--primary:focus-visible {
  background: var(--maroon-light);
}

.fab-bar__btn--primary:active {
  background: var(--maroon-dark);
}

.fab-bar__btn--secondary {
  background: var(--white);
  color: var(--maroon);
  border-left: 1px solid rgba(0,0,0,0.06);
}

.fab-bar__btn--secondary:hover,
.fab-bar__btn--secondary:focus-visible {
  background: var(--off-white);
}

.fab-bar__btn--secondary:active {
  background: #EFE4E7;
}

/* === QR Modal === */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFade 0.2s ease-out;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qr-modal__content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modalPop 0.25s ease-out;
}

.qr-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--off-white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.qr-modal__close:hover,
.qr-modal__close:focus-visible {
  background: #EFE4E7;
}

.qr-modal__close svg {
  width: 18px;
  height: 18px;
}

.qr-modal__content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.qr-modal__img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}

.qr-modal__url {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--maroon);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qr-modal,
  .qr-modal__content {
    animation: none;
  }
}
