/* =====================================================
   Tasteful Gatherings — Fully Bespoke Theme
   Applied via ThemeManager when branding.theme = 'tastefulgatherings'
   Design reference: tastefulgatherings.com
   Font (Cardo) loaded via theme.json fonts array
   Zero framework class dependencies — all tg- prefixed
   ===================================================== */

/* ── Design Tokens ─────────────────────────────────── */

:root {
  --font-body: 'Cardo', Georgia, 'Times New Roman', serif;
  --font-heading: 'Cardo', Georgia, 'Times New Roman', serif;

  /* Override framework defaults so fallback sections use TG palette, not blue */
  --color-primary: #b3c96f;
  --color-accent: #6c7d38;
  --color-secondary: #232122;
  --color-dark: #232122;
  --color-dark-grey: #232122;

  --tg-sage: #b3c96f;
  --tg-sage-dark: #6c7d38;
  --tg-sage-light: #d4e4a0;
  --tg-charcoal: #232122;
  --tg-plum: #7d3860;
  --tg-rose: #c9659f;
  --tg-blue: #a0c1d4;
  --tg-border: #dddddd;
  --tg-card-bg: rgba(247, 247, 247, 0.75);
}

html { font-size: 17px; }
body { line-height: 1.7; font-family: var(--font-body); }

/* ── Typography ─────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tg-charcoal);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { font-size: 1rem; line-height: 1.7; }
a:hover { color: var(--tg-sage-dark); }

/* ── Container ─────────────────────────────────── */

.tg-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Topbar (sage green, desktop only) ─────────── */

.tg-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: var(--tg-sage);
  color: #fff;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.tg-topbar-content {
  text-align: center;
}

.tg-topbar-promo {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.tg-topbar-promo:hover { color: #fff; opacity: 0.85; }
.tg-topbar-promo strong { text-decoration: underline; }

/* ── Header ────────────────────────────────────── */

.tg-header {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-bottom: 3px solid #e5e5e5;
  padding: 0.75rem 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.tg-header.tg-scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom-color: #e5e5e5;
}

.tg-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Logo ──────────────────────────────────────── */

.tg-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.tg-logo-img {
  height: clamp(30px, 5vw, 42px);
  max-width: clamp(100px, 10vw, 145px);
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.tg-header.tg-scrolled .tg-logo-img {
  height: clamp(22px, 3.5vw, 30px);
  max-width: clamp(80px, 8vw, 115px);
}

.tg-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--tg-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Desktop Nav ───────────────────────────────── */

.tg-nav { margin-left: auto; margin-right: 1.5rem; }

.tg-nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.tg-nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--tg-charcoal);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.tg-nav-link:hover { color: var(--tg-sage-dark); }

.tg-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tg-sage);
  transition: width 0.3s ease;
}

.tg-nav-link:hover::after { width: 100%; }

.tg-chevron { font-size: 0.6rem; opacity: 0.7; transition: transform 0.3s ease; }

/* ── Dropdowns ─────────────────────────────────── */

.tg-has-dropdown { position: relative; }

.tg-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 220px;
  list-style: none;
  padding: 1rem 0;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tg-has-dropdown:hover .tg-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tg-has-dropdown:hover .tg-chevron { transform: rotate(180deg); }

.tg-dropdown li a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--tg-charcoal);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tg-dropdown li a:hover {
  background: rgba(179, 201, 111, 0.12);
  color: var(--tg-sage-dark);
}

/* ── Header Actions ────────────────────────────── */

.tg-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tg-header-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--tg-charcoal);
  transition: all 0.2s;
}

.tg-header-phone:hover {
  background: rgba(179, 201, 111, 0.12);
  color: var(--tg-sage-dark);
}

.tg-header-cta {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tg-header-cta:hover { background: var(--tg-sage); color: #fff; }

/* ── Hamburger ─────────────────────────────────── */

.tg-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.tg-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--tg-charcoal);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ── Mobile Overlay ────────────────────────────── */

.tg-mobile-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1100;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.tg-mobile-overlay.active { display: flex; opacity: 1; }

.tg-mobile-overlay-content {
  text-align: center;
  position: relative;
  width: 100%;
}

.tg-mobile-overlay-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tg-mobile-overlay-content a {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}

.tg-mobile-overlay-content a:hover { color: var(--tg-sage); }

.tg-mobile-submenu {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-mobile-submenu a {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.8;
}

.tg-mobile-close {
  position: absolute;
  top: -6rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.tg-mobile-phone {
  display: block;
  color: var(--tg-sage);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.tg-mobile-cta {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.tg-mobile-cta:hover { background: var(--tg-sage); color: #fff; }

/* ── Buttons ───────────────────────────────────── */

.btn {
  padding: 16px 35px;
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  transition: all 0.3s ease;
}

.btn-primary { background-color: #000; color: #fff; box-shadow: none; }
.btn-primary:hover { background-color: var(--tg-sage); color: #fff; transform: none; box-shadow: none; }
.btn-outline { border: 2px solid #000; color: #000; background: transparent; }
.btn-outline:hover { background-color: var(--tg-sage); border-color: var(--tg-sage); color: #fff; }

/* ── Callouts (4-column feature cards) ─────────── */

.tg-callouts-section {
  padding: 5rem 0;
  background: #fff;
}

.tg-callouts-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tg-charcoal);
  margin-bottom: 3rem;
}

.tg-callouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.tg-callout-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.tg-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--tg-sage);
  margin-bottom: 1.25rem;
}

.tg-callout-icon svg { width: 36px; height: 36px; }

.tg-callout-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tg-charcoal);
  margin-bottom: 0.75rem;
}

.tg-callout-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

@media (max-width: 1024px) {
  .tg-callouts-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 640px) {
  .tg-callouts-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tg-callouts-section { padding: 3rem 0; }
}

/* ── Section Heading (shared) ──────────────────── */

.tg-section-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tg-charcoal);
  margin-bottom: 3rem;
}

/* ── Blog Feed (white background, clean cards) ─── */

.tg-blog-section {
  padding: 5rem 0;
  background: #fff;
}

.tg-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.tg-blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.tg-blog-card:hover {
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.tg-blog-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.tg-blog-card-body { padding: 1.5rem; }

.tg-blog-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--tg-sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.tg-blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tg-charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tg-blog-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.tg-blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tg-sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tg-blog-card:hover .tg-blog-card-link { color: var(--tg-sage); }

/* ── Locations / Map Section ──────────────────── */

.tg-locations-section {
  padding: 5rem 0;
  background: #f9f9f9;
  text-align: center;
}

.tg-locations-intro {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: -1.5rem auto 2.5rem;
  line-height: 1.7;
}

.tg-locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.tg-location-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--tg-charcoal);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.tg-location-card:hover {
  background: var(--tg-sage);
  color: #fff;
  border-color: var(--tg-sage);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
}

.tg-location-card:hover .tg-location-icon { color: #fff; }

.tg-location-icon { color: var(--tg-sage); flex-shrink: 0; }

.tg-locations-cta {
  margin-top: 2rem;
  font-size: 1rem;
  color: #555;
}

.tg-locations-cta a {
  color: var(--tg-sage-dark);
  font-weight: 600;
  text-decoration: underline;
}

.tg-locations-cta a:hover { color: var(--tg-sage); }

@media (max-width: 768px) {
  .tg-locations-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ── Hero (framework fallback styling) ─────────── */

.hero { min-height: 400px; }
.hero-overlay { background: rgba(0, 0, 0, 0.69); }
.hero-content h1 { font-family: var(--font-heading); text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em; }
.hero-content .subtitle { font-family: var(--font-body); font-style: italic; color: var(--tg-sage-light); }

/* ── Inner Pages ───────────────────────────────── */

.inner-hero { height: 300px; }
.inner-hero-overlay h1 { font-family: var(--font-heading); text-transform: uppercase; }
.section { padding: 5rem 0; }

/* ── Cards ─────────────────────────────────────── */

.service-card {
  background: var(--tg-card-bg);
  padding: 2rem;
  border-radius: 5px;
  border: none;
  box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover { box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.15); transform: translateY(-3px); }

.service-card .icon-wrap {
  width: 56px; height: 56px;
  background: rgba(179, 201, 111, 0.15);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: var(--tg-sage-dark);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .icon-wrap { background: var(--tg-sage); color: #fff; }

.blog-preview-card {
  background: #fff; border-radius: 5px; overflow: hidden;
  border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); transition: all 0.3s ease;
}
.blog-preview-card:hover { box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.12); transform: translateY(-2px); }
.blog-preview-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-preview-card .card-body { padding: 1.5rem; }
.blog-preview-card .card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-preview-card .card-body p { color: #6b7280; font-size: 0.9rem; line-height: 1.6; }

/* ── CTA Pill Buttons ──────────────────────────── */

.btn-pill { display: inline-block; padding: 16px 35px; border-radius: 0; font-weight: 400; font-family: var(--font-body); text-decoration: none; transition: all 0.3s ease; box-shadow: none; }
.btn-pill:hover { transform: none; box-shadow: none; }
.btn-pill-primary { background: #000; color: #fff; }
.btn-pill-primary:hover { background: var(--tg-sage); color: #fff; }
.btn-pill-outline { background: #fff; color: var(--tg-charcoal); border: 2px solid var(--tg-charcoal); }
.btn-pill-outline:hover { background: var(--tg-sage); color: #fff; border-color: var(--tg-sage); }

/* ── Contact Split ─────────────────────────────── */

.contact-split { max-width: 1024px; margin: 0 auto; border-radius: 5px; overflow: hidden; box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; }
.contact-split .info-side { background: var(--tg-charcoal); color: #fff; padding: 3rem; position: relative; }
.contact-split .info-side::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(179, 201, 111, 0.1)); }
.contact-split .info-side > * { position: relative; z-index: 1; }
.contact-split .form-side { background: #fff; padding: 3rem; }
.contact-split .form-side input, .contact-split .form-side textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--tg-border); border-radius: 3px; outline: none; transition: border-color 0.15s; font-family: var(--font-body); color: var(--tg-charcoal); }
.contact-split .form-side input:focus, .contact-split .form-side textarea:focus { border-color: var(--tg-sage); box-shadow: 0 0 0 3px rgba(179, 201, 111, 0.15); }
@media (min-width: 768px) { .contact-split { flex-direction: row; } .contact-split .info-side { width: 50%; } .contact-split .form-side { width: 50%; } }

/* ── Footer ────────────────────────────────────── */

.tg-footer {
  background: #fff;
  color: var(--tg-charcoal);
  padding: 0;
  border-top: 3px solid #e5e5e5;
}

.tg-footer-band { background-color: var(--tg-sage); height: 6px; }

.tg-footer .tg-container { padding-top: 3rem; padding-bottom: 1rem; }

.tg-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.tg-footer-logo { height: 50px; width: auto; margin-bottom: 1.5rem; }

.tg-footer-col p { color: #555; }

.tg-footer-col h3 {
  color: var(--tg-sage-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.tg-footer-links { list-style: none; padding: 0; }
.tg-footer-links li { margin-bottom: 0.75rem; color: #555; }
.tg-footer-links a { color: #555; text-decoration: none; transition: color 0.2s; }
.tg-footer-links a:hover { color: var(--tg-sage-dark); }

.tg-social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.tg-social-links a {
  width: 38px; height: 38px;
  background: rgba(179, 201, 111, 0.15);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--tg-sage-dark);
  transition: all 0.2s ease;
}
.tg-social-links a:hover { background: var(--tg-sage); color: #fff; }

.tg-footer-bottom {
  background: var(--tg-sage);
  padding: 1rem 0;
  text-align: center;
  margin-top: 2rem;
}

.tg-footer-bottom p { color: #fff; font-size: 0.875rem; margin: 0; }
.tg-footer-bottom a { color: #fff; text-decoration: underline; }
.tg-footer-bottom a:hover { color: #fff; opacity: 0.85; }

/* ── Utilities ─────────────────────────────────── */

.check-item { display: flex; align-items: center; gap: 0.75rem; color: var(--tg-charcoal); font-size: 0.95rem; }
.check-item svg { flex-shrink: 0; color: var(--tg-sage); }

.gradient-text {
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, var(--tg-sage-dark), var(--tg-sage));
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 1024px) {
  .tg-topbar { display: none; }
  .tg-header { top: 0; }
  .tg-nav { display: none; }
  .tg-header-actions { display: none; }
  .tg-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .hero { min-height: 250px; }
  .inner-hero { height: 180px; }
  .tg-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .section { padding: 3rem 0; }
}
