/*
Theme Name: Armide
Theme URI: https://jakegladden.com
Author: You
Author URI: https://jakegladden.com
Description: Tema Oficial Armide Soliveres
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: armide
*/

html {
  height: 100%;
}

:root{
  --bg-dark:#1c1818;
  --gold:#d7b870;
  --header-h:80px;
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  background:#000;color:#fff;
    display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* ===== HEADER ===== */
header.site-header{
  position:fixed; top:0; left:0; right:0; height:var(--header-h);
  background:#231f20;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  padding:0 20px; z-index:1000; border-bottom:1px solid rgba(255,255,255,.06);
}
.menu-toggle{
  justify-self:start; display:flex; align-items:center; gap:.6rem; cursor:pointer; user-select:none; 
  color:var(--gold); letter-spacing:.08em; font-weight:600;
}
.menu-toggle i{font-size:1.2rem}
.menu-toggle .x{display:none}
.menu-toggle.open .bars{display:none}
.menu-toggle.open .x{display:inline}
.site-logo{
  justify-self:center; display:flex; align-items:center; gap:.75rem;
}
.site-logo img{height:80px}
.head-social{
  justify-self:end; display:flex; gap:1.2rem;
}
.head-social a{color:#fff; opacity:.9; font-size:1.05rem; text-decoration:none}
.head-social a:hover{color:var(--gold)}


/* ===== MENU OVERLAY (Smooth Extension of Header) ===== */
.menu-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(28, 24, 24, 0.9); /* slightly lighter, softer transparency */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  z-index: 950; /* slightly lower than header to blend seamlessly */
}

/* When open, extend naturally below header */
.menu-overlay.open {
  height: 160px;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Menu inner layout */
.menu-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}


.menu-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.8rem 11rem; /* row gap, column gap */
  text-align: left;
  list-style: none;
  padding-top:30px;
  margin: 0;
}

.menu-links li {
  list-style: none;
}

.menu-links a {
  background: none;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.menu-links a:hover {
  color: var(--gold);
}


/* ===== MENU SOCIAL (inside overlay) ===== */
.menu-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem; /* spacing between icons */
  margin-top: 1.5rem;
}
.menu-social a:hover{color:var(--gold)}
body.menu-open{overflow:hidden}

/* ===== SLIDER ===== */

main {
  flex: 1;
  display: block;
  padding-top:var(--header-h);
}
.slider {
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.panel{
  position:absolute; inset:0; display:grid; place-items:center;
  background:transparent;
}
.panel img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
}
/* ===== MENU TEXT ===== */
.menu-links a,
.menu-social a {
  background: none !important;
  color: #fff;
  text-decoration: none;
  transition: color .3s ease;
}
.menu-links a:hover,
.menu-social a:hover {
  color: var(--gold);
}


/* === PURE TRANSPARENT MENU BUTTON === */
.menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  font-family: inherit;
  line-height: 1;
}

/* Hover / focus styles (optional for feedback) */
.menu-toggle:hover,
.menu-toggle:focus {
  color: #fff;
  outline: none;
}

/* Remove weird focus ring in some browsers */
.menu-toggle::-moz-focus-inner {
  border: 0;
}

/* Icon styling */
.menu-toggle i {
  font-size: 1.2rem;
}

/* X / Bars toggle logic */
.menu-toggle .x { display: none; }
.menu-toggle.open .bars { display: none; }
.menu-toggle.open .x { display: inline; }

/* Ensure MENU text itself is clean */
.menu-toggle span {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
}


.site-footer {
  background: #111;
  padding: 2rem 1rem;
  text-align: center;
  flex-shrink: 0; /* ensure footer never collapses upward */
}

/* ===== FOOTER ===== */

.site-footer .links{margin-bottom:1rem}
.site-footer .links a{color:#ccc; margin:0 1rem; text-decoration:none}
.site-footer .links a:hover{color:#fff}
.site-footer p{color:#777; font-size:.92rem}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .menu-inner{flex-direction:column; justify-content:center; gap:1.5rem}
  .menu-links{flex-direction:column; gap:1rem}
}

/* ===== SLIDE CAPTION – Federer Style ===== */
.caption{
  position:absolute;inset:0;
  z-index:5;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 2rem;
  color:#fff;
  pointer-events:none;
  animation:fadeUp 1.5s ease forwards;
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(30px);}
  to{opacity:1;transform:translateY(0);}
}
.caption h2{
  font-size:clamp(2rem,4vw,3.5rem);
  font-weight:700;
  letter-spacing:.02em;
  color:#fff;
  margin-bottom:.6rem;
  text-transform:uppercase;
  pointer-events:auto;
}
.caption p,
.caption h3{
  font-size:clamp(1.1rem,2.2vw,1.5rem);
  color:#d0d0d0;
  margin-bottom:1.8rem;
  line-height:1.5;
  font-weight:400;
  pointer-events:auto;
}

.caption .btn {
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.5;
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-width: 2px;
  --bs-btn-border-color: #fff;
  --bs-btn-border-radius: 50px;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-disabled-opacity: 0.65;
  --bs-btn-focus-shadow-rgb: 255,255,255;

  display: inline-block;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
  font-size: var(--bs-btn-font-size);
  font-weight: var(--bs-btn-font-weight);
  line-height: var(--bs-btn-line-height);
  color: var(--bs-btn-color);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius);
  background-color: var(--bs-btn-bg);
  user-select: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
  text-transform: uppercase;
  letter-spacing: .05em;
  pointer-events: auto;
}

.caption .btn:hover,
.caption .btn:focus {
  background-color: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

.caption .btn:active {
  transform: translateY(0);
  background-color: #ddd;
  border-color: #ddd;
  color: #000;
}

.caption .btn:disabled {
  opacity: var(--bs-btn-disabled-opacity);
  pointer-events: none;
}

.caption h2,.caption h3,.caption p{
  text-shadow:0 4px 12px rgba(0,0,0,0.35);
}
@media(max-width:900px){
  .caption h2{font-size:clamp(1.6rem,6vw,2.5rem);}
  .caption h3,.caption p{font-size:clamp(1rem,4vw,1.2rem);}
  .caption .btn{padding:.7rem 1.8rem;}
}
.panel video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}
.panel-bg { z-index:0; }

/* Prevent admin bar overlap */
body.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

/* ===== SPONSOR BAR (ALWAYS VISIBLE) ===== */
.slide-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000; /* ensures it stays above all slides */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; /* always visible */
  transition: none;
}

.slide-bottom-bar img.sponsor-logo {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .slide-bottom-bar {
    height: 60px;
  }
  .slide-bottom-bar img.sponsor-logo {
    max-height: 35px;
  }
}
@media (max-width: 600px) {
  .slide-bottom-bar {
    height: 50px;
  }
  .slide-bottom-bar img.sponsor-logo {
    max-height: 28px;
  }
}

/* Hide animation when footer trigger is visible */
.slide-bottom-bar.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}


/* ===== PAGE CONTENT (for block editor pages) ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  color: #fff;
}

.page-content h1, .page-content h2, .page-content h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-content a {
  color: var(--gold);
  text-decoration: underline;
}

.page-content p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


/* ===== PAGE TITLE BAR (fixed-header offset) ===== */
.page-title-bar {
  position: relative;
  z-index: 5;
  background: rgba(28, 24, 24, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: calc(var(--header-h) + 3rem) 1rem 3rem; /* offset for header height */
  text-align: center;
}

.page-title-bar .page-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  letter-spacing: .03em;
}

/* ===== INLINE SPONSOR BAR (below title bar) ===== */
.page-sponsor-bar {
  background: rgba(0, 0, 0, 0.85);
  padding: 1.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-sponsor-bar img {
  max-height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ===== EVENTS PAGE ===== */
.events-section {
  background: #fff;
  color: #000;
  padding: 4rem 1.5rem;
  min-height:100vh;
}

.events-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  border-left: 3px solid #d7b870;
  padding-left: 2rem;
}

.event-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.event-item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 2rem;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}

.event-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.event-content h2 {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 700;
  color: #000;
}

.event-date, .event-location {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.4rem;
}

.event-button {
  display: inline-block;
  margin-top: 1rem;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.event-button:hover {
  background: #000;
  color: #fff;
}

/* === WooCommerce Layout Fix === */
.woocommerce-main {
  background: #fff;
  flex: 1;
  width: 100%;
  padding: 4rem 0 6rem;
  display: flex;
  justify-content: center;
}

.woocommerce-wrapper {
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
}

/* Reset WooCommerce default background behaviour */
body.woocommerce-page {
  background: #fff;
  color: #000;
}

/* Fix narrow shop content */
.woocommerce-page .site-content,
.woocommerce-page .content-area {
  width: 100%;
  max-width: 100%;
}

/* Typography */
.woocommerce-page h1, 
.woocommerce-page h2, 
.woocommerce-page h3 {
  color: #000;
}

/* Messages */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: #f6f6f6;
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 1rem 1.4rem;
  text-align: center;
}

/* Product grid improvements */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  list-style: none;
  margin-top: 2rem;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform .2s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button {
  background: var(--gold);
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  transition: all 0.3s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #000;
  color: #fff;
}
/* ===== SLIDE INDICATOR BARS ===== */
.slide-indicators {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  pointer-events: none;
}

.slide-indicators .bar {
  width: 2px;
  height: 28px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.slide-indicators .bar .fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #fff;
  transition: height 0.4s ease;
}

.slide-indicators .bar.active .fill {
  height: 100%;
}

@media (max-width: 900px) {
  .slide-indicators {
    right: 20px;
    gap: 10px;
  }
  .slide-indicators .bar {
    height: 22px;
  }
}


.sponsors-grid {
  padding: 60px 0;
  background: #fff; /* change from #f9f9f9 */
  min-height: 100vh;
}

.sponsors-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  padding-left: 10%;
    padding-right: 10%;
}
.sponsor-item img {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}
.sponsor-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
@media (min-width: 992px) {
  .sponsors-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== FOOTER:  Style ===== */
.site-footer {
  background: #1a1515;
  color: #aaa;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- TOP SECTION --- */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

/* Logo */
.footer-logo img {
  max-height: 60px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Footer Menu */
.footer-menu {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 1rem 2rem;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-menu li a {
  color: #ccc;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.footer-menu li a:hover {
  color: var(--gold);
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  align-items: center;
}

.footer-social a {
  color: #fff;
  font-size: 1.4rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: var(--gold);
  opacity: 1;
}

/* --- BOTTOM SECTION --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-social {
    justify-content: center;
  }

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

/* ===== SPONSORS PAGE VIDEO ===== */
.sponsors-video {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #000;
}

.sponsors-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
