/*
 * Magniqa production polish
 * Improves readability, interaction sizing and responsive pacing while
 * preserving the original editorial art direction.
 */

:root {
  --bs-ink: #2b132f;
  --bs-body: #4b3654;
  --bs-muted: #5b4365;
  --bs-label: #57345f;
  --bs-gold-light: #765426;
  --bs-gold-dark: #e0bf88;
  --bs-white: #fffafc;
  --bs-white-muted: #eee6f1;
  --bs-focus: #f1c982;
}

html {
  scroll-padding-top: 6rem;
}

body {
  color: var(--bs-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Keep the signature typography, but give supporting copy enough substance. */
.font-sans.font-light {
  font-weight: 400 !important;
}

.label-text {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.19em !important;
}

.btn-text {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
}

a,
button {
  -webkit-tap-highlight-color: rgba(224, 191, 136, 0.25);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--bs-focus) !important;
  outline-offset: 4px !important;
}

/* Header navigation must remain legible and easy to select. */
header nav > a:first-child {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

header nav button:not([aria-controls="mobile-navigation"]),
header nav a:not(:first-child),
header nav > div a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.55rem;
}

header nav button[class*="text-white/"] {
  color: rgba(255, 255, 255, 0.88) !important;
}

header nav button[data-section-active="true"] {
  color: #fff !important;
  box-shadow: inset 0 -2px var(--bs-gold-dark);
}

header nav button[aria-controls="mobile-navigation"] {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Readable text on all of the pale editorial sections. */
#about [class*="text-plum/"],
#services [class*="text-plum/"],
#testimonials [class*="text-plum/"],
#cta [class*="text-plum/"] {
  color: var(--bs-muted) !important;
}

#about .text-mauve,
#about [class*="text-mauve/"],
#testimonials .text-mauve,
#testimonials [class*="text-mauve/"] {
  color: var(--bs-label) !important;
}

#services [class*="text-gold/"],
#cta [class*="text-gold/"] {
  color: var(--bs-gold-light) !important;
}

#about p,
#services p,
#testimonials p,
#cta p {
  line-height: 1.7;
}

#about .space-y-6,
#services p[class*="font-sans"],
#testimonials p[class*="font-sans"] {
  font-size: max(0.95rem, 15px);
}

/* Hero copy sits over a changing image, so it needs a stable reading surface. */
main > section:first-child p[class*="text-white/"] {
  position: relative;
  color: var(--bs-white) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(29, 11, 34, 0.52);
  box-shadow: 0 14px 45px rgba(12, 5, 19, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

main > section:first-child .label-text[class*="text-gold/"] {
  color: var(--bs-gold-dark) !important;
}

main > section:first-child > div:last-child {
  background: rgba(23, 8, 28, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

main > section:first-child > div:last-child .label-text,
main > section:first-child > div:last-child [class*="text-white/"] {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Cards and details: clearer grouping without losing the glass treatment. */
#services .glass-card-editorial {
  background-color: rgba(255, 252, 248, 0.34) !important;
  border-color: rgba(75, 48, 85, 0.2) !important;
  box-shadow: 0 22px 60px rgba(43, 19, 47, 0.09), inset 0 1px rgba(255, 255, 255, 0.68);
}

#services .glass-card-editorial svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bs-gold-light);
  opacity: 1;
}

#services .glass-card-editorial h3 + p {
  color: #624319 !important;
  font-weight: 500 !important;
}

#services .glass-card-editorial span[class*="text-plum/"] {
  color: var(--bs-body) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

#services .glass-card-editorial .btn-premium {
  min-height: 44px;
  padding: 0.7rem 1.25rem !important;
}

#services a[class*="text-plum/"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 34rem);
  padding: 0.65rem 1rem;
  color: var(--bs-label) !important;
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
  text-align: center;
}

/* Testimonial controls need visible states as well as generous hit areas. */
button[aria-label^="Testimonial by"] {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

button[aria-label^="Testimonial by"]::after {
  width: 8px;
  height: 8px;
  background: rgba(75, 48, 85, 0.48);
}

button[aria-label^="Testimonial by"][class*="w-7"]::after {
  width: 30px;
  height: 3px;
  background: var(--bs-label);
}

#testimonials button[aria-label="Previous"],
#testimonials button[aria-label="Next"] {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-color: rgba(75, 48, 85, 0.34) !important;
  color: var(--bs-ink) !important;
}

#testimonials p.text-xs {
  color: var(--bs-label) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
}

/* Gold display type needs a dedicated darker treatment on lavender. */
#cta .text-gradient-gold {
  background-image: linear-gradient(120deg, #6f4c20, #9a7036, #61411b) !important;
}

#cta {
  min-height: auto !important;
  padding-block: clamp(5rem, 8vw, 7rem) !important;
}

#cta .glass-cta-panel {
  padding-top: clamp(4rem, 7vw, 6rem) !important;
  padding-bottom: clamp(4rem, 7vw, 6rem) !important;
}

#cta .glass-cta-panel > div:nth-of-type(3) a {
  min-height: 44px;
  padding-block: 0.55rem;
}

/* Footer text was repaired previously; now improve the interaction areas. */
footer a,
footer button {
  min-height: 44px;
}

footer a {
  display: inline-flex !important;
  align-items: center;
}

footer a:not([class*="w-8"]),
footer button {
  padding-inline: 0.2rem;
}

footer a[class*="w-8"][class*="h-8"] {
  width: 44px !important;
  min-width: 44px;
  height: 44px !important;
  min-height: 44px;
}

footer button {
  display: inline-flex !important;
  align-items: center;
  padding-block: 0.5rem;
}

footer .label-text {
  color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 1023px) {
  #about,
  #services,
  #testimonials,
  #cta {
    min-height: auto !important;
    padding-block: 4.75rem !important;
  }

  #about > div[class*="max-w-7xl"] > div[class*="lg:grid-cols-12"] > div:nth-child(2) {
    order: -1;
  }

  #about > div[class*="max-w-7xl"] > div[class*="lg:grid-cols-12"] {
    gap: 3.5rem !important;
  }

  #about > div[class*="max-w-7xl"] > div:first-of-type,
  #services > div > div:first-child,
  #testimonials > div[class*="max-w-7xl"] > div:first-of-type {
    margin-bottom: 3.5rem !important;
  }

  #about div[class*="mt-28"] {
    margin-top: 4.5rem !important;
  }
}

@media (max-width: 767px) {
  main > section:first-child {
    min-height: auto !important;
  }

  main > section:first-child > div[class*="flex-1"] {
    padding-top: 7rem !important;
    padding-bottom: 3.25rem !important;
  }

  main > section:first-child p[class*="text-white/"] {
    margin-top: 1.75rem !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  main > section:first-child > div:last-child {
    padding-block: 0.8rem !important;
  }

  #about,
  #services,
  #testimonials,
  #cta {
    padding-block: 4rem !important;
  }

  #about h2,
  #services h2,
  #testimonials h2 {
    line-height: 1.03 !important;
  }

  #about .space-y-6,
  #services p,
  #testimonials p,
  #cta p {
    font-size: 1rem !important;
    line-height: 1.68 !important;
  }

  #about blockquote {
    padding: 1.5rem !important;
  }

  #about div[class*="mt-28"] {
    margin-top: 3.5rem !important;
  }

  #about div[class*="mt-28"] > div {
    padding: 2rem 1.25rem !important;
  }

  #services .glass-card-editorial {
    padding: 1.65rem !important;
    gap: 1.35rem !important;
  }

  #services .glass-card-editorial h3 {
    font-size: 1.65rem !important;
    line-height: 1.1 !important;
  }

  #services .glass-card-editorial > div:first-child p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  #testimonials blockquote {
    font-size: clamp(1.25rem, 6vw, 1.55rem) !important;
    line-height: 1.45 !important;
  }

  #cta .glass-cta-panel {
    padding: 3.5rem 1.35rem !important;
  }

  #cta .glass-cta-panel > div:first-child {
    margin-bottom: 2.25rem !important;
  }

  #cta .glass-cta-panel > h2 {
    margin-bottom: 1.75rem !important;
  }

  #cta .glass-cta-panel > p {
    margin-bottom: 2.25rem !important;
  }

  #cta .glass-cta-panel > div:nth-of-type(2) {
    margin-bottom: 2.75rem !important;
  }

  #cta .glass-cta-panel > div:nth-of-type(3) a {
    min-height: 44px;
    padding-block: 0.55rem;
  }

  #cta .glass-cta-panel > div:last-child {
    margin-top: 3rem !important;
  }

  #cta h2 {
    font-size: clamp(2.7rem, 14vw, 4.5rem) !important;
    line-height: 0.96 !important;
  }

  footer > div[class*="max-w-7xl"] {
    padding-top: 4rem !important;
  }
}

@media (max-width: 359px) {
  .label-text {
    letter-spacing: 0.14em !important;
  }

  main > section:first-child h1 {
    font-size: 2.65rem !important;
  }

  main > section:first-child > div[class*="flex-1"] {
    padding-inline: 1.15rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > section:first-child > div:last-child [class*="animate-"] {
    animation: none !important;
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  #about [class*="text-plum/"],
  #services [class*="text-plum/"],
  #testimonials [class*="text-plum/"],
  #cta [class*="text-plum/"] {
    color: var(--bs-ink) !important;
  }
}
