/* ============================================================
   Uplevel Ops Inc. — Custom Styles
   Supplements Tailwind CDN. Gold brand palette (#ca8a04).
   Editorial / Magazine archetype with Fraunces serif headings.
   ============================================================ */

/* --- Base -------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

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

/* --- Serif heading override -------------------------------- */
.font-heading {
  font-family: 'Fraunces', serif;
}

/* --- Editorial typography helper --------------------------- */
.text-editorial {
  font-size: 1.125rem;       /* text-lg */
  line-height: 1.75;         /* leading-relaxed */
  max-width: 65ch;           /* max-w-prose */
}

/* --- Top bar ----------------------------------------------- */
.top-bar {
  background-color: #422006;  /* brand-900 */
  color: #fef9c3;             /* brand-100 */
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* --- Sticky header with scroll shadow ---------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* --- Section dividers -------------------------------------- */
.section-divider {
  border-top: 1px solid #e5e7eb; /* gray-200 */
}

/* --- Pill button ------------------------------------------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  line-height: 1.4;
}

.btn-pill:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.30);
}

.btn-pill:active {
  transform: scale(0.99);
}

.btn-pill-primary {
  background-color: #ca8a04;
  color: #fff;
}

.btn-pill-primary:hover {
  background-color: #a16207;
}

.btn-pill-outline {
  background-color: transparent;
  color: #ca8a04;
  border: 2px solid #ca8a04;
}

.btn-pill-outline:hover {
  background-color: #ca8a04;
  color: #fff;
}

/* --- Outline-accent cards ---------------------------------- */
.card-accent {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  background: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-accent:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: #ca8a04;
}

/* --- Scroll animations ------------------------------------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.animate-visible {
  opacity: 1;
}

/* --- Mobile menu (slide-down) ------------------------------ */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #fefce8; /* brand-50 */
}

.mobile-menu.open {
  max-height: 600px;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  color: #422006;
  border-bottom: 1px solid #fef08a;
  transition: background-color 0.15s ease;
}

.mobile-menu a:hover {
  background-color: #fef08a;
}

/* --- Form focus states ------------------------------------- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #ca8a04;
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.2);
}

.form-input {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input.input-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-input.input-success {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* --- FAQ accordion ----------------------------------------- */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: #fefce8;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-item .faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 1rem 1.5rem 1.25rem;
  color: #4b5563;
  line-height: 1.7;
}

/* --- Pull quote -------------------------------------------- */
.pull-quote {
  position: relative;
  padding: 2rem 2.5rem;
  font-size: 1.25rem;
  font-style: italic;
  color: #1f2937;
  line-height: 1.7;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 0;
  font-size: 5rem;
  color: #fde68a; /* brand-200 */
  font-family: 'Fraunces', serif;
  line-height: 1;
}

.pull-quote::after {
  content: '\201D';
  position: absolute;
  bottom: -1.5rem;
  right: 0.5rem;
  font-size: 5rem;
  color: #fde68a;
  font-family: 'Fraunces', serif;
  line-height: 1;
}

/* --- Cookie consent strip ---------------------------------- */
#cookie-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #422006; /* brand-900 */
  color: #fff;
  padding: 0.875rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

#cookie-strip.visible {
  display: flex;
}

#cookie-strip button {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: none;
}

#cookie-strip .cookie-accept {
  background-color: #ca8a04;
  color: #fff;
}

#cookie-strip .cookie-accept:hover {
  background-color: #a16207;
}

#cookie-strip .cookie-necessary {
  background-color: transparent;
  color: #fef9c3;
  border: 1px solid #fef9c3;
}

#cookie-strip .cookie-necessary:hover {
  background-color: rgba(254, 249, 195, 0.1);
}

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

/* --- Print styles ------------------------------------------ */
@media print {
  .site-header,
  .top-bar,
  .mobile-menu,
  nav,
  footer,
  #cookie-strip,
  .btn-pill {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .pull-quote::before,
  .pull-quote::after {
    color: #ccc;
  }
}
