/**
 * Circle T Cattle Co. — Extras CSS
 * Announcement banner, toast, sidecard, qty control, animations, responsive overrides.
 */

/* ================================================================
   ANNOUNCEMENT BANNER
   ================================================================ */
.announcement-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  text-align: center;
}
.announcement-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}
.announcement-bar-icon svg {
  width: 16px;
  height: 16px;
}
.announcement-bar-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
.ctc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}
.ctc-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.ctc-toast-success { background: var(--color-success); }
.ctc-toast-error   { background: #B83220; }
.ctc-toast-info    { background: var(--color-primary); }

/* ================================================================
   SIDECARD (shared between cart + contact)
   ================================================================ */
.sidecard {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.sidecard h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.sidecard h3 svg { width: 20px; height: 20px; color: var(--color-primary); }
.sidecard-line {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.sidecard-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 2px solid var(--color-charcoal);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
}
.sidecard-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: var(--space-md);
  line-height: 1.4;
}

.checkout-side .sidecard {
  position: sticky;
  top: 100px;
}

/* Footer "Contact Us" phone buttons */
.ctc-footer-phone-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.ctc-footer-phone-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}
.ctc-footer-phone-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}
.ctc-footer-phone-btn svg { width: 16px; height: 16px; }

/* Footer "Find Us" card extras */
.ctc-footer-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}
.ctc-footer-card-label--mt { margin-top: var(--space-md); }
.ctc-footer-card-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.4;
}
.ctc-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
.ctc-footer-cta svg { width: 14px; height: 14px; }

/* Market card phone links */
.market-card-row a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.market-card-row a:hover { color: var(--color-primary); }

/* ================================================================
   QTY CONTROL (shared)
   ================================================================ */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-minus,
.qty-plus {
  width: 36px;
  height: 36px;
  background: var(--color-sand);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
}
.qty-minus:hover,
.qty-plus:hover { background: var(--color-border); }
.qty-input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: 0.95rem;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ================================================================
   FORM RADIO GROUP (checkout delivery options)
   ================================================================ */
.form-row--radio {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.form-field--radio {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.form-field--radio:hover { border-color: var(--color-primary); }
.form-field--radio input[type="radio"] { margin-top: 3px; }
.form-field--radio span {
  flex: 1 0 auto;
}
.form-field--radio strong { display: block; }
.form-field--radio small {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.form-field--radio:has(input:checked) {
  border-color: var(--color-primary);
  background: #f0f5ec;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section { animation: fadeInUp 0.4s ease-out; }

/* Hero — kill whitespace below slider */
.hero-slider {
  margin-bottom: 0;
  line-height: 0;
  font-size: 0;
}
.hero-slider .slide,
.hero-slider .slide .container,
.hero-slider .slide-content {
  font-size: 1rem;
  line-height: 1.5;
  min-height: 400px;
  padding-left: 30px;
}

/* Hero slide transitions */
.slide {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide.active {
  opacity: 1;
}

/* Product card hover lift */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ================================================================
   DARK-BG BUTTON OVERRIDES
   .btn-ghost is transparent/muted by default — needs white text
   when placed on dark slider overlay or green CTA banner.
   ================================================================ */
.slide-actions .btn-ghost,
.cta-actions .btn-ghost {
  color: var(--color-white);
  border-color: rgba(255,255,255,.4);
}
.slide-actions .btn-ghost:hover,
.cta-actions .btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
}

/* ================================================================
   ABOUT SNIPPET PLACEHOLDER (no image uploaded)
   ================================================================ */
.about-snippet-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  color: var(--color-text-light);
}
.about-snippet-placeholder svg { width: 64px; height: 64px; }

/* ================================================================
   MOBILE MENU FIXES
   Phone link larger, footer area gets bottom padding
   ================================================================ */
.ctc-fullmenu-call {
  font-size: 1.15rem;
}
.ctc-fullmenu-call svg {
  width: 22px;
  height: 22px;
}
.ctc-fullmenu-foot {
  padding-bottom: var(--space-2xl);
}

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */

/* Small phones */
@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.6rem; }
  .slide-title { font-size: 1.4rem; }
  .slide-actions { flex-direction: column; gap: var(--space-sm); }
  .slide-actions .btn { width: 100%; text-align: center; }
  .masthead-call span { display: none; }
  .masthead-shop-link { display: none; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .about-snippet-grid { gap: var(--space-xl); }
  .ctc-footer-cards { grid-template-columns: 1fr; }
  .checkout-grid,
  .cart-layout,
  .contact-page-grid { grid-template-columns: 1fr; }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 767px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
  .announcement-bar,
  .ctc-masthead,
  .ctc-fullmenu,
  .hero-slider,
  .cta-banner,
  .ctc-footer,
  .ctc-toast { display: none !important; }
  .section { animation: none; }
}
