@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Great+Vibes&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --bg-dark: #0a0c10;
    --panel-bg: rgba(16, 20, 28, 0.95);
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-border: #7a6320;
    --text-light: #e0e0e0;
}

body {
    /* Yleinen sivuston taustakuva */
    background: linear-gradient(180deg, #121316 0%, #1d1f24 100%) fixed !important;
    background-size: cover !important;
    color: #cccccc !important;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Yläbanneri: Täysi leveys ja oikea korkeus */
.header-banner {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    background: linear-gradient(rgba(10, 15, 25, 0.45), rgba(10, 15, 25, 0.65)), 
                url('https://images.unsplash.com/photo-1426604966848-d7adac402bff?auto=format&fit=crop&w=1600&q=80') no-repeat center center !important;
    background-size: cover !important;
    border-radius: 12px !important;
    padding: 35px 40px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--gold-border) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.banner-overlay {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 20px !important;
}

/* Keskiosa (Päälogo / AMIKO-WEB.ORG) */
.header-center {
    text-align: center !important;
    flex: 1 !important;
}

.logo-title {
    font-family: 'Cinzel', serif !important;
    color: var(--gold-primary) !important;
    font-size: 2.4rem !important;
    margin: 0 !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.logo-subtitle {
    letter-spacing: 6px !important;
    font-size: 0.78rem !important;
    color: #ffffff !important;
    margin: 4px 0 0 0 !important;
    text-transform: uppercase !important;
}

/* Oikea reuna (Käsialasitaatti) */
.header-right {
    text-align: right !important;
}

.script-quote {
    font-family: 'Great Vibes', cursive !important;
    font-size: 1.5rem !important;
    color: var(--gold-light) !important;
    margin: 0 !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.8) !important;
    white-space: nowrap !important;
}

/* ==========================================
   HERO-BANNERI (Etusivun nostolaatikko)
   ========================================== */
.hero-banner {
    position: relative !important;
    width: 100% !important;
    min-height: 200px !important;
    background: rgba(16, 20, 28, 0.95) !important; /* Vaihdettu tasaiseksi sivuston paneeliväriksi */
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 25px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}
.hero-overlay {
    width: 100% !important;
    padding: 20px 30px !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
}

/* Navigaatiopalkki: Vastaa täsmälleen yläbannerin leveyttä */
.main-nav {
    width: 100% !important;
    background: #12161f;
    border: 1px solid var(--gold-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-sizing: border-box !important;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a.active, .nav-links a:hover {
    background: var(--gold-primary);
    color: #000;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    background: #000;
    border: 1px solid var(--gold-border);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 0.8rem;
}

.search-box button {
    background: var(--gold-primary);
    border: 1px solid var(--gold-border);
    color: #000;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 20px;
}

.content-box {
    background: var(--panel-bg);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.box-title {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid var(--gold-border);
    padding-bottom: 10px;
    margin-top: 0;
}

.script-title {
    font-family: 'Great Vibes', cursive;
    color: var(--gold-light);
    font-size: 2.2rem;
    margin: 0;
}

.hero-description {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 650px;
    margin-bottom: 12px;
}

.gold-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #aa820a);
    color: #000;
    padding: 8px 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.gold-cta-btn:hover {
    transform: translateY(-2px);
}

.text-paragraph {
    line-height: 1.6;
    font-size: 0.92rem;
    color: #ccc;
    margin-bottom: 15px;
}

.highlight-lead {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.script-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold-light);
    margin-top: 20px;
}

.script-signature span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #fff;
    display: block;
}

/* PROMO BOKSI */
.promo-box {
    border: 1px solid var(--gold-border);
    background: rgba(212, 175, 55, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 25px;
}

.promo-icon {
    font-size: 2rem;
    color: var(--gold-primary);
}

.promo-text h4 {
    margin: 0 0 5px 0;
    color: var(--gold-primary);
}

.promo-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #aaa;
}

.email-link {
    color: var(--gold-light) !important;
    margin-top: 5px !important;
    font-weight: bold;
}

/* SIDEBAR & WIDGETS */
.widget {
    background: var(--panel-bg);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.widget-header {
    background: #181d28;
    color: var(--gold-primary);
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-bottom: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-body {
    padding: 12px;
    font-size: 0.85rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #ccc;
}

.widget-divider {
    border: 0;
    border-top: 1px solid rgba(122, 99, 32, 0.4);
    margin: 8px 0;
}

.widget-subtitle {
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.name-day-box {
    background: #000;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    color: var(--gold-primary);
    font-weight: bold;
}

.widget-btn {
    display: block;
    text-align: right;
    color: var(--gold-light);
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.2s;
}

.widget-btn:hover {
    color: #fff;
}

.temp-text {
    color: #fff;
    font-size: 1rem;
}

.green-text {
    color: #4CAF50;
    font-weight: bold;
}

.gold-btn {
    background: var(--gold-primary);
    color: #000 !important;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* GALLERIA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-card {
    background: #000;
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    overflow: hidden;
}

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

.card-caption {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--gold-light);
    text-align: center;
}

/* FOOTER */
footer {
    margin-top: 30px;
    border-top: 1px solid var(--gold-border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.80rem;
    color: #777;
}

.feedback-box {
    overflow-wrap: anywhere;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin-top: 24px;
    box-sizing: border-box;
}

.feedback-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    min-width: 0;
}

.feedback-form label {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.feedback-form .form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    background: #000;
    border: 1px solid var(--gold-border, #bf953f);
    border-radius: 7px;
    color: #fff;
    font: inherit;
}

.feedback-form .form-control:focus {
    outline: 2px solid #bf953f;
    outline-offset: 2px;
}

.feedback-form textarea {
    min-height: 180px;
    resize: vertical;
}

.feedback-form .captcha-input {
    max-width: 160px;
}

.feedback-submit {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    padding: 13px 24px;
    font-size: 1rem;
}

.feedback-success {
    margin-top: 24px;
    padding: 24px 18px;
    text-align: center;
    background: rgba(191, 149, 63, 0.12);
    border: 1px solid #bf953f;
    border-radius: 12px;
    color: var(--gold-light, #ffd27a);
}

.feedback-success > i {
    font-size: 38px;
    color: #bf953f;
}

.feedback-success h3 {
    margin: 12px 0;
    color: var(--gold-light, #ffd27a);
}

.feedback-success p {
    overflow-wrap: anywhere;
}

.alert-error {
    padding: 14px;
    margin: 18px 0;
    border: 1px solid #f44336;
    border-radius: 8px;
    background: rgba(244, 67, 54, 0.12);
    color: #ff8a80;
    overflow-wrap: anywhere;
}

/* ==========================================
   AMIKOWEB – PALAUTELOMAKE, SUUREMPI VERSIO
   ========================================== */

.feedback-box {
    width: 100%;
    max-width: 100%;
    padding: 35px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.feedback-box .box-title {
    font-size: 1.65rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.feedback-box .highlight-lead {
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.feedback-box .text-paragraph {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

/* Lomakkeen välistykset */
.feedback-box .feedback-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 28px;
    box-sizing: border-box;
}

.feedback-box .feedback-form .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.feedback-box .feedback-form label {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gold-light);
}

/* Aihevalikko ja sähköpostikenttä */
.feedback-box .feedback-form .form-control {
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    padding: 15px;
    box-sizing: border-box;
    background: #050505;
    color: #fff;
    border: 1px solid var(--gold-border);
    border-radius: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

/* Kirjoitustilaa palautteelle */
.feedback-box .feedback-form textarea.form-control {
    min-height: 300px;
    line-height: 1.8;
    resize: vertical;
}

/* Varmistuskysymyksen kenttä */
.feedback-box .feedback-form .captcha-input {
    max-width: 220px;
}
/* Kulta/Keltainen korostuspainike */
.amiko-btn-gold {
  display: block;
  width: 100%;
  background-color: #d4af37 !important; /* Kultainen teemaväri */
  color: #0d0d0d !important;             /* Tumma teksti paremman luettavuuden takaamiseksi */
  font-weight: bold;
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-sizing: border-box !important;
}

/* Hover-tehoste kun hiiri viedään päälle */
.amiko-btn-gold:hover {
  background-color: #e6d396 !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

/* Lähetä-painike */
.feedback-box .feedback-form .feedback-submit {
    align-self: flex-start;
    min-height: 55px;
    padding: 15px 30px;
    border: 1px solid var(--gold-primary);
    border-radius: 25px;
    background: linear-gradient(135deg, #f3e5ab, #d4af37, #aa820a);
    color: #080808;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-box .feedback-form .feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(212, 175, 55, 0.3);
}

.feedback-box .feedback-form .form-control:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Kiitos- ja virheilmoitukset */
.feedback-box .feedback-success,
.feedback-box .alert-error {
    padding: 25px;
    margin: 25px 0;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
/* ===== TAUSTAKORISTEET (lisää tähän, tiedoston loppuun) ===== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 90px 140px, #f3e5ab, transparent),
        radial-gradient(1.5px 1.5px at 160px 70px, #fff, transparent),
        radial-gradient(1px 1px at 230px 190px, #fff, transparent),
        radial-gradient(2px 2px at 300px 110px, #f3e5ab, transparent);
    background-size: 340px 240px;
    opacity: 0.7;
    animation: tahdet 6s ease-in-out infinite alternate;
}
@keyframes tahdet {
    from { opacity: 0.35; }
    to   { opacity: 0.8; }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 35% at 20% 15%, rgba(0, 255, 160, 0.20), transparent 70%),
        radial-gradient(ellipse 50% 30% at 80% 10%, rgba(130, 90, 255, 0.20), transparent 70%);
    filter: blur(30px);
    animation: revontulet 22s ease-in-out infinite alternate;
}
@keyframes revontulet {
    from { transform: translateX(-4%) scale(1); }
    to   { transform: translateX(4%) scale(1.1); }
}
/* ===== TÄHDENLENTO ===== */
html::before {
    content: "";
    position: fixed;
    top: 8%;
    left: -10%;
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff);
    border-radius: 2px;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    animation: tahdenlento 14s linear infinite;
}
@keyframes tahdenlento {
    0%   { transform: translate(0, 0) rotate(25deg); opacity: 0; }
    1%   { opacity: 1; }
    6%   { transform: translate(75vw, 35vw) rotate(25deg); opacity: 0; }
    100% { transform: translate(75vw, 35vw) rotate(25deg); opacity: 0; }
}

/* ===== VUORISILUETTI ALAREUNAAN ===== */
html::after {
    content: "";
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 22vh;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V140L120 80L200 120L320 40L430 130L540 90L680 150L800 60L930 130L1050 90L1200 140V200Z' fill='%2307090d' fill-opacity='.9'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

/* Vähemmän liikettä, jos käyttäjä haluaa */
@media (prefers-reduced-motion: reduce) {
    html::before { animation: none; }
}


/* AMIKO-WEB – mobiilinäytön korjaus */
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
}

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

/* Sivun sisältö */
.container,
.content,
main,
.page-content {
    max-width: 100%;
    min-width: 0;
}

/* Puhelimet */
@media screen and (max-width: 600px) {

    .container,
    .content,
    main,
    .page-content {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Logo ja sen tekstit */
    .logo-frame,
    .logo-container,
    .site-header {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .logo-frame img,
    .logo-container img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Tekstit eivät saa levittää sivua */
    p,
    li,
    .content,
    .page-content {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* Navigaation sisältö */
    nav {
        max-width: 100%;
        min-width: 0;
    }
}

/* ==========================================
   AMIKO-WEB – MOBIILIKORJAUS
   Firefox ja muut puhelinselaimet
   ========================================== */

@media screen and (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-container {
        width: 100%;
        max-width: 100%;
        padding: 8px;
        margin: 0 auto;
        min-width: 0;
    }

    /* Yläbanneri ja logo */
    .header-banner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }

    .banner-overlay {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .header-center {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .logo-title {
        font-size: clamp(1.15rem, 6.2vw, 2rem) !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
        overflow-wrap: anywhere;
    }

    .logo-subtitle {
        font-size: 0.68rem !important;
        letter-spacing: 3px !important;
        line-height: 1.5 !important;
        overflow-wrap: anywhere;
    }

    /* Iskulause mahtuu logon sisälle */
    .header-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .script-quote {
        font-size: clamp(1.15rem, 5.5vw, 1.6rem) !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        max-width: 100% !important;
    }

    /* Pääsisältö ja tekstilaatikot */
    .main-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .content-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
        overflow-wrap: anywhere;
    }

    .content-box p,
    .content-box li,
    .text-paragraph,
    .highlight-lead {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.7;
    }

    /* Tekstit ja kuvat eivät saa levittää sivua */
    img,
    video,
    iframe {
        max-width: 100%;
    }

    /* Navigaatio sopivaksi puhelimelle */
    .main-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .nav-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
        max-width: 100%;
    }

    .nav-links a {
        font-size: 0.75rem !important;
        padding: 8px !important;
    }

    .search-box {
        max-width: 100%;
    }

    .search-box input {
        width: 100%;
        min-width: 0;
    }

    /* Palautealue */
    .feedback-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        min-width: 0 !important;
    }

    .feedback-box .feedback-form {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Galleria */
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

