/* ============================================================
   OlympicGuru – trophies.css
   Shared UI + Trophies Landing Page specific styles
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-muted: #5b5b5b;
  --border: #e7e7e7;
  --accent: #ff5a1f;
  --accent-hover: #e64a10;
  --success: #16a34a;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 6px 18px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .18);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --header-h: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .5px;
  margin: 0 0 .5rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

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

/* ===== TOPBAR ===== */
.topbar {
  background: #0a0a0a;
  color: #fff;
  font-size: .82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
}

.topbar a {
  color: #fff;
  margin-right: 14px;
  opacity: .9;
}

.topbar a:hover {
  opacity: 1;
  color: var(--accent);
}

.topbar-center {
  color: #fff;
}

@media (max-width: 820px) {

  .topbar-left a:nth-child(2),
  .topbar-right {
    display: none;
  }

  .topbar-inner {
    justify-content: space-between;
  }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 1.5px;
  color: var(--text);
  display: inline-block;
}

.search {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--text);
  font-size: .95rem;
  transition: border .2s, background .2s, box-shadow .2s;
}

.search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: .9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hdr-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  padding: 4px;
}

.hdr-action i {
  font-size: 1.25rem;
}

.hdr-action:hover {
  color: var(--accent);
}

.badge-count,
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav {
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.nav-list {
  display: flex;
  gap: 28px;
  padding: 0 20px;
}

.nav-link {
  display: inline-block;
  padding: 12px 0;
  font-weight: 600;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* ===== MOBILE MENU & DRAWERS ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: left .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav {
  padding: 12px 0;
}

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-nav a:hover {
  color: var(--accent);
  background: #fafafa;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  right: 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h3 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.cart-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .9rem;
}

.cart-line.total {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: var(--radius);
  transition: all .25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 90, 31, .35);
}

.btn-outline {
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 20px 0;
  font-size: .85rem;
}

.breadcrumb ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: #aaa;
}

.breadcrumb .current {
  font-weight: 600;
  color: var(--text);
}

/* SECTION BASE */
.section {
  padding: 55px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 90, 31, .1);
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 99px;
  margin-bottom: 10px;
}

/* HERO SECTION */
.trophy-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  padding: 65px 0;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.trophy-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.trophy-hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.trophy-hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 14px;
}

.trophy-hero-subtitle {
  color: #ddd;
  font-size: 1.12rem;
  max-width: 660px;
  margin: 0 0 24px;
  line-height: 1.65;
}

.trophy-hero-art {
  font-size: 6rem;
  color: rgba(255, 90, 31, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 30px;
}

/* CONTENT CARD & GRID STYLES */
.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.seo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 90, 31, .35);
}

.seo-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(255, 90, 31, .09);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.seo-card h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: var(--text);
}

.seo-card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: .98rem;
  margin-bottom: 12px;
}

.seo-card p:last-child {
  margin-bottom: 0;
}

.seo-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: disc;
}

.seo-card ul li {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: .96rem;
}

/* FEATURED CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, #111111 0%, #222222 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 30px 0;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: #ccc;
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* FAQ ACCORDIONS */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}

.faq-card.active {
  border-color: var(--accent);
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  transition: background .2s;
}

.faq-header:hover {
  background: #fafafa;
}

.faq-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.faq-header i {
  font-size: .9rem;
  color: #888;
  transition: transform .3s ease;
}

.faq-card.active .faq-header i {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.65;
  background: #fff;
}

.faq-card.active .faq-body {
  max-height: 300px;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--border);
}

/* FOOTER */
.footer {
  background: #0a0a0a;
  color: #e5e5e5;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) 1.5fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col p {
  color: #999;
  font-size: .88rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #999;
  font-size: .88rem;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: #777;
}

.legal-links a {
  color: #777;
  margin-left: 16px;
}

.legal-links a:hover {
  color: #fff;
}

/* FLOAT STACK */
.float-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 80;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .2s, opacity .2s;
}

.float-btn:hover {
  transform: scale(1.08);
}

.back-to-top {
  background: var(--text);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111;
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 120;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
  }

  .trophy-hero-inner {
    grid-template-columns: 1fr;
  }

  .trophy-hero-art {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .seo-content-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 30px 20px;
  }
}

/* ===== Desktop Dropdown Shop Navigation ===== */
@media (min-width: 769px) {
  .nav-list li.has-dropdown {
    position: relative;
  }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--border, #e7e7e7);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }

  /* Invisible hover bridge between Shop link and dropdown */
  .nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  .has-dropdown:hover > .nav-dropdown,
  .nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown-col {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown-group {
    padding: 4px 0;
  }

  .nav-dropdown-group:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
    padding-bottom: 8px;
  }

  .nav-dropdown-cat,
  .dd-link {
    display: block;
    padding: 6px 20px;
    color: var(--text, #0a0a0a);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .nav-dropdown-cat:hover,
  .dd-link:hover {
    color: var(--accent, #ff5a1f);
  }

  .nav-dropdown-subs {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown-sublink,
  .dd-sub-link {
    display: block;
    padding: 4px 20px 4px 32px;
    color: var(--text-muted, #5b5b5b);
    font-size: 0.84rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, padding-left 0.15s ease;
  }

  .nav-dropdown-sublink:hover,
  .dd-sub-link:hover {
    color: var(--accent, #ff5a1f);
    padding-left: 36px;
  }
}

.has-dropdown > .nav-link::after {
  display: none;
}
