:root {
    /* Baudam Dabu 2026 - Ink/Petrol/River/Amber palete */
    --primary-color: #0B6E76; /* Petrol */
    --primary-dark: #095C63; /* Petrol, tumšāks (hover/press) */
    --primary-light: #2FA6A0; /* River */
    --secondary-color: #2FA6A0; /* River */
    --secondary-dark: #268782;
    --secondary-light: #5EBFB9;
    --accent-color: #C97A2E; /* Amber - akcenti */
    --accent-dark: #A8631E;
    --accent-light: #D99B5C;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-bg: #F1F4F2; /* Paper */
    --border-color: #e2e8f0;
    --text-color: #10201F; /* Ink */
    --text-muted: #59706C; /* Mist (darkened for WCAG AA) */
    --gradient-primary: linear-gradient(135deg, #0B6E76 0%, #2FA6A0 100%);
    --gradient-hero: linear-gradient(135deg, #095C63 0%, #0B6E76 50%, #2FA6A0 100%);
    --shadow-sm: 0 1px 2px 0 rgba(16, 32, 31, 0.05);
    --shadow-md: 0 10px 28px rgba(16, 32, 31, .08);
    --shadow-lg: 0 14px 34px rgba(16, 32, 31, .12);
    --shadow-xl: 0 20px 44px rgba(16, 32, 31, .16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
}

h4, h5, h6 {
    font-weight: 500;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header */
.header {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .header {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

.header.scrolled {
    box-shadow: 0 4px 16px rgba(16,32,31,0.12);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 30px; /* Добавляем отступ справа от логотипа */
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 46px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.call-button {
    margin-left: auto;
    margin-right: 2rem;
}

.btn-call {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu a::after {
        transition: none;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 101;
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
}

/* Hero Section - Moderns dizains */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border-bottom: none;
}

.hero::before {
    display: none;
}

/* Foto slānis (UZDEVUMS 13A) — pēc noklusējuma bez attēla, tāpēc caurspīdīgs un
   redzams paliek .hero gradients. Kad būs īsts foto, uzstāda background-image
   un .hero pievieno klasi has-photo. */
.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('/static/images/hero-foto.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Tumšs gradient overlay lasāmībai virs foto — pagaidām neredzams (opacity:0),
   jo nav foto; aktivizējas ar .hero.has-photo. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(16, 32, 31, 0.35) 0%, rgba(16, 32, 31, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero.has-photo .hero-overlay {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Fallback for old selectors */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Reservation Section */
.reservation-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

/* Inline Reservation Form */
.inline-reservation-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 3rem auto 0;
}

.inline-reservation-form .form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.inline-reservation-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inline-reservation-form .form-group {
    margin-bottom: 1.5rem;
}

.inline-reservation-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.inline-reservation-form .form-control {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.inline-reservation-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 110, 118, 0.25);
    outline: none;
}

.inline-reservation-form .submit-container {
    text-align: center;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
    .btn:active {
        transform: none;
    }
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    filter: brightness(0.94);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Abstract secondary style (transparent + outline, fills Ink on hover) — for use on light backgrounds */
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--ink-color, #10201F);
    color: white;
    border-color: var(--ink-color, #10201F);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Hero context override: prominent Amber CTA (UZDEVUMS 13A) */
.hero-buttons .btn-secondary {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-buttons .btn-secondary:hover {
    filter: brightness(0.92);
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    min-height: auto;
}

.btn-tertiary::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease;
}

.btn-tertiary:hover::after {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .btn-tertiary::after {
        transition: none;
    }
}

/* Scroll-reveal animations (Dizaina Faze 1, Part F) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile menu link stagger (Dizaina Faze 1, Part F) */
@keyframes navItemReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu.active li {
        animation: none;
        opacity: 1;
    }
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: auto;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: 2px solid var(--danger-color);
}

.btn-danger:hover {
    background: #C62828;
    border-color: #C62828;
}

/* Features Section */
.features-section {
    background: white;
    padding: 100px 0;
}

.features-section .section-header {
    margin-bottom: 60px;
}

.features-section .section-header h2 {
    color: var(--text-color);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid Layout — lidzsvarots 2x2 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Feature Card stili */
.feature-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card.horizontal {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Icon (SVG) bazes stils - UZDEVUMS 13C */
.icon {
    width: 1em;
    height: 1em;
    font-size: 1rem;
    flex-shrink: 0;
    vertical-align: -0.125em;
}

/* Feature Icon stili */
.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.feature-icon i,
.feature-icon .icon {
    font-size: 26px;
    color: white;
}

/* Feature Content stili */
.feature-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .features-section {
        padding: 60px 0;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .feature-card.horizontal {
        gap: 18px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i,
    .feature-icon .icon {
        font-size: 28px;
    }

    .feature-content h3 {
        font-size: 1.15rem;
    }

    .features-section .section-header h2 {
        font-size: 2rem;
    }

    /* Улучшения для мобильной навигации */
    .nav {
        position: relative;
    }

    .nav-right {
        display: flex;
        align-items: center;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 37px;
    }

    .btn-call {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    /* Mobile navigation layout - logo pa kreisi, menu pa labi */
    .nav {
        position: relative;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .logo-container {
        margin-right: auto;
        order: 1;
    }
    
    .call-button {
        order: 2;
        margin-left: auto;
        margin-right: 3rem;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
        background: transparent;
        border: none;
        cursor: pointer;
        order: 3;
        margin-left: auto;
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--text-color);
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .nav-menu.active li {
        animation: navItemReveal 0.3s ease forwards;
        opacity: 0;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.04s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.08s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.12s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.16s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.20s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.24s; }
    .nav-menu.active li:nth-child(7) { animation-delay: 0.28s; }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
        color: var(--text-color);
        font-weight: 500;
    }

    .nav-menu a:hover {
        color: var(--primary-color);
        background-color: rgba(11, 110, 118, 0.05);
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 25px 20px;
    }

    .feature-card.horizontal {
        flex-direction: column;
        text-align: center;
    }

    .feature-card.horizontal .feature-icon {
        margin: 0 auto;
    }

    .features-section .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Papildu stili animācijām */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0B6E76, transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

/* Page Banner */
.page-banner {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-banner p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
}

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

/* Rivers & Inventory Grid */
.rivers, .inventory {
    padding: 5rem 0;
    background-color: white;
}

.rivers {
    background-color: var(--light-bg);
}

.rivers h2, .inventory h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.rivers-grid, .inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.river-card, .inventory-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.river-card:hover, .inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.river-card img, .inventory-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.river-card h3, .inventory-card h3 {
    padding: 1rem 1rem 0.5rem;
}

.river-card p, .inventory-card p {
    padding: 0 1rem 1rem;
    color: var(--text-muted);
}

.capacity {
    font-weight: 600;
    color: var(--primary-color);
}

/* Inventory Items */
.inventory-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inventory-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.item-info {
    margin-bottom: 1rem;
}

.item-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.item-info p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.item-info .price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-quantity label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.item-quantity input {
    width: 80px;
}

/* Price summary */
.price-summary {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.price-summary h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-line.total {
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: none;
    margin-top: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 110, 118, 0.25);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Reservation Form */
.reservation-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.reservation-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(11, 110, 118, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

@media screen and (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .reservation-page {
        padding: 0.5rem;
    }

    .reservation-form {
        padding: 1rem;
    }
}

/* Contact Page */
.contact-page {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info, .contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.social-links a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

@media screen and (max-width: 768px) {
    .contact-page {
        padding: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Safety Page */
.safety-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.safety-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.safety-section {
    margin-bottom: 2rem;
}

.safety-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.safety-section ul {
    margin-left: 2rem;
}

.safety-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: #263238;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

/* Стили для ссылок в футере */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover, .footer a:hover {
    opacity: 0.8;
}

.footer-links a:focus-visible, .footer a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    position: relative;
    min-width: 300px;
}

.alert-success {
    background: var(--success-color);
    color: white;
}

.alert-error {
    background: var(--danger-color);
    color: white;
}

.alert-info {
    background: var(--info-color);
    color: white;
}

.alert-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* CTA Section */
.cta {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Terms Agreement Checkbox Styling */
.terms-agreement {
    margin: 2rem 0;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.terms-agreement .checkbox-container {
    display: flex;
    align-items: flex-start;
}

.terms-agreement input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.terms-agreement label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

@media screen and (max-width: 576px) {
    .terms-agreement {
        padding: 1rem;
    }

    .terms-agreement label {
        font-size: 0.85rem;
    }
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 992px) {
    .features-grid, .rivers-grid, .inventory-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Mobile navigation layout - logo pa kreisi, menu pa labi */
    .nav {
        position: relative;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .logo-container {
        margin-right: auto;
        order: 1;
    }
    
    .call-button {
        order: 2;
        margin-left: auto;
        margin-right: 3rem; /* Space for hamburger menu */
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
        background: transparent;
        border: none;
        cursor: pointer;
        order: 3;
        margin-left: auto;
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--text-color);
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .nav-menu.active li {
        animation: navItemReveal 0.3s ease forwards;
        opacity: 0;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.04s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.08s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.12s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.16s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.20s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.24s; }
    .nav-menu.active li:nth-child(7) { animation-delay: 0.28s; }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
        color: var(--text-color);
        font-weight: 500;
    }

    .nav-menu a:hover {
        color: var(--primary-color);
        background-color: rgba(11, 110, 118, 0.05);
    }

    /* Hero Section */
    .hero {
        padding: 5rem 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn-outline, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .seo-content-section {
        padding: 60px 0;
    }
    
    .seo-content {
        padding: 0 1.5rem;
    }
    
    .seo-content h2 {
        font-size: 2rem;
    }
    
    .seo-content h3 {
        font-size: 1.5rem;
    }

    /* Reservation Form */
    .inline-reservation-form {
        padding: 1.5rem;
    }

    .inline-reservation-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.85rem 2rem;
        font-size: 1.1rem;
        min-height: 44px; /* Минимальная высота для удобного нажатия */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Feature Cards */
    .feature-card {
        padding: 25px 20px;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-outline, .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .logo-img {
        height: 37px;
    }

    .btn-call {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .features-section .section-header h2 {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
    
    .seo-content-section {
        padding: 50px 0;
    }
    
    .seo-content {
        padding: 0 1rem;
    }
    
    .seo-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .seo-content h3 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
    
    .seo-content p {
        font-size: 1rem;
    }
    
    .seo-content ul li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }

    /* Ensure touch targets are big enough */
    input, select, textarea, button {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        min-height: 44px;
    }

    .btn {
        width: 100%; /* Full width buttons on small screens */
        margin-bottom: 10px;
    }
}

/* JavaScript Helpers */
.mobile-visible {
    display: none;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-visible {
        display: block;
    }
}

/* River Routes Section */
.river-routes {
    padding: 4rem 0;
    background-color: white;
}

.river-routes h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.river-section {
    margin-bottom: 4rem;
}

.river-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Lidzsvarots izkartojums: 3 vienadas kartes vienā rindā */
.route-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.route-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.route-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.75rem;
}

.route-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.route-details li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

.route-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

.cta-container {
    margin: 3rem 0 0;
}

.cta-container.centered {
    text-align: center;
}

@media (max-width: 768px) {
    .river-routes {
        padding: 3rem 0;
    }

    .river-routes h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .river-section h3 {
        font-size: 1.75rem;
    }

    .route-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .route-card {
        padding: 1.5rem;
    }
}

/* SEO Content Section */
.seo-content-section {
    padding: 80px 0;
    background: white;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.seo-content h2 {
    color: var(--text-color);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.seo-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.seo-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.seo-content ul li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

.seo-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.seo-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero buttons update */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px; /* Touch target size */
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile touch optimizations */
@media (max-width: 768px) {
    .btn-outline, .btn-secondary {
        min-height: 48px;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Better spacing for mobile */
    .hero-buttons {
        margin-top: 2rem;
    }
    
    /* Ensure call button is visible on mobile */
    .call-button {
        order: -1; /* Move before nav-toggle */
        margin-right: 0.5rem;
    }
}
