/*
Theme Name: GoLocal
Theme URI: https://www.golocal.lt
Author: GoLocal
Description: GoLocal sporto klubų tema pagal brand gaires — raudona #e31f2b, juoda, balta, Rubik šriftas. Šviesi bazė, juodas hero, paprasta ir aiški struktūra šeimoms draugiškam 24/7 klubui.
Version: 2.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: golocal
*/

/* ===== Brand kintamieji ===== */
:root {
  --red: #e31f2b;
  --red-dark: #c01823;
  --black: #000000;
  --white: #ffffff;
  --gray-bg: #f5f5f6;
  --text: #1a1a1a;
  --muted: #5f6368;
  --border: #e4e4e7;
  --radius: 14px;
  --container: 1180px;
  --font: 'Rubik', system-ui, -apple-system, sans-serif;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

/* ===== Bazė ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong, b { font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; }

.section-tag {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}
.section-lead { color: var(--muted); max-width: 660px; margin-bottom: 44px; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== Mygtukai ===== */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .22s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(227, 31, 43, .35); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #222; transform: translateY(-2px); }
.btn-outline-white { border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--black); }
.btn-outline-black { border-color: var(--black); color: var(--black); }
.btn-outline-black:hover { background: var(--black); color: var(--white); }
.btn-sm { padding: 10px 22px; font-size: .82rem; }

/* ===== Antraštė ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 48px; width: auto; }
/* WP Customizer įkeltas logotipas */
.custom-logo-link { display: flex; align-items: center; }
img.custom-logo { height: 52px !important; width: auto !important; max-width: 220px; object-fit: contain; }
.site-footer img.custom-logo { height: 44px !important; }
.site-logo .logo-text {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
}
.site-logo .logo-text span { color: var(--red); }

.main-nav > ul { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--white);
  font-weight: 400;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: color .2s;
  display: block;
  padding: 8px 0;
}
.main-nav a:hover { color: var(--red); }
.main-nav .current-page > a { color: var(--red); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: .7em; }
.dropdown {
  position: absolute;
  top: 100%; left: -16px;
  background: var(--black);
  border: 1px solid #222;
  border-top: 3px solid var(--red);
  min-width: 250px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 10px 20px; font-size: .85rem; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(227,31,43,.28), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--red);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 26px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,31,43,.55); }
  50% { box-shadow: 0 0 0 7px rgba(227,31,43,0); }
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { color: #c9c9c9; font-size: 1.12rem; max-width: 580px; margin: 22px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 52px; margin-top: 58px; flex-wrap: wrap; }
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--red); }
.hero-stat .label { color: #a3a3a3; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }

/* Vidinių puslapių hero */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 150px 0 64px;
}
.page-hero .section-tag { color: var(--red); }
.page-hero p { color: #c9c9c9; max-width: 640px; margin-top: 14px; font-size: 1.05rem; }

/* ===== Vasaros pasiūlymo juosta ===== */
.offer-bar {
  background: var(--red);
  color: var(--white);
  padding: 18px 0;
}
.offer-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.offer-bar strong { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.offer-bar a { text-decoration: underline; font-weight: 600; white-space: nowrap; }
.offer-bar a:hover { opacity: .85; }

/* ===== Kortelės ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(227,31,43,.35); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(227,31,43,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; }

.section-gray { background: var(--gray-bg); }
.section-black { background: var(--black); color: var(--white); }
.section-black .section-lead { color: #c9c9c9; }
.section-black .card { background: #111; border-color: #262626; }
.section-black .card h3 { color: var(--white); }
.section-black .card p { color: #a3a3a3; }

/* ===== Kainos ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all .22s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.popular { border-color: var(--red); }
.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { color: var(--muted); font-size: 1.05rem; }
.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.1rem;
  margin-top: 14px;
}
.price-amount { font-size: 3.2rem; font-weight: 800; line-height: 1; margin: 6px 0 4px; color: var(--black); }
.price-amount small { font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.price-permonth { color: var(--red); font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.price-note { color: var(--muted); font-size: .88rem; margin-bottom: 22px; flex: 1; }
.pricing-footnote { text-align: center; color: var(--muted); margin-top: 30px; font-size: .93rem; }
.pricing-footnote strong { color: var(--red); }

.included-list { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.included-list li { padding-left: 30px; position: relative; color: var(--text); font-size: .98rem; }
.included-list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ===== Klubai ===== */
.club-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.club-img { aspect-ratio: 16 / 10; background: var(--gray-bg); }
.club-img img { width: 100%; height: 100%; object-fit: cover; }
.club-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.club-body h3 span { color: var(--red); }
.club-meta { color: var(--muted); font-size: .92rem; display: grid; gap: 7px; margin: 14px 0 20px; flex: 1; }
.club-meta a:hover { color: var(--red); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== Treneriai ===== */
.trainer-card { overflow: hidden; padding: 0; }
.trainer-img { aspect-ratio: 1; background: var(--gray-bg); }
.trainer-img img { width: 100%; height: 100%; object-fit: cover; }
.trainer-body { padding: 24px; }
.trainer-body h3 { color: var(--red); margin-bottom: 2px; }
.trainer-phone { color: var(--muted); font-size: .88rem; font-weight: 500; display: block; margin-bottom: 12px; }
.trainer-phone:hover { color: var(--red); }
.trainer-motto { font-weight: 600; font-size: .95rem; margin-bottom: 8px; line-height: 1.4; }
.trainer-body .bio { color: var(--muted); font-size: .88rem; }

/* ===== Lentelės (tvarkaraštis, masažas) ===== */
.gl-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gl-table th {
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: 1px;
  padding: 14px 18px;
  text-align: left;
}
.gl-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.gl-table tr:last-child td { border-bottom: none; }
.gl-table .hl { color: var(--red); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ===== Forma ===== */
.lead-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.lead-form label { display: block; font-weight: 600; font-size: .88rem; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .5px; }
.lead-form input, .lead-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,31,43,.12); }
.lead-form .btn { width: 100%; margin-top: 26px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #1b5e20;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-error {
  background: #fdecea;
  border: 1px solid var(--red);
  color: var(--red-dark);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 500;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ===== DUK ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 56px 20px 22px;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* ===== Atsiliepimai ===== */
.review-card .review-stars { color: var(--red); letter-spacing: 3px; margin-bottom: 12px; }
.review-card p { margin-bottom: 16px; }
.review-author { font-weight: 700; }

/* ===== CTA sekcija ===== */
.cta-section {
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.cta-section h2 em { font-style: normal; color: var(--red); }
.cta-section p { color: #c9c9c9; max-width: 540px; margin: 14px auto 34px; font-size: 1.08rem; }
.cta-contacts { display: flex; justify-content: center; gap: 44px; margin-top: 44px; flex-wrap: wrap; color: #c9c9c9; }
.cta-contacts a { font-weight: 500; }
.cta-contacts a:hover { color: var(--red); }

/* ===== Poraštė ===== */
.site-footer { background: var(--black); color: #a3a3a3; padding: 60px 0 30px; border-top: 3px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-about p { font-size: .92rem; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; color: var(--white); }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); }
.footer-bottom { border-top: 1px solid #222; padding-top: 26px; display: flex; justify-content: space-between; font-size: .82rem; flex-wrap: wrap; gap: 10px; }

/* ===== Breadcrumb tipo nuorodos tarp klubų ===== */
.club-switcher { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.club-switcher a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}
.club-switcher a:hover, .club-switcher a.active { background: var(--red); border-color: var(--red); color: var(--white); }
.page-hero .club-switcher a { border-color: #333; color: #c9c9c9; }
.page-hero .club-switcher a:hover, .page-hero .club-switcher a.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ===== Responsyvumas ===== */
@media (max-width: 1024px) {
  .grid-4, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  section { padding: 60px 0; }
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--black);
    padding: 20px 24px 28px;
    display: none;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 4px; align-items: stretch; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: none; padding-left: 16px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .header-cta .btn { display: none; }
  .included-list { grid-template-columns: 1fr; }
  .lead-form-wrap { padding: 30px 22px; }
}
