/*
Theme Name: Cameron Balloons US Site2 v8
Theme URI: https://cameronballoons.com
Author: Cameron Balloons US
Author URI: https://cameronballoons.com
Description: Custom WordPress theme for Cameron Balloons US - Editor-driven version v2. Styling aligned with SiteW (Wix). Dynamo font embedded.
Version: 8.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cameron-balloons-v8
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */

/* Custom Font: Dynamo */
@font-face {
  font-family: 'Dynamo';
  src: url('fonts/Dynamo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Custom Font: Montserrat (self-hosted variable font, replaces Google Fonts) */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --cb-navy: #0b3d91;
  --cb-dark-blue: #0a1628;
  --cb-blue: #1a4fa0;
  --cb-light-blue: #3a6db5;
  --cb-sky: #5b9bd5;
  --cb-pale-blue: #d6e4f7;
  --cb-bg-blue: #c8d8f0;
  --cb-gold: #c9a84c;
  --cb-white: #ffffff;
  --cb-off-white: #f5f5f5;
  --cb-light-gray: #e8e8e8;
  --cb-medium-gray: #999999;
  --cb-dark-gray: #333333;
  --cb-text: #2c2c2c;
  --cb-font-heading: 'Montserrat', 'Helvetica Neue', sans-serif;
  --cb-font-display: 'Dynamo', 'Montserrat', 'Helvetica Neue', sans-serif;
  --cb-font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --cb-font-accent: 'Montserrat', 'Helvetica Neue', sans-serif;
  --cb-max-width: 1200px;
  --cb-header-height: 90px;
  --cb-transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--cb-font-body);
  font-weight: 500;
  color: var(--cb-text);
  line-height: 1.6;
  background-color: var(--cb-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--cb-transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cb-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cb-navy);
}

h1 { font-size: 2.8rem; font-family: var(--cb-font-display); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--cb-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
}

.header-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logos img {
  height: 55px;
  width: auto;
}

.header-logos .skysketcher-logo {
  height: 45px;
}

/* Main Navigation - White background to match SiteW */
.main-nav {
  background: var(--cb-white);
  border-top: 1px solid var(--cb-light-gray);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Nav Right (phone + social in nav bar) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-right .header-phone {
  font-family: var(--cb-font-accent);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cb-dark-gray);
  letter-spacing: 0.5px;
}

.nav-right .header-phone a {
  color: var(--cb-dark-gray);
}

.nav-right .header-phone a:hover {
  color: var(--cb-navy);
}

.nav-right .social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-right .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform var(--cb-transition), opacity var(--cb-transition);
}

.nav-right .social-icons a:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

.nav-right .social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: var(--cb-navy);
  font-family: var(--cb-font-accent);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color var(--cb-transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--cb-light-blue);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--cb-white);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--cb-transition);
  z-index: 100;
  border-top: 3px solid var(--cb-navy);
}

.nav-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--cb-navy);
  font-family: var(--cb-font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--cb-light-gray);
  transition: background var(--cb-transition), padding-left var(--cb-transition);
}

.sub-menu li a:hover {
  background: var(--cb-off-white);
  padding-left: 28px;
  color: var(--cb-light-blue);
}

/* Third-level flyout (e.g. Envelopes → A-Type, C-Type …) */
.sub-menu li.has-children {
  position: relative;
}

.sub-menu li.has-children > a::after {
  content: ' ›';
  float: right;
  opacity: 0.6;
}

.sub-menu li.has-children > .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  border-top: 3px solid var(--cb-navy);
  transform: translateX(8px);
}

.sub-menu li.has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Sub-menu accordion toggle button — hidden on desktop, shown on mobile */
.sub-menu-toggle {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cb-navy);
  margin: 5px 0;
  transition: all var(--cb-transition);
  border-radius: 2px;
}

/* ============================================
   HERO SLIDESHOW
   ============================================ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: calc(55vh - 50px);
  min-height: 300px;
  max-height: 530px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-slide .slide-caption {
  position: absolute;
  bottom: 60px;
  left: 40px;
  color: var(--cb-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-slide .slide-caption h2 {
  font-size: 1.4rem;
  color: var(--cb-white);
  font-family: var(--cb-font-accent);
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--cb-white);
  cursor: pointer;
  transition: background var(--cb-transition);
}

.hero-dot.active {
  background: var(--cb-white);
}

.hero-counter {
  position: absolute;
  bottom: 20px;
  right: 30px;
  color: var(--cb-white);
  font-family: var(--cb-font-accent);
  font-size: 0.9rem;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Overlay Heading */
.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  width: 90%;
  max-width: 900px;
}

.hero-overlay-text h1,
.hero-overlay-text .hero-heading {
  color: var(--cb-white);
  font-family: var(--cb-font-display);
  font-size: 4.5rem;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 3px;
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}


/* ============================================
   HOME: INTRO SECTION
   ============================================ */
.home-intro {
  text-align: center;
  padding: 50px 20px 30px;
  background: var(--cb-white);
}

.home-intro h1 {
  font-family: var(--cb-font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cb-navy);
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-intro h2 {
  font-family: var(--cb-font-accent);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--cb-dark-gray);
  margin-bottom: 4px;
}

.home-intro .subtitle {
  font-size: 1.05rem;
  color: var(--cb-dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   HOME: BALLOON CATEGORIES
   ============================================ */
.balloon-categories {
  padding: 0 0 0;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
}

.category-card {
  display: flex;
  background: var(--cb-white);
  overflow: hidden;
  transition: none;
  min-height: 300px;
  border-radius: 0;
  box-shadow: none;
}

.category-card:hover {
  transform: none;
  box-shadow: none;
}

.category-card:nth-child(odd) {
  flex-direction: row-reverse;
}

.category-card .card-image {
  width: 50%;
  min-height: 300px;
  overflow: hidden;
}

.category-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .card-image img {
  transform: scale(1.03);
}

.category-card .card-content {
  width: 50%;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* SiteW style: bold serif heading, no gold underline, no uppercase */
.category-card .card-content h3 {
  font-family: var(--cb-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cb-navy);
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}

.category-card .card-content h3 a {
  color: var(--cb-navy);
}

.category-card .card-content h3 a:hover {
  color: var(--cb-light-blue);
}

.category-card .card-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #555;
}

/* ============================================
   HOME: TESTIMONIAL
   ============================================ */
.testimonial-section {
  background: var(--cb-navy);
  padding: 60px 20px;
  text-align: center;
}

.testimonial-section blockquote {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--cb-font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cb-white);
  line-height: 1.6;
  position: relative;
  padding: 0 40px;
}

.testimonial-section blockquote::before {
  content: '\201C';
  font-size: 5rem;
  position: absolute;
  top: -30px;
  left: 0;
  color: var(--cb-gold);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-section .testimonial-author {
  margin-top: 20px;
  font-family: var(--cb-font-accent);
  font-size: 0.95rem;
  color: var(--cb-gold);
  font-weight: 600;
  letter-spacing: 1px;
  font-style: normal;
}

/* ============================================
   HOME: BALLOON TYPES CAROUSEL
   ============================================ */
.balloon-types-carousel {
  padding: 50px 0 60px;
  background: linear-gradient(180deg, var(--cb-navy) 0%, var(--cb-blue) 45%, #c8d8f0 85%, var(--cb-white) 100%);
}

.balloon-types-carousel .section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.balloon-types-carousel .section-header h2 {
  color: var(--cb-white);
  font-family: var(--cb-font-display);
  font-size: 2.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.balloon-types-carousel .section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-style: italic;
}

.carousel-wrapper {
  position: relative;
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding: 0 50px;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.carousel-item {
  flex: 0 0 calc(33.333% - 14px);
  text-align: center;
  padding: 20px 10px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 350px;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item img {
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.carousel-label {
  font-family: var(--cb-font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cb-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: var(--cb-white);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--cb-transition), border-color var(--cb-transition);
  z-index: 10;
  line-height: 1;
  padding: 0 0 3px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--cb-white);
}

.carousel-prev {
  left: 5px;
}

.carousel-next {
  right: 5px;
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(50% - 10px);
    min-height: 260px;
  }

  .carousel-item img {
    max-height: 200px;
  }

  .carousel-label {
    font-size: 1.3rem;
  }

  .carousel-wrapper {
    padding: 0 40px;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 100%;
    min-height: 280px;
  }

  .carousel-item img {
    max-height: 220px;
  }
}

/* ============================================
   HOME: TEAM SECTION
   ============================================ */
.team-section {
  padding: 50px 20px 0;
  background: var(--cb-white);
}

.team-section .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.team-section .section-header h2 {
  font-family: var(--cb-font-display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.team-section .section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #555;
  font-size: 0.95rem;
  font-style: italic;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
  background: #c8d8f0;
  padding: 40px 30px;
}

.team-card {
  text-align: center;
}

.team-card .team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 4px solid rgba(255, 255, 255, 0.6);
  transition: border-color var(--cb-transition);
}

.team-card:hover .team-photo {
  border-color: var(--cb-white);
}

.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-family: var(--cb-font-accent);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cb-navy);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-family: var(--cb-font-accent);
  font-size: 0.8rem;
  color: var(--cb-medium-gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ============================================
   PAGE: PRODUCTS
   ============================================ */
.page-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 39, 68, 0.3), rgba(26, 39, 68, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  color: var(--cb-white);
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Explicit font-size lock for pages whose titles differ in length from Burners and Tanks */
.page-envelopes .page-hero h1,
.page-baskets .page-hero h1,
.page-artwork .page-hero h1,
.page-accessories .page-hero h1 {
  font-size: 3rem;
}

.page-intro {
  text-align: center;
  padding: 50px 20px 30px;
  max-width: 850px;
  margin: 0 auto;
}

.page-intro p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.product-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform var(--cb-transition), box-shadow var(--cb-transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-card .product-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(26, 39, 68, 0.9), transparent);
  color: var(--cb-white);
  font-family: var(--cb-font-accent);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.products-cta {
  background: var(--cb-off-white);
  padding: 50px 20px;
  text-align: center;
}

.products-cta h3 {
  font-family: var(--cb-font-accent);
  margin-bottom: 15px;
}

.products-cta p {
  color: #666;
  margin-bottom: 20px;
}

.products-cta .cta-phone {
  font-family: var(--cb-font-accent);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cb-navy);
  display: block;
  margin-bottom: 8px;
}

.products-cta .cta-email {
  font-family: var(--cb-font-accent);
  font-size: 1.1rem;
  color: var(--cb-light-blue);
  font-weight: 600;
}

.products-cta .cta-email:hover {
  text-decoration: underline;
}

/* ============================================
   PAGE: CONTACT
   ============================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding: 60px 20px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.contact-info .info-item {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-info .info-item strong {
  display: block;
  font-family: var(--cb-font-accent);
  font-weight: 700;
  color: var(--cb-navy);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.contact-info .info-item a {
  color: var(--cb-light-blue);
}

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

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.contact-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.contact-social a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-form {
  background: var(--cb-off-white);
  padding: 40px;
  border-radius: 6px;
}

.contact-form h3 {
  font-family: var(--cb-font-accent);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--cb-font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cb-navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cb-light-gray);
  border-radius: 4px;
  font-family: var(--cb-font-body);
  font-size: 0.95rem;
  transition: border-color var(--cb-transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cb-light-blue);
  box-shadow: 0 0 0 3px rgba(90, 155, 213, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  background: var(--cb-navy);
  color: var(--cb-white);
  font-family: var(--cb-font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--cb-transition);
}

.btn-submit:hover {
  background: var(--cb-light-blue);
}

/* ============================================
   PAGE: DOWNLOADS
   ============================================ */
.downloads-content {
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding: 60px 20px;
}

.downloads-intro {
  text-align: center;
  margin-bottom: 50px;
}

.downloads-intro p {
  color: #666;
  font-size: 1.05rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.downloads-column h3 {
  font-family: var(--cb-font-accent);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cb-navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--cb-navy);
}

.download-list li {
  margin-bottom: 10px;
}

.download-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--cb-navy);
  font-family: var(--cb-font-accent);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background var(--cb-transition), color var(--cb-transition);
}

.download-list li a::before {
  content: '\2913';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cb-light-blue);
}

.download-list li a:hover {
  background: var(--cb-off-white);
  color: var(--cb-light-blue);
}

/* Downloads page - WordPress editor content styling */
.downloads-content h3 {
  font-family: var(--cb-font-accent);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cb-navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--cb-navy);
}

.downloads-content p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
}

.downloads-content .wp-block-columns {
  gap: 40px;
}

.downloads-content ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.downloads-content ul li {
  margin-bottom: 10px;
}

.downloads-content ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--cb-navy);
  font-family: var(--cb-font-accent);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background var(--cb-transition), color var(--cb-transition);
}

.downloads-content ul li a::before {
  content: '\2913';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cb-light-blue);
}

.downloads-content ul li a:hover {
  background: var(--cb-off-white);
  color: var(--cb-light-blue);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--cb-white);
  color: var(--cb-dark-gray);
  padding: 30px 20px;
  border-top: 1px solid var(--cb-light-gray);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding-bottom: 15px;
  border-bottom: none;
}

.footer-info {
  display: none;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform var(--cb-transition);
}

.footer-social a:hover {
  transform: scale(1.15);
}

.footer-social a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding-top: 0;
  font-size: 0.82rem;
  color: var(--cb-navy);
  font-family: var(--cb-font-accent);
  letter-spacing: 0.5px;
}

.footer-bottom a {
  color: var(--cb-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: var(--cb-light-blue);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
  padding: 60px 20px;
  background: var(--cb-off-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gallery-item {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ============================================
   ENVELOPES PAGE - Category cards in content
   ============================================ */
.envelope-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -20px;
}

.envelope-categories .category-card {
  display: flex;
  min-height: 300px;
}

/* Override the home page nth-child rule - envelope cards control order via HTML */
.envelope-categories .category-card:nth-child(odd) {
  flex-direction: row;
}

.envelope-categories .category-card .card-image {
  width: 50%;
  min-height: 300px;
  overflow: hidden;
}

.envelope-categories .category-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.envelope-categories .category-card .card-content {
  width: 50%;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .envelope-categories .category-card {
    flex-direction: column !important;
    min-height: auto;
  }
  .envelope-categories .category-card .card-image,
  .envelope-categories .category-card .card-content {
    width: 100%;
  }
  .envelope-categories .category-card .card-image {
    min-height: 220px;
  }
  .envelope-categories .category-card .card-content {
    padding: 25px 20px;
  }
}

/* ============================================
   ENVELOPES PAGE - Features overview boxes
   ============================================ */
.features-overview-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 -20px;
  background: #c8d8f0;
  padding: 0;
}

.features-box {
  padding: 30px 28px;
  border: 1px solid var(--cb-navy);
  background: #c8d8f0;
}

.features-box h3 {
  font-family: var(--cb-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cb-navy);
  margin-bottom: 12px;
}

.features-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .features-overview-boxes {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ENVELOPES PAGE - Browse All Models carousel
   ============================================ */
.browse-models-heading {
  font-family: var(--cb-font-display) !important;
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  margin-top: 0 !important;
  padding-top: 10px !important;
  border-bottom: none !important;
}

.envelope-carousel-wrapper {
  background: linear-gradient(180deg, var(--cb-navy) 0%, var(--cb-blue) 45%, #c8d8f0 85%, var(--cb-white) 100%);
  margin: 0 -20px;
  padding: 20px 0 60px;
}

.envelope-carousel-wrapper .carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.envelope-carousel-wrapper .carousel-item {
  flex: 0 0 calc(33.333% - 14px);
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 350px;
  transition: transform 0.3s ease;
}

.envelope-carousel-wrapper .carousel-item:hover {
  transform: scale(1.05);
}

.envelope-carousel-wrapper .carousel-item img {
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  border-radius: 0;
}

/* ============================================
   ENVELOPES PAGE - Feature section headings
   ============================================ */
.features-section-heading {
  font-family: var(--cb-font-display) !important;
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  border-bottom: none !important;
}

/* ============================================
   ENVELOPES PAGE - Feature card grid
   (2-column grid of light blue cards)
   ============================================ */
.feature-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px -20px 40px;
}

.feature-card-item {
  display: flex;
  background: #c8d8f0;
  border: 1px solid #a8bcd8;
  overflow: hidden;
  min-height: 200px;
}

.feature-card-image {
  width: 40%;
  min-height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  margin: 0 !important;
}

.feature-card-text {
  width: 60%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-card-text h4 {
  font-family: var(--cb-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cb-navy);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.feature-card-text p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 6px;
}

.feature-card-text small {
  font-size: 0.72rem;
  color: #666;
  font-style: italic;
}

@media (max-width: 1024px) {
  .feature-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .feature-card-item {
    flex-direction: column;
  }
  .feature-card-image,
  .feature-card-text {
    width: 100%;
  }
  .feature-card-image {
    min-height: 200px;
  }
}

/* ============================================
   ENVELOPES PAGE - CTA section
   ============================================ */
.envelopes-cta-section {
  background: #e8eef6;
  padding: 60px 40px;
  text-align: center;
  margin: 40px -20px 0;
}

.envelopes-cta-section h2 {
  font-family: var(--cb-font-heading) !important;
  font-size: 2rem;
  font-style: italic;
  color: var(--cb-navy);
  margin-bottom: 15px;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.envelopes-cta-section p {
  font-size: 1rem;
  color: #444;
}

.envelopes-cta-section .cta-phone {
  margin-top: 20px;
}

.envelopes-cta-section .cta-phone a {
  font-family: var(--cb-font-accent);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cb-navy);
}

.envelopes-cta-section .cta-email a {
  font-family: var(--cb-font-accent);
  font-size: 1.1rem;
  color: var(--cb-light-blue);
  font-weight: 600;
}

.envelopes-cta-section .cta-email a:hover {
  text-decoration: underline;
}

/* ============================================
   FEATURES (Envelopes page - legacy)
   ============================================ */
.features-section {
  padding: 60px 20px;
  background: var(--cb-white);
}

.features-section.features-optional {
  background: var(--cb-off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
}

.feature-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-card .feature-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cb-light-gray);
}

.feature-card .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h4 {
  font-family: var(--cb-font-accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--cb-navy);
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
}

/* ============================================
   CORPORATE PAGE
   ============================================ */
.corporate-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0 50px;
}

.corporate-intro-text p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.corporate-intro-image img {
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.corporate-services {
  padding: 0 0 60px;
}

.brands-section {
  padding: 60px 20px;
  background: var(--cb-white);
}

.brands-section h2 {
  margin-bottom: 10px;
}

/* ============================================
   SPECIAL SHAPES PAGE
   ============================================ */
.special-shapes-section {
  padding: 40px 20px 60px;
}

.shapes-images {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.shapes-images img {
  border-radius: 4px;
  max-height: 350px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.appendage-section {
  padding: 50px 20px;
  background: var(--cb-off-white);
  text-align: center;
}

.appendage-section h2 {
  margin-bottom: 12px;
}

.appendage-section p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

/* ============================================
   ACCESSORIES PAGE
   ============================================ */
.accessories-section {
  padding: 20px 20px 60px;
}

.accessories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
}

.accessory-card {
  background: var(--cb-off-white);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--cb-transition), box-shadow var(--cb-transition);
}

.accessory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.accessory-card .accessory-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.accessory-card .accessory-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.accessory-card h4 {
  font-family: var(--cb-font-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cb-navy);
  margin-bottom: 8px;
}

.accessory-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
}

/* ============================================
   NEO CONFIGURATIONS (Burners page)
   ============================================ */
.neo-configs {
  padding: 60px 20px;
  background: var(--cb-white);
}

.configs-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--cb-max-width);
  margin: 0 auto;
}

.config-item {
  text-align: center;
  width: 160px;
}

.config-item img {
  max-height: 180px;
  margin: 0 auto 12px;
}

.config-item h4 {
  font-family: var(--cb-font-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cb-navy);
}

/* ============================================
   BASKETS PAGE
   ============================================ */
.baskets-features-intro {
  padding: 20px 20px 50px;
}

.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--cb-max-width);
  margin: 0 auto;
}

.two-col-text h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.two-col-text p {
  color: #555;
  line-height: 1.7;
}

/* ============================================
   SUPPORT SECTION
   ============================================ */
.support-section {
  background: var(--cb-navy);
  color: var(--cb-white);
}

.support-section h2 {
  color: var(--cb-white);
  margin-bottom: 12px;
}

.support-section p {
  color: rgba(255, 255, 255, 0.8);
}

.support-section .btn-submit {
  background: var(--cb-gold);
  color: var(--cb-navy);
}

.support-section .btn-submit:hover {
  background: var(--cb-white);
}

/* ============================================
   BALLOON TYPE PAGES
   ============================================ */
.balloon-type-content {
  padding: 50px 20px 60px;
  position: relative;
}

/* Balloon type hero — card is overlaid fully within the banner */
.page-hero--balloon-type {
  height: 420px;
  position: relative;
  margin-bottom: 0;
}

/* ============================================
   BALLOON TYPE - Hero card overlaid on banner
   (cutout image + title + subtitle + intro, sits within the hero)
   ============================================ */
.bt-hero-card {
  display: flex;
  align-items: center;
  background: none;
  max-width: 900px;
  width: 100%;
  position: absolute;
  top: -246px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10;
  padding: 0;
  transform: translateX(-60px);
}

.bt-hero-card-image {
  flex-shrink: 0;
  width: 280px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -25px;
  z-index: 2;
}

.bt-hero-card-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 0 !important;
  margin: 0 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.bt-hero-card-text {
  padding: 20px 40px 30px 160px;
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  margin-left: -140px;
  margin-right: -40px;
  height: 253px;
  align-self: flex-start;
  top: 35px;
  position: relative;
  z-index: 1;
}

.bt-hero-card-text .bt-hero-title {
  font-family: var(--cb-font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--cb-navy);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 6px;
  line-height: 1.1;
}

.bt-hero-card-text .bt-hero-subtitle {
  font-size: 1rem;
  color: var(--cb-navy);
  margin-bottom: 12px;
}

.bt-hero-card-text p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
}

/* Divider — separates the hero overlay from the intro section below */
.bt-divider {
  border: none;
  border-top: 3px solid var(--cb-navy);
  margin: 30px auto;
  max-width: 900px;
}

/* Intro section: text left, photo right */
.bt-intro-section {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.bt-intro-text {
  flex: 1;
}

.bt-intro-text h3 {
  font-family: var(--cb-font-heading) !important;
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--cb-navy);
  margin-bottom: 12px !important;
}

.bt-intro-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.bt-intro-image {
  flex-shrink: 0;
  width: 350px;
}

.bt-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 4px !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  /* Restore flow layout on mobile — absolute positioning won't fit */
  .page-hero--balloon-type {
    height: 280px;
  }

  /* Remove the 50px top padding so hero card follows directly below the banner */
  .balloon-type-content {
    padding-top: 0;
  }

  .bt-hero-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin: 0 auto;           /* removed broken -60px overlap */
    transform: none;          /* reset desktop translateX(-60px) that caused left crop */
    flex-direction: column;
    text-align: center;
  }

  .bt-hero-card-image {
    width: 180px;
    position: static;         /* reset desktop top: -25px */
    top: auto;
  }

  .bt-hero-card-text {
    padding: 16px 20px 20px;
    margin-left: 0;           /* reset desktop -140px */
    margin-right: 0;          /* reset desktop -40px */
    height: auto;             /* reset desktop fixed 253px */
    position: static;
    top: auto;
    width: 100%;
  }

  .bt-hero-card-text .bt-hero-title {
    font-size: 2.2rem;
  }

  .bt-intro-section {
    flex-direction: column;
  }

  .bt-intro-image {
    width: 100%;
  }

  /* Spec table: switch to auto layout with a min-width so the container
     can actually scroll horizontally rather than squashing columns */
  .balloon-type-content table {
    table-layout: auto;
    min-width: 580px;
    width: auto;
  }

  .balloon-type-content table th {
    white-space: nowrap;
    word-wrap: normal;
  }
}

.balloon-type-content .container {
  max-width: 900px;
}

.balloon-type-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cb-navy);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--cb-font-heading);
  font-weight: 700;
}

.balloon-type-content h3 {
  font-size: 1.2rem;
  margin: 25px 0 10px;
  color: var(--cb-navy);
}

.balloon-type-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.balloon-type-content ul,
.balloon-type-content ol {
  margin: 0 0 1.5rem 20px;
  list-style: disc;
}

.balloon-type-content li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 6px;
}

.balloon-type-content img {
  border-radius: 6px;
  margin: 15px 0;
}

.balloon-type-content .aligncenter {
  display: block;
  margin: 20px auto;
}

/* Specs Tables */

/* Scrollable table container - adjust max-height to control visible rows */
.balloon-type-content .wp-block-table {
  max-height: 450px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--cb-light-gray);
  margin: 20px 0 30px;
}

/* Thicker scrollbars on the specs table (WebKit: Chrome, Edge) */
.balloon-type-content .wp-block-table::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

.balloon-type-content .wp-block-table::-webkit-scrollbar-track {
  background: var(--cb-light-gray);
  border-radius: 4px;
}

.balloon-type-content .wp-block-table::-webkit-scrollbar-thumb {
  background: var(--cb-medium-gray);
  border-radius: 4px;
  border: 2px solid var(--cb-light-gray);
}

.balloon-type-content .wp-block-table::-webkit-scrollbar-thumb:hover {
  background: var(--cb-navy);
}

.balloon-type-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-family: var(--cb-font-accent);
  font-size: 0.82rem;
  table-layout: fixed;
}

.balloon-type-content table th:nth-child(1) { width: 9%; }
.balloon-type-content table th:nth-child(2) { width: 8%; }
.balloon-type-content table th:nth-child(3) { width: 9%; }
.balloon-type-content table th:nth-child(4) { width: 8%; }
.balloon-type-content table th:nth-child(5) { width: 9%; }
.balloon-type-content table th:nth-child(6) { width: 9%; }
.balloon-type-content table th:nth-child(7) { width: 11%; }
.balloon-type-content table th:nth-last-child(2) { width: 8%; }
.balloon-type-content table th:nth-last-child(3) { width: 8%; }
.balloon-type-content table th:last-child { width: 7%; }

.balloon-type-content table th {
  background: var(--cb-navy);
  color: var(--cb-white);
  padding: 10px 4px; /*  Reduced from 8px by AKB */
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
  /* Sticky header - stays visible while scrolling */
  position: sticky;
  top: 0;
  z-index: 2;
}

.balloon-type-content table td {
  padding: 8px 8px;  /*  Reduced from 12px by AKB */
  border-bottom: 1px solid var(--cb-light-gray);
  color: var(--cb-text);
  text-align: center;
}

.balloon-type-content table th:first-child,
.balloon-type-content table td:first-child {
  text-align: left;
  font-weight: 600;
}

.balloon-type-content table tr:nth-child(even) td {
  background: var(--cb-off-white);
}

.balloon-type-content table tr:hover td {
  background: rgba(90, 155, 213, 0.08);
}

/* WordPress Gallery in balloon type pages */
.balloon-type-content .wp-block-gallery {
  gap: 10px;
}

.balloon-type-content .wp-block-gallery .wp-block-image {
  border-radius: 4px;
  overflow: hidden;
}

/* Bottom CTA row — buttons left, image right */
.bt-cta-columns {
  margin-top: -120px;
}

.bt-cta-columns .wp-block-column:first-child {
  margin-top: 120px;
}

.bt-cta-columns .wp-block-column:last-child {
  margin-top: 40px;
}

/* CTA buttons - matching SiteW rounded pill style */
.balloon-type-cta {
  padding: 40px 20px;
}

.balloon-type-cta .btn-submit {
  margin: 6px;
}

/* Balloon type page buttons - stacked pill style */
.balloon-type-content .wp-block-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.balloon-type-content .wp-block-button__link {
  background: var(--cb-navy);
  color: var(--cb-white);
  font-family: var(--cb-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 40px;
  border-radius: 30px;
  transition: background var(--cb-transition);
  display: inline-block;
}

.balloon-type-content .wp-block-button__link:hover {
  background: var(--cb-light-blue);
}

/* Balloon Type Intro Grid */
.bt-intro-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

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

.bt-features-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

.bt-features-image img {
  border-radius: 6px;
  max-width: 100%;
}

.bt-features-list ul {
  margin: 0 0 0 20px;
  list-style: disc;
}

.bt-features-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .bt-intro-grid,
  .bt-features-grid {
    grid-template-columns: 1fr;
  }

  .bt-cutout {
    text-align: center;
  }

  .bt-cutout img {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ============================================
   EDITOR-DRIVEN PAGE CONTENT STYLING
   These styles apply to content from the WordPress block editor
   to maintain the same visual appearance as the hardcoded templates.
   ============================================ */

/* Shared content wrapper styling */
.products-page-content,
.envelopes-page-content,
.baskets-page-content,
.burners-page-content,
.artwork-page-content,
.accessories-page-content,
.corporate-page-content,
.special-shapes-page-content,
.contact-page-content,
.competition-page-content,
.leisure-page-content,
.ride-ops-page-content {
  padding: 50px 20px 60px;
}

.products-page-content .container,
.envelopes-page-content .container,
.baskets-page-content .container,
.burners-page-content .container,
.artwork-page-content .container,
.accessories-page-content .container,
.corporate-page-content .container,
.special-shapes-page-content .container,
.contact-page-content .container,
.competition-page-content .container,
.leisure-page-content .container,
.ride-ops-page-content .container {
  max-width: var(--cb-max-width);
}

/* Headings from editor */
.products-page-content h2,
.envelopes-page-content h2,
.baskets-page-content h2,
.burners-page-content h2,
.artwork-page-content h2,
.accessories-page-content h2,
.corporate-page-content h2,
.special-shapes-page-content h2,
.contact-page-content h2,
.competition-page-content h2,
.leisure-page-content h2,
.ride-ops-page-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cb-navy);
  text-transform: none;
  letter-spacing: 0;
}

.products-page-content h3,
.envelopes-page-content h3,
.baskets-page-content h3,
.burners-page-content h3,
.artwork-page-content h3,
.accessories-page-content h3,
.corporate-page-content h3,
.special-shapes-page-content h3,
.contact-page-content h3,
.competition-page-content h3,
.leisure-page-content h3,
.ride-ops-page-content h3 {
  font-family: var(--cb-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cb-navy);
  margin: 25px 0 10px;
}

/* Paragraphs and lists */
.products-page-content p,
.envelopes-page-content p,
.baskets-page-content p,
.burners-page-content p,
.artwork-page-content p,
.accessories-page-content p,
.corporate-page-content p,
.special-shapes-page-content p,
.contact-page-content p,
.competition-page-content p,
.leisure-page-content p,
.ride-ops-page-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Images from editor */
.products-page-content img,
.envelopes-page-content img,
.baskets-page-content img,
.burners-page-content img,
.artwork-page-content img,
.accessories-page-content img,
.corporate-page-content img,
.special-shapes-page-content img,
.contact-page-content img,
.competition-page-content img,
.leisure-page-content img,
.ride-ops-page-content img {
  border-radius: 6px;
}

/* Tables from editor */
.products-page-content table,
.envelopes-page-content table,
.baskets-page-content table,
.burners-page-content table,
.balloon-type-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  font-family: var(--cb-font-accent);
  font-size: 0.82rem;
  table-layout: fixed;
}

.products-page-content table th,
.envelopes-page-content table th,
.baskets-page-content table th,
.burners-page-content table th,
.balloon-type-content table th {
  background: var(--cb-navy);
  color: var(--cb-white);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}

.products-page-content table td,
.envelopes-page-content table td,
.baskets-page-content table td,
.burners-page-content table td,
.balloon-type-content table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--cb-light-gray);
  text-align: center;
}

.products-page-content table th:first-child,
.envelopes-page-content table th:first-child,
.baskets-page-content table th:first-child,
.burners-page-content table th:first-child,
.balloon-type-content table th:first-child,
.products-page-content table td:first-child,
.envelopes-page-content table td:first-child,
.baskets-page-content table td:first-child,
.burners-page-content table td:first-child,
.balloon-type-content table td:first-child {
  text-align: left;
}

.products-page-content table tr:nth-child(even) td,
.envelopes-page-content table tr:nth-child(even) td,
.baskets-page-content table tr:nth-child(even) td,
.burners-page-content table tr:nth-child(even) td,
.balloon-type-content table tr:nth-child(even) td {
  background: var(--cb-off-white);
}

/* WordPress Columns block */
.products-page-content .wp-block-columns,
.envelopes-page-content .wp-block-columns,
.baskets-page-content .wp-block-columns,
.burners-page-content .wp-block-columns,
.artwork-page-content .wp-block-columns,
.accessories-page-content .wp-block-columns,
.corporate-page-content .wp-block-columns,
.special-shapes-page-content .wp-block-columns,
.contact-page-content .wp-block-columns,
.competition-page-content .wp-block-columns,
.leisure-page-content .wp-block-columns,
.ride-ops-page-content .wp-block-columns {
  gap: 30px;
  margin-bottom: 30px;
}

/* WordPress Gallery block */
.products-page-content .wp-block-gallery,
.envelopes-page-content .wp-block-gallery,
.baskets-page-content .wp-block-gallery,
.burners-page-content .wp-block-gallery,
.artwork-page-content .wp-block-gallery,
.accessories-page-content .wp-block-gallery,
.corporate-page-content .wp-block-gallery,
.special-shapes-page-content .wp-block-gallery,
.balloon-type-content .wp-block-gallery {
  gap: 12px;
}

.products-page-content .wp-block-gallery .wp-block-image,
.envelopes-page-content .wp-block-gallery .wp-block-image,
.artwork-page-content .wp-block-gallery .wp-block-image,
.corporate-page-content .wp-block-gallery .wp-block-image,
.special-shapes-page-content .wp-block-gallery .wp-block-image,
.balloon-type-content .wp-block-gallery .wp-block-image {
  border-radius: 4px;
  overflow: hidden;
}

/* WordPress Buttons block */
.products-page-content .wp-block-button__link,
.envelopes-page-content .wp-block-button__link,
.baskets-page-content .wp-block-button__link,
.burners-page-content .wp-block-button__link,
.artwork-page-content .wp-block-button__link,
.accessories-page-content .wp-block-button__link,
.corporate-page-content .wp-block-button__link,
.special-shapes-page-content .wp-block-button__link,
.contact-page-content .wp-block-button__link,
.competition-page-content .wp-block-button__link,
.leisure-page-content .wp-block-button__link,
.ride-ops-page-content .wp-block-button__link,
.balloon-type-content .wp-block-button__link {
  background: var(--cb-navy);
  color: var(--cb-white);
  font-family: var(--cb-font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 40px;
  border-radius: 4px;
  transition: background var(--cb-transition);
}

.products-page-content .wp-block-button__link:hover,
.envelopes-page-content .wp-block-button__link:hover,
.baskets-page-content .wp-block-button__link:hover,
.burners-page-content .wp-block-button__link:hover,
.artwork-page-content .wp-block-button__link:hover,
.accessories-page-content .wp-block-button__link:hover,
.corporate-page-content .wp-block-button__link:hover,
.special-shapes-page-content .wp-block-button__link:hover,
.contact-page-content .wp-block-button__link:hover,
.competition-page-content .wp-block-button__link:hover,
.leisure-page-content .wp-block-button__link:hover,
.ride-ops-page-content .wp-block-button__link:hover,
.balloon-type-content .wp-block-button__link:hover {
  background: var(--cb-light-blue);
}

/* ============================================
   GENERIC PAGE CONTENT
   ============================================ */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}

.page-content h1 {
  margin-bottom: 20px;
}

.page-content h2 {
  margin: 30px 0 15px;
}

.page-content p {
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .corporate-intro-grid {
    grid-template-columns: 1fr;
  }

  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col-text {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .menu-toggle {
    display: block;
  }

  .main-nav .container {
    justify-content: space-between;
    position: relative;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 88vw;
    max-width: 300px;
    background: var(--cb-navy);
    flex-direction: column;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-right {
    gap: 10px;
  }

  /* Tap-to-call: show phone as a circular icon button instead of hiding it */
  .nav-right .header-phone {
    display: flex;
    align-items: center;
  }

  .nav-right .header-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--cb-navy);
    border-radius: 50%;
    font-size: 0;       /* hide text */
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .nav-right .header-phone a::before {
    content: '☎';
    font-size: 1rem;    /* show icon at normal size */
    color: white;
  }

  .nav-menu > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--cb-white);
  }

  .nav-menu > li:first-child > a {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Accordion: collapse sub-menus by default; JS toggles .sub-open */
  .nav-menu .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    border-top: none;
    width: 100%;
  }

  .nav-menu li.sub-open > .sub-menu {
    display: block;
  }

  /* Flex row: link takes remaining width, toggle button on the right.
     .has-toggle is added by JS to any li that has a direct .sub-menu child. */
  .nav-menu li.has-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .nav-menu li.has-toggle > a {
    flex: 1;
  }

  .nav-menu li.has-toggle > .sub-menu {
    flex-basis: 100%;
  }

  /* Sub-menu accordion toggle button */
  .sub-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    transition: background 0.2s, color 0.2s;
  }

  .sub-menu-toggle:hover,
  .sub-menu-toggle:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cb-white);
  }

  .sub-menu li.has-children > a::after {
    display: none;
  }

  .sub-menu li.has-children > .sub-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: rgba(0, 0, 0, 0.1);
  }

  /* Level 2 items */
  .sub-menu li a {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    padding-left: 28px;
    font-size: 0.8rem;
  }

  /* Level 3 items — indented further with a dimmer shade */
  .sub-menu li.has-children > .sub-menu li a {
    padding-left: 44px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
  }

  .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cb-white);
  }

  .hero-slideshow {
    height: calc(40vh - 50px);
    min-height: 220px;
  }

  .home-intro h1 {
    font-size: 1.8rem;
  }

.hero-overlay-text h1,
.hero-overlay-text .hero-heading {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

  .category-card {
    flex-direction: column !important;
    min-height: auto;
  }

  .category-card .card-image {
    width: 100%;
    min-height: 170px;
  }

  .category-card .card-content {
    width: 100%;
    padding: 30px 20px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-card .team-photo {
    width: 130px;
    height: 130px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .shapes-images img {
    max-height: 250px;
  }

  .accessories-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .balloon-type-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .header-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-hero {
    height: 200px;
  }

  .page-hero--balloon-type {
    height: 250px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

/* Phone landscape (e.g. iPhone Pro Max ~932px wide, ~430px tall) — keep icon */
@media (min-width: 769px) and (max-height: 500px) {
  .nav-right .header-phone {
    display: flex;
    align-items: center;
  }

  .nav-right .header-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--cb-navy);
    border-radius: 50%;
    font-size: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .nav-right .header-phone a::before {
    content: '☎';
    font-size: 1rem;
    color: white;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-section blockquote {
    font-size: 1.2rem;
    padding: 0 20px;
  }
}

/* ============================================
   LIGHTBOX (for gallery image navigation)
   ============================================ */
.cb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cb-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.cb-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.cb-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--cb-white);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 10000;
}

.cb-lightbox-prev,
.cb-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cb-white);
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 10000;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.cb-lightbox-prev:hover,
.cb-lightbox-next:hover {
  opacity: 1;
}

.cb-lightbox-prev {
  left: 20px;
}

.cb-lightbox-next {
  right: 20px;
}

@media (max-width: 768px) {
  .cb-lightbox img {
    max-width: 96%;
    max-height: 80vh;
  }

  .cb-lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
  }

  .cb-lightbox-prev,
  .cb-lightbox-next {
    font-size: 2rem;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  .cb-lightbox-prev { left: 8px; }
  .cb-lightbox-next { right: 8px; }
}
