/*
Theme Name: Na Vlně Pohybu
Theme URI: https://navlnepohybu.cz
Author: Na Vlně Pohybu
Author URI: https://navlnepohybu.cz
Description: Custom theme for Na Vlně Pohybu – outdoor activities, bootcamps & guided mountain treks.
Version: 1.0.0
Text Domain: navlnepohybu
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   WEB FONTS
   ============================================================ */
@font-face {
    font-family: 'Objektiv MK1';
    src: url('css/fonts/Objektiv_Mk1_XBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   CSS VARIABLES (Brand Manual)
   ============================================================ */
:root {
    --color-dark:       #2d2d2d;
    --color-teal-dark:  #0e6166;
    --color-teal:       #27a398;
    --color-coral:      #fb7e64;
    --color-pink:       #f5929f;
    --color-gold:       #ffc002;
    --color-white:      #ffffff;
    --color-light-bg:   #27a398;
    --color-border:     #e2e8f0;

    --font-heading: 'Objektiv MK1', 'Noto Sans', sans-serif;
    --font-body:    'Noto Sans', sans-serif;

    --radius-sm:  6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm:  0 1px  3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 12px rgba(0,0,0,.1);
    --shadow-lg:  0 8px 30px rgba(0,0,0,.12);

    --max-width: 1200px;
    --header-h:  80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-teal-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-teal); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-dark);
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2.15rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p + p { margin-top: 1rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--alt { background: var(--color-light-bg); }

.grid {
    display: grid;
    gap: 2rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 3rem 0; }
}

.text-center { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: var(--color-teal);
    color: var(--color-white);
}
.btn--primary:hover { background: var(--color-teal-dark); color: var(--color-white); }

.btn--secondary {
    background: var(--color-coral);
    color: var(--color-white);
}
.btn--secondary:hover { background: #e96b52; color: var(--color-white); }

.btn--outline {
    background: transparent;
    color: var(--color-teal-dark);
    border: 2px solid var(--color-teal-dark);
}
.btn--outline:hover { background: var(--color-teal-dark); color: var(--color-white); }

.btn--gold {
    background: var(--color-gold);
    color: var(--color-dark);
}
.btn--gold:hover { background: #e6ad00; }

.btn--sm  { padding: .5rem 1.25rem; font-size: .85rem; }
.btn--lg  { padding: 1rem 2.5rem;   font-size: 1.1rem; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    height: var(--header-h);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-teal-dark);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.site-logo img {
    height: 48px;
    width: auto;
}

.main-nav { display: flex; align-items: center; gap: .25rem; list-style: none; }
.main-nav a {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-dark);
    transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.current-menu-item > a,
.main-nav .current_page_item > a {
    background: var(--color-teal);
    color: var(--color-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lang-switch {
    display: flex;
    gap: .25rem;
    font-size: .8rem;
    font-weight: 700;
}
.lang-switch a {
    padding: .25rem .5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-dark);
}
.lang-switch a.active,
.lang-switch a:hover {
    background: var(--color-teal-dark);
    color: var(--color-white);
    border-color: var(--color-teal-dark);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: transform .3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: flex; }
    .header-actions .btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
    color: var(--color-white);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}
.hero__logo {
    flex-shrink: 0;
    width: auto;
    max-height: 300px;
    object-fit: contain;
    margin-top: .25rem;
    margin-left: -10rem;
}
@media (max-width: 600px) {
    .hero__logo { display: none; }
}
.hero__content h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-size: 3rem;
}
.hero__content p {
    font-size: 1.2rem;
    opacity: .9;
    margin-bottom: 2rem;
    line-height: 1.6;
    min-height: 3.2em;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: nowrap; }
.hero__actions .btn {
    min-width: 200px;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hero { min-height: 55vh; }
    .hero__content h1 { font-size: 2rem; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.card__img {
    height: 220px;
    background: var(--color-light-bg);
    overflow: hidden;
}
.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card__body { padding: 1.5rem; }
.card__tag {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .75rem;
}
.card__tag--trek      { background: var(--color-pink);  color: var(--color-white); }
.card__tag--bootcamp  { background: var(--color-coral); color: var(--color-white); }
.card__tag--outdoor   { background: var(--color-gold);  color: var(--color-dark); }

.card__title {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}
.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}
.card__price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-teal-dark);
}
.card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

/* ============================================================
   BLOG POST CARDS
   ============================================================ */
.post-card .card__img { height: 200px; }
.post-card .card__body { padding: 1.25rem; }
.post-card__date {
    font-size: .8rem;
    color: #9ca3af;
    margin-bottom: .5rem;
}
.post-card__excerpt {
    font-size: .9rem;
    color: #6b7280;
    margin-top: .5rem;
}

/* ============================================================
   SINGLE ACTIVITY / SINGLE POST
   ============================================================ */
.single-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
    color: var(--color-white);
}
.single-hero h1 { margin-bottom: 1rem; color: var(--color-white); }
.single-hero .breadcrumb,
.single-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.single-hero .breadcrumb a:hover { color: var(--color-white); }
.single-hero .card__meta { color: rgba(255,255,255,.7); }
.single-hero p { color: rgba(255,255,255,.9); }
.activity-detail { padding: 3rem 0; }
.activity-detail__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}
@media (max-width: 768px) {
    .activity-detail__grid { grid-template-columns: 1fr; }
}

.activity-sidebar {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}
.activity-sidebar .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.activity-sidebar .price-label { color: #6b7280; }
.activity-sidebar .price-value { font-weight: 700; font-size: 1.1rem; }
.activity-sidebar .spots-left {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 600;
    background: #ecfdf5;
    color: #059669;
    margin: 1rem 0;
}

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-wrap {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}
.fc .fc-toolbar-title { font-family: var(--font-heading); font-weight: 700; }
.fc .fc-button-primary {
    background: var(--color-teal-dark) !important;
    border-color: var(--color-teal-dark) !important;
}
.fc .fc-button-primary:hover {
    background: var(--color-teal) !important;
    border-color: var(--color-teal) !important;
}
.fc .fc-daygrid-event { border-radius: var(--radius-sm); padding: 2px 6px; }

/* ============================================================
   BOOKING & FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    transition: border-color .2s;
}
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    padding: 0;
    cursor: pointer;
    accent-color: var(--color-teal);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(39,163,152,.15);
}

.payment-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.payment-option {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s;
}
.payment-option:hover { border-color: var(--color-teal); }
.payment-option.selected {
    border-color: var(--color-teal);
    background: rgba(39,163,152,.06);
}
.payment-option__label { font-weight: 700; margin-bottom: .25rem; }
.payment-option__price { font-size: 1.3rem; font-weight: 700; color: var(--color-teal-dark); }

/* ============================================================
   MY ACCOUNT
   ============================================================ */
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding: 3rem 0;
}
@media (max-width: 768px) {
    .account-layout { grid-template-columns: 1fr; }
}
.account-nav a {
    display: block;
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: .25rem;
}
.account-nav a:hover,
.account-nav a.active {
    background: var(--color-teal);
    color: var(--color-white);
}

.booking-table {
    width: 100%;
    border-collapse: collapse;
}
.booking-table th,
.booking-table td {
    text-align: left;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}
.booking-table th {
    background: var(--color-light-bg);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.status-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
}
.status-badge--confirmed { background: #ecfdf5; color: #059669; }
.status-badge--pending   { background: #fef3c7; color: #d97706; }
.status-badge--cancelled { background: #fee2e2; color: #dc2626; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 2rem;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--color-gold); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: .75rem;
}
.footer-col h4 {
    color: var(--color-white);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
/* Newsletter in footer */
.footer-newsletter {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 2rem;
    margin-bottom: 2rem;
    max-width: 480px;
}
.footer-newsletter h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: .4rem;
}
.footer-newsletter p {
    font-size: .9rem;
    margin-bottom: 1rem;
}
.nvp-newsletter-form__row {
    display: flex;
    gap: .5rem;
}
.nvp-newsletter-form__row input[type="email"] {
    flex: 1;
    padding: .6rem 1rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.1);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: .9rem;
}
.nvp-newsletter-form__row input[type="email"]::placeholder {
    color: rgba(255,255,255,.5);
}
.nvp-newsletter-form__row input[type="email"]:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255,255,255,.15);
}
.nvp-newsletter-form__msg {
    margin-top: .5rem;
    font-size: .85rem;
}
.nvp-newsletter-form__msg.success { color: #a7f3d0; }
.nvp-newsletter-form__msg.error   { color: var(--color-coral); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
}
@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

/* ============================================================
   MISC
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}
.section-header p {
    color: #6b7280;
    margin-top: .75rem;
    font-size: 1.05rem;
}
.breadcrumb {
    font-size: .85rem;
    color: var(--color-teal-dark);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-teal-dark); }

.testimonial {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.testimonial__text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}
.testimonial__author {
    font-weight: 700;
    font-size: .9rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: .9rem;
}
.alert--success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.alert--error   { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert--info    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
