/*
 * Theme Name: GEM LLC
 * Version: 2.1
 * Description: Custom WordPress theme styling for Grove Enterprises Memphis LLC
 * Author: GEM LLC
 */

/* BASIC THEME SETTINGS */

html {
  scroll-behavior: smooth;
}

html,
body,
.wp-site-blocks,
.site,
.site-content,
.wp-block-post-content,
main,
.wp-block-group,
.entry-content {
  background: #111111 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* GENERAL LINKS */

a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

a:hover {
  opacity: 0.9;
}

/* REMOVE DEFAULT BLOCK SPACING */

.wp-site-blocks {
  padding: 0 !important;
}

:where(.wp-site-blocks) > * {
  margin-block-start: 0 !important;
}

/* IMPORTANT IMAGE FIX */
/* Prevents theme from forcing every image full width */

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

/* GEM GLOBAL PAGE STRUCTURE */

.gem-homepage,
.fm-page {
  width: 100% !important;
  max-width: none !important;
  background: #111111 !important;
  color: #ffffff !important;
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* CUSTOM HEADER */

.gem-custom-header {
  background: #111111 !important;
  padding: 12px 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid #333333 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

.gem-logo img {
  width: auto !important;
  max-width: none !important;
  max-height: 34px !important;
  display: block !important;
}

.gem-nav {
  display: flex !important;
  gap: 25px !important;
  align-items: center !important;
}

.gem-nav a {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.gem-nav a:hover {
  color: #D4AF37 !important;
}

/* HERO IMAGE */

.gem-hero {
  width: 100% !important;
  background: #111111 !important;
  text-align: center !important;
}

.gem-hero-img {
  width: 100% !important;
  max-width: none !important;
  height: 55vh !important;
  object-fit: cover !important;
  display: block !important;
}

/* MAIN SECTIONS */

.gem-section,
.gem-band,
.gem-cta,
.fm-section {
  width: 100% !important;
  background: #111111 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 60px 24px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.gem-band {
  background: #1A1A1A !important;
}

.gem-section-inner,
.fm-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.gem-center {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* HEADINGS */

.gem-small-title,
.gem-section h1,
.gem-section h2,
.gem-band h2,
.gem-cta h2,
.gem-card h3,
.fm-section h1,
.fm-section h2,
.fm-card h3 {
  color: #D4AF37 !important;
}

.gem-small-title {
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  margin-bottom: 15px !important;
  font-weight: 700 !important;
}

.gem-section h1,
.fm-section h1 {
  font-size: clamp(42px, 7vw, 80px) !important;
  margin-bottom: 10px !important;
}

/* PARAGRAPHS */

.gem-section p,
.gem-band p,
.gem-cta p,
.gem-card p,
.fm-section p,
.fm-card p {
  color: #dddddd !important;
  line-height: 1.8 !important;
  max-width: 850px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* GRIDS */

.gem-grid,
.gem-purpose-grid,
.fm-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  margin: 40px auto 0 auto !important;
  max-width: 1200px !important;
  width: 100% !important;
}

/* CARDS */

.gem-card,
.fm-card,
.gem-purpose-item {
  background: #1E1E1E !important;
  color: #ffffff !important;
  padding: 30px !important;
  border-radius: 20px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.gem-purpose-item {
  border-left: 4px solid #D4AF37 !important;
  font-weight: 700 !important;
}

/* DIVISION LOGOS */

.gem-card img.gem-division-logo,
.gem-division-logo {
  width: 85px !important;
  max-width: 85px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto 18px auto !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
}

.gem-card img.gem-division-logo:hover,
.gem-division-logo:hover {
  transform: scale(1.05) !important;
}

.gem-card a:has(img) {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: inline-block !important;
}

/* BUTTONS */

.gem-btn,
.fm-btn,
.gem-card a:not(:has(img)) {
  display: inline-block !important;
  background: #D4AF37 !important;
  color: #111111 !important;
  padding: 14px 24px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.gem-btn-outline {
  background: transparent !important;
  border: 2px solid #D4AF37 !important;
  color: #ffffff !important;
}

.gem-btn-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 25px auto 0 auto !important;
}

/* FLAVA MASTERS REP PAGE */

.fm-header {
  padding: 20px !important;
  text-align: center !important;
  background: #111111 !important;
  border-bottom: 1px solid #333333 !important;
}

.fm-header img {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.fm-order-table {
  width: 100% !important;
  max-width: 1100px !important;
  border-collapse: collapse !important;
  margin: 25px auto 0 auto !important;
  background: #1E1E1E !important;
}

.fm-order-table th,
.fm-order-table td {
  border: 1px solid #333333 !important;
  padding: 12px !important;
  text-align: center !important;
}

.fm-order-table th {
  background: #D4AF37 !important;
  color: #111111 !important;
}

.fm-order-table input,
.fm-order-table textarea,
.fm-form input,
.fm-form textarea {
  width: 100% !important;
  padding: 10px !important;
  border-radius: 8px !important;
  border: 1px solid #555555 !important;
  background: #111111 !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

.fm-form {
  max-width: 800px !important;
  margin: 30px auto !important;
  text-align: left !important;
}

.fm-form label {
  display: block !important;
  margin-top: 16px !important;
  color: #D4AF37 !important;
  font-weight: bold !important;
}

.fm-note {
  background: #1E1E1E !important;
  border-left: 5px solid #D4AF37 !important;
  padding: 20px !important;
  margin: 30px auto 0 auto !important;
  max-width: 900px !important;
  text-align: left !important;
}

/* WORDPRESS DEFAULT HEADER / FOOTER SAFETY */

.site-header,
.wp-block-template-part,
.wp-block-site-title,
.wp-block-navigation {
  background: #111111 !important;
  color: #ffffff !important;
}

.wp-block-site-title a,
.wp-block-navigation-item a {
  color: #ffffff !important;
}

.wp-block-site-title a:hover,
.wp-block-navigation-item a:hover {
  color: #D4AF37 !important;
}

/* MOBILE */

@media (max-width: 768px) {

  .gem-custom-header {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px 18px !important;
  }

  .gem-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  .gem-logo img {
    max-height: 32px !important;
  }

  .gem-hero-img {
    height: 38vh !important;
  }

  .gem-section,
  .gem-band,
  .gem-cta,
  .fm-section {
    padding: 45px 18px !important;
  }

  .gem-card img.gem-division-logo,
  .gem-division-logo {
    width: 75px !important;
    max-width: 75px !important;
  }

  .fm-order-table {
    font-size: 14px !important;
  }

}

/* SKYLINE FIX */

.gem-hero-img {
  object-position: center 70% !important;
}

/* DROPDOWN MENU */

.gem-dropdown {
  position: relative;
  display: inline-block;
}

.gem-dropbtn {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.gem-dropbtn:hover {
  color: #D4AF37;
}

.gem-dropdown-content {
  display: none;
  position: absolute;
  background: #1A1A1A;
  min-width: 260px;
  border: 1px solid #333333;
  border-radius: 12px;
  overflow: hidden;
  z-index: 9999;
  top: 28px;
  left: 0;
}

.gem-dropdown-content a {
  color: #ffffff !important;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  transition: background .2s ease;
}

.gem-dropdown-content a:hover {
  background: #2A2A2A;
  color: #D4AF37 !important;
}

.gem-dropdown:hover .gem-dropdown-content {
  display: block;
}

.gem-btn,
.gem-btn:visited,
.gem-btn:active {
  color: #111111 !important;
  text-decoration: none !important;
}

.gem-btn:hover {
  color: #111111 !important;
}