/* ============================================
   VIKTORIA NAILS — COMPONENTS
   Buttons, Cards, Forms, Nav, Promo Badge
   ============================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out-quart);
  text-align: center;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--on-primary);
  box-shadow: 0 4px 20px rgba(115, 91, 36, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 30px rgba(115, 91, 36, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-secondary {
  background-color: var(--surface-container-highest);
  color: var(--on-surface);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background-color: var(--surface-container-high);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

/* ── Top Nav ── */
.top-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-nav);
  transition: box-shadow var(--duration-normal), background var(--duration-normal);
}

.top-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--content-padding);
  max-width: var(--max-width);
  margin-inline: auto;
}

.top-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.top-nav__logo img {
  height: 2.5rem;
  width: auto;
}

.top-nav__logo-text {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.top-nav__links {
  display: none;
  gap: var(--space-10);
}

.top-nav__links a {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--on-surface-variant);
  transition: color var(--duration-normal);
  position: relative;
}

.top-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.top-nav__links a:hover,
.top-nav__links a.active {
  color: var(--primary);
}

.top-nav__links a:hover::after,
.top-nav__links a.active::after {
  width: 100%;
}

.top-nav__cta {
  display: none;
}

/* Desktop nav */
@media (min-width: 768px) {
  .top-nav__links {
    display: flex;
  }
  .top-nav__cta {
    display: inline-flex;
  }
}

/* ── Mobile Hamburger ── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--on-surface);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 6px);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--on-surface);
  transition: color var(--duration-normal);
}

.mobile-menu a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/* ── Bottom Nav (Mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: var(--z-nav);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-bottom-nav);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-1) var(--space-2);
  color: var(--outline);
  transition: color var(--duration-normal);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item .material-symbols-outlined {
  font-size: 1.375rem;
}

.bottom-nav__item span:last-child {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.bottom-nav__item.active,
.bottom-nav__item--book {
  color: var(--primary);
  font-weight: 700;
}

.bottom-nav__item--book .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* ── Service Card ── */
.service-card {
  background-color: var(--surface-container-lowest);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-editorial);
  transition: transform var(--duration-slow) var(--ease-out-expo),
              box-shadow var(--duration-slow) var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gradient-gold-subtle);
  color: var(--primary);
  margin-bottom: var(--space-6);
}

.service-card__icon .material-symbols-outlined {
  font-size: 1.75rem;
}

.service-card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(208, 197, 181, 0.15);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card__item-name {
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
}

.service-card__item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
  white-space: nowrap;
  margin-left: var(--space-4);
}

/* Expand/Collapse Accordion */
.service-card__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo),
              opacity 0.3s ease;
  opacity: 0;
}

.service-card__expand.is-open {
  opacity: 1;
}

.service-card__expand-inner {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(208, 197, 181, 0.15);
  margin-top: var(--space-4);
}

.service-card__expand-inner .service-card__list {
  gap: var(--space-3);
}

.service-card__expand-inner .service-card__item-name {
  font-size: 0.8125rem;
}

.service-card__expand-inner .service-card__item-price {
  font-size: 0.8125rem;
}

.service-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--gradient-gold-subtle);
  border: none;
  border-radius: var(--radius-md);
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--duration-normal), transform var(--duration-normal);
  -webkit-tap-highlight-color: transparent;
}

.service-card__toggle:hover {
  background: rgba(200, 169, 106, 0.15);
}

.service-card__toggle .material-symbols-outlined {
  font-size: 1.125rem;
  transition: transform 0.3s var(--ease-out-expo);
}

.service-card__toggle.is-open .material-symbols-outlined {
  transform: rotate(180deg);
}

/* When card is expanded, remove hover lift to avoid jarring */
.service-card.is-expanded:hover {
  transform: none;
}

/* ── Testimonial Card ── */
.testimonial-card {
  padding: var(--space-10);
  background-color: var(--surface-container-low);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-card__stars {
  color: var(--primary-container);
  margin-bottom: var(--space-4);
  display: flex;
  gap: 2px;
}

.testimonial-card__stars .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400;
  font-size: 1.125rem;
}

.testimonial-card__text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-6);
  color: var(--on-surface);
}

.testimonial-card__author {
  font-weight: 700;
  color: var(--on-surface);
  font-size: 0.9375rem;
}

/* ── Promo Badge ── */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(200, 169, 106, 0.15);
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

/* ── Contact Info ── */
.contact-item {
  display: flex;
  gap: var(--space-6);
}

.contact-item .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item__title {
  font-weight: 700;
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--on-surface);
}

.contact-item__text {
  color: var(--on-surface-variant);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ── Form Components ── */
.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(208, 197, 181, 0.3);
  padding: var(--space-3) 0;
  color: var(--on-surface);
  font-size: 1rem;
  transition: border-color var(--duration-normal);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  min-height: 2.75rem;
}

.form-input:focus {
  border-bottom-color: var(--primary);
}

.form-input::placeholder {
  color: var(--outline);
}

/* Select arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f7668' d='M6 8.825L.175 3 1.58 1.597 6 6.018 10.42 1.597 11.825 3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: var(--space-6);
}

/* Form message */
.form-message {
  margin-top: var(--space-2);
  font-size: 0.75rem;
  display: none;
}

.form-message--error {
  color: var(--error);
}

.form-message--success {
  color: #16a34a;
}

/* ── Stat Counter ── */
.stat {
  text-align: left;
}

.stat__number {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.stat__label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
}

/* ── MARQUEE STRIP ── */
.marquee-strip {
  background-color: var(--surface); /* White background */
  color: var(--primary); /* Gold text */
  padding: 12px 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  
  /* Top border to separate from header slightly */
  border-bottom: 1px solid var(--surface-container);
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  /* Scroll animation setup */
  animation: marquee-scroll 45s linear infinite;
  width: max-content;
}

.marquee-strip:hover .marquee-inner {
  animation-play-state: paused;
}

/* Ensure child spans display seamlessly without massive gaps */
.marquee-inner span {
  display: block;
  padding-right: 0.5rem; /* Exactly mimics the size of a white space */
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* Translates by exactly half the container to loop seamlessly when duplicated */
    transform: translateX(-50%);
  }
}
