/*
Theme Name: Wings Etc Summit
Theme URI: https://summit.wingsetc.info
Author: Custom (converted from Beaver Builder)
Description: Lightweight custom theme for the Wings Etc. Brand Summit site. Replaces Beaver Builder dependency with clean, static templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: wingsetc-summit
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  background-color: #ffffff;
}

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

a {
  color: #c8102e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0 0 1.5em 1.25em;
  padding: 0;
}

li {
  margin-bottom: 0.4em;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 700;
  color: #c8102e;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
  margin-top: 1.75em;
}

p {
  margin: 0 0 1.25em;
}

/* =========================================================
   LAYOUT CONTAINER
   ========================================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER / LOGO
   ========================================================= */
.site-header {
  padding: 25px 0 15px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.site-logo {
  display: inline-block;
  max-width: 280px;
}

.site-logo img {
  width: 100%;
  height: auto;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.main-nav {
  text-align: center;
  padding: 12px 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 2px;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: #c8102e;
  text-decoration: none;
}

/* =========================================================
   BLACK BANNER
   ========================================================= */
.promo-banner {
  background: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 14px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.site-main {
  padding: 40px 0 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

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

/* Left column text */
.event-intro h1 {
  color: #c8102e;
  font-size: 2.4rem;
  margin-bottom: 0.4em;
}

.event-meta {
  color: #666;
  font-size: 1.15rem;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

.event-meta p {
  margin: 0 0 0.15em;
}

.event-description {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75em;
}

/* CTA Button */
.btn-register {
  display: inline-block;
  background: #c8102e;
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 48px;
  border-radius: 6px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
}

.btn-register:hover {
  background: #a00d25;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}

/* Event Information */
.event-info {
  margin-top: 2.5em;
}

.event-info h2 {
  color: #c8102e;
  font-size: 1.85rem;
  margin-bottom: 0.8em;
}

.event-info ul {
  list-style: disc;
  margin-left: 1.4em;
  color: #555;
}

.event-info ul ul {
  list-style: circle;
  margin-top: 0.35em;
  margin-bottom: 0.6em;
}

.event-info li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

/* Right column images */
.event-images {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-images img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 25px 0;
  text-align: center;
  color: #777;
  font-size: 0.95rem;
}

/* =========================================================
   WOOCOMMERCE TWEAKS (minimal)
   ========================================================= */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button {
  background-color: #c8102e !important;
  color: #fff !important;
  border-radius: 6px;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background-color: #a00d25 !important;
}

/* Cart / Checkout pages can inherit the clean layout */
.woocommerce-page .site-main {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 600px) {
  .event-intro h1 {
    font-size: 1.85rem;
  }

  .promo-banner {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .btn-register {
    display: block;
    text-align: center;
    padding: 15px 20px;
  }

  .main-nav ul {
    gap: 1.25rem;
  }
}

/* =========================================================
   GUTENBERG / BLOCK EDITOR COMPATIBILITY
   ========================================================= */

/* Make the content container work with core blocks */
.entry-content {
  max-width: 100%;
}

/* Columns block – recreate the original two-column look */
.entry-content .wp-block-columns {
  gap: 2.5rem;
  margin-bottom: 0;
}

.entry-content .wp-block-column {
  margin: 0;
}

/* Headings inside content */
.entry-content h1 {
  color: #c8102e;
  font-size: 2.4rem;
  margin-bottom: 0.4em;
}

.entry-content h2 {
  color: #c8102e;
  font-size: 1.85rem;
  margin-top: 1.75em;
  margin-bottom: 0.8em;
}

/* Paragraphs */
.entry-content p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  color: #555;
}

.entry-content ul ul {
  list-style: circle;
  margin-top: 0.35em;
  margin-bottom: 0.6em;
}

/* Core Button → match the red CTA */
.entry-content .wp-block-button__link,
.entry-content .wp-block-button .wp-block-button__link {
  background-color: #c8102e !important;
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 48px !important;
  border-radius: 6px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button .wp-block-button__link:hover {
  background-color: #a00d25 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}

/* Full-width buttons on mobile */
@media (max-width: 600px) {
  .entry-content .wp-block-button {
    width: 100%;
  }
  .entry-content .wp-block-button__link {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* Images inside the right column */
.entry-content .wp-block-image img {
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.entry-content .wp-block-image {
  margin-bottom: 1.1rem;
}

/* Group / Spacer helpers */
.entry-content .wp-block-group {
  margin-bottom: 0;
}

/* Make sure wide/full alignments don't break the layout */
.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
   FORCE GUTENBERG COLUMNS TO STACK ON TABLET/MOBILE
   ========================================================= */
@media (max-width: 900px) {
  .entry-content .wp-block-columns {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  .entry-content h1 {
    font-size: 1.9rem;
  }

  .entry-content .wp-block-image {
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .entry-content h1 {
    font-size: 1.7rem;
  }

  .entry-content .wp-block-button__link {
    padding: 15px 20px !important;
  }
}

/* =========================================================
   SPONSORSHIP PAGE – ACCORDION + TABLE STYLING
   ========================================================= */

/* Make Details blocks look like the red accordion bars */
.entry-content .wp-block-details {
  border: none;
  margin-bottom: 12px;
}

.entry-content .wp-block-details summary {
  background-color: #c8102e;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 18px;
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
}

.entry-content .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.entry-content .wp-block-details summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  font-weight: 400;
}

.entry-content .wp-block-details[open] summary::after {
  content: "−";
}

.entry-content .wp-block-details > *:not(summary) {
  padding: 18px 8px 8px;
}

/* Sponsorship comparison table */
.sponsorship-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0 20px;
}

.sponsorship-table th,
.sponsorship-table td {
  border: 1px solid #ccc;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

.sponsorship-table th {
  background: #f5f5f5;
  font-weight: 600;
  font-size: 12px;
}

.sponsorship-table .level-cell {
  text-align: left;
  font-weight: 700;
  min-width: 140px;
}

.sponsorship-table .level-cell .price {
  display: block;
  font-weight: 600;
  margin: 4px 0;
}

.sponsorship-table .level-cell .button,
.sponsorship-table .level-cell a.button {
  display: inline-block;
  background: #fff;
  color: #333 !important;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  text-decoration: none !important;
  margin-top: 4px;
}

.sponsorship-table .level-cell a.button:hover {
  background: #f0f0f0;
}

/* Color coding to match original */
.sponsorship-table .platinum { background: #f0f0f0; }
.sponsorship-table .diamond  { background: #c5b4e3; }
.sponsorship-table .ruby     { background: #e74c3c; color: #fff; }
.sponsorship-table .gold     { background: #f1c40f; }
.sponsorship-table .silver   { background: #bdc3c7; }
.sponsorship-table .bronze   { background: #e67e22; color: #fff; }
.sponsorship-table .vendor   { background: #27ae60; color: #fff; }
.sponsorship-table .golf     { background: #3498db; color: #fff; }

/* Make table scroll on smaller screens */
.sponsorship-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .sponsorship-table {
    font-size: 12px;
  }
  .sponsorship-table th,
  .sponsorship-table td {
    padding: 6px 4px;
  }
}
