/* SANGU global design system */

:root {
  --color-purple: #432ABF;
  --color-navy: #080517;
  --color-cream: #FFFCEB;
  --color-orange: #F2853D;
  --color-lavender: #D9D2F0;
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-text: #1a1a1a;
  --color-text-light: #f5f5f5;
  --color-text-muted: #666666;
  --color-border: rgba(8, 5, 23, 0.15);

  --font-display: 'widescreen-uex', 'widescreen', 'widescreen-fallback', sans-serif;
  --font-body: 'area-variable', 'area-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: var(--font-body);

  --pattern-curvas: url('/assets/patterns/curvas.svg');

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  --radius-pill: 9999px;
  --radius-soft: 12px;
  --radius-form: 16px;
  --shadow-form: 0 12px 40px rgba(8, 5, 23, 0.08);
  --shadow-form-hover: 0 16px 48px rgba(8, 5, 23, 0.12);
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20bd5a;
  --header-height: 56px;
  --max-width: 1200px;
  --section-padding: clamp(var(--space-2xl), 8vw, var(--space-4xl));
  --section-gap: var(--space-lg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (pointer: coarse), (max-width: 1024px) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: 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;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-text-light);
}

.section--cream {
  background: var(--color-cream);
  color: var(--color-text);
}

.section--purple {
  background: var(--color-purple);
  color: var(--color-text-light);
}

.section--orange {
  background: var(--color-orange);
  color: var(--color-text-light);
}

.section--lavender {
  background: var(--color-lavender);
  color: var(--color-text);
}

h1, h2, h3, .display-heading {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 0.5rem;
}

p {
  max-width: 65ch;
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem var(--space-lg);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
  }

  .btn--purple:hover {
    background: #6b4fd4;
    opacity: 1;
  }

  .btn--ghost:hover {
    background: rgba(8, 5, 23, 0.06);
    opacity: 1;
  }
}

.text-center {
  text-align: center;
}

.text-center > h2,
.text-center > p {
  text-wrap: balance;
  margin-inline: auto;
}

.text-center > p {
  max-width: min(42rem, 100%);
}

.grid-2 {
  display: grid;
  gap: var(--section-gap);
}

.grid-3 {
  display: grid;
  gap: var(--section-gap);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__media--particles {
  background: var(--color-navy);
}

.hero__media--ambient {
  background: var(--color-navy);
}

.hero__media--ambient .hero__poster,
.hero__media--ambient video {
  display: none;
}

.hero__media--ambient::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 28% 38%, rgba(67, 42, 191, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 72% 62%, rgba(242, 133, 61, 0.28), transparent 68%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(67, 42, 191, 0.35), transparent 72%);
  animation: hero-ambient-drift 14s ease-in-out infinite alternate;
  -webkit-animation: hero-ambient-drift 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes hero-ambient-drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1.02); opacity: 0.85; }
  50% { transform: translate3d(2%, 1%, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(4%, -1%, 0) scale(1.03); opacity: 0.9; }
}

.hero__particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.hero__media--particles .hero__poster,
.hero__media--particles video {
  display: none;
}

.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media video {
  position: relative;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 5, 23, 0.55) 0%, rgba(8, 5, 23, 0.82) 100%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__overlay {
    background: linear-gradient(180deg, rgba(8, 5, 23, 0.35) 0%, rgba(8, 5, 23, 0.65) 100%);
  }
}

.hero__focus-points {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  visibility: hidden;
}

.hero__focus-point {
  position: absolute;
  width: 0;
  height: 0;
}

.hero__focus-point__glyph,
.hero__focus-point__mouse,
.hero__focus-point__core {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.hero__focus-point__glyph {
  width: calc(var(--focus-glyph-radius) * 2);
  height: calc(var(--focus-glyph-radius) * 2);
  border: 1px dashed rgba(255, 252, 235, 0.28);
  background: rgba(67, 42, 191, 0.06);
}

.hero__focus-point__mouse {
  width: calc(var(--focus-mouse-radius) * 2);
  height: calc(var(--focus-mouse-radius) * 2);
  border: 1px solid rgba(255, 252, 235, 0.5);
  background: rgba(255, 252, 235, 0.04);
}

.hero__focus-point__core {
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-cream);
  background: var(--color-purple);
  box-shadow: 0 0 12px rgba(67, 42, 191, 0.65);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: calc(var(--header-height) + var(--space-xl)) clamp(1rem, 4vw, 2rem) 5rem;
  max-width: min(960px, 100%);
  margin-inline: auto;
}

.hero__char {
  display: inline-block;
  vertical-align: bottom;
  overflow: visible;
}

.hero__word {
  display: inline-block;
  white-space: nowrap;
}

.hero__char--space {
  width: 0.35em;
}

.hero__glyph {
  display: inline-block;
  font-family: 'widescreen-mixed', sans-serif;
  font-weight: 700;
  font-size: inherit;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: inherit;
  transform-origin: center bottom;
  transition:
    letter-spacing 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__headline {
  font-size: clamp(1.05rem, 2.8vw, 1.85rem);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--color-cream);
  mix-blend-mode: difference;
  margin-bottom: var(--space-sm);
  line-height: 1.25;
  text-wrap: balance;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
}

@media (max-width: 1024px), (pointer: coarse) {
  .hero__glyph {
    transition:
      letter-spacing 0.65s cubic-bezier(0.33, 1, 0.38, 1),
      transform 0.65s cubic-bezier(0.33, 1, 0.38, 1);
  }
}

@media (max-width: 767px) {
  .hero__headline {
    font-size: clamp(1.12rem, 5.2vw, 1.55rem);
    line-height: 1.2;
  }

  .hero__content {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glyph {
    transition: none;
  }
}

.hero__headline--js-anim .hero__glyph {
  transition: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-top: var(--space-md);
}

.hero__actions .btn {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  font-size: 0.6rem;
}

.hero__actions .whatsapp-cta {
  flex: 0 0 auto;
  width: auto;
  min-height: unset;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  gap: 0.4rem;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.hero__actions .whatsapp-cta__icon {
  width: 16px;
  height: 16px;
}

.hero__subtitle {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-cream);
  mix-blend-mode: difference;
  max-width: 480px;
  margin-inline: auto;
  text-transform: none;
  letter-spacing: normal;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.75;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

.hero__scroll-indicator span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-cream);
  border-bottom: 2px solid var(--color-cream);
  border-radius: 1px;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 252, 235, 0.2);
  transform: rotate(45deg);
  margin-top: 6px;
}

.hero__scroll-indicator::before {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--color-cream), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

.about-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-soft);
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-showcase {
  display: grid;
  gap: var(--section-gap);
  align-items: end;
  justify-items: center;
}

@media (min-width: 768px) {
  .portfolio-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.portfolio-item {
  position: relative;
  aspect-ratio: 3 / 4;
  width: min(100%, 280px);
  max-height: min(72vh, 480px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-soft);
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  pointer-events: none;
  user-select: none;
}

.portfolio-item--featured {
  aspect-ratio: 3 / 4;
  width: min(100%, 300px);
}

@media (min-width: 768px) {
  .portfolio-item:hover,
  .portfolio-item--featured:hover {
    transform: none;
  }
}

.portfolio-item__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  background: linear-gradient(
    180deg,
    rgba(8, 5, 23, 0.12) 0%,
    rgba(8, 5, 23, 0.42) 45%,
    rgba(8, 5, 23, 0.78) 100%
  );
  color: var(--color-cream);
}

.portfolio-item__name {
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 2.5vw, 0.68rem);
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0;
}

.portfolio-item__desc {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  line-height: 1.45;
  margin: 0;
  opacity: 0.92;
  text-wrap: pretty;
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-soft);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item__icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item__answer-inner {
  padding: 0 1.5rem 1.25rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

.faq-item.is-open .faq-item__answer {
  max-height: 400px;
}

.contact-section .container {
  max-width: 800px;
}

.contact-section h2,
.contact-section > .container > p {
  text-align: left;
}

.contact-form {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: left;
}

.contact-form--card {
  background: var(--color-cream);
  color: var(--color-navy);
  border-radius: var(--radius-form);
  box-shadow: var(--shadow-form);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.contact-section .contact-form--card .form-group label {
  color: var(--color-navy);
}

.contact-section .contact-form--card .form-group input,
.contact-section .contact-form--card .form-group textarea {
  border: 1px solid rgba(8, 5, 23, 0.1);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(8, 5, 23, 0.04);
}

.contact-section .contact-form--card .form-group input:focus,
.contact-section .contact-form--card .form-group textarea:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(67, 42, 191, 0.15);
}

.contact-section .contact-form--card .form-group__error {
  color: #ffb4b4;
}

.contact-section .whatsapp-cta {
  margin-top: 1rem;
}

/* WhatsApp CTA button (booking + contact) */
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-whatsapp);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.whatsapp-cta:hover {
  background: var(--color-whatsapp-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-cta[hidden] {
  display: none !important;
}

.whatsapp-cta__icon {
  flex-shrink: 0;
}

/* Floating WhatsApp button (site-wide) */
.whatsapp-float {
  position: fixed;
  bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px));
  right: max(var(--space-md), env(safe-area-inset-right, 0px));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-float.whatsapp-float--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.88) translateY(10px);
}

.whatsapp-float:hover {
  background: var(--color-whatsapp-hover);
  color: #fff;
  transform: scale(1.05) translateY(0);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-whatsapp);
  z-index: -1;
  animation: whatsapp-float-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes whatsapp-float-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.whatsapp-float__icon {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: opacity 0.15s ease, visibility 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .whatsapp-float.whatsapp-float--hidden {
    transform: none;
  }

  .whatsapp-float::after {
    animation: none;
  }
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #e85d5d;
}

.form-group input.is-valid,
.form-group textarea.is-valid {
  border-color: #5dd48a;
}

.form-group__error {
  font-size: 0.8rem;
  color: #ffb4b4;
  min-height: 1.2em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-cream);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.text-editorial {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  text-transform: none;
  letter-spacing: normal;
  hyphens: none;
}

/* Splash — decorative only; see css/critical.css for rationale */
html.sangu-loading:not(.sangu-ready) {
  overflow: hidden;
}
.sangu-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-cream);
  opacity: 0;
  visibility: hidden;
  contain: strict;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
html.sangu-loading:not(.sangu-ready) .sangu-splash {
  opacity: 1;
  visibility: visible;
}
html.sangu-ready .sangu-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sangu-splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 4vw, 1.5rem);
  padding: var(--space-md);
}
.sangu-splash__logo {
  width: clamp(72px, 18vw, 104px);
  height: auto;
  display: block;
  animation: sangu-splash-pulse 1.15s ease-in-out infinite;
}
.sangu-splash__progress {
  width: min(220px, 56vw);
  height: 3px;
  background: rgba(8, 5, 23, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.sangu-splash__progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-purple), var(--color-orange));
  border-radius: inherit;
  transition: width 0.25s ease-out;
  will-change: width;
}
@keyframes sangu-splash-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sangu-splash { display: none !important; }
  html.sangu-loading:not(.sangu-ready) { overflow: auto; }
}
