/* ==========================================================================
   BASE
   ==========================================================================
   Default styling for bare HTML elements. No classes involved — this is
   what the page looks like before any component is applied. Every rule
   here should trace back to a token; nothing hard-coded.
   ========================================================================== */

html {
  font-size: 112.5%; /* 18px base (16px * 1.125) — reading-first, larger than typical default */
}

body {
  background-color: var(--color-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ---- Headings ------------------------------------------------------- */
/* Display font throughout; sizes are defaults and are commonly
   overridden per-context (hero vs. in-page section heading) via
   utility classes in components.css. */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  color: #fff;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-normal);
}

h3 {
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-normal);
}

@media (max-width: 767px) {
  h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5.2vw, 2rem); }
  h3 { font-size: clamp(1.2rem, 4.2vw, 1.5rem); }
  h4 { font-size: 1.05rem; }
}

h4 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
}

h5, h6 {
  font-size: var(--text-base);
  font-family: var(--font-ui);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* ---- Body copy -------------------------------------------------------- */

p {
  max-width: 100%;
}

p + p {
  margin-top: var(--space-4);
}

@media (max-width: 767px) {
  p + p {
    margin-top: var(--space-3);
  }
}

/* A visually distinct lead paragraph — first paragraph after a heading,
   or explicitly marked. Used sparingly to ease a reader into a section. */
.lead {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: #f9faf6;

  @media (max-width: 767px) {
    font-size: var(--text-sm);
  }
}

strong, b {
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

/* ---- Links -------------------------------------------------------------
   Base link style; .link and .nav-link in components.css cover
   contextual variants (inline text links vs. nav items vs. CTAs). */

/* a {
  color: var(--color-accent);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: var(--transition-color);
} */

/*a:hover {
  color: var(--color-accent-deep);
}*/

/* ---- Blockquote --------------------------------------------------------
   Used for pull-quotes / testimonials — reflective, not decorative. */

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-ink-soft);
  border-left: 2px solid var(--color-line-strong);
  padding-left: var(--space-5);
}

/* ---- Horizontal rule ---------------------------------------------------
   A quiet divider — used as a breathing pause between content, not a
   heavy structural line. */

hr {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: var(--space-7) 0;
}

/* ---- Selection ---------------------------------------------------------
   Even text selection should feel like the rest of the brand. */

::selection {
  background-color: var(--color-accent-tint);
  color: var(--color-ink);
}

/* ---- Focus states --------------------------------------------------------
   Accessibility is non-negotiable. Visible, high-contrast, never
   suppressed — but styled to belong to this brand rather than a
   default browser blue ring. Uses :focus-visible so mouse clicks don't
   trigger it, only keyboard/assistive navigation. */

:focus {
  outline: none; /* removed only because :focus-visible below replaces it */
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Utility: visually hidden but accessible ----------------------------
   For skip links, form labels that are visually implicit, screen-reader
   only text. Never use display:none for content that should be
   announced. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Skip link -----------------------------------------------------------
   Visible on focus only. Required first focusable element on every page. */

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-toast);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transform: translateY(-150%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---- Images --------------------------------------------------------------
   Design Language: "nothing glossy, nothing artificial." No default
   shadow/filter is applied — imagery should look intentional per use,
   styled at the component level, not globally faked into "premium." */

img {
  border-radius: var(--radius-md);
}

/* ---- Reduced motion note ---------------------------------------------
   Global safety net already exists in reset.css. Individual
   scroll-reveal / ambient-motion components must additionally check
   `prefers-reduced-motion` in JS before initializing, since some
   effects (e.g. IntersectionObserver-driven reveals) need to skip
   their *initial hidden state* entirely, not just skip animating it. */


  /* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */

.floating_btn {
  position: fixed;
  right: 28px;
  bottom: 28px;

  width: 150px;
  height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  overflow: visible;

  z-index: 9999;
}


/* WhatsApp link */

.floating_btn > a {
  display: block;
  position: relative;
  width: 58px;
  height: 58px;
  overflow: visible;
  text-decoration: none;
}


/* Main WhatsApp button */

.contact_icon {
  position: relative;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25d366;
  color: #fff;

  font-size: 29px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28);

  z-index: 2;

  animation: whatsappDrop 2.2s ease-out infinite;
}


/* =========================================================
   WATER DROP RIPPLE
   ========================================================= */

.floating_btn > a::before,
.floating_btn > a::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: 58px;
  height: 58px;

  border: 2px solid rgba(37, 211, 102, 0.8);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(37, 211, 102, 0.16),
    0 0 24px rgba(37, 211, 102, 0.46);

  pointer-events: none;

  z-index: 1;

  transform: translate(-50%, -50%) scale(0.85);
  transform-origin: center;

  animation: whatsappRipple 2.8s ease-in-out infinite;
}


/* Second wave */

.floating_btn > a::after {
  animation-delay: 1.2s;
}


@keyframes whatsappRipple {

  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
  }

  10% {
    opacity: 0.95;
  }

  55% {
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -50%) scale(3.05);
    opacity: 0;
  }

}

@keyframes whatsappDrop {

  0% {
    transform: scale(1);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.28),
      0 0 0 0 rgba(255, 255, 255, 0.7),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }

  10% {
    transform: scale(0.94);
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 0.24),
      0 0 0 0 rgba(255, 255, 255, 0.65),
      0 0 0 0 rgba(37, 211, 102, 0.42);
  }

  20% {
    transform: scale(1.04);
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.3),
      0 0 0 8px rgba(255, 255, 255, 0.38),
      0 0 0 16px rgba(37, 211, 102, 0.2);
  }

  70% {
    transform: scale(1);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.28),
      0 0 0 24px rgba(255, 255, 255, 0),
      0 0 0 42px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.28),
      0 0 0 24px rgba(255, 255, 255, 0),
      0 0 0 42px rgba(37, 211, 102, 0);
  }

}


/* Hover */

.floating_btn > a:hover .contact_icon {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28);
}


/* Label */

.text_icon {
  margin: 7px 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 12px;
  line-height: 1;

  white-space: nowrap;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .floating_btn {
    right: 18px;
    bottom: 18px;
    width: 130px;
    height: 130px;
  }

  .contact_icon {
    width: 52px;
    height: 52px;

    font-size: 26px;
  }

  .floating_btn > a {
    width: 52px;
    height: 52px;
  }

  .floating_btn > a::before,
  .floating_btn > a::after {
    width: 52px;
    height: 52px;
  }

  .text_icon {
    font-size: 11px;
  }

}
