/* ============================================================
   LAIND — Layout (layout.css)
   Container, sections, grid, flex utilities, responsive system.
   Mobile-first approach. Premium Gold & Silver theme.
   ============================================================ */

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ── Section ── */
.section {
  padding: var(--space-16) 0;
  position: relative;
  z-index: 1;
}

.section--lg {
  padding: var(--space-24) 0;
}



.section--alt {
  background: var(--color-surface-1);
  position: relative;
}

/* Gold / silver top border glow for alt sections */
.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--color-accent-rgb), 0.25) 30%,
    rgba(var(--color-silver-rgb), 0.15) 50%,
    rgba(var(--color-accent-rgb), 0.25) 70%,
    transparent 100%
  );
}

.section--gradient {
  background: var(--gradient-section-alt);
}

/* ── Grid System ── */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* ── Flex Utilities ── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

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

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Text Alignment ── */
.text-center { text-align: center; }
.text-left { text-align: left; }

.mx-auto { margin-inline: auto; }

/* ── Hero Layout ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

/* Animated gold mesh overlay for depth */
.hero__gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  animation: heroMeshShift 20s ease-in-out infinite alternate;
}

@keyframes heroMeshShift {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--color-accent-rgb), 0.1) 0%,
    rgba(var(--color-rose-gold-rgb), 0.06) 25%,
    rgba(var(--color-silver-rgb), 0.03) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Floating warm orbs for ambient depth */
.hero__bg::before {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--color-accent-rgb), 0.06) 0%,
    transparent 70%
  );
  filter: blur(60px);
  animation: floatOrb 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--color-rose-gold-rgb), 0.05) 0%,
    transparent 70%
  );
  filter: blur(50px);
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -20px); }
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 58ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__cta .btn {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
}

.hero__cta .btn--lg {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
}

.hero__cta .btn-whatsapp {
  flex: 1.8 1 0;
}

/* ── Hero Split Layout ── */
/* Hero overrides: wider layout than the rest of the page */
.hero .container {
  max-width: 1440px;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: 7fr 13fr;
  align-items: center;
  gap: var(--space-12);
}

.hero__inner .hero__content {
  max-width: none;
}

.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  overflow: hidden;
}

#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero split — tablet (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .hero__visual {
    aspect-ratio: 1 / 1;
    max-height: 55vh;
  }
}

/* Hero split — mobile */
@media (max-width: 767px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero__visual {
    display: none;
  }

  .hero__cta .btn-secondary {
    display: none;
  }

  .hero__cta .btn-whatsapp {
    flex: 1 1 100%;
  }
}

/* ── Process Steps ── */
.process {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
}

.process__line {
  display: none;
}

.process__step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.process__number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 2px solid rgba(var(--color-accent-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  color: var(--color-accent);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base),
    transform var(--transition-spring);
  position: relative;
}

/* Gold glow on number hover */
.process__step:hover .process__number {
  background: rgba(var(--color-accent-rgb), 0.12);
  border-color: rgba(var(--color-accent-rgb), 0.45);
  box-shadow: var(--shadow-glow-sm);
  transform: scale(1.08);
}

.process__info {
  padding-top: var(--space-2);
}

.process__info h3 {
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.process__step:hover .process__info h3 {
  color: var(--color-accent-hover);
}

.process__info p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* ── Footer ── */
.footer {
  background: var(--color-surface-1);
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.06);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
}

/* Gold gradient accent line at top of footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--color-accent-rgb), 0.25),
    rgba(var(--color-silver-rgb), 0.15),
    rgba(var(--color-accent-rgb), 0.25),
    transparent
  );
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand {
  max-width: 360px;
}

.footer__logo {
  margin-bottom: var(--space-4);
  display: inline-block;
  transition: opacity var(--transition-fast);
}

.footer__logo:hover {
  opacity: 0.8;
}

.footer__logo svg {
  height: 28px;
  width: auto;
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
}

.footer__proof {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.08);
}

.footer__proof span {
  position: relative;
  display: block;
  padding-left: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.footer__proof span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--color-accent-rgb), 0.75),
    transparent
  );
}

.footer__locations h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

.footer__locations p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.footer__cta h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.footer__bottom {
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.06);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent-hover);
}

/* ── Logo SVG color overrides — Gold & Silver ── */
.logo-mark {
  fill: var(--color-silver) !important;
}

.logo-detail {
  fill: var(--color-accent) !important;
}

.logo-text {
  fill: var(--color-text) !important;
}

/* Footer logo — subtle silver/gold treatment */
.flogo-mark {
  fill: var(--color-text-muted) !important;
}

.flogo-detail {
  fill: var(--color-accent) !important;
}

.flogo-text {
  fill: var(--color-text-secondary) !important;
}

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }

  .section--lg {
    padding: 8rem 0;
  }

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

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

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Process horizontal on tablet */
  .process {
    flex-direction: row;
    gap: var(--space-4);
    align-items: flex-start;
  }

  .process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .process__info {
    padding-top: 0;
  }

  .process__line {
    display: block;
    position: absolute;
    top: 30px;
    left: calc(30px + 10%);
    right: calc(30px + 10%);
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(var(--color-accent-rgb), 0.1) 0%,
      rgba(var(--color-accent-rgb), 0.35) 50%,
      rgba(var(--color-accent-rgb), 0.1) 100%
    );
    z-index: 0;
  }

  /* Gold pulse along the process line */
  .process__line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 50px;
    height: 6px;
    background: radial-gradient(
      ellipse at center,
      rgba(var(--color-accent-rgb), 0.5) 0%,
      transparent 70%
    );
    animation: processLinePulse 3s ease-in-out infinite;
    border-radius: var(--radius-full);
  }

  @keyframes processLinePulse {
    0% { left: -50px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 50px); opacity: 0; }
  }

  .process__number {
    position: relative;
    z-index: 2;
    background: var(--color-bg);
  }

  /* Keep numbers opaque so the line doesn't show through */
  .process__step:hover .process__number {
    background: var(--color-bg);
    border-color: rgba(var(--color-accent-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.06), var(--shadow-glow-sm);
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    display: flex !important;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .header {
    display: none;
  }

  .hero {
    padding-top: calc(56px + var(--space-4));
  }

  .nav {
    display: none;
  }

  .hero__content {
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn,
  .hero__cta .btn--lg {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .hero__cta .btn-whatsapp {
    flex: none;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  /* Center section labels on mobile */
  .section-label {
    padding-left: var(--space-6);
  }

  #cta-contact-whatsapp,
  #cta-footer-whatsapp {
    display: none;
  }

  .footer {
    padding-bottom: calc(var(--space-8) + 4rem);
  }

  .btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }
}
