/* ==========================================================================
   AZ LD17 REPUBLICANS (azld17republicans.com)
   EXACT 1:1 REPLICA MATCHING ATTACHED SCREENSHOTS
   ========================================================================== */

:root {
  --header-bg: #4c4c4c;
  --header-text: #ffffff;
  --text-primary: #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --gop-red: #a5181f;
  --gop-red-hover: #861016;
  --freedom-team-color: #555770;
  --border-color: #e5e7eb;
  --btn-dark: #1f1f1f;
  --btn-dark-hover: #333333;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  color: var(--text-primary);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER NAVIGATION (Exact match to Screenshot 3)
   Background: #4c4c4c, White Logo Square on Left, Nav Links, Right Icons
   ========================================================================== */
.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  max-width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* White square containing circular LD17 seal */
.header-logo-box {
  background: #ffffff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
}

.header-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Right Search and Cart Icons */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #ffffff;
}

.header-icon-btn {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0.2s ease;
}

.header-icon-btn:hover {
  opacity: 0.8;
}

.cart-counter {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gop-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION (Exact match to Screenshot 3)
   Left: "America First", "GOP Legislative District 17 PC Committeeman",
         "Home of the LD17 Freedom Team", Button: "ELECTIONS - Get Out the Vote"
   Right: Hero Image (where user put blue checkmark)
   ========================================================================== */
.hero-section {
  width: 100%;
  background-color: #ffffff;
  padding: 4.5rem 0 5.5rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1.5rem;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.hero-subheadline {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--gop-red);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.hero-slogan {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--freedom-team-color);
  margin-bottom: 2.75rem;
}

.hero-btn-gotv {
  align-self: flex-start;
  background-color: var(--btn-dark);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-btn-gotv:hover {
  background-color: var(--btn-dark-hover);
  transform: translateY(-1px);
}

/* Hero Right Media Container (The box marked with blue tick in Screenshot 3) */
.hero-media-wrap {
  width: 100%;
  height: 440px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  background-color: #2b2b2b;
}

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

.hero-media-wrap:hover .hero-media-img {
  transform: scale(1.02);
}

.hero-media-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CATALOG SECTION (Exact match to Screenshot 1)
   Title: "LD17 Information and Donations"
   7 Items (Grid of Cards):
     1. DONATE (CLICK)
     2. Classes and Opportunities (click on image)
     3. LD 17 ByLaws
     4. LD17 Legislators
     5. PC Training Sign-up Info
     6. Sponsors of LD17
     7. Gaslight Fund Raiser Seating and Tickets
   ========================================================================== */
.catalog-section {
  padding: 4.5rem 0 5.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.catalog-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3.5rem;
  letter-spacing: -0.5px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.catalog-grid-row2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Individual Catalog Item Card */
.catalog-item {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.catalog-item:hover {
  transform: translateY(-4px);
}

.catalog-thumb-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f3f4f6;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
}

.catalog-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-item:hover .catalog-thumb-img {
  transform: scale(1.05);
}

/* Text Overlaid directly on image (Classes & Bylaws) */
.thumb-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  width: 90%;
  text-align: center;
  line-height: 1.35;
  pointer-events: none;
}

/* Caption below card */
.catalog-item-caption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.35;
  padding: 0 0.5rem;
}

.catalog-item-caption.donate-caption {
  font-weight: 700;
  color: var(--gop-red);
}

/* ==========================================================================
   VISIT GOP SECTION (Exact match to Screenshot 2)
   Left: "Visit GOP Legislative District 17 Committee",
         "Home of the LD17 Precinct Committeemen", Elected PCs, Appointed PCs,
         Associate PCs, Address: Pima County and Pinal County,
         Open hours: Open 24 X 7, Contact info: 520-306-1970, timrhubbard@outlook.com,
         Facebook Icon.
   Right: Large Image / Map Box (where user marked)
   ========================================================================== */
.visit-section {
  padding: 5rem 0 6rem;
  background-color: #f9fafb;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: flex-start;
}

.visit-info {
  display: flex;
  flex-direction: column;
}

.visit-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.visit-list {
  list-style: none;
  margin-bottom: 2rem;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.8;
}

.visit-meta-group {
  margin-bottom: 1.75rem;
}

.visit-meta-label {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
  margin-bottom: 0.35rem;
}

.visit-meta-value {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

.visit-meta-value a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visit-meta-value a:hover {
  color: var(--gop-red);
}

/* Facebook round circle icon */
.social-fb-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.social-fb-btn:hover {
  background: #111827;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Right Map / Visual Box */
.visit-map-box {
  width: 100%;
  height: 460px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e5e7eb;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.visit-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visit-map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  color: #fff;
  padding: 1.5rem;
}

.visit-map-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.visit-map-overlay p {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* ==========================================================================
   FOOTER (Official Lightspeed / TMC e-Commerce Footer)
   ========================================================================== */
.site-footer {
  background-color: #1f2937;
  color: #9ca3af;
  padding: 3.5rem 0 2rem;
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #374151;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8rem;
}

.powered-by-tag {
  color: #6b7280;
}

.powered-by-tag strong {
  color: #d1d5db;
}

/* ==========================================================================
   MODAL & INTERACTIVITY (DONATE, CART DRAWER, NOTIFICATIONS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  max-width: 500px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}

.btn-close-modal {
  font-size: 1.5rem;
  color: #6b7280;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.preset-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-preset {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  font-weight: 700;
  color: #111827;
  border-radius: 4px;
}

.btn-preset.active, .btn-preset:hover {
  background: var(--gop-red);
  color: #ffffff;
  border-color: var(--gop-red);
}

.custom-input-wrap {
  margin-bottom: 1.5rem;
  position: relative;
}

.custom-input-wrap span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #4b5563;
}

.custom-input-wrap input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
}

.btn-submit-donation {
  width: 100%;
  background: var(--gop-red);
  color: #ffffff;
  padding: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  font-size: 1rem;
}

.btn-submit-donation:hover {
  background: var(--gop-red-hover);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  z-index: 1501;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #f9fafb;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  font-size: 0.9rem;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search Modal Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 90%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: #111827;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 992px) {
  .hero-grid, .visit-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-grid-row2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-headline {
    font-size: 2.4rem;
  }
  .hero-subheadline {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    border-top: 1px solid #374151;
  }
  .header-nav.active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .catalog-grid, .catalog-grid-row2 {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .catalog-title {
    font-size: 2rem;
  }
}
