/* --- Grundinställningar --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { height: 60px; width: auto; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.05); }

nav a {
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    color: #4d7a00;
    transition: color 0.3s;
    position: relative;
}

nav a:hover { color: #ffd700; }

nav a::after {
    content:'';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s;
}

nav a:hover::after { width: 100%; }

/* --- HERO --- */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Bakgrundsbild */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/first_page_2.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    background-attachment: fixed;
}

/* Hero-innehåll */
.hero-content {
    position: relative;
    z-index: 1;
    color: whitesmoke;
    max-width: 12000px;
    padding: 0 1rem;
}

/* Text och knapp */
.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    font-variant: initial;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-button {
    background: #ffd700;
    color: #333;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
}

/* --- Animation keyframes --- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- MAIN CONTENT --- */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
    gap: 5rem;
    padding: 4rem 2rem;
}

/* Sektioner */
.section {
    width: 100%;
    background: rgba(255,255,255,0.9);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-group {
    margin-top: 3rem;
}

.product-group h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: left;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Info-sektion */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.content-box {
    background: rgba(255,255,255,0.9);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Produktgrid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.price-tag {
    font-weight: bold;
    color: #333;
    margin-top: 0.5rem;
}

/* Responsivt */
@media(max-width:1024px){
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:2rem; }
}

@media(max-width:768px){
    .product-grid { grid-template-columns: 1fr; gap:1.5rem; }
}

.product-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #4d7a00;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #333;
}

.price-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffd700;
    color: #111;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    transform: rotate(27deg) translate(25%, -25%);
    transform-origin: center right;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Webshop-knapp */
.product-button {
    display: inline-block;
    background: #ffd700;
    color: #111;
    font-weight: bold;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Fade-in animation för content-box */
.fade-in-box {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* Info-sektion: Om oss + Tjänster */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* två kolumner på desktop */
    gap: 3rem;
    width: 100%;
    margin-top: 4rem;
}

.content-box {
    background: rgba(255,255,255,0.9);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.content-box h2 {
    font-size: 2rem;
    color: #2e5c00;
    margin-bottom: 1rem;
}

.content-box p,
.content-box ul {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Responsiv anpassning */
@media (max-width: 900px) {
    .info-section {
        grid-template-columns: 1fr; /* En kolumn på mindre skärmar */
    }
}

.content-box h2 { font-family: 'Montserrat', sans-serif; color:#4d7a00; margin-bottom:1rem; }
.content-box p { line-height: 1.6; }

.services-list { list-style:none; padding:0; }
.services-list li { padding:0.5rem 0; position:relative; font-weight:500; }
.services-list li::before { content:"✔"; color:#669900; margin-right:0.8rem; }

/* --- FOOTER --- */
footer {
    background:#4d7a00;
    color:white;
    text-align:center;
    padding:2rem 1rem;
    margin-top: 4rem;
}

/* --- Responsiv --- */
@media(max-width:1024px){
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:2.5rem; }
}

@media(max-width:768px){
    .hero-content h1{ font-size:2rem; }
    .hero-content p{ font-size:1rem; }
    header{ flex-direction:column; gap:1rem; }
    nav a{ margin-left:1rem; }
    .product-grid { grid-template-columns: 1fr; gap:2rem; }
}
