/*
 * 1vs1 Rugby PRO - Main Stylesheet
 * Primary Color: #e54f2f (orange-red)
 */

:root {
    --primary-color: #e54f2f;
    --text-color: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #ebf3f5;
    --bg-dark: #1a1a21;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 24px;
    color: var(--text-color);
    background: #fff;
}

h1, .grve-h1 { font-family: var(--font-heading); font-weight: 500; text-transform: uppercase; font-size: 60px; line-height: 66px; }
h2, .grve-h2 { font-family: var(--font-heading); font-weight: 500; text-transform: uppercase; font-size: 30px; line-height: 42px; }
h3, .grve-h3 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; font-size: 20px; line-height: 28px; }

a { color: var(--primary-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--text-color); }
p { margin-bottom: 1em; }
img { max-width: 100%; height: auto; }

.grve-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.grve-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.grve-column { padding: 0 15px; width: 100%; }
.grve-column-1 { width: 100%; }
.grve-column-1-2 { width: 50%; }
.grve-column-1-3 { width: 33.333%; }
.grve-column-2-3 { width: 66.666%; }
.grve-column-1-4 { width: 25%; }
.grve-column-1-5 { width: 20%; }
.clearfix::after { content: ""; display: table; clear: both; }

#grve-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.3s; }
#grve-header.grve-overlapping { background: transparent; }
#grve-header.grve-sticky { background: rgba(255,255,255,0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
#grve-top-header { padding: 15px 0; }
#grve-bottom-header { padding: 10px 0; }
.grve-logo { display: flex; align-items: center; justify-content: center; }
.grve-logo img { max-height: 80px; width: auto; transition: all 0.3s; }
#grve-header.grve-sticky .grve-logo img { max-height: 50px; }

#grve-main-menu { display: flex; justify-content: center; }
#grve-main-menu .grve-menu { display: flex; list-style: none; gap: 5px; }
#grve-main-menu .grve-menu li a { display: block; padding: 10px 15px; font-family: var(--font-heading); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); transition: color 0.3s; }
#grve-header.grve-sticky #grve-main-menu .grve-menu li a { color: var(--text-color); }
#grve-main-menu .grve-menu li a:hover, #grve-main-menu .grve-menu li.current-menu-item a { color: var(--primary-color); }
#grve-main-menu .grve-menu li.grve-menu-type-button a { background: var(--primary-color); color: var(--text-light); border-radius: 30px; padding: 10px 20px; }
#grve-main-menu .grve-menu li.grve-menu-type-button a:hover { background: var(--text-color); }

#grve-responsive-header { display: none; padding: 15px 0; }
#grve-responsive-header .grve-container { display: flex; justify-content: space-between; align-items: center; }
#grve-responsive-header .grve-logo img { max-height: 50px; }
.grve-hidden-menu-btn a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text-light); }
#grve-header.grve-sticky .grve-hidden-menu-btn a { color: var(--text-color); }
.grve-icon-menu { display: block; width: 24px; height: 2px; background: currentColor; position: relative; }
.grve-icon-menu::before, .grve-icon-menu::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.grve-icon-menu::before { top: -7px; }
.grve-icon-menu::after { bottom: -7px; }

.grve-header-elements ul { display: flex; list-style: none; gap: 10px; }
.grve-header-elements a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--text-light); transition: color 0.3s; }
#grve-header.grve-sticky .grve-header-elements a { color: var(--text-color); }

.grve-hero-section { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 120px 0 60px; color: var(--text-light); overflow: hidden; }
.grve-background-wrapper { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; }
.grve-bg-image { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; }
.grve-bg-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

.grve-section { position: relative; padding: 60px 0; }
.grve-padding-top-1x { padding-top: 30px; }
.grve-padding-top-2x { padding-top: 60px; }
.grve-padding-top-4x { padding-top: 120px; }
.grve-padding-bottom-1x { padding-bottom: 30px; }
.grve-padding-bottom-2x { padding-bottom: 60px; }
.grve-padding-bottom-3x { padding-bottom: 90px; }
.grve-padding-bottom-4x { padding-bottom: 120px; }
.grve-bg-light { background-color: var(--bg-light); }
.grve-bg-dark { background-color: var(--bg-dark); }
.grve-headings-light h1, .grve-headings-light h2, .grve-headings-light h3 { color: var(--text-light); }

.grve-element { margin-bottom: 20px; }
.grve-align-center { text-align: center; }
.grve-align-left { text-align: left; }
.grve-empty-space { display: block; }
.grve-height-1x { height: 30px; }
.grve-height-2x { height: 60px; }

.grve-btn { display: inline-block; padding: 15px 30px; font-family: var(--font-heading); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: all 0.3s; border: none; }
.grve-btn-small { padding: 10px 20px; font-size: 12px; }
.grve-extra-round { border-radius: 50px; }
.grve-square { border-radius: 0; }
.grve-bg-black { background: var(--text-color); color: var(--text-light); }
.grve-bg-black:hover, .grve-bg-hover-black:hover { background: #000; color: var(--text-light); }
.grve-bg-hover-white:hover { background: var(--text-light); color: var(--text-color); }
.grve-bg-grey { background: #888; color: var(--text-light); cursor: default; }
.grve-bg-grey:hover { background: #888; color: var(--text-light); }
.grve-fullwidth-btn { display: block; width: 100%; }

.grve-tab { width: 100%; }
.grve-tabs-title { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.grve-tab-title { cursor: pointer; padding: 10px 20px; border-bottom: 3px solid transparent; transition: all 0.3s; }
.grve-tab-title.active { border-bottom-color: var(--primary-color); }
.grve-tab-title h3 { margin: 0; }
.grve-tab-content { display: none; }
.grve-tab-content.active { display: block; }

.tournament-card { background: var(--primary-color); padding: 20px; text-align: center; color: var(--text-light); margin-bottom: 20px; }
.tournament-card h3 { color: var(--text-light); }

.grve-image-wrapper { display: inline-block; overflow: hidden; }
.grve-with-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.grve-map-wrapper { width: 100%; position: relative; }
.grve-map { width: 100%; background: #e0e0e0; border-radius: 8px; min-height: 400px; }

.grve-social ul { display: flex; justify-content: center; list-style: none; gap: 15px; }
.grve-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text-light); font-size: 18px; transition: all 0.3s; }
.grve-social a:hover { color: var(--primary-color); transform: translateY(-3px); }

#grve-footer { background: var(--bg-dark); color: var(--text-light); }
#grve-bottom-bar { padding: 60px 0 30px; }
.grve-footer-bar { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.grve-copyright { text-align: center; font-size: 12px; color: #999; }
.grve-copyright a { color: #e6e6e6; }

#grve-hidden-menu { position: fixed; top: 0; left: -300px; width: 300px; height: 100vh; background: var(--bg-dark); z-index: 2000; transition: left 0.3s; overflow-y: auto; }
#grve-hidden-menu.active { left: 0; }
.grve-hiddenarea-wrapper { padding: 20px; }
.grve-close-btn-wrapper { text-align: right; margin-bottom: 20px; }
.grve-close-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; color: var(--text-light); }
.grve-icon-close { display: block; width: 24px; height: 24px; position: relative; }
.grve-icon-close::before, .grve-icon-close::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: currentColor; }
.grve-icon-close::before { transform: rotate(45deg); }
.grve-icon-close::after { transform: rotate(-45deg); }
#grve-hidden-menu .grve-menu { list-style: none; }
#grve-hidden-menu .grve-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }
#grve-hidden-menu .grve-menu li a { display: block; padding: 15px 0; font-family: var(--font-heading); font-weight: 500; font-size: 16px; text-transform: uppercase; color: var(--text-light); transition: color 0.3s; }
#grve-hidden-menu .grve-menu li a:hover { color: var(--primary-color); }
#grve-hidden-menu .grve-menu li.grve-menu-type-button a { background: var(--primary-color); padding: 15px 20px; margin-top: 15px; text-align: center; border-radius: 5px; }
.grve-header-responsive-elements { margin-top: 30px; }
.grve-header-responsive-elements ul { display: flex; list-style: none; gap: 15px; }
.grve-header-responsive-elements a { color: var(--text-light); font-size: 20px; }
.grve-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.grve-menu-overlay.active { opacity: 1; visibility: visible; }

.grve-back-top { position: fixed; bottom: 30px; right: 30px; z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.grve-back-top.active { opacity: 1; visibility: visible; }
.grve-back-top .grve-arrow-wrapper { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--primary-color); color: var(--text-light); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.grve-back-top .grve-arrow-wrapper:hover { background: var(--text-color); }

.grve-contact-form { max-width: 600px; margin: 0 auto; }
.grve-form-field { margin-bottom: 20px; }
.grve-form-field label { display: block; margin-bottom: 8px; font-weight: 500; }
.grve-form-field input, .grve-form-field textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: var(--font-primary); font-size: 14px; transition: border-color 0.3s; }
.grve-form-field input:focus, .grve-form-field textarea:focus { outline: none; border-color: var(--primary-color); }
.grve-form-field textarea { min-height: 150px; resize: vertical; }
.grve-form-message { padding: 15px; margin-bottom: 20px; border-radius: 5px; }
.grve-form-message.success { background: #d4edda; color: #155724; }
.grve-form-message.error { background: #f8d7da; color: #721c24; }

#grve-loader-overflow { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s; }
#grve-loader-overflow.loaded { opacity: 0; pointer-events: none; }
.grve-spinner { width: 50px; height: 50px; border: 3px solid #f3f3f3; border-top: 3px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.grve-separator-bottom { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.grve-separator-bottom svg { display: block; width: 100%; }

@media (max-width: 1024px) {
    h1, .grve-h1 { font-size: 42px; line-height: 48px; }
    h2, .grve-h2 { font-size: 24px; line-height: 32px; }
    .grve-column-1-2, .grve-column-1-3, .grve-column-2-3, .grve-column-1-4, .grve-column-1-5 { width: 50%; }
    #grve-main-header { display: none; }
    #grve-responsive-header { display: block; }
}

@media (max-width: 768px) {
    h1, .grve-h1 { font-size: 32px; line-height: 38px; }
    .grve-column-1-2, .grve-column-1-3, .grve-column-2-3, .grve-column-1-4, .grve-column-1-5 { width: 100%; }
    .grve-tabs-title { flex-direction: column; align-items: center; }
    .grve-padding-top-4x { padding-top: 60px; }
    .grve-padding-bottom-4x { padding-bottom: 60px; }
    .grve-hero-section { min-height: auto; padding: 100px 0 60px; }
    .grve-mobile-hide { display: none !important; }
}

@media (max-width: 480px) {
    h1, .grve-h1 { font-size: 26px; line-height: 32px; }
    .grve-btn { padding: 12px 20px; font-size: 12px; }
}
