@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@800;900&display=swap');

:root {
    /* Modern Green Color Palette */
    --primary: #059669; /* Jaśniejsza zieleń (Emerald 600) */
    --primary-dark: #047857;
    --primary-light: #34d399;
    --secondary: #0f172a;
    --accent: #059669;
    
    --bg-main: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    
    /* Design Tokens */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

/* 1. TOP CONTACT BAR */
.contact-bar {
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-bar .company-name {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
}

.contact-bar .info {
    display: flex;
    gap: 2rem;
}

.contact-bar .info span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.contact-bar .info span i,
.contact-bar .info span svg {
    color: var(--primary-light);
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

/* 2. HERO SECTION */
.hero {
    position: relative;
    padding: 120px 20px;
    background: radial-gradient(circle at top right, #cbd5e1 0%, #e2e8f0 100%);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-frame {
    display: inline-block;
    padding: 3rem 4rem;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero h1 .company-sub {
    font-size: 0.3em; /* Jeszcze mniejsza, dla kontrastu */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em; /* Zmniejszono z 0.4em */
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
    opacity: 0.8;
}

.hero h1 .company-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 10px 20px rgba(5, 150, 105, 0.1);
}

.hero h1 .company-owner {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6em; /* Mniejsza niż Damako */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    line-height: 1.2;
    letter-spacing: 0.08em; /* Zmniejszono z 0.15em */
    margin-top: 5px;
}

.hero h1 .slogan-title {
    font-size: 0.45em;
    font-weight: 600;
    font-style: italic;
    color: var(--secondary); /* Elegancki ciemny granat/czerń */
    display: block;
    margin-top: 15px;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    padding-left: 0;
}

/* Hero Tiles Grid */
.hero-links-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 kafelków w jednej linii */
    gap: 1rem;
    max-width: 1100px; /* Nieco szerszy, by pomieścić 7 kafelków */
    margin: 3rem auto 0;
}

.hero-tile {
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-tile i {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.hero-tile span {
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-tile:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.hero-tile:hover i {
    transform: scale(1.1);
}

.hero-tile.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.3);
}

.hero-tile.primary i {
    color: white;
}

.hero-tile.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(6, 95, 70, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.2);
}

/* 3. SEGMENTS */
.segment {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.segment-header {
    text-align: center;
    margin-bottom: 4rem;
}

.segment-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.segment-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 4. SERVICES GRID & CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Main icon in the card */
.service-card > i, 
.service-card > svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-card li {
    display: flex;
    align-items: flex-start; /* Better for wrapping text */
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    text-align: left;
    font-size: 1rem; /* Consistent, slightly larger font */
    color: var(--text-main);
    line-height: 1.4;
}

/* Icons in the list (checkmarks) */
.service-card li i,
.service-card li svg {
    width: 1.2rem !important;  /* Force consistent width */
    height: 1.2rem !important; /* Force consistent height */
    margin-top: 0.1rem;        /* Align with text */
    color: var(--primary);
    flex-shrink: 0;
    display: inline-block;
}

/* 5. TABLE STYLES */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f1f5f9;
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

tr:last-child td {
    border-bottom: none;
}

/* 6. PLACEHOLDER BOXES */
.placeholder-box {
    background: #e2e8f0;
    height: 250px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    border: 2px dashed #cbd5e1;
    transition: var(--transition);
}

.placeholder-box:hover {
    background: #f1f5f9;
    border-color: var(--primary-light);
}

.placeholder-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 7. FORMS */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input, 
.contact-form textarea {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.1);
}

/* 9. TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-light);
    opacity: 0.2;
    width: 40px;
    height: 40px;
}

.testimonial-stars {
    color: #f59e0b; /* Golden Yellow */
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-stars i, 
.testimonial-stars svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.testimonial-author {
    margin-top: auto;
}

.testimonial-author .name {
    font-weight: 700;
    color: var(--secondary);
    display: block;
}

.testimonial-author .info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 10. FOOTER */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 4rem 1rem;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-frame { padding: 2rem 1.5rem; width: 100%; }
    .hero-links-grid { grid-template-columns: repeat(2, 1fr); }
    
    .contact-bar { flex-direction: column; gap: 1rem; padding: 1rem; }
    .contact-bar .info { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}
