/* Variables and Design System */
:root {
    --primary-color: #0284c7;
    /* Calm medical blue */
    --primary-dark: #0369a1;
    --secondary-color: #10b981;
    /* Soft green */
    --text-color: #334155;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
    text-align: center;
}

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

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

.btn:active {
    transform: translateY(1px);
}

/* Header & Nav */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
}

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

.btn-nav {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Hero Section ze zdjęciem w tle */
.hero {
    /* Tło gradientowe zapewniające czytelność, nałożone na piękne tło medyczne/dentystyczne */
    background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(2, 132, 199, 0.85)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 6rem 0 7rem;
    text-align: center;
    color: white;
}

.hero h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

/* About Section z obrazkiem */
.about {
    background-color: var(--bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.rounded-image {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--bg-alt);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: white;
}

/* Target Audience */
.target-audience {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

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

.audience-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
}

/* Hours Section */
.hours-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hours-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border-top: 4px solid var(--primary-color);
}

.hours-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.hours-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.hours-table td {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.hours-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.closed,
.closed td {
    color: #ef4444;
}

/* Important Info Alert */
.important-info {
    margin-top: 2rem;
}

.info-alert {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    display: flex;
    column-gap: 1rem;
    align-items: flex-start;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.info-alert svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

/* Contact Section */
.contact-grid {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--bg-alt);
    color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.phone-link {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--primary-dark);
}

address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.8;
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: #38bdf8;
    transition: color 0.2s;
}

.footer a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Responsive Tablet and Desktop */
@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    h1 {
        font-size: 3.5rem;
    }

    .about-container {
        grid-template-columns: 1fr 1fr;
        /* Image on right, text on left */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audience-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hours-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}