/* HERO – puhas ja töökindel */

.hero {
    min-height: 30vh;
    background-image: url("/images/header.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

/* overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* SISUJOONDUS – lihtne ja kindel */
.hero-content {
    position: relative;
    z-index: 1;

    max-width: 1200px;   /* sama mis sisu ala */
    margin-left: auto;
    margin-right: auto;

    padding: 2rem;

    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    text-align: left;
    color: white;
}

.hero-content p {
    max-width: 40rem;
    font-size: 1.2rem;
}

.hero-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    background: #7a9c92;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Header taust – Cassiopeia override */
/* Header taust – kindel Cassiopeia override */
.container-header {
    background: rgba(161, 125, 91, 0.85) !important;
    backdrop-filter: saturate(120%) blur(3px);
}


/* Header hero peale */
.header.container-header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Hero algab headeri alt, aga pilt jääb taha */
.hero {
    padding-top: var(--cassiopeia-header-height, 96px);
}

.container-header {
    background: rgba(161, 125, 91, 0.75);
    backdrop-filter: saturate(120%) blur(3px);
}

/* Luba hero'l minna sticky headeri taha */
.hero {
    margin-top: calc(-1 * var(--cassiopeia-header-height, 207px));
    padding-top: var(--cassiopeia-header-height, 207px);
}

/* Hero → sisu pehme üleminek */
.hero {
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 1) 100%
    );

    pointer-events: none;
}

@media (max-width: 768px) {
    .hero::after {
        height: 50px;
    }
}

/* Smart Search – wrapper */
.header .mod-finder {
    position: relative;
}

/* Otsinguväli */
.header .mod-finder input[type="search"],
.header .mod-finder input.js-finder-search-query {
    border-radius: 999px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    outline: none;
}

/* Submit-nupp luubiks */
.header .mod-finder button[type="submit"] {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Luubi ikoon SVG-na */
.header .mod-finder button[type="submit"]::before {
    content: "";
    width: 16px;
    height: 16px;
    opacity: 0.7;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.35-4.35M10 18a8 8 0 100-16 8 8 0 000 16z'/%3E%3C/svg%3E") no-repeat center;
}

/* Hover efekt */
.header .mod-finder button[type="submit"]:hover::before {
    opacity: 1;
}

/* Parempoolne menüü – soe taust + ümarad nurgad */
.container-sidebar-right .sidebar-right {
    background-color: #906640;
    border-radius: 12px;
    border: none;
}

/* Card-body neutraalseks */
.container-sidebar-right .card-body {
    background: transparent;
    padding: 1.75rem;
}

/* Menüünimekiri */
.container-sidebar-right .mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menüülülid */
.container-sidebar-right .mod-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    padding: 0.55rem 0;
    font-weight: 400;
}

/* Hover */
.container-sidebar-right .mod-menu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Aktiivne leht */
.container-sidebar-right .mod-menu .active > a {
    color: #ffffff;
    font-weight: 600;
}

.footer {
    background-image: linear-gradient(
        135deg,
        #906640 0%,
        #5a3b28 100%
    );
}

/* Hero CTA nupp */
.hero-content .hero-btn {
    display: inline-block;
    margin-top: 1.5rem;

    padding: 0.75rem 1.75rem;
    border-radius: 999px;

    background-color: #906640;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

/* Hover – kerge “tõus” */
.hero-content .hero-btn:hover {
    background-color: #7a5234;
    transform: translateY(-2px);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.3);
}

/* Focus (klaviatuur, ligipääsetavus) */
.hero-content .hero-btn:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.5),
        0 10px 26px rgba(0, 0, 0, 0.3);
}

/* Zen-breathe animatsioon */
@keyframes zen-breathe {
    0% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
        transform: scale(1);
    }
}

/* Rakendame ainult hero CTA-le */
.hero-content .hero-btn {
    animation: zen-breathe 4.5s ease-in-out infinite;
}

/* Eemaldame äkilise kliki-efekti */
.hero-content .hero-btn:active {
    transform: scale(1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Pehme focus – ei sähvata */
.hero-content .hero-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.22);
}

/* =========================
   PEALKIRJAD – VÄRV
   ========================= */
h1, h2, h3, h4 {
    color: #906640;
}

/* =========================
   PEALKIRJAD, MIS ON LINGID
   (Cassiopeia override)
   ========================= */
h1 a,
h2 a,
h3 a,
h4 a {
    color: #906640;
    text-decoration: none;
}

/* Spetsiifilisem override (blogi, artiklid) */
.container-component h1 a,
.container-component h2 a,
.container-component h3 a,
.container-component h4 a,
.blog-item h1 a,
.blog-item h2 a,
.blog-item h3 a,
.blog-item h4 a {
    color: #906640;
    text-decoration: none;
}

/* =========================
   PEEN HOVER – ZEN
   ========================= */
.container-component h1 a:hover,
.container-component h2 a:hover,
.container-component h3 a:hover,
.container-component h4 a:hover,
.blog-item h1 a:hover,
.blog-item h2 a:hover,
.blog-item h3 a:hover,
.blog-item h4 a:hover {
    opacity: 0.85;
    text-decoration: none; /* EI tule tagasi */
}

/* =========================
   HERO ERAND (kui vaja)
   ========================= */
.hero-content h1,
.hero-content h2 {
    color: #ffffff;
}
/* =========================
  Avalehe video ümmargused nurgad
   ========================= */
.video-wrap {
    border-radius: 20px;   /* sama mis menüül */
    overflow: hidden;     /* SEE on võtmerida */
    background-color: #000;
  max-width: 720px;   /* muuda vastavalt maitsele */
}
.video-wrap {
    position: relative;
}

.video-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    height: 30px;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0)
    );

    transform: scaleY(-1);
    opacity: 0.35;
    pointer-events: none;
}

