* {
  box-sizing: border-box;
}

:root {
  --accent: #c90019;
  --accent-dark: #a50015;
  --primary: #1a1a19;
  --primary-light: #262f38;
  --bg: #ffffff;
  --bg-alt: #f8f8f7;
  --bg-card: #fdfbfa;
  --text: #13161a;
  --text-muted: #5f6469;
  --text-light: #f4f1ee;
  --border: #d5d8db;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ─── Promo Banner ─── */
.promo-banner {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 50;
  position: relative;
}

.promo-banner a {
  color: #fff;
  text-decoration: underline;
}

.promo-banner svg {
  vertical-align: -2px;
  margin-right: 0.4rem;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 0, 25, 0.3);
}

.brand-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

.nav-cta svg {
  width: 1rem;
  height: 1rem;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 5rem 1rem 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a1a19 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 0, 25, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 0, 25, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-alt);
}

.btn-pill {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ─── Sections ─── */
.section {
  padding: 5rem 0;
}

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

.section-dark {
  background: var(--primary);
  color: var(--text-light);
}

.section-dark p,
.section-dark li {
  color: rgba(244, 241, 238, 0.85);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-divider {
  width: 4rem;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 999px;
  margin: 0 auto 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(244, 241, 238, 0.75);
}

/* ─── Card Grid ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(201, 0, 25, 0.1);
  color: var(--accent);
  margin-bottom: 1rem;
}

.icon-circle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Two Column Layout ─── */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.two-col p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.two-col p:last-child {
  margin-bottom: 0;
}

/* Feature Pills (like SPA's "Full-Service Gas", "Tobacco & Vapes") */
.feature-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-pill .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(201, 0, 25, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-pill .pill-icon svg {
  width: 1rem;
  height: 1rem;
}

/* ─── Info Cards (for contact/location details) ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.info-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

/* ─── Related Links ─── */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.related-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.related-list li a:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
  color: var(--accent);
}

.related-list li a svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

/* ─── Blog Card ─── */
.blog-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 720px;
}

.blog-card .kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.blog-card p:last-child {
  margin-bottom: 0;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
}

.footer-divider {
  width: 4rem;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 999px;
  margin: 0 auto 1rem;
}

.footer-tagline {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact .sep {
  opacity: 0.5;
}

.footer-subtext {
  font-size: 0.875rem;
  opacity: 0.75;
  margin: 0 0 1.5rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.footer-social:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ─── 404 Page ─── */
.not-found {
  text-align: center;
  padding: 6rem 1rem 4rem;
}

.not-found .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.not-found h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.not-found p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumbs span:last-child {
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Blog Hero Variant ─── */
.hero--blog-post {
  min-height: 380px;
}

/* ─── Blog Filters ─── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.blog-filter-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all 0.2s;
}

.blog-filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.blog-filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.blog-filter-pill.active:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ─── Blog Grid ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─── Blog Post Card ─── */
.blog-post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-post-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-post-card__img--fallback {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.blog-post-card__body {
  padding: 1.25rem 1.25rem 0.75rem;
  flex: 1;
}

.blog-post-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.blog-post-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.blog-post-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card__meta {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ─── Blog Post Body (single post page) ─── */
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: 720px;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-post-meta svg {
  width: 1rem;
  height: 1rem;
}

.blog-post-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.blog-post-meta a:hover {
  text-decoration: underline;
}

.blog-post-body {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.blog-post-body p {
  margin: 0 0 1.5rem;
}

.blog-post-body p:last-child {
  margin-bottom: 0;
}

/* ─── Language Switcher ─── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.lang-switch:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ─── Focus Styles ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 0, 25, 0.3);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) and (min-width: 769px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .hero {
    min-height: 320px;
    padding: 3.5rem 1rem 3rem;
  }

  .card-grid,
  .info-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-meta {
    gap: 0.75rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-pills {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    flex-direction: column;
  }

  .footer-contact .sep {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }
}
