/* ==========================================================================
   Chicago Beverage Experience — Custom Styles
   Mobile-first. Built to layer on top of Bootstrap 5.
   ========================================================================== */

:root {
  /* Chicago flag inspired palette */
  --cbe-navy: #16233b;        /* deep night-sky navy — nav, footer, dark sections */
  --cbe-navy-2: #1f3358;      /* lighter navy for gradients/cards on dark bg */
  --cbe-blue: #4a90c2;        /* Chicago flag stripe blue */
  --cbe-red: #c8102e;         /* Chicago flag star red */
  --cbe-red-dark: #a30d26;
  --cbe-gold: #e0a530;        /* craft beer amber / gold accent */
  --cbe-gold-light: #f1c76b;
  --cbe-cream: #f7f2e9;       /* warm off-white background */
  --cbe-cream-2: #efe6d5;
  --cbe-charcoal: #211c17;    /* body text */
  --cbe-gray: #6b6459;

  --cbe-font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --cbe-font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --cbe-shadow-soft: 0 0.5rem 1.5rem rgba(22, 35, 59, 0.12);
  --cbe-shadow-strong: 0 1rem 2.5rem rgba(22, 35, 59, 0.25);

  /* Height of the fixed navbar. Body padding and section scroll-margin both
     read this, so the header can never leave a gap above the hero. */
  --cbe-nav-h: 64px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  /* Belt-and-suspenders: a long unbreakable string (an email address, a
     URL with no spaces) should never be able to force the page wider
     than the viewport and create horizontal scroll on a phone. */
  overflow-x: hidden;
}

body {
  font-family: var(--cbe-font-body);
  color: var(--cbe-charcoal);
  background-color: var(--cbe-cream);
  padding-top: var(--cbe-nav-h); /* always equals the navbar's min-height */
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--cbe-font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.section-eyebrow {
  font-family: var(--cbe-font-display);
  color: var(--cbe-red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
}

.section-title {
  font-size: 1.9rem;
  color: var(--cbe-navy);
  margin-bottom: 0.75rem;
}

.section-lede {
  color: var(--cbe-gray);
  max-width: 42rem;
}

section {
  scroll-margin-top: var(--cbe-nav-h);
}

.bg-cream { background-color: var(--cbe-cream); }
.bg-cream-2 { background-color: var(--cbe-cream-2); }
.bg-navy { background-color: var(--cbe-navy); }
.text-cbe-gold { color: var(--cbe-gold); }
.text-cbe-red { color: var(--cbe-red); }
.text-cbe-navy { color: var(--cbe-navy); }

/* Four-star divider motif — same six-pointed star as the logo */
.flag-stars {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}
.flag-stars .star {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  fill: var(--cbe-red);
  flex: none;
}
.flag-stars.stars-light .star { fill: var(--cbe-gold); }

/* ---------- Buttons ---------- */
.btn-cbe-primary {
  background-color: var(--cbe-red);
  border-color: var(--cbe-red);
  color: #fff;
  font-family: var(--cbe-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 0.35rem;
}
.btn-cbe-primary:hover,
.btn-cbe-primary:focus {
  background-color: var(--cbe-red-dark);
  border-color: var(--cbe-red-dark);
  color: #fff;
}

.btn-cbe-outline {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--cbe-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 0.35rem;
}
.btn-cbe-outline:hover,
.btn-cbe-outline:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-cbe-gold {
  background-color: var(--cbe-gold);
  border-color: var(--cbe-gold);
  color: var(--cbe-navy);
  font-family: var(--cbe-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 0.35rem;
}
.btn-cbe-gold:hover,
.btn-cbe-gold:focus {
  background-color: var(--cbe-gold-light);
  color: var(--cbe-navy);
}

/* ---------- Navbar ---------- */
.navbar-cbe {
  background-color: rgba(22, 35, 59, 0.98);
  min-height: var(--cbe-nav-h);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.navbar-cbe .navbar-brand {
  font-family: var(--cbe-font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.navbar-cbe .navbar-brand small {
  display: block;
  font-family: var(--cbe-font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #41b6e6;
  font-size: 0.65rem;
  font-weight: 400;
}

.navbar-cbe .brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.navbar-cbe .brand-type-inline .brand-name {
  font-size: 1.3rem;
  white-space: nowrap;
}

.navbar-cbe .brand-type-inline .brand-rule {
  height: 3px;
  margin-top: 0.2rem;
}

.navbar-cbe .brand-type-inline small {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #41b6e6;
  margin-top: 0.1rem;
}

.brand-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.brand-type .brand-name {
  font-family: var(--cbe-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.98;
  color: #fff;
}

.brand-type .brand-rule {
  display: block;
  align-self: stretch;
  height: 4px;
  margin-top: 0.18rem;
  background: #41b6e6;
}

.site-footer .footer-lockup {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.site-footer .footer-mark {
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.site-footer .footer-lockup .brand-name { font-size: 1.25rem; }

.site-footer .footer-lockup small {
  display: block;
  font-family: var(--cbe-font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #41b6e6;
  margin-top: 0.16rem;
}

.navbar-cbe .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--cbe-font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 0.6rem 0.9rem !important;
}

.navbar-cbe .nav-link:hover,
.navbar-cbe .nav-link.active {
  color: var(--cbe-gold-light);
}

.navbar-cbe .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  padding: 0.35rem 0.55rem;
}

.navbar-cbe .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-cta {
  margin-left: 0.25rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cbe-navy) 0%, var(--cbe-navy-2) 65%, #2a4468 100%);
  color: #fff;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.hero-eyebrow {
  color: var(--cbe-gold-light);
  font-family: var(--cbe-font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--cbe-gold);
}

.hero-lede {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge i { color: var(--cbe-gold); }

.hero-actions .btn { margin: 0 0.4rem 0.6rem 0; }

/* Hero photo (real photography, replaces the old decorative illustration) */
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  /* The HTML width/height attributes on this img (used to prevent layout
     shift while it loads) otherwise pin its rendered height to their raw
     pixel value no matter how narrow the frame gets -- height:auto lets
     the aspect-ratio below actually control the box instead. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--cbe-shadow-strong);
}

.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: -0.6rem;
  border: 1px solid rgba(224, 165, 48, 0.4);
  border-radius: 1.3rem;
  pointer-events: none;
}

.hero-photo-tag {
  position: absolute;
  left: 1rem;
  bottom: -1rem;
  background-color: var(--cbe-gold);
  color: var(--cbe-navy);
  font-family: var(--cbe-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 2rem;
  box-shadow: var(--cbe-shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Skyline silhouette sitting at the base of the hero */
.hero-skyline {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.hero-skyline svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- About ---------- */
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0.75rem;
  background: linear-gradient(160deg, var(--cbe-navy) 0%, var(--cbe-blue) 100%);
  color: #fff;
  box-shadow: var(--cbe-shadow-soft);
  position: relative;
  overflow: hidden;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

.about-portrait .portrait-ring {
  position: absolute;
  inset: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.55rem;
  pointer-events: none;
}

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

.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--cbe-cream-2);
}

.credential-list li:last-child { border-bottom: none; }

.credential-list i {
  color: var(--cbe-red);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.stat-item {
  min-width: 6rem;
}

.stat-number {
  font-family: var(--cbe-font-display);
  font-size: 2rem;
  color: var(--cbe-red);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--cbe-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Services ---------- */
.service-card {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: var(--cbe-shadow-soft);
  border-top: 4px solid var(--cbe-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cbe-shadow-strong);
}

.service-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.6rem;
  background-color: var(--cbe-navy);
  color: var(--cbe-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--cbe-navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--cbe-gray);
  font-size: 0.95rem;
}

.service-card .service-link {
  font-family: var(--cbe-font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cbe-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card .service-link:hover {
  color: var(--cbe-red-dark);
  text-decoration: underline;
}

/* Service cards featuring a real photo instead of an icon-only header */
.service-card.has-photo {
  padding: 0;
  border-top: none;
  overflow: hidden;
}

.service-card.has-photo .service-media {
  position: relative;
}

.service-card.has-photo .service-media img {
  display: block;
  width: 100%;
  /* Same fix as .hero-photo-frame img above: without height:auto, the
     img's own width/height HTML attributes (800x600) force the box to
     the literal 600px tall no matter how narrow the card column is,
     instead of scaling down with aspect-ratio. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card.has-photo .service-icon-badge {
  position: absolute;
  bottom: -1.1rem;
  left: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
  background-color: var(--cbe-navy);
  color: var(--cbe-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 3px solid #fff;
  box-shadow: var(--cbe-shadow-soft);
}

.service-card.has-photo .service-card-body {
  padding: 2rem 1.5rem 1.75rem;
}

/* ---------- Mid-page CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--cbe-red) 0%, var(--cbe-red-dark) 100%);
  color: #fff;
}

.cta-banner h2 {
  font-size: 1.5rem;
  color: #fff;
}

/* ---------- Experience / Why Chicago ---------- */
.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.experience-list i {
  color: var(--cbe-gold);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--cbe-shadow-soft);
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--cbe-gold);
  line-height: 1;
  display: block;
  margin-bottom: -0.5rem;
}

.testimonial-card p.quote-text {
  color: var(--cbe-charcoal);
  font-style: italic;
}

.testimonial-card .quote-author {
  font-family: var(--cbe-font-display);
  font-size: 0.85rem;
  color: var(--cbe-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Contact ---------- */
.contact-section {
  background-color: var(--cbe-navy);
  color: #fff;
}

.contact-section .section-title { color: #fff; }
.contact-section .section-lede { color: rgba(255, 255, 255, 0.7); }

.contact-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.contact-method:last-child { border-bottom: none; }

.contact-method:hover { color: var(--cbe-gold-light); }

.contact-method .method-text {
  /* Flex items default to min-width:auto, which for an unbroken string
     like an email address is the string's full width -- that fights the
     flex row's ability to shrink and pushes the card wider than its
     column on narrow screens. min-width:0 lets it shrink properly. */
  min-width: 0;
  flex: 1 1 auto;
}

.contact-method .icon-circle {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cbe-gold-light);
  font-size: 1.1rem;
}

.contact-method .method-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  display: block;
}

.contact-method .method-value {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-row a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.social-row a:hover {
  background-color: var(--cbe-gold);
  color: var(--cbe-navy);
}

.form-cbe label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.3rem;
}

.form-cbe .form-control,
.form-cbe .form-select {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 0.4rem;
  padding: 0.65rem 0.85rem;
}

.form-cbe .form-control:focus,
.form-cbe .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(224, 165, 48, 0.45);
}

.form-cbe .invalid-feedback {
  color: var(--cbe-gold-light);
}

#formStatus.status-success { color: #7fd996; }
#formStatus.status-error { color: #ff9d9d; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: #0f1829;
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover { color: var(--cbe-gold-light); }

.site-footer .footer-brand {
  font-family: var(--cbe-font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--cbe-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--cbe-shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1030;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background-color: var(--cbe-red-dark); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive breakpoints — mobile-first, enhanced upward
   ========================================================================== */

/* Small devices (≥576px) */
@media (min-width: 576px) {
  .hero h1 { font-size: 2.6rem; }
}

/* Medium devices / tablets (≥768px) */
@media (min-width: 768px) {
  :root { --cbe-nav-h: 72px; }

  .hero h1 { font-size: 3.1rem; }
  .hero-lede { font-size: 1.15rem; }
  .section-title { font-size: 2.2rem; }

  .navbar-cbe .brand-mark { width: 2.3rem; height: 2.3rem; }
  .navbar-cbe .brand-type-inline .brand-name { font-size: 1.05rem; }
  .navbar-cbe .brand-type-inline small { letter-spacing: 0.22em; font-size: 0.72rem; }
}

/* Large devices / desktops (≥992px) */
@media (min-width: 992px) {
  .hero .container { padding-top: 4.5rem; padding-bottom: 5rem; }
  .hero h1 { font-size: 3.6rem; }
  .section-title { font-size: 2.5rem; }

  .about-portrait { aspect-ratio: 3 / 4; }

  /* Bootstrap's spacer scale stops at 5 (3rem) — py-lg-6 (used on every
     major section) isn't a real Bootstrap utility, so without this rule
     it silently does nothing above the 992px breakpoint. This adds the
     extra desktop breathing room it was always meant to provide. */
  .py-lg-6 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}

/* Extra large devices (≥1200px) */
@media (min-width: 1200px) {
  .hero h1 { font-size: 4rem; }
  .hero-lede { font-size: 1.25rem; }
}

/* Extra extra large devices (≥1400px) */
@media (min-width: 1400px) {
  .container { max-width: 1240px; }
}

/* Small phones (≤400px) — tighten up spacing */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-actions .btn { width: 100%; margin: 0 0 0.6rem 0; }
  .section-title { font-size: 1.6rem; }
}
