/*
Theme Name: Recycle Saline
Theme URI: https://www.recyclesaline.org
Author: Flex360
Description: Custom theme for Saline County Regional Solid Waste Management District. Migrated from Laravel/Flex CMS.
Version: 1.0.0
License: Proprietary
Text Domain: recycle-saline
*/

:root {
  --rs-green:       #6db257;
  --rs-green-dk:    #5a9847;
  --rs-green-lt:    #82c46b;
  --rs-blue:        #33acc4;
  --rs-blue-dk:     #2a8fa3;
  --rs-blue-lt:     #4cc1d8;
  /* legacy aliases — kept so existing var() usages still resolve */
  --rs-teal:        #6db257;
  --rs-teal-dk:     #5a9847;
  --rs-teal-lt:     #82c46b;
  --rs-cyan:        #33acc4;
  --rs-cyan-dk:     #2a8fa3;
  --rs-heading:     #4a4a4a;
  --rs-footer:      #2f2f2f;
  --rs-bg:          #f5f5f5;
  --rs-ink:         #1f2937;
  --rs-orange:      #e5712e;
  --rs-card-blue:   #395fcb;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { background: #ffffff; color: var(--rs-ink); overflow-x: hidden; max-width: 100vw; }

.font-display { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; letter-spacing: -0.015em; }
.font-body    { font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; }

.headline-xl { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 0.98; letter-spacing: -0.025em; }
.headline-lg { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; padding: 0.5rem 1rem; background: var(--rs-teal); color: white; z-index: 9999; border-radius: 0.5rem; }

.site-sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.site-sidebar::-webkit-scrollbar { width: 6px; }
.site-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 3px; }

/* hero overlay intentionally transparent — no green filter over the hero image */
.hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 60%, rgba(0,0,0,.45) 100%); }

.card-lift { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1); }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.25); }
.card-image-zoom { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.card-lift:hover .card-image-zoom { transform: scale(1.06); }

details.accordion-item { border: 1px solid rgba(15,122,102,.12); border-radius: 14px; background: white; transition: all .2s; margin-bottom: .75rem; }
details.accordion-item[open] { border-color: var(--rs-teal); box-shadow: 0 8px 24px -12px rgba(15,122,102,.2); }
details.accordion-item summary { padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--rs-heading); list-style: none; display: flex; align-items: center; gap: 1rem; }
details.accordion-item summary::-webkit-details-marker { display: none; }
details.accordion-item summary::after { content: ''; width: 12px; height: 12px; border-right: 2px solid var(--rs-teal); border-bottom: 2px solid var(--rs-teal); transform: rotate(45deg); margin-left: auto; transition: transform .25s; flex-shrink: 0; }
details.accordion-item[open] summary::after { transform: rotate(-135deg); }
details.accordion-item .answer { padding: 0 1.5rem 1.5rem; color: rgba(31,41,55,.8); line-height: 1.7; }

.prose-rs { max-width: 72ch; }
.prose-rs h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 2rem; line-height: 1.15; margin: 2.5rem 0 1rem; color: var(--rs-heading); }
.prose-rs h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--rs-heading); }
.prose-rs p  { margin: 0 0 1.25rem; line-height: 1.75; font-size: 1.0625rem; }
.prose-rs a  { color: var(--rs-teal-dk); text-decoration: underline; text-underline-offset: 3px; }
.prose-rs a:hover { color: var(--rs-cyan-dk); }
.prose-rs img { border-radius: 12px; margin: 1.75rem auto; max-width: 100% !important; width: auto !important; height: auto !important; box-shadow: 0 18px 40px -20px rgba(15,122,102,.25); display: block; }
.prose-rs strong { color: var(--rs-heading); font-weight: 600; }
.prose-rs ul, .prose-rs ol { margin: 0 0 1.25rem 1.5rem; line-height: 1.7; }
.prose-rs li { margin-bottom: .5rem; }
.prose-rs blockquote { border-left: 4px solid var(--rs-teal); padding-left: 1.5rem; font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; font-style: italic; margin: 2rem 0; }
.prose-rs table { width: 100% !important; border-collapse: collapse; margin: 1.5rem 0; }
.prose-rs table td, .prose-rs table th { border: 1px solid #e5e7eb; padding: .5rem .75rem; }
.prose-rs iframe { max-width: 100%; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.tag-pill { display: inline-flex; align-items: center; padding: .375rem .875rem; background: rgba(22,160,133,.12); color: var(--rs-teal-dk); border-radius: 999px; font-size: .75rem; font-weight: 500; }
.tag-pill:hover { background: rgba(22,160,133,.25); }

/* Mobile drawer */
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 380px; background: linear-gradient(180deg, var(--rs-teal-dk), var(--rs-teal)); z-index: 100; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); overflow-y: auto; box-shadow: -20px 0 60px -10px rgba(0,0,0,.5); color: white; }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 99; pointer-events: none; transition: background .3s; }
.mobile-drawer-overlay.is-open { background: rgba(0,0,0,.5); pointer-events: auto; }
.mobile-drawer nav > ul, .mobile-drawer nav .menu { list-style: none; padding: 0; margin: 0; }
.mobile-drawer nav > ul > li > a, .mobile-drawer nav .menu > li > a { display: block; padding: .75rem 1rem; border-radius: .75rem; color: white; font-weight: 500; }
.mobile-drawer nav > ul > li > a:hover, .mobile-drawer nav .menu > li > a:hover { background: rgba(255,255,255,.1); }
.mobile-drawer .sub-menu { list-style: none; padding: .25rem 0 .5rem 1.5rem; margin: .25rem 0 .5rem .5rem; border-left: 2px solid rgba(255,255,255,.25); }
.mobile-drawer .sub-menu li a { display: block; padding: .5rem .75rem; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.9); border-radius: .5rem; }

/* Footer Wufoo tabs */
.wufoo-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.wufoo-tab { padding: .55rem 1.15rem; border-radius: 999px; background: #f3f4f6; color: #4a4a4a; font-weight: 500; font-size: .85rem; cursor: pointer; border: 1px solid #e5e7eb; transition: all .2s; }
.wufoo-tab:hover { border-color: #33acc4; color: #2a8fa3; }
.wufoo-tab.is-active { background: #33acc4; color: white; border-color: #33acc4; }
.wufoo-panel { display: none; background: #fafafa; border-radius: 12px; padding: 0; min-height: 320px; }
.wufoo-panel.is-active { display: block; }
.wufoo-panel iframe { width: 100% !important; min-height: 480px; border: 0; background: #fff; border-radius: 12px; }

/* Legacy content normalization (Froala) */
.prose-rs span[style] { font-size: inherit !important; font-family: inherit !important; color: inherit !important; }
.prose-rs font { font-size: inherit !important; font-family: inherit !important; color: inherit !important; }
.prose-rs [style*="font-size"] { font-size: inherit !important; }
.prose-rs div[style*="width"] { width: auto !important; max-width: 100% !important; }

.grecaptcha-badge { visibility: hidden !important; }

/* === Recycle Saline footer (matches legacy layout) === */
/* The fixed sidebar is 18rem wide on lg+. The footer bleeds full-width so its
   colored bands extend behind the sidebar (preventing the body's white background
   from showing through below the sidebar's h-screen viewport). Each band is
   padded on the left to push its content past the sidebar. */
.rs-footer { background: #2f2f2f; color: #fff; position: relative; }
@media (min-width: 1024px) {
  .rs-footer-dump,
  .rs-footer-resources,
  .rs-footer-news,
  .rs-footer-meta { padding-left: 18rem; }
}

/* Top "Report Illegal Dumping" bar — blue gradient, matches legacy #faq #intro */
.rs-footer-dump { background: linear-gradient(135deg, #33acc4 0%, #2a8fa3 100%); color: #fff; }
.rs-footer-dump .inner { padding: 1.75rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; text-align: center; }
.rs-footer-dump h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.65rem; font-weight: 500; margin: 0; display: inline-flex; align-items: center; gap: .75rem; line-height: 1.1; }
.rs-footer-dump h3 strong { font-weight: 700; }
.rs-footer-dump h3 .warn { display: inline-flex; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: rgba(255,255,255,.25); align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.rs-footer-dump .tip { font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 400; margin: 0; }
.rs-footer-dump .tip strong { font-weight: 700; }
.rs-footer-dump a { color: #fff; text-decoration: none; }
.rs-footer-dump a:hover { color: rgba(255,255,255,.85); }

/* Resources section — green gradient w/ Smarty image */
.rs-footer-resources { background: linear-gradient(135deg, #6db257 0%, #5a9847 100%); color: #fff; position: relative; }
.rs-footer-resources .inner { padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .rs-footer-resources .inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }
.rs-footer-resources h2,
.rs-footer-resources h3,
.rs-footer-resources h4 { font-family: "Fraunces", Georgia, serif; color: #fff; }
.rs-footer-resources .tip h3 { font-size: 1.85rem; line-height: 1.05; margin: 0 0 .5rem; font-weight: 500; letter-spacing: -.02em; }
.rs-footer-resources .tip h3 strong { font-weight: 700; }
.rs-footer-resources .tip h3 .county { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 500; color: rgba(255,255,255,.9); margin-bottom: .35rem; font-family: "Inter", sans-serif; }
.rs-footer-resources .tip h5 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1rem; margin: 1.25rem 0 .4rem; color: #fff; }
.rs-footer-resources .tip p { font-size: .92rem; line-height: 1.55; margin: 0 0 1rem; color: rgba(255,255,255,.95); }
.rs-footer-resources .btn-primary { display: inline-block; padding: .6rem 1.25rem; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 999px; font-weight: 500; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.rs-footer-resources .btn-primary:hover { background: #fff; color: #4a8a3c; }
.rs-footer-resources .tip-categories h4 { font-size: 1.25rem; margin: 0 0 .85rem; font-weight: 600; }
.rs-footer-resources .tip-categories ul { list-style: none; padding: 0; margin: 0; }
.rs-footer-resources .tip-categories li { margin: 0 0 .45rem; }
.rs-footer-resources .tip-categories a { color: rgba(255,255,255,.95); font-size: .95rem; text-decoration: none; }
.rs-footer-resources .tip-categories a:hover { color: #fff; text-decoration: underline; }
.rs-footer-resources .didyouknow { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.rs-footer-resources .didyouknow .smarty { display: block; width: auto; height: 220px; max-width: 100%; object-fit: contain; object-position: left center; pointer-events: none; margin: 0; order: -1; }
.rs-footer-resources .didyouknow h2 { font-size: 2.5rem; line-height: 1; margin: 0; font-weight: 500; letter-spacing: -.04em; text-align: left; }
.rs-footer-resources .didyouknow h2 span { font-weight: 700; }
.rs-footer-resources .didyouknow p { font-size: .95rem; margin: .5rem 0 0; color: rgba(255,255,255,.95); text-align: left; }
.rs-footer-resources .didyouknow .btn-primary { align-self: flex-start; }
@media (max-width: 899px) {
  .rs-footer-resources .didyouknow .smarty { height: 180px; }
  .rs-footer-resources .didyouknow h2 { font-size: 2rem; }
}

/* News + Events + Contact-info + Contact-form section
   Layout: green strip (events) | darker-green strip (contact-info) | blue strip (form) */
.rs-footer-news { background: #fff; color: #222; }
.rs-footer-news .inner { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .rs-footer-news .inner { grid-template-columns: 1.1fr 1fr 2fr; } }
.rs-footer-news .events,
.rs-footer-news .contact-info,
.rs-footer-news .contact-form { padding: 2.5rem 2rem; }
.rs-footer-news .events { background: linear-gradient(135deg, #6db257 0%, #5a9847 100%); color: #fff; }
.rs-footer-news .events h2 { font-family: "Fraunces", Georgia, serif; font-size: 1.85rem; line-height: 1.05; margin: 0 0 1.25rem; color: #fff; font-weight: 500; letter-spacing: -.02em; }
.rs-footer-news .events h2 strong { display: block; font-weight: 700; }
.rs-footer-news .events ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.rs-footer-news .events ul li { padding: 0 0 1rem; margin: 0 0 1rem; border-bottom: 1px solid rgba(255,255,255,.25); }
.rs-footer-news .events ul li:last-child { border-bottom: 0; }
.rs-footer-news .events ul li h4 { font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; line-height: 1.2; }
.rs-footer-news .events ul li h4 a { color: #fff; text-decoration: none; }
.rs-footer-news .events ul li h4 a:hover { color: #fff; text-decoration: underline; }
.rs-footer-news .events ul li h5,
.rs-footer-news .events ul li h6 { font-family: "Inter", sans-serif; font-weight: 400; font-size: .85rem; margin: 0 0 .15rem; color: rgba(255,255,255,.92); }
.rs-footer-news .events ul li h5 { font-style: italic; }
.rs-footer-news .events .btn-primary { display: inline-block; padding: .6rem 1.25rem; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 999px; font-weight: 500; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.rs-footer-news .events .btn-primary:hover { background: #fff; color: #4a8a3c; }

.rs-footer-news .contact-info { background: linear-gradient(135deg, #508240 0%, #3c612f 100%); color: #fff; text-align: center; font-size: .95rem; line-height: 1.6; }
.rs-footer-news .contact-info img { display: block; margin: 0 auto 1.25rem; max-width: 160px; height: auto; }
.rs-footer-news .contact-info p { margin: 0 0 1rem; color: #fff; }
.rs-footer-news .contact-info strong { color: #fff; font-weight: 700; }
.rs-footer-news .contact-info a { color: #fff; }
.rs-footer-news .contact-info .legal { margin-top: 1.5rem; font-size: .8rem; opacity: .85; }

.rs-footer-news .contact-form { background: #fff; color: #222; }
.rs-footer-news .contact-form h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.85rem; margin: 0 0 1rem; color: #2a8fa3; font-weight: 500; letter-spacing: -.02em; }

.rs-footer-meta { background: #1f1f1f; }
.rs-footer-meta .inner { padding: 1rem 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; font-size: .75rem; color: rgba(255,255,255,.6); }
.rs-footer-meta a { color: rgba(255,255,255,.85); }

/* === Service indicator pills (haulers) === */
.svc-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.svc-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.svc-pill::before { content: ''; width: .45rem; height: .45rem; border-radius: 999px; background: currentColor; opacity: .9; }
.svc-pill.svc-on { background: rgba(109,178,87,.15); color: #4a8a3c; }
.svc-pill.svc-off { background: #f1f3f4; color: #9aa0a6; }
.svc-pill.svc-off::before { background: #c5cbd0; }

/* === Category filter chips (used on News, Events, Resources) === */
.rs-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.rs-filter-chip { display: inline-flex; align-items: center; padding: .45rem 1rem; background: #fff; border: 1px solid #e5e7eb; color: #4a4a4a; border-radius: 999px; font-size: .85rem; font-weight: 500; transition: all .2s; cursor: pointer; }
.rs-filter-chip:hover { border-color: var(--rs-green); color: var(--rs-green-dk); }
.rs-filter-chip.is-active { background: var(--rs-green); color: #fff; border-color: var(--rs-green); }
