/* === BODY & LAYOUT === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f2ed;
    color: #222;
    display: flex;
    flex-direction: column;
}

.section {
    padding: 60px 40px;
    flex: 1; /* Võtab kogu ülejäänud vaba kõrguse, et footer jääks alla */
}

/* === HEADER === */
header {
    background: #1a140e;
    padding: 0px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 { 
    color: #ff7a00; 
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a.active {
    color: #ff6a00; /* aktiivne link oranžiks */
    text-decoration: underline;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: url("images/hero.jpg") center center/cover no-repeat;
    padding: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 20px;
    margin-bottom: 25px;
    color: #ddd;
}

.hero button {
    background: #ff6a00;
    border: none;
    padding: 14px 28px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.hero button:hover {
    background: #e65c00;
}

.btn {
    background: #ff7a00;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

/* === CARDS === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

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

.cards .card:hover {
    transform: translateY(-5px);
}

/* === FOOTER === */
footer {
    background: #1a140e;
    color: white;
    text-align: center;
    padding: 30px;
}

/* === LATEST GALLERY === */
.latest-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.view-more-container {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 10px;
}

.view-more {
    background: #ff6a00;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 3px;
    text-decoration: none;
}

.view-more:hover {
    background: #e65c00;
}
