/* =============================================================
   Concessions Supply — Main Stylesheet
   Self-hosted | No external CDN dependencies
   ============================================================= */

/* Google Fonts — loaded locally via @import fallback or 
   substitute with system stack if offline */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ---- BRAND TOKENS ------------------------------------------ */
:root {
  --green-dk:  #284221;   /* original Thryv nav dark */
  --green-md:  #4e5f2c;   /* original Thryv nav light */
  --green-lt:  #5a6f35;
  --gold:      #c8951a;
  --red-cta:   #c0272d;
  --red-dk:    #8e1a1f;
  --white:     #ffffff;
  --off-white: #f5f3f0;
  --text:      #222222;
  --text-muted:#555555;
  --border:    #d8d4ce;
  --shadow:    rgba(0,0,0,0.12);
}

/* ---- RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white) url('images/bg-texture.png') repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dk); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red-cta); }
ul { list-style: none; }

/* ---- SKIP LINK (accessibility) ----------------------------- */
.skip-link {
  position: absolute;
  top: -999px; left: 6px;
  background: var(--green-dk);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 4px 4px;
  font-size: 0.85rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---- HEADER ------------------------------------------------ */
header {
  background: linear-gradient(180deg, var(--green-md) 0%, var(--green-dk) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 64px;
}

/* Logo / Site Title */
.logo {
  display: flex;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  gap: 10px;
}
.logo:hover { text-decoration: none; opacity: 0.92; }
.logo-accent { color: var(--gold); }

/* Navigation */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: stretch; gap: 2px; }
.main-nav a {
  display: flex;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  padding: 0 18px;
  height: 64px;
  border-bottom: 3px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--gold);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}


/* ---- HEADER BANNER IMAGE ----------------------------------- */
.header-banner {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}

/* ---- PAGE TITLE BAR --------------------------------------- */
.page-title-bar {
  background: var(--green-dk);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ---- LAYOUT ------------------------------------------------ */
.site-wrapper {
  display: flex;
  max-width: 980px;
  margin: 26px auto 32px;
  padding: 0 16px;
  gap: 24px;
  flex: 1;
  width: 100%;
}

/* ---- SIDEBAR ---------------------------------------------- */
aside {
  width: 220px;
  flex-shrink: 0;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-dk);
  padding: 16px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.sidebar-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dk);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sidebar-card strong { display: block; color: var(--green-dk); font-weight: 600; }
.sidebar-info-block { margin-bottom: 12px; }
.sidebar-phone {
  font-size: 1rem;
  color: var(--red-cta);
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
}
.sidebar-phone-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.sidebar-email a { color: var(--green-dk); word-break: break-all; }

.holiday-list li {
  padding: 3px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.holiday-list li:last-child { border-bottom: none; }

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.payment-icons img {
  height: 26px;
  width: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px;
}

.fb-link { display: inline-block; margin-top: 10px; }
.fb-link img { width: 30px; }

/* ---- MAIN CONTENT ----------------------------------------- */
main { flex: 1; min-width: 0; }

/* ---- SLIDESHOW -------------------------------------------- */
.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  /* Fixed aspect ratio: 702×430 */
  aspect-ratio: 702 / 430;
  max-height: 430px;
}
.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--green-dk);
}
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(40, 66, 33, 0.7);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
  border-radius: 2px;
}
.slideshow-btn:hover { background: var(--red-cta); }
.slideshow-btn.prev { left: 0; border-radius: 0 2px 2px 0; }
.slideshow-btn.next { right: 0; border-radius: 2px 0 0 2px; }
.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.s-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.s-dot.active { background: var(--gold); }

/* ---- CONTENT CARD ----------------------------------------- */
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.content-card h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dk);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  line-height: 1.2;
}
.content-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--green-dk);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--green-md);
}
.content-card p { color: #3d3d3d; margin-bottom: 12px; }
.page-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ---- THREE-COLUMN LIST ------------------------------------ */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4px;
}
.three-col li {
  padding: 5px 6px 5px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 0.88rem;
  color: #3d3d3d;
}
.three-col li::before {
  content: '• ';
  color: var(--green-md);
  font-size: 1rem;
}

/* ---- CONTACT PAGE ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-dk);
  margin-bottom: 3px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #bbb;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
  background: #fafafa;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-md);
  box-shadow: 0 0 0 3px rgba(78,95,44,0.15);
}
.contact-form textarea { height: 100px; resize: vertical; }

.btn-submit {
  background: linear-gradient(180deg, var(--green-md) 0%, var(--green-dk) 100%);
  color: #fff;
  border: none;
  padding: 11px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.88; }

.form-msg { display: none; padding: 11px 14px; border-radius: 2px; margin-top: 10px; font-size: 0.9rem; }
.form-msg.success { background: #e6f4ea; color: #1a6b2f; display: block; }
.form-msg.error   { background: #fdecea; color: #b01b18; display: block; }

/* Credit App Box */
.credit-box {
  border: 2px dashed var(--gold);
  border-radius: 3px;
  padding: 20px;
  text-align: center;
  background: #fdf9f0;
  margin-top: 8px;
}
.credit-box img { width: 48px; margin: 0 auto 10px; }
.credit-box p { font-size: 0.88rem; color: #555; margin-bottom: 12px; }
.btn-download {
  display: inline-block;
  background: var(--red-cta);
  color: #fff;
  padding: 10px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-download:hover { background: var(--red-dk); color: #fff; text-decoration: none; }

.contact-info-block { margin-top: 22px; }
.contact-info-block h2 { margin-top: 0; }
.contact-info-block p { font-size: 0.92rem; line-height: 1.8; }

/* ---- FOOTER ----------------------------------------------- */
footer {
  background: var(--green-dk);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px 20px 16px;
  font-size: 0.82rem;
  margin-top: auto;
}
.footer-nav { margin-bottom: 10px; }
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
footer p { margin-bottom: 4px; }
footer a { color: var(--gold); }

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 768px) {
  /* Hamburger nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--green-dk);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 300px; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { height: auto; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); border-left: none; }

  /* Layout stacks */
  .site-wrapper { flex-direction: column; gap: 18px; }
  aside { width: 100%; }
  .sidebar-card { padding: 14px; }
  .payment-icons img { height: 22px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Lists */
  .three-col { grid-template-columns: repeat(2, 1fr); }

  /* Slideshow */
  .slideshow { aspect-ratio: 4/3; }
  .slideshow-btn { font-size: 1.4rem; padding: 8px 11px; }
}

@media (max-width: 480px) {
  .three-col { grid-template-columns: 1fr; }
  .content-card { padding: 18px 16px; }
  .content-card h1 { font-size: 1.35rem; }
  .header-inner { padding: 0 12px; }
}
