/*
Theme Name: My Wrestling Club
Theme URI: https://example.com/my-wrestling-club
Author: ChatGPT
Author URI: https://openai.com
Description: A bold, energetic WordPress theme for youth wrestling clubs with slider, events, calendar, membership form, and EmailOctopus newsletter integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-wrestling-club
Tags: sports, responsive, custom-background, custom-menu, custom-logo, one-column, two-columns, theme-options, blog
*/

/* Base resets */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', Arial, sans-serif; color: #222; background: #ffffff; line-height: 1.6; }

:root {
  --mwc-purple: #6f2dbd;
  --mwc-pink: #ff3ea5;
  --mwc-grey: #f2f2f5;
  --mwc-dark: #1a1a1f;
  --mwc-white: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2rem, 3vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
p  { margin: 0 0 1rem; }

/* Links & buttons */
a { color: var(--mwc-purple); text-decoration: none; }
a:hover { text-decoration: underline; }
.button, .wp-block-button__link, button, input[type="submit"] {
  display: inline-block; padding: .85rem 1.25rem;
  background: linear-gradient(135deg, var(--mwc-purple), var(--mwc-pink));
  color: #fff; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer;
}
.button--ghost { background: #fff; color: var(--mwc-purple); border: 2px solid var(--mwc-purple);}
.button:focus-visible { outline: 3px solid var(--mwc-pink); outline-offset: 2px; }

/* Layout */
.container { width: min(1100px, 92%); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.site-branding { display: inline-flex; align-items: center; gap: .5rem; font-weight: 900; color: var(--mwc-dark); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.primary-nav a { padding: .5rem .75rem; border-radius: 8px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--mwc-grey); text-decoration: none; }

/* Hero slider */
.mwc-hero { position: relative; overflow: hidden; }
.mwc-slides { position: relative; min-height: 54vh; }
.mwc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background-size: cover; background-position: center; }
.mwc-slide.is-active { opacity: 1; }
.mwc-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)); }
.mwc-hero-content { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 2rem; }
.mwc-hero h1 { text-shadow: 0 6px 28px rgba(0,0,0,.35); }

.mwc-hero-controls { position: absolute; bottom: 1rem; right: 1rem; display: flex; gap: .5rem; }
.mwc-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); }
.mwc-dot.is-active { background: #fff; }

/* Sections */
.section { padding: 3rem 0; }
.section--grey { background: var(--mwc-grey); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.card h3 { margin-bottom: .25rem; }

/* Footer */
.site-footer { background: var(--mwc-dark); color: #fff; }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 2rem 0; }
.footer-title { font-size: 1.1rem; margin-bottom: .5rem; }
.site-footer a { color: #fff; opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: .75rem 1rem; border: 1px solid #ddd; border-radius: 12px; background: #fff;
}
form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Utilities */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.center { text-align: center; }
.hide { display: none !important; }
