/* ==========================================================================
   K.E.C. Party Rentals — 2024 rebuild
   Hand-written, framework-free, mobile-first. No build step, no runtime deps.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --blue:        #0b5cd6;   /* primary */
  --blue-dark:   #0842a0;
  --blue-050:    #eaf2ff;
  --sun:         #ffc21a;   /* accent */
  --sun-dark:    #e9a400;
  --coral:       #ff5a5f;   /* CTA pop */
  --coral-dark:  #e6484d;
  --ink:         #17202a;   /* body text */
  --ink-soft:    #4a5763;
  --line:        #e4e8ee;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fb;
  --white:       #ffffff;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 4px 16px rgba(16,38,74,.08);
  --shadow-lg:   0 12px 34px rgba(16,38,74,.14);
  --wrap:        1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x:hidden on html (only) contains the off-canvas mobile menu without
   creating a second scroll container — body stays overflow:visible so vertical
   scrolling and the sticky header keep working. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.25rem; }
.section__head p { color: var(--ink-soft); font-size: 1.075rem; }
.eyebrow {
  display: inline-block; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; color: var(--blue);
  background: var(--blue-050); padding: .35em .8em; border-radius: 999px; margin-bottom: .9rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(255,90,95,.35); }
.btn--primary:hover { background: var(--coral-dark); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11,92,214,.3); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--line); box-shadow: var(--shadow); }
.btn--ghost:hover { border-color: var(--blue); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 16px rgba(255,194,26,.4); }
.btn--sun:hover { background: var(--sun-dark); }
.btn--lg { font-size: 1.075rem; padding: 1em 1.7em; }
.btn--sm { font-size: .82rem; padding: .5em 1em; white-space: nowrap; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.topbar {
  background: var(--blue-dark); color: #dbe7ff; font-size: .9rem;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: center; padding-block: .5rem; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .sep { opacity: .45; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }

.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 52px; width: auto; display: block; }
@media (max-width: 600px) { .brand__logo { height: 44px; } }

.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: .6rem .85rem; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.primary-nav a {
  display: block; padding: .55rem .7rem; border-radius: 9px; color: var(--ink-soft);
  font-weight: 600; font-size: .95rem;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--blue-050); color: var(--blue); text-decoration: none; }
.primary-nav .nav-cta a { background: var(--coral); color: #fff; }
.primary-nav .nav-cta a:hover { background: var(--coral-dark); }

/* dropdown */
.has-sub { position: relative; }
.has-sub > .submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .5rem; display: none; z-index: 60;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
.submenu li { display: block; }
.submenu a { font-weight: 500; font-size: .92rem; }

/* header call buttons (desktop) */
.header-calls { display: none; gap: .5rem; margin-left: .4rem; }
.header-calls .btn { padding: .6em 1em; font-size: .9rem; }

@media (max-width: 960px) {
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px);
    background: #fff; box-shadow: var(--shadow-lg); padding: 1.25rem;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 70;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav a { padding: .8rem .9rem; font-size: 1.05rem; }
  .has-sub > .submenu { position: static; display: block; box-shadow: none; border: 0; padding: .1rem 0 .3rem .8rem; min-width: 0; }
  .submenu a { color: var(--ink-soft); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,20,40,.45); z-index: 65; display: none; }
  .nav-backdrop.open { display: block; }
}
@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .header-calls { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, #3f86ff 0%, transparent 60%),
              linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #2f7bf0 100%);
}
.hero .wrap { display: grid; gap: 2rem; padding-block: clamp(2.75rem, 7vw, 5rem); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.15); color: #fff; padding: .4em 1em; border-radius: 999px; font-weight: 700; font-size: .85rem; width: max-content; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .hl { color: var(--sun); }
.hero__lead { font-size: 1.15rem; color: #e6efff; max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; font-size: .92rem; color: #d6e4ff; }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; }
}

/* ==========================================================================
   Category / product cards
   ========================================================================== */
.grid { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__body h3 { margin: 0; color: var(--ink); }
.card__body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card__tag { align-self: flex-start; margin-top: auto; padding-top: .5rem; font-weight: 700; font-size: .9rem; color: var(--blue); }
a.card:hover .card__tag { color: var(--coral); }

/* category link cards (home) */
.cat-card { position: relative; color: #fff; border-radius: var(--radius-lg); overflow: hidden; min-height: 190px; display: flex; box-shadow: var(--shadow); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,30,70,.05) 30%, rgba(8,30,70,.82) 100%); z-index: 1; }
.cat-card span { position: relative; z-index: 2; margin-top: auto; padding: 1rem 1.1rem; font-weight: 800; font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.cat-card:hover { text-decoration: none; transform: translateY(-4px); transition: transform .15s ease; }

/* ==========================================================================
   Product page pieces
   ========================================================================== */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--ink-soft); max-width: 65ch; font-size: 1.1rem; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: .9rem; }
.breadcrumbs a { color: var(--ink-soft); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4rem; }
.signoff { font-style: italic; color: var(--ink-soft); }

.callout {
  background: var(--blue-050); border: 1px solid #d3e3ff; border-left: 5px solid var(--blue);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.callout--sun { background: #fff8e2; border-color: #ffe6a1; border-left-color: var(--sun-dark); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5em 1em; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }

/* pricing table scaffold */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.price-table caption { text-align: left; font-weight: 800; font-size: 1.15rem; padding: 1rem 1rem .25rem; }
.price-table th, .price-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--blue-050); color: var(--blue-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-todo { color: var(--coral-dark); font-weight: 700; background: #fff0f0; border-radius: 6px; padding: .1em .55em; font-size: .9rem; }
.table-scroll { overflow-x: auto; }

/* ==========================================================================
   Contact / CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.cta-band .wrap { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9e6ff; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }

.locations { display: grid; gap: 1.2rem; margin-top: 2rem; }
@media (min-width: 620px) { .locations { grid-template-columns: 1fr 1fr; } }
.loc-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 1.25rem; }
.loc-card h3 { color: #fff; margin-bottom: .3rem; }
.loc-card a.tel { color: var(--sun); font-weight: 800; font-size: 1.35rem; }
.loc-card a.tel:hover { text-decoration: none; }

/* ==========================================================================
   Party Patrol soft link
   ========================================================================== */
.pp-strip { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pp-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; text-align: center; padding-block: 1.1rem; font-size: .98rem; color: var(--ink-soft); }
.pp-strip a { font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0d1b2f; color: #aebfd6; font-size: .95rem; }
.site-footer .wrap { padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .9rem; letter-spacing: .02em; }
.site-footer a { color: #cdd9ec; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-contact p { margin: 0 0 .6rem; }
.footer-contact .tel { color: var(--sun); font-weight: 800; font-size: 1.1rem; }
.social { display: flex; gap: .6rem; margin-top: .9rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 10px; }
.social a:hover { background: var(--blue); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; justify-content: space-between; font-size: .85rem; color: #8698b5; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--blue); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
