/* ===================================
   Grobserwis - Custom Styles
   =================================== */

/* === Root Variables === */
:root {
    --primary-color: #333;
    --secondary-color: #f5f5f5;
    --text-color: #2c2c2c;
    --light-gray: #999;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.8;
    background-image: url('/images/glare.png');
    background-repeat: repeat-y;
    background-position: 100% 50%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

h3, h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    max-width: 100%;
    overflow-x: hidden;
}

/* Podstawowe paddingi dla kontenerów */
body .container,
body .container-sm,
body .container-md,
body .container-lg,
body .container-xl,
body .container-xxl {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

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

/* === Utilities === */
.shadow {
    box-shadow: var(--shadow);
}

.rounded {
    border-radius: 8px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* === Transitions === */
a,
button,
.nav-link,
.btn {
    transition: var(--transition);
}

/* === Links - telefony i maile === */
a[href^="tel:"],
a[href^="mailto:"] {
    color: var(--text-color);
    text-decoration: none;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Links styling */
a[href^="tel:"],
a[href^="mailto:"] {
    color: var(--text-color);
    text-decoration: none;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* === Accessibility === */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* === Animations === */
[data-aos] {
    pointer-events: auto;
}

/* === Top Bar === */
#top-bar {
    border-bottom: 1px solid #e0e0e0;
}

/* === Header / Navigation === */
#main-header {
    background: var(--white);
    transition: var(--transition);
    z-index: 1000;
}

#main-header.scrolled {
    box-shadow: var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    padding: 0;
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #2c2c2c;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 600px;
    background-image: url('/images/start1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.badge-img {
    max-width: 250px;
    transition: transform 0.3s ease;
}

.badge-img:hover {
    transform: scale(1.05);
}

.min-vh-75 {
    min-height: 75vh;
}

/* === Quote Section === */
.quote-section {
    background: var(--secondary-color);
    padding: 80px 0;
}

.quote-title {
    font-size: 30px;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quote-author {
    font-size: 18px;
    color: var(--light-gray);
    font-style: italic;
}

/* === Content Section === */
.content-section {
    padding: 80px 0;
}

.content-text {
    padding: 40px 20px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.decor-img {
    max-width: 200px;
    opacity: 0.7;
}

/* === EU Banner Section === */
#eu-banner {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* === Footer === */
.footer-section {
    background: #2c2c2c;
    padding: 30px 0;
}

.footer-contact p {
    margin: 0;
    line-height: 2;
}

.footer-contact small {
    font-size: 14px;
}

.social-link {
    display: inline-block;
    transition: var(--transition);
}

.social-icon {
    width: 40px;
    height: auto;
    transition: var(--transition);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

/* === Copyright === */
#copyright {
    background: #2c2c2c;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#copyright a {
    text-decoration: none;
    transition: var(--transition);
}

#copyright a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* === Page Title Section === */
.page-title-section {
    background: #2c2c2c;
    border-bottom: none;
}

.page-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === Services Page === */
.services-article {
    font-size: 16px;
    line-height: 1.8;
}

.services-article .lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.services-list li {
    padding: 4px 0 4px 35px;
    position: relative;
}

.services-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: #4CAF50;
    font-weight: bold;
    font-size: 20px;
}

/* === Alerts === */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    background: #f9f9f9;
    border-color: var(--primary-color);
    color: var(--text-color);
}

.alert-success {
    background: #f9f9f9;
    border-color: var(--primary-color);
    color: var(--text-color);
}

.alert-heading {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* === Pricing Table === */
.pricing-table {
    border: 2px solid #e0e0e0;
    margin: 2rem 0;
}

.pricing-table thead {
    background: #2c2c2c;
    color: white;
}

.pricing-table thead th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #444;
    vertical-align: middle;
}

.pricing-table thead th small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

.pricing-table tbody td {
    padding: 20px;
    font-size: 18px;
    vertical-align: middle;
    background: #f9f9f9;
}

.pricing-table tbody td strong {
    color: #4CAF50;
    font-size: 20px;
}

.pricing-article h3,
.pricing-article h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* === Recommendation Cards (Polecamy) === */
.recommendation-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid #2c2c2c;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.recommendation-card .card-icon {
    font-size: 32px;
    color: #2c2c2c;
    margin-bottom: 15px;
    opacity: 0.3;
}

.recommendation-card .card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.recommendation-card .card-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.recommendation-card .card-content p {
    margin-bottom: 15px;
}

.recommendation-card .contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-weight: 600;
    color: var(--primary-color);
}

.recommendation-card .contact-info i {
    color: #4CAF50;
    margin-right: 5px;
    width: 20px;
}

/* === Contact Page === */
.contact-article {
    font-size: 16px;
    line-height: 1.8;
}

.contact-article h2,
.contact-article h3 {
    color: var(--primary-color);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* === Small Mobile (max-width: 576px) === */
@media (max-width: 576px) {
    body .container,
    body .container-sm,
    body .container-md,
    body .container-lg,
    body .container-xl,
    body .container-xxl {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .page-title-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .recommendation-card {
        padding: 20px;
    }

    .recommendation-card .card-title {
        font-size: 18px;
    }

    .recommendation-card .card-content {
        font-size: 14px;
    }
}

/* === Tablet and Mobile (max-width: 768px) === */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('/images/glare.png');
    }

    .hero-section {
        background-attachment: scroll;
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .quote-section {
        padding: 50px 0;
    }

    .quote-title {
        font-size: 24px;
    }

    .quote-author {
        font-size: 16px;
    }

    .content-section {
        padding: 50px 0;
    }

    .content-text {
        padding: 20px 0;
    }

    .page-title {
        font-size: 24px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .services-article .float-end {
        float: none !important;
        margin: 0 0 1.5rem 0 !important;
        max-width: 100% !important;
    }

    .services-list li {
        font-size: 17px;
    }

    .pricing-table {
        font-size: 14px;
    }

    .pricing-table thead th {
        padding: 10px;
        font-size: 13px;
    }

    .pricing-table tbody td {
        padding: 12px;
        font-size: 16px;
    }

    .pricing-table tbody td strong {
        font-size: 18px;
    }
}

/* === Desktop and Tablet (max-width: 991px) === */
@media (max-width: 991px) {
    .logo-img {
        max-height: 50px;
    }

    .navbar .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

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

    .footer-contact {
        margin-bottom: 1rem;
    }

    .recommendation-card {
        margin-bottom: 20px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .navbar,
    #top-bar,
    .footer-section,
    #copyright,
    .breadcrumb {
        display: none;
    }

    body {
        background: white;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .page-title-section {
        background: white;
        border: none;
    }
}