/* Kannonjyrsin.fi - tyylitiedosto
   Logo / pääotsikko: Metamorphous (Google Fonts)
   Kaikki muu teksti: Average Sans (Google Fonts)
   Väriteema A: tumma metsänvihreä-musta + lämmin kerma + haalea kulta
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Average Sans', sans-serif;
    line-height: 1.6;
    color: #e8d8b0;
    background-color: #1f2421;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Sivun ulkokehys */
.container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Otsikkoalue */
header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 2px solid #c9a96e;
    margin-bottom: 2rem;
}

/* Logo - ainoa Metamorphous-fonttia käyttävä elementti */
h1 {
    font-family: 'Metamorphous', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #c9a96e;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 a {
    color: inherit;
    text-decoration: none;
}

h1 a:hover {
    color: #e6c98a;
}

.subtitle {
    font-family: 'Average Sans', sans-serif;
    font-size: 1.1rem;
    color: #e8d8b0;
    font-style: italic;
    opacity: 0.85;
}

/* Navigaatio */
nav {
    margin: 1.5rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #36423a;
    border-bottom: 1px solid #36423a;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: center;
}

nav a {
    color: #c9a96e;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s;
}

nav a:hover {
    background-color: #c9a96e;
    color: #1f2421;
}

nav a.active {
    background-color: #c9a96e;
    color: #1f2421;
    font-weight: bold;
}

/* Pääsisältö */
main {
    flex: 1;
    padding: 1rem 0 2rem;
}

/* Väliotsikot - Average Sans, kullanvärinen */
main h2 {
    font-family: 'Average Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c9a96e;
    margin: 1.75rem 0 1rem;
    letter-spacing: 0.01em;
}

main p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    max-width: 70ch;
    color: #e8d8b0;
}

main ul.services {
    list-style: none;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #36423a;
    border-left: 4px solid #c9a96e;
    border-radius: 4px;
    max-width: 70ch;
}

main ul.services li {
    padding: 0.35rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #e8d8b0;
}

main ul.services li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c9a96e;
    font-weight: bold;
}

main ul.services a {
    color: #c9a96e;
    text-decoration: underline;
    text-decoration-color: rgba(201, 169, 110, 0.4);
}

main ul.services a:hover {
    text-decoration-color: #c9a96e;
}

.highlight {
    padding: 1rem 1.25rem;
    background-color: #36423a;
    border: 1px solid #c9a96e;
    border-radius: 4px;
    margin: 1.25rem 0;
    max-width: 70ch;
    font-weight: bold;
    color: #e8d8b0;
}

.contact-info {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background-color: #36423a;
    border-radius: 4px;
    max-width: 70ch;
}

.contact-info p {
    margin-bottom: 0.4rem;
    color: #e8d8b0;
}

.contact-info a {
    color: #c9a96e;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted #c9a96e;
}

.contact-info a:hover {
    border-bottom: 1px solid #c9a96e;
    color: #e6c98a;
}

.image-block {
    margin: 2rem 0;
    text-align: center;
}

.image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Sähköpostilinkki yhteystiedoissa */
.email-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #c9a96e;
    color: #1f2421;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.email-button:hover {
    background-color: #e6c98a;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid #36423a;
    text-align: center;
    font-size: 0.9rem;
    color: #e8d8b0;
    opacity: 0.75;
}

/* Tabletti (601-900 px) */
@media (max-width: 900px) and (min-width: 601px) {
    .container {
        padding: 0 1.25rem;
    }
    h1 {
        font-size: 2rem;
    }
}

/* Mobiili */
@media (max-width: 600px) {
    h1 {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }

    nav a {
        padding: 0.6rem 1rem;
        display: block;
        text-align: center;
        min-width: 200px;
    }

    main h2 {
        font-size: 1.3rem;
    }

    main p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    header {
        padding: 1.5rem 0 1rem;
    }
}

/* === Yhteydenottolomake === */

.contact-form {
    margin: 1.5rem 0;
    max-width: 70ch;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    color: #c9a96e;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="number"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #36423a;
    border: 1px solid #36423a;
    border-radius: 4px;
    color: #e8d8b0;
    font-size: 1rem;
    font-family: 'Average Sans', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="number"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c9a96e;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #e8d8b0;
    opacity: 0.5;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-button {
    background: #c9a96e;
    color: #1f2421;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: bold;
    font-family: 'Average Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
}

.form-button:hover {
    background: #e6c98a;
}

.form-note {
    color: #e8d8b0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 1rem 0 0;
    opacity: 0.7;
}

/* Honeypot - piilotettu kenttä joka pyydystää bottit */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Lomake mobiilissa */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 1rem;
    }
}

/* Aihe-osiot isännöintilomakkeessa - korostettu laatikko jossa lisäkentät */
.aihe-osio {
    padding: 1rem 1.25rem;
    background: rgba(54, 66, 58, 0.5);
    border-left: 3px solid #c9a96e;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1rem;
}

.aihe-otsikko {
    color: #c9a96e !important;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem !important;
}

.aihe-osio .form-row,
.aihe-osio .form-group {
    margin-bottom: 1rem;
}

.aihe-osio .form-group:last-child,
.aihe-osio .form-row:last-child {
    margin-bottom: 0;
}

/* Checkbox-laatikko (yleisavain-suostumus) */
.checkbox-block {
    background: rgba(31, 36, 33, 0.6);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.checkbox-block label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #e8d8b0 !important;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400 !important;
    margin: 0 !important;
}

.checkbox-block input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #c9a96e;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-block span {
    flex: 1;
}
