/* ------------------------------------------------------------
   BaseTheme (Bootstrap-first) main.css
------------------------------------------------------------ */


/* ============================================================
   1) TOKENS (Design System)
============================================================ */

:root {
  /* Palette */
  --bt-white: #ffffff;
  --bt-black: #000000;

  --bt-text: #1a1a1a;
  --bt-muted: #6c757d;
  --bt-border: #e5e5e5;
  --bt-surface: #f8f9fa;

  /* Typography */
  --bt-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --bt-line: 1.55;

  /* Radius / shadow */
  --bt-radius-sm: 0.5rem;
  --bt-radius: 0.75rem;
  --bt-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);

  /* Spacing scale */
  --bt-space-2: 0.5rem;
  --bt-space-3: 0.75rem;
  --bt-space-4: 1rem;
  --bt-space-6: 1.5rem;
  --bt-space-8: 2rem;
  --bt-space-12: 3rem;
  --bt-space-16: 4rem;
  --bt-space-20: 5rem;

  /* Motion */
  --bt-ease: cubic-bezier(.2,.8,.2,1);
  --bt-duration-fast: 150ms;
  --bt-duration: 250ms;
}


/* ============================================================
   2) BASE 
============================================================ */

html, body { height: 100%; }

body {
  font-family: var(--bt-font-sans);
  line-height: var(--bt-line);
  color: var(--bt-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; }
iframe { border: 0; }

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


/* ============================================================
   Screen reader text (WordPress standard)
============================================================ */

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

/* Allow screen-reader-text to be visible when focused (keyboard users) */
.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #000;
  color: #fff;
  z-index: 100000;
}

.visually-hidden {
  composes: screen-reader-text;
}

/* ============================================================
   3) GLOBAL INTERACTIONS
============================================================ */

a,
button,
.btn,
input,
select,
textarea {
  transition:
    color var(--bt-duration) ease,
    background-color var(--bt-duration) ease,
    border-color var(--bt-duration) ease,
    box-shadow var(--bt-duration) ease,
    transform var(--bt-duration) var(--bt-ease),
    opacity var(--bt-duration) ease;
}


/* ============================================================
   4) ACCESSIBILITY
============================================================ */

/* Skip to content (place after wp_body_open()) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
  z-index: 10000;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform var(--bt-duration-fast) var(--bt-ease);
}
.skip-link:focus { transform: translateY(0); }

/* Visible focus for non-Bootstrap elements */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,110,253,.35);
}

.btn:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 3px rgba(13,110,253,.35);
}


/* ============================================================
   5) TYPOGRAPHY 
============================================================ */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  margin-bottom: 0.6em;
}

/* Safe clamp scale  */
h1 { font-size: clamp(2rem, 3vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.2vw + 0.8rem, 2.75rem); }
h3 { font-size: clamp(1.5rem, 1.6vw + 0.7rem, 2.125rem); }
h4 { font-size: clamp(1.25rem, 1.2vw + 0.6rem, 1.75rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Classic WP content rhythm  */
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child  { margin-bottom: 0; }

.entry-content p { margin-bottom: var(--bt-space-4); }

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
  margin-bottom: var(--bt-space-4);
}

.entry-content blockquote {
  border-left: 4px solid var(--bt-border);
  padding-left: var(--bt-space-4);
  margin: var(--bt-space-6) 0;
  color: var(--bt-muted);
}

.entry-content a { text-underline-offset: 0.15em; }
.entry-content a:hover { opacity: 0.85; }


/* ============================================================
   6) WYSIWYG CONTENT (use inside ACF modules)
   Wrap output in <div class="bt-wysiwyg">…</div>
============================================================ */

.bt-wysiwyg > *:first-child { margin-top: 0; }
.bt-wysiwyg > *:last-child  { margin-bottom: 0; }

.bt-wysiwyg p { margin-bottom: var(--bt-space-4); }

.bt-wysiwyg h1,
.bt-wysiwyg h2,
.bt-wysiwyg h3,
.bt-wysiwyg h4,
.bt-wysiwyg h5,
.bt-wysiwyg h6 {
  line-height: 1.15;
  margin: 0 0 0.6em;
}

.bt-wysiwyg ul,
.bt-wysiwyg ol {
  padding-left: 1.25rem;
  margin-bottom: var(--bt-space-4);
}

.bt-wysiwyg li { margin-bottom: 0.25rem; }

.bt-wysiwyg blockquote {
  border-left: 4px solid var(--bt-border);
  padding-left: var(--bt-space-4);
  margin: var(--bt-space-6) 0;
  color: var(--bt-muted);
}

.bt-wysiwyg a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.bt-wysiwyg a:hover { opacity: 0.85; }

.bt-wysiwyg img { border-radius: var(--bt-radius-sm); }


/* ============================================================
   7) WORDPRESS CORE ALIGNMENTS 
============================================================ */

.alignleft   { float: left;  margin: 0.25rem 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* Wide/full support  */
.alignwide {
  max-width: 1200px; /* adjust per project */
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content::after,
.bt-wysiwyg::after {
  content: "";
  display: table;
  clear: both;
}


/* ============================================================
   8) HEADER / NAV 
============================================================ */

.navbar-brand img {
  max-height: 48px;
  width: auto;
  display: block;
}


/* ============================================================
   9) MODULE SYSTEM
============================================================ */

.module { padding-block: var(--bt-space-12); }
.module--tight { padding-block: var(--bt-space-8); }
.module--loose { padding-block: var(--bt-space-16); }

.module--bg-surface { background: var(--bt-surface); }
.module--bg-white   { background: var(--bt-white); }
.module--bg-dark    { background: var(--bt-black); color: var(--bt-white); }
.module--bg-dark a  { color: var(--bt-white); }


/* ============================================================
   10) UTILITIES 
============================================================ */

.bt-hidden     { display: none !important; }
.bt-bg-white   { background-color: var(--bt-white) !important; }
.bt-bg-surface { background-color: var(--bt-surface) !important; }
.bt-text-white { color: var(--bt-white) !important; }
.bt-text-muted { color: var(--bt-muted) !important; }
.bt-radius     { border-radius: var(--bt-radius) !important; }
.bt-shadow-sm  { box-shadow: var(--bt-shadow-sm) !important; }

/* Opt-in hover helpers */
.bt-hover-lift {
  transition: transform var(--bt-duration) var(--bt-ease), box-shadow var(--bt-duration) var(--bt-ease);
}
.bt-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.bt-img-hover {
  transition: transform 300ms var(--bt-ease), opacity 300ms var(--bt-ease);
}
.bt-img-hover:hover {
  transform: scale(1.02);
  opacity: 0.95;
}


/* ============================================================
   11) COMPONENTS 
============================================================ */

/* Buttons */
.bt-btn-outline-white {
  border: 1px solid var(--bt-white);
  color: var(--bt-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.875rem 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(16px, 0.8vw + 0.4rem, 18px);
  transition: opacity var(--bt-duration) var(--bt-ease), transform var(--bt-duration) var(--bt-ease);
}

.bt-btn-outline-white:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.bt-card {
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  box-shadow: var(--bt-shadow-sm);
  background: var(--bt-white);
  padding: var(--bt-space-6);
}

/* Slick slider helpers */

.my-slider .slide { padding-inline: var(--bt-space-3); }
.my-slider { margin-inline: calc(var(--bt-space-3) * -1); }


/* ============================================================
   12) RESPONSIVE VIDEO
============================================================ */

.responsive-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: var(--bt-space-8) 0;
}

.responsive-video iframe,
.responsive-video object,
.responsive-video embed,
.responsive-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* ============================================================
   13) REDUCED MOTION 
============================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   14) BREAKPOINT PLACEHOLDERS
============================================================ */

@media (min-width: 992px) {
  /* lg+ tweaks here */
}


/* ============================================================
   15) DEBUG (uncomment when building layouts)
============================================================ */

/*
.module { outline: 1px dashed rgba(255,0,0,0.3); }
*/