/* =================================================================
   DOBRY STUDENT - STYLESHEET
   Korepetycje z matematyki - Website Styles
   ================================================================= */

/* =================================================================
   1. RESET & BASE STYLES
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* =================================================================
   2. CSS VARIABLES
   ================================================================= */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

/* =================================================================
   3. TYPOGRAPHY & BODY
   ================================================================= */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-dark, #1f2937);
    line-height: 1.6;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark, #1f2937);
}

/* =================================================================
   4. LAYOUT CONTAINERS
   ================================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 2rem;
}

section.bg-light {
    position: relative;
    background: var(--bg-light, #f9fafb);
}

/* =================================================================
   5. NAVIGATION
   ================================================================= */

nav {
    position: fixed;
    padding: 0 1rem;
    top: 0;
    width: 100%;
    min-height: 75px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

nav .container {
    max-width: 1200px;
    min-height: 75px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    user-select: none;
    position: relative;
    top: -1.5px;
}

.logo img {
    max-height: 52px;
    width: auto;
    display: block;
}

.logo span {
    line-height: 1;
}

/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark, #1f2937);
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
    padding: 0.5rem 0.5rem;
    border-radius: 6px;
}

nav a:hover {
    color: var(--primary-color, #2563eb);
}

/* =================================================================
   6. HERO SECTION
   ================================================================= */

.hero {
    position: relative;
    /* margin-top: 75px; */
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white, #ffffff);
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: center/cover no-repeat;
    opacity: 0.15;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.15;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white, #ffffff);
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    outline: none;
}

.cta-button:focus-visible {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 4px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* =================================================================
   7. ABOUT SECTION (O MNIE)
   ================================================================= */

.about {
    background: var(--white, #ffffff);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 420px;
    position: relative;
    top: -12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light, #6b7280);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text p:has(+ ul) {
    margin-bottom: 0.5rem;
}

.about-text ul {
    font-size: 1.1rem;
    color: var(--text-light, #6b7280);
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    list-style-type: none;
}

.about-text ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
}

.about-text ul li::before {
    content: '-';
    position: absolute;
    left: 0;
}

/* =================================================================
   8. OFFER SECTION (OFERTA)
   ================================================================= */

.offer {
    background: var(--bg-light, #f9fafb);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: var(--white, #ffffff);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: justify;
}

.offer-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.offer-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--white, #ffffff);
}

.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #1f2937);
}

.offer-card p {
    color: var(--text-light, #6b7280);
    line-height: 1.8;
}

/* =================================================================
   9. PRICING SECTION (CENNIK)
   ================================================================= */

.pricing {
    background: var(--white, #ffffff);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Pricing Cards */
.pricing-card {
    background: var(--white, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary-color, #2563eb);
    transform: scale(1.05);
}

.pricing-card.featured {
    border-color: var(--primary-color, #2563eb);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white, #ffffff);
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card.featured h3,
.pricing-card.featured .price {
    color: var(--white, #ffffff);
}

/* Price Display */
.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-from {
    font-size: 1.1rem;
    color: var(--text-light, #6b7280);
    font-weight: 500;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
}

.price-mark {
    align-self: flex-start;
    font-size: 1rem;
    margin-top: 1rem;
}

.price-period {
    font-weight: bold;
    color: var(--text-light, #6b7280);
    margin-bottom: 2rem;
}

/* Featured Card Price Overrides */
.pricing-card.featured .price-period {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.featured .price-from {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.featured .price-value {
    color: #fff;
}

/* Pricing Features List */
.pricing-features {
    display: flex;
    justify-content: center;
    width: 100%;
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: fit-content;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 0.5rem 0;
}

.pricing-features .check {
    font-weight: bold;
    margin-right: 8px;
}

.pricing-features .disabled {
    color: #aaa;
}

.pricing-features .disabled .check {
    color: #aaa;
}

/* Price Details Table */
.price-details {
    margin-top: 5rem;
    text-align: center;
}

.price-details-title {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-light, #6b7280);
}

.price-table {
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
    max-width: 800px;
}

.price-table th,
.price-table td {
    padding: 0.5rem 1rem;
}

.price-table th {
    font-weight: 600;
    color: var(--primary-color, #2563eb);
}

.price-table td {
    color: var(--text-color);
}

.price-table tbody tr:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* =================================================================
   10. CONTACT SECTION (KONTAKT)
   ================================================================= */

.contact {
    background: var(--bg-light, #f9fafb);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    background: var(--white, #ffffff);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark, #1f2937);
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-light, #6b7280);
}

.contact-item a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-weight: 500;
}

/* =================================================================
   11. FOOTER
   ================================================================= */

footer {
    height: 7rem;
    background: var(--text-dark, #1f2937);
    color: var(--white, #ffffff);
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer span {
    align-self: center;
}

footer p {
    opacity: 0.8;
}

/* =================================================================
   12. BACK TO TOP BUTTON
   ================================================================= */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white, #ffffff);
    border: none;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =================================================================
   13. COOKIES
   ================================================================= */

#cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

#cookie-modal {
    height: 7rem;
    background: var(--text-dark, #1f2937);
    color: var(--white, #ffffff);
    padding: 2rem;
    text-align: center;

    align-items: center;
    justify-content: center;

    border-radius: 0.5rem;
    max-width: 500px;
}

/* =================================================================
   14. RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 768px) {
    nav ul {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        margin-top: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }
    
    .price-table {
        font-size: 0.8rem;
        width: 100%;
        display: table;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.4rem 0.6rem;
    }
}

@media (min-width: 528px) and (max-width: 768px) {
    .price-table {
        width: auto;
        display: table;
    }
}