/* Moje style CSS - Specialty Coffee */

/* FONT Z GOOGLE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* KOLORY */
:root {
    --kolor-ciemny-zielony: #2b3a2e;
    --kolor-bezowy: #f5f1e8;
    --kolor-pomaranczowy: #e87d4a;
    --kolor-czarny: #1a1a1a;
    --kolor-szary: #666;
}

/* SELEKTORY GLOBALNE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--kolor-czarny);
}

a {
    text-decoration: none;
}

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

/* TYPOGRAFIA */
h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 20px 0;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 15px 0;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0;
}

h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

.orange {
    color: var(--kolor-pomaranczowy);
}

.small {
    font-size: 12px;
    letter-spacing: 1px;
}

/* NAWIGACJA */
.nav {
    background: var(--kolor-bezowy);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
}

.logo:hover {
    color: var(--kolor-pomaranczowy);
    transform: scale(1.1);
}

.links {
    display: flex;
    gap: 40px;
}

.links a {
    color: var(--kolor-czarny);
    font-size: 11px;
    letter-spacing: 1.5px;
}

.links a:hover {
    color: var(--kolor-pomaranczowy);
    transform: translateY(-2px);
}

/* WSZYSTKIE SEKCJE */
section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 80px;
    padding: 80px 0;
}

/* HERO */
.hero {
    background: var(--kolor-ciemny-zielony);
    color: white;
    padding: 80px 0;
}

.hero-box {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-desc {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
    max-width: 450px;
    opacity: 0.9;
}

.hero-img {
    flex: 1;
}

.hero-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-img img:hover {
    transform: scale(1.02);
}

/* DEFINITION */
.definition {
    background: var(--kolor-bezowy);
    padding: 80px 0;
}

.definition p,
.definition h2,
.definition .def-text {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.def-text {
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 18px;
}

/* CARDS */
.cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card .orange {
    margin-top: 20px;
    padding: 0 20px;
}

.card h3 {
    font-size: 18px;
    margin: 8px 0;
    padding: 0 20px;
}

.card p {
    font-size: 13px;
    color: var(--kolor-szary);
    line-height: 1.6;
    padding: 0 20px 20px;
}

/* METHODS */
.method {
    padding: 80px 0;
    min-height: 90vh;
}

.dark {
    background: var(--kolor-ciemny-zielony);
    color: white;
}

.method-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.method-text {
    flex: 1;
}

.method-text p {
    font-size: 15px;
    margin: 20px 0 40px;
    line-height: 1.7;
}

.method-img {
    flex: 1;
    width: 100%;
}

.method-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.method-img img:hover {
    transform: scale(1.02);
}

/* STATS */
.stats {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stats div {
    flex: 1 1 150px;
}

.stats span {
    font-size: 11px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
}

.stats h4 {
    font-size: 28px;
    font-weight: 700;
}

/* FOOTER */
footer {
    background: var(--kolor-czarny);
    color: white;
    padding: 30px 0;
    min-height: 20vh;
}

.footer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-box p {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-box div {
    display: flex;
    gap: 30px;
}

.footer-box span {
    font-size: 12px;
    opacity: 0.7;
}

.footer-box span:hover {
    opacity: 1;
    color: var(--kolor-pomaranczowy);
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .hero-box {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-img img {
        height: 350px;
    }
    
    .method-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .method-img img {
        height: 350px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 56px;
    }
    
    h2 {
        font-size: 44px;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-box {
        gap: 80px;
    }
    
    .hero-img img {
        height: 500px;
    }
    
    .cards {
        flex-direction: row;
        gap: 25px;
    }
    
    .card img {
        height: 300px;
    }
    
    .method {
        padding: 100px 0;
    }
    
    .method-box {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    
    .method-img img {
        height: 550px;
    }
    
    .reverse {
        direction: rtl;
    }
    
    .reverse > * {
        direction: ltr;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 68px;
        line-height: 1.05;
    }
    
    h2 {
        font-size: 52px;
    }
    
    .hero {
        padding: 120px 0;
    }
    
    .hero-box {
        gap: 100px;
    }
    
    .hero-img img {
        height: 550px;
    }
    
    .method {
        padding: 120px 0;
    }
    
    .method-box {
        gap: 100px;
    }
    
    .method-img img {
        height: 600px;
    }
}
