/* ============================================
   Bowl6610 Design System v1.0 — Layout
   Containers, grids, sections, header, footer
   ============================================ */

/* === Container === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* === Grid System === */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5050 { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid--4555 { grid-template-columns: 45% 1fr; gap: 3.5rem; }

@media (max-width: 767px) {
  .grid--2,
  .grid--3,
  .grid--5050,
  .grid--4555 {
    grid-template-columns: 1fr;
  }
}

/* === Sections === */
.bowl-section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

/* 7 section background variants */
.bowl-section--linen   { background: var(--linen); }
.bowl-section--white   { background: var(--white); }
.bowl-section--cream   { background: var(--cream); }

.bowl-section--green {
  background: var(--green-rich);
  color: var(--cream);
}
.bowl-section--green h1, .bowl-section--green h2,
.bowl-section--green h3 { color: var(--cream); }
.bowl-section--green h1 em, .bowl-section--green h2 em,
.bowl-section--green h3 em { color: var(--plum-light); }
.bowl-section--green p { color: var(--sage); }
.bowl-section--green .bowl-eyebrow { color: var(--plum-light); }
.bowl-section--green .bowl-eyebrow::before { background: var(--plum-light); }

.bowl-section--green-dark {
  background: var(--green-dark);
  color: var(--cream);
}
.bowl-section--green-dark h1, .bowl-section--green-dark h2,
.bowl-section--green-dark h3 { color: var(--cream); }
.bowl-section--green-dark h1 em, .bowl-section--green-dark h2 em,
.bowl-section--green-dark h3 em { color: var(--plum-light); }
.bowl-section--green-dark p { color: rgba(255, 255, 255, 0.7); }

.bowl-section--plum {
  background: var(--plum);
  color: var(--white);
}
.bowl-section--plum h1, .bowl-section--plum h2,
.bowl-section--plum h3 { color: var(--white); }
.bowl-section--plum h1 em, .bowl-section--plum h2 em,
.bowl-section--plum h3 em { color: var(--sage); font-weight: 400; }
.bowl-section--plum p { color: rgba(255, 255, 255, 0.85); }

.bowl-section--plum-pale {
  background: var(--plum-pale);
  color: var(--charcoal);
}
.bowl-section--plum-pale h1 em, .bowl-section--plum-pale h2 em,
.bowl-section--plum-pale h3 em { color: var(--plum-deep); }

/* Section header pattern */
.bowl-section-header {
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.bowl-section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.bowl-section-header h2 {
  margin-bottom: var(--space-sm);
}

.bowl-section-header p {
  font-size: var(--text-lg);
  color: var(--stone);
}

/* === Plum Accent Bar === */
.bowl-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--plum), var(--plum-light), var(--plum));
}

/* === Header === */
.bowl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-dark);
  transition: box-shadow var(--duration) var(--ease);
}

.bowl-header--scrolled {
  box-shadow: 0 2px 16px rgba(30, 74, 66, 0.25);
}

.bowl-header__inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .bowl-header__inner {
    padding: 0 2.5rem;
  }
}

/* Brand */
.bowl-header__brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.bowl-header__logo {
  height: 100px;
  width: auto;
  display: block;
  transition: opacity var(--duration) var(--ease);
}

.bowl-header__brand:hover .bowl-header__logo {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .bowl-header__inner {
    height: 100px;
  }
  .bowl-header__logo {
    height: 80px;
  }
}

/* === Nav === */
.bowl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bowl-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.bowl-nav a:hover {
  color: var(--plum-light);
}

.bowl-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Parent items with dropdowns */
.bowl-nav__parent {
  position: relative;
  display: flex;
  align-items: center;
}

.bowl-nav__chevron {
  color: rgba(255, 255, 255, 0.45);
  margin-left: -4px;
  margin-right: 4px;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}

.bowl-nav__parent:hover .bowl-nav__chevron {
  transform: rotate(180deg);
  color: var(--plum-light);
}

.bowl-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 0.35rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--duration) var(--ease),
              visibility var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  z-index: 100;
}

.bowl-nav__parent:hover .bowl-nav__dropdown,
.bowl-nav__parent:focus-within .bowl-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bowl-nav__dropdown a {
  display: block;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  white-space: nowrap;
}

/* CTA button in nav */
.bowl-nav__cta {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--plum) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius) !important;
  margin-left: 0.5rem;
  transition: background var(--duration) var(--ease) !important;
}

.bowl-nav__cta:hover {
  background: var(--plum-bright) !important;
  color: var(--white) !important;
}

/* Hamburger */
.bowl-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
  z-index: 1001;
}

.bowl-hamburger svg {
  width: 22px;
  height: 22px;
}

.bowl-hamburger__close {
  display: none;
}

.bowl-hamburger.is-active .bowl-hamburger__open {
  display: none;
}

.bowl-hamburger.is-active .bowl-hamburger__close {
  display: block;
}

/* WordPress admin bar offset */
.admin-bar .bowl-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .bowl-header {
    top: 46px;
  }
}

/* Mobile nav */
@media (max-width: 767px) {
  .bowl-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--green-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
    z-index: 999;
  }

  .bowl-nav.open {
    transform: translateX(0);
  }

  .bowl-nav a {
    font-size: 1.15rem;
    padding: 0.75rem 1.5rem;
  }

  .bowl-nav__parent {
    flex-direction: column;
  }

  .bowl-nav__chevron {
    display: none;
  }

  .bowl-nav__dropdown {
    position: static;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    min-width: 0;
  }

  .bowl-nav__dropdown a {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
  }

  .bowl-nav__cta {
    margin-left: 0 !important;
    margin-top: 1rem;
    font-size: 0.85rem !important;
    padding: 0.75rem 1.5rem !important;
  }

  .bowl-hamburger {
    display: block;
  }
}

/* Nav visible on desktop */
@media (min-width: 768px) {
  .bowl-nav {
    display: flex;
  }
  .bowl-hamburger {
    display: none;
  }
}

/* === Main Content === */
.site-main {
  min-height: 60vh;
}

/* Elementor full-width sections need parent padding removed */
.page-container .entry-content {
  overflow: visible;
}

/* Non-Elementor pages get standard spacing */
.entry-header {
  padding: var(--space-xl) 0 var(--space-md);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.entry-header .entry-title {
  font-size: var(--text-2xl);
}

/* === Footer === */
.bowl-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 1.5rem;
}

.bowl-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .bowl-footer__inner {
    padding: 0 2.5rem;
  }
}

.bowl-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .bowl-footer__top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.bowl-footer__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.bowl-footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.bowl-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.bowl-footer__links a,
.bowl-footer__links li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  transition: color var(--duration) var(--ease);
  text-decoration: none;
}

.bowl-footer__links a:hover,
.bowl-footer__links li a:hover {
  color: var(--plum-light);
}

/* External links (Province, UGLE) */
.bowl-footer__ext {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1rem;
}

.bowl-footer__ext a {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration) var(--ease);
}

.bowl-footer__ext a:hover {
  color: var(--plum-light);
}

/* Copyright */
.bowl-footer__copy {
  text-align: center;
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
}
