/* Kyle Party Rentals — base styles (scaffolding) */

:root {
  /* Red, white & blue */
  --color-red: #c41e3a;
  --color-red-dark: #9b1b30;
  --color-red-muted: #fecdd3;
  --color-blue: #1e40af;
  --color-blue-bright: #2563eb;
  --color-navy: #172554;
  --color-blue-muted: #dbeafe;
  --color-bg: #f4f7fc;
  --color-surface: #ffffff;
  --color-text: #172554;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-accent: var(--color-blue-bright);
  --color-accent-dark: var(--color-blue);
  --color-hero: var(--color-navy);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(23, 37, 84, 0.08);
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  max-width: 640px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-navy);
  color: var(--color-surface);
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo img {
  display: block;
  flex-shrink: 0;
  height: clamp(40px, 8vw, 52px);
  width: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.2;
}

.logo:hover {
  color: var(--color-accent-dark);
}

.logo:hover img {
  opacity: 0.92;
}

.header-phone {
  margin-left: auto;
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: none;
}

.header-phone:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 1px;
}

.site-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--color-accent-dark);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-phone {
    order: 2;
    margin-left: 0;
  }

  .nav-toggle {
    order: 3;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 4;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--color-border);
  }

  .site-nav .nav-list a {
    display: block;
    padding: 0.6rem 0;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-blue) 55%, #1d4ed8 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.hero-bg-panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100%;
}

.hero-bg-panel--left {
  background-image: url("../kprwaterslide.jpg");
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-bg-panel--right {
  background-image: url("../kprtentandchairs.jpg");
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(23, 37, 84, 0.88) 0%,
    rgba(30, 64, 175, 0.78) 42%,
    rgba(153, 27, 27, 0.82) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.local-callout {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(196, 30, 58, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(23, 37, 84, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-red);
  color: #ffffff;
  border-color: var(--color-red-dark);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-muted {
  background: var(--color-blue-muted);
  border-block: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-header.align-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 36rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

/* At a glance */
.facts-section {
  background: var(--color-bg);
  border-block: 1px solid var(--color-border);
}

.facts-section > .container > h2 {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
}

.facts-list {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
}

.facts-item {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts-item dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 0.4rem;
}

.facts-item dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
}

.facts-item dd a {
  font-weight: 600;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-red-muted) 0%,
    #e8eef9 45%,
    var(--color-blue-muted) 100%
  );
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-title,
.card-meta,
.card-desc,
.card-link {
  padding-inline: 1.25rem;
}

.card-title {
  margin: 1rem 0 0.25rem;
  font-size: 1.125rem;
}

.card-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.price {
  font-weight: 700;
  color: var(--color-red-dark);
}

.card-desc {
  margin: 0.75rem 0 1rem;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.card-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Category chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-chips a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
}

.category-chips a:hover {
  border-color: var(--color-blue-bright);
  color: var(--color-blue);
}

/* Quotes */
.quotes {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quote {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.quote p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-style: italic;
}

.quote footer {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* FAQ */
.faq-list {
  margin: 0;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item dt {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.faq-item dd {
  margin: 0;
  color: var(--color-muted);
}

/* Cities */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.city-grid li {
  padding: 0.5rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9375rem;
}

/* Contact */
.contact-section {
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  margin-bottom: 1.25rem;
}

.contact-details .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.contact-details a {
  font-weight: 600;
}

.contact-form {
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.section-muted code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--color-border);
  border-radius: 4px;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--color-navy);
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
}

.footer-local {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  margin: 0;
  width: 100%;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer-copy {
    width: auto;
    border-top: none;
    padding-top: 0;
    text-align: right;
    margin-left: auto;
  }
}
