/* Your own rules. This file loads after Tailwind and daisyUI, so it wins a tie.
 * Reach for a utility class first; write CSS here when no utility can do it. */

/* ============================================================ PALETTE
 *
 * "…"
 *
 * Name the mood in a sentence — "a bright room on a Tuesday morning, nothing
 * on the desk" — then list your colors and the job each one does. This block
 * is what you check later decisions against.
 *
 *   primary   #______   the action color: buttons, links, the icons
 *   base-100  #______   the page ground
 *   base-200  #______   sections and cards that step forward from the ground
 *   neutral   #______   the dark band behind the numbers
 */

/* Redeclare the theme's colors here to make them yours. Change `corporate` to the
 * theme on <html>, in every page. Measure both: white on your primary, and your
 * primary as text on the page. Each needs 4.5:1. */
[data-theme='corporate'] {
  /* Already filled in: corporate's own #0082ce measures 4.13:1 with white, under
   * the floor. #0072b8 measures 5.12:1. Measure your replacement the same way. */
  --color-primary: #0072b8;
  /* The same for green: corporate's #00a43b measures 3.29:1 with white.
   * #15803d measures 5.02:1. */
  --color-success: #15803d;
  /* --color-primary-content: #______; */
  /* --color-neutral: #______; */
}

/* ============================================================ TYPE
 *
 * One face in several weights, Plus Jakarta Sans. To change it, replace the
 * Google Fonts <link> in the <head> of every page, then the name below. */
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ============================================================ THE MESH
 *
 * The shapes beside the headline, the case study and each service: gradients in
 * your theme's own colors. Move the percentages and watch what changes. */
.mesh {
  background-color: var(--color-base-200);
  background-image:
    radial-gradient(at 20% 20%, color-mix(in oklch, var(--color-primary) 55%, transparent) 0px, transparent 55%),
    radial-gradient(at 80% 10%, color-mix(in oklch, var(--color-secondary) 45%, transparent) 0px, transparent 50%),
    radial-gradient(at 65% 85%, color-mix(in oklch, var(--color-accent) 45%, transparent) 0px, transparent 55%),
    linear-gradient(160deg, var(--color-base-100), var(--color-base-300));
}

/* A second arrangement, so the shapes on a page are relatives, not twins. */
.mesh-alt {
  background-image:
    radial-gradient(at 85% 25%, color-mix(in oklch, var(--color-primary) 50%, transparent) 0px, transparent 55%),
    radial-gradient(at 15% 75%, color-mix(in oklch, var(--color-accent) 45%, transparent) 0px, transparent 50%),
    linear-gradient(200deg, var(--color-base-100), var(--color-base-300));
}

/* A faint wash of the primary color behind the top of the page. */
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 85% 0%, color-mix(in oklch, var(--color-primary) 14%, transparent), transparent 70%);
  pointer-events: none;
}

/* The closing call to action: the primary color with the mesh's glow inside it. */
.cta-panel {
  background-color: var(--color-primary);
  color: var(--color-primary-content);
  background-image:
    radial-gradient(at 10% 0%, color-mix(in oklch, var(--color-accent) 45%, transparent), transparent 55%),
    radial-gradient(at 100% 100%, color-mix(in oklch, var(--color-secondary) 55%, transparent), transparent 50%);
}

/* ============================================================ PRICING SWITCH
 *
 * The monthly/yearly toggle on services.html. :has() swaps the price; no JavaScript. */
.price-yearly {
  display: none;
}
main:has(#yearly:checked) .price-monthly {
  display: none;
}
main:has(#yearly:checked) .price-yearly {
  display: inline;
}

/* ============================================================ THE FORM
 *
 * Budget choices: the real radio is hidden inside each label, so these rules show
 * which one is picked and where the keyboard is. Keep the focus ring. */
.choice:has(:checked) {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-content);
}
.choice:has(:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================ CAROUSELS
 *
 * daisyUI's .carousel is a sideways scroller that snaps to each slide. js/site.js
 * adds the arrows and dots; these rules dress them. */
[data-carousel] .carousel {
  position: relative; /* site.js measures each slide from here */
  scrollbar-width: none;
}
[data-carousel] .carousel::-webkit-scrollbar {
  display: none;
}
.carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.2s ease, width 0.2s ease;
}
.carousel-dot[aria-current='true'] {
  opacity: 1;
  width: 1.75rem;
}

/* A slide's words sit on its photo, so the scrim does what .hero-scrim does on
 * the home page: 65% black or more behind white text. Lighten it only if you
 * measure. The pause button shows play while it is paused. */
.slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.65) 45%, rgb(0 0 0 / 0.85));
}
[data-pause] .i-play,
[data-pause][aria-pressed='true'] .i-pause {
  display: none;
}
[data-pause][aria-pressed='true'] .i-play {
  display: block;
}

/* ============================================================ NAV OVER THE HERO
 *
 * index-2.html's nav: white on the photo, then the page's own colors once the
 * photo has scrolled under it (.is-solid, set by js/site.js). */
.nav-over {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 30;
  color: #fff;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.55), transparent);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.nav-over.is-fixed {
  position: fixed;
}
.nav-over.is-solid {
  color: var(--color-base-content);
  background: color-mix(in oklch, var(--color-base-100) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 color-mix(in oklch, var(--color-base-content) 12%, transparent);
}
.nav-over .dropdown-content {
  color: var(--color-base-content);
}

/* ============================================================ EVERYTHING ELSE */

/* Labels at full strength. daisyUI's dimmed 12px labels measured 4.23:1 on the
 * contact form, under 4.5:1. Keep this rule. */
.fieldset .label,
.fieldset-legend,
.footer-title {
  color: inherit;
  opacity: 1;
}
.fieldset .label {
  font-size: 0.875rem;
}

/* The page you are on (aria-current). Measure before you recolor it: primary on
 * corporate's black neutral fails. */
.menu a[aria-current='page'] {
  font-weight: 700;
}

/* The skip link: off-screen until a keyboard user tabs to it. Keep it. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 50;
}
.skip-link:focus {
  top: 1rem;
}

/* Anchors land below the sticky navbar instead of behind it. If you change the
 * navbar's height, change this number too. */
[id] {
  scroll-margin-top: 5rem;
}

html {
  scroll-behavior: smooth;
}

/* Less movement for readers whose system asks for it. Keep this block. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
