/*
Theme Name: Power and Fun
Theme URI: https://powerfun.pl
Author: Power and Fun S.C.
Description: Lekki, szybki motyw kursów motorowodnych — przeniesiony z makiet projektu (granat/błękit/bursztyn). Zoptymalizowany pod SEO i WooCommerce.
Version: 1.0
Requires at least: 6.0
License: GNU General Public License v2 or later
Text Domain: powerandfun
*/

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1d6fb8;
  --blue-light: #eaf4fc;
  --aqua: #2ec4b6;
  --amber: #ffb703;
  --text: #22303e;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 37, 69, .10);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100vw; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.container { width: min(1150px, 92%); margin-inline: auto; }

/* ===== Przyciski ===== */
.btn, button.single_add_to_cart_button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, #place_order {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  padding: .8rem 1.8rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: .95rem;
}
.btn:hover, .woocommerce a.button:hover, #place_order:hover { transform: translateY(-2px); }
.btn-primary, .woocommerce a.button, .woocommerce button.button, #place_order {
  background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(29, 111, 184, .35);
}
.btn-primary:hover, .woocommerce a.button:hover, #place_order:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-small { padding: .55rem 1.2rem; font-size: .85rem; }
.btn-large { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ===== Topbar ===== */
.topbar { background: var(--navy); color: #cfe3f5; font-size: .85rem; padding: .45rem 0; }
.topbar-inner { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }

/* ===== Header / nav ===== */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(11,37,69,.08); }
.header-inner { display: flex; align-items: center; gap: 2rem; padding: .9rem 0; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: .4rem; }
.logo-icon { font-size: 1.5rem; }
.logo strong { color: var(--blue); }
.logo-light { color: #fff; }
.nav { margin-left: auto; display: flex; gap: 1.4rem; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text); text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav .current-menu-item a, .nav .current_page_item a { color: var(--blue); border-bottom-color: var(--amber); }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; margin-left: auto; }

/* ===== Hero ===== */
.logo-wrap { display: flex; align-items: center; }
.custom-logo-link { display: block; }
.custom-logo { height: 54px; width: auto; }
.footer-logo { height: auto; margin-bottom: .8rem; }
.hero { background: linear-gradient(rgba(11,37,69,.62), rgba(19,49,92,.55)), url('img/hero-bg.png') center/cover no-repeat; color: #fff; padding: 4.5rem 0 5.5rem; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem 1rem; font-size: .85rem; margin-bottom: 1.2rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; }
.hero .highlight { color: var(--amber); }
.hero p { color: #d7e6f5; max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.6rem; display: block; color: var(--amber); }
.hero-stats span { font-size: .85rem; color: #cfe3f5; }
.hero-visual { display: flex; justify-content: center; }
.wave { font-size: clamp(4rem, 8vw, 9rem); filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ===== Sekcje ===== */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-head.align-left { text-align: left; margin: 0 0 1.5rem; }
.section-kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); border-radius: 999px; padding: .3rem .9rem; margin-bottom: .8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ===== Karty kursów ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.6rem; text-align: center; position: relative; display: flex; flex-direction: column; gap: .6rem; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(11,37,69,.16); }
.card-badge { position: absolute; top: 1rem; right: 1rem; background: var(--amber); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .75rem; border-radius: 999px; padding: .25rem .7rem; }
.card-icon { font-size: 3rem; }
.card h3 { font-size: 1.15rem; }
.card-cat { font-size: .8rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card p { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.card-price { font-family: var(--font-head); }
.card-price s { color: var(--muted); margin-right: .5rem; }
.card-price strong { color: var(--navy); font-size: 1.4rem; }
.card-rating { color: var(--amber); font-size: .9rem; }
.card-rating span { color: var(--muted); }
.card .btn { align-self: center; margin-top: .5rem; }

/* ===== Zalety ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.8rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow); }
.feature-icon { font-size: 2.4rem; display: block; margin-bottom: .7rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ===== Opinie ===== */
.review { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.review-stars { color: var(--amber); font-size: 1.1rem; letter-spacing: .1em; }
.review p { font-style: italic; color: var(--text); flex-grow: 1; }
.review footer { font-size: .85rem; color: var(--muted); }

/* ===== CTA ===== */
.cta { background: linear-gradient(120deg, var(--blue) 0%, var(--aqua) 100%); color: #fff; padding: 4rem 0; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.cta p { color: #eef9fb; margin-bottom: 1.6rem; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #cfe3f5; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer h4 { color: #fff; margin-bottom: .9rem; }
.footer a { display: block; color: #cfe3f5; text-decoration: none; padding: .2rem 0; font-size: .93rem; }
.footer a:hover { color: var(--amber); }
.footer .logo { margin-bottom: .8rem; }
.footer p { font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .82rem; text-align: center; color: #8fb3d4; }

/* ===== Podstrony ===== */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, var(--blue)); color: #fff; padding: 3.2rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .4rem; }
.page-hero p { color: #cfe3f5; }
.page-content { padding: 3rem 0; }
.page-content h2 { margin: 1.8rem 0 .6rem; }
.page-content ul, .page-content ol { margin: 0 0 1rem 1.4rem; }
.page-content p { margin-bottom: 1rem; }

/* ===== Kroki ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.4rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: .8rem; }
.step h3 { font-size: 1rem; margin-bottom: .4rem; }
.step p { font-size: .88rem; color: var(--muted); }

/* ===== Dwie kolumny / listy ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.check-list { list-style: none; }
.check-list li { padding: .45rem 0 .45rem 1.6rem; position: relative; font-size: .95rem; }
.check-list li::before { content: '✅'; position: absolute; left: 0; font-size: .9rem; }

/* ===== Moduły teorii ===== */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.module { background: #fff; border: 1px solid #e2edf5; border-radius: 10px; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .9rem; font-size: .93rem; font-weight: 600; color: var(--navy); }
.module span { color: var(--blue); font-family: var(--font-head); font-weight: 800; }
.modules-note { grid-column: 1 / -1; text-align: center; font-size: .85rem; color: var(--muted); }
.fleet-note { text-align: center; margin-top: 2rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq { max-width: 760px; }
.faq details { background: #fff; border: 1px solid #e2edf5; border-radius: 12px; padding: 1.1rem 1.4rem; margin-bottom: .8rem; }
.faq summary { font-family: var(--font-head); font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::after { content: '+'; float: right; color: var(--blue); font-size: 1.2rem; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: .7rem; font-size: .93rem; color: var(--muted); }

/* ===== WooCommerce ===== */
.woocommerce-breadcrumb { font-size: .85rem; color: var(--muted); margin: 1rem 0 1.6rem; }
.woocommerce-breadcrumb a { color: var(--blue); text-decoration: none; }

ul.products { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; margin: 0 !important; list-style: none; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.6rem; text-align: center; display: flex; flex-direction: column; gap: .6rem; margin: 0 !important; width: auto !important; float: none !important; transition: transform .2s ease, box-shadow .2s ease; }
ul.products li.product:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(11,37,69,.16); }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head); font-size: 1.15rem !important; color: var(--navy); padding: 0 !important; }
ul.products li.product .price { font-family: var(--font-head); color: var(--navy); font-size: 1.3rem; }
ul.products li.product .price del { color: var(--muted); font-size: .9rem; opacity: .8; }
ul.products li.product .price ins { text-decoration: none; font-weight: 800; }
ul.products li.product .star-rating { margin: 0 auto; color: var(--amber); }
ul.products li.product .loop-desc { font-size: .88rem; color: var(--muted); min-height: 3.6em; }
ul.products li.product .button { margin-top: .5rem; align-self: center; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 1.4rem; }
span.onsale { background: var(--amber) !important; color: var(--navy) !important; font-family: var(--font-head); font-weight: 700; border-radius: 999px; min-height: 0; line-height: 1.4; padding: .25rem .7rem; top: 1rem; right: 1rem; left: auto; }

/* pojedynczy produkt */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 1rem 0 3rem; }
.single-product div.product .images { width: auto !important; float: none !important; }
.single-product div.product .summary { width: auto !important; float: none !important; }
.single-product .product_title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); }
.single-product .price { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); }
.single-product .price del { color: var(--muted); font-size: 1rem; opacity: .8; }
.single-product .price ins { text-decoration: none; }
.single-product form.cart { margin: 1.4rem 0; }
.single-product form.cart .variations { background: var(--bg-alt); border: 1px solid #e2edf5; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.single-product form.cart .variations label { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .9rem; }
.single-product form.cart .variations select { width: 100%; padding: .6rem .8rem; border-radius: 10px; border: 1px solid #c6d8e6; font-family: var(--font-body); }
.single-product .woocommerce-product-details__short-description { color: var(--text); font-size: .97rem; margin: 1rem 0; }
.single-product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; list-style: none; display: flex; gap: .5rem; }
.single-product .woocommerce-tabs ul.tabs li { margin: 0; }
.single-product .woocommerce-tabs ul.tabs li a { font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: .6rem 1.2rem; display: inline-block; background: var(--bg-alt); border-radius: 999px 999px 0 0; }
.single-product .woocommerce-tabs .panel { background: #fff; border: 1px solid #e2edf5; border-radius: 0 12px 12px 12px; padding: 1.5rem 1.8rem; }
.single-product .woocommerce-tabs .panel h2 { font-size: 1.2rem; margin-bottom: .8rem; }

/* koszyk/kasa */
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 12px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 1px solid #e2edf5; padding: .7rem 1rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; }
#customer_details .col-1, #customer_details .col-2, #order_review_heading, #order_review { background: #fff; border: 1px solid #e2edf5; border-radius: 12px; padding: 1.2rem 1.4rem; }
.select2-container .select2-selection--single { height: 42px; border: 1px solid #c6d8e6; border-radius: 10px; }

/* komunikaty woo */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--blue); border-radius: 10px; background: var(--bg-alt); }

/* ===== Blog ===== */
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.post-card h2 { font-size: 1.15rem; }
.post-card .meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-card p { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.single-post .page-content { max-width: 760px; }

/* ===== RWD ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.6rem; }
  .two-col { gap: 2rem; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 5%; box-shadow: 0 10px 24px rgba(11,37,69,.15); }
  .nav.open { display: flex; }
  .hamburger { display: block; }
  .header .btn { display: none; }
  .hero-stats { gap: 1.4rem; }
  .product-grid, .two-col, .single-product div.product { grid-template-columns: 1fr; }
}
