/* ==========================================================================
   Sky Ceylon — Base Styles (shared partial)

   The primitives WordPress does NOT ship but every ported section assumes:
   the box-sizing reset, keyboard focus rings, the blockGap stripe fix, and
   the three cross-section components (container, eyebrow, button, icon).

   FluentSnippets group: Shared Styles | type: css | run_at: wp_head
   load_as_file: yes | load_in_block_editor: yes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESETS  (scoped to the skyc- prefix — core and plugin styles untouched)
   -------------------------------------------------------------------------- */
[class*="skyc-"],
[class*="skyc-"]::before,
[class*="skyc-"]::after,
[class*="skyc-"] * {
  box-sizing: border-box;
}

[class*="skyc-"] ul,
[class*="skyc-"] ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

[class*="skyc-"] p {
  text-wrap: pretty;
}

[class*="skyc-"] img,
[class*="skyc-"] svg {
  display: block;
  max-width: 100%;
}

/* Keyboard focus only — a tapped link keeps focus on mobile, so :focus alone
   leaves a ring behind after every tap. */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--wp--custom--focus);
  outline-offset: 2px;
  border-radius: var(--wp--custom--radius-xs);
}

::selection {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

html {
  scroll-padding-top: var(--wp--custom--header-height);
}

/* The theme's blockGap puts a top margin on every root sibling and every
   top-level section — between full-bleed washes that reads as a white stripe.
   Core applies it through zero-specificity :where() rules, so a plain class
   wins without !important. */
.wp-site-blocks > * {
  margin-block-start: 0;
}
.entry-content > [class*="skyc-"] {
  margin-block-start: 0;
}

/* --------------------------------------------------------------------------
   2. ICONS
   -------------------------------------------------------------------------- */
.skyc-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skyc-icon--sm { width: 1em; height: 1em; }
.skyc-icon--lg { width: 1.75em; height: 1.75em; }

/* --------------------------------------------------------------------------
   3. CONTAINER
   -------------------------------------------------------------------------- */
.skyc-container {
  width: 100%;
  max-width: var(--wp--custom--container-max);
  margin-inline: auto;
  padding-inline: var(--wp--custom--gutter);
}
.skyc-container--wide   { max-width: var(--wp--custom--container-wide); }
.skyc-container--narrow { max-width: var(--wp--custom--container-narrow); }

/* --------------------------------------------------------------------------
   4. EYEBROW
   -------------------------------------------------------------------------- */
.skyc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--8);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: var(--wp--custom--weight-semibold);
  letter-spacing: var(--wp--custom--tracking-wider);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin: 0 0 var(--wp--preset--spacing--16);
}
.skyc-eyebrow::before {
  content: "";
  width: var(--wp--preset--spacing--24);
  height: 2px;
  background: var(--wp--preset--color--accent);
  flex: none;
}
.skyc-eyebrow--invert { color: var(--wp--preset--color--accent); }
.skyc-eyebrow--plain::before { display: none; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   .skyc-btn--primary  gold fill + black text  -> WhatsApp, the main action
   .skyc-btn--brand    magenta fill + white    -> secondary emphasis
   .skyc-btn--outline  magenta outline         -> call / quieter action on light
   .skyc-btn--light    white outline           -> call / quieter action on dark
   -------------------------------------------------------------------------- */
.skyc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--8);
  padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--32);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--base);
  font-weight: var(--wp--custom--weight-semibold);
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--wp--custom--radius-sm);
  cursor: pointer;
  transition: background-color var(--wp--custom--duration-base) var(--wp--custom--ease-out),
              border-color var(--wp--custom--duration-base) var(--wp--custom--ease-out),
              color var(--wp--custom--duration-base) var(--wp--custom--ease-out),
              box-shadow var(--wp--custom--duration-base) var(--wp--custom--ease-out),
              transform var(--wp--custom--duration-fast) var(--wp--custom--ease-out);
}
.skyc-btn:hover  { transform: translateY(-2px); text-decoration: none; }
.skyc-btn:active { transform: translateY(0); }
.skyc-btn .skyc-icon { width: 1.15em; height: 1.15em; }

.skyc-btn--primary {
  background-color: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--custom--black);
  box-shadow: var(--wp--custom--shadow-accent);
}
.skyc-btn--primary:hover {
  background-color: var(--wp--preset--color--accent-dark);
  border-color: var(--wp--preset--color--accent-dark);
  color: var(--wp--custom--black);
}

.skyc-btn--brand {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  box-shadow: var(--wp--custom--shadow-brand);
}
.skyc-btn--brand:hover {
  background-color: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--base);
}

.skyc-btn--outline {
  background-color: transparent;
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}
.skyc-btn--outline:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

.skyc-btn--light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--wp--preset--color--base);
}
.skyc-btn--light:hover {
  background-color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--primary-deep);
}

.skyc-btn--white {
  background-color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--primary);
  box-shadow: var(--wp--preset--shadow--md);
}
.skyc-btn--white:hover { color: var(--wp--preset--color--primary-dark); }

.skyc-btn--sm {
  padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--20);
  font-size: var(--wp--preset--font-size--sm);
}
.skyc-btn--lg {
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
  font-size: var(--wp--preset--font-size--md);
}
.skyc-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   6. UTILITIES
   -------------------------------------------------------------------------- */
.skyc-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skyc-btn { transition: none; }
  .skyc-btn:hover { transform: none; }
}
