/* Global Styles */
:root {
    --primary-color: #28a745; /* Dark Green */
    --secondary-color: #6c757d; /* Grey */
    --accent-color: #ffc107; /* Warning Yellow */
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Example for a nice heading font */
    color: var(--text-dark);
}

.text-dark-green {
    color: var(--primary-color) !important;
}

.bg-gradient-light-green {
    background: linear-gradient(135deg, var(--primary-color), #1e7e34);
}

.bg-gradient-dark-green {
    background: linear-gradient(135deg, #1e7e34, #155724);
}

/* Responsive Typography */
h1 {
    font-size: clamp(1.2rem, 5vw, 2.8rem) !important;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
}

.navbar-brand .fs-4 {
    font-size: clamp(1rem, 3vw, 1.5rem) !important;
}

@media (min-width: 768px) {
    h1 {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }
    h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }
    h3 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    .navbar-brand .fs-4 {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem) !important;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: clamp(2.5rem, 4vw, 4rem);
    }
    h2 {
        font-size: clamp(2rem, 3vw, 3rem);
    }
    h3 {
        font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    }
    .navbar-brand .fs-4 {
        font-size: clamp(1.5rem, 2vw, 2rem) !important;
    }
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

.nav-link {
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
}

.offcanvas-header {
    background-color: var(--primary-color);
    color: white;
}

.offcanvas-title {
    color: white;
}

.btn-close-white {
    filter: invert(1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px; /* Adjust for fixed navbar */
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.scroll-arrow {
    bottom: 30px; /* Adjusted for better spacing from text */
    z-index: 2;
}

.scroll-arrow a {
    transition: transform 0.3s ease;
}

.scroll-arrow a:hover {
    transform: translateY(5px);
}

/* About Section */
#about img {
    max-height: 500px;
    object-fit: cover;
}

/* Product Section */
.product-section .card {
    border-radius: 1rem;
}

.product-section .carousel-item img {
    height: 400px;
    object-fit: cover;
}

.product-section .price {
    color: var(--primary-color);
}

/* Features Section */
.feature-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-box:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Testimonials Section */
#opinie .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#opinie .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Contact Section */
#kontakt .card {
    background-color: var(--light-bg);
}

#kontakt .form-label {
    font-weight: bold;
}

#kontakt .text-white a {
    color: var(--text-light) !important;
}

/* Footer */
footer a {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Modals */
.modal-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.modal-header.bg-success {
    background-color: #198754 !important;
}

.modal-header.bg-info {
    background-color: #0dcaf0 !important;
}

.modal-content {
    border-radius: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    margin-bottom: 5px;
}

.cart-item-details .price {
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.cart-item-actions .form-select {
    width: 70px;
    margin-right: 10px;
}

.cart-item-subtotal {
    min-width: 80px;
    text-align: right;
    font-weight: bold;
}

/* Cookie Banner */
#cookieBanner {
    z-index: 1050;
    padding-left: 15px;
    padding-right: 15px;
}

#cookieBanner p {
    max-width: 700px;
}

#cookieSettingsModal {
    z-index: 1060;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Utility classes for buttons to prevent text overflow */
.btn {
    white-space: normal;
    word-break: break-word;
    text-align: center;
    text-decoration: none !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
/*
 * New stock styles for .securePolicyGrid content
 * All styles are nested under .securePolicyGrid as requested.
 */

.securePolicyGrid {
    /* Container padding for top and sides */
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 30px;
    padding-right: 30px;
}

.securePolicyGrid h1 {
    /* Main section title - moderate size */
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
}

.securePolicyGrid h2 {
    /* Sub-section title */
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 30px;
    margin-bottom: 18px;
}

.securePolicyGrid h3 {
    /* Minor heading */
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin-top: 25px;
    margin-bottom: 16px;
}

.securePolicyGrid h4 {
    /* Small heading, slightly bolder than paragraph */
    font-size: 18px;
    font-weight: 600; /* Semi-bold */
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 14px;
}

.securePolicyGrid h5 {
    /* Very small heading, used for minor points */
    font-size: 16px;
    font-weight: 600; /* Semi-bold */
    line-height: 1.5;
    margin-top: 15px;
    margin-bottom: 12px;
}

.securePolicyGrid p {
    /* Standard paragraph text for readability */
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 18px; /* Space between paragraphs */
}

.securePolicyGrid ul {
    /* Unordered list styling */
    list-style-type: disc; /* Standard bullet points */
    margin-left: 20px; /* Indent for bullet points */
    padding-left: 0; /* Remove default browser padding */
    margin-bottom: 20px; /* Space after the list */
}

.securePolicyGrid li {
    /* List item styling */
    font-size: 18px; /* Consistent with paragraph text */
    line-height: 1.6;
    margin-bottom: 8px; /* Space between list items */
}
