@charset "UTF-8";
/* CSS Document */

/* =========
   VÄRIMÄÄRITYKSET
   ========= */
:root { 
    --orange: #f5a623; 
    --ink: #111; 
    --grey: #e7e6e2;
    --green: #306000;
    --darkgrey: #4c4c4c;
    --yellow: #fbea55;
    --black: #000000;
    --white: #ffffff;
}
/* Yhteystietojen linkit Countor-ink värillä */
#yhteys a {
    color: var(--ink) !important;   /* = #111 */
    text-decoration: underline;
}

#yhteys a:hover {
    /*color: var(--orange) !important;*/
    text-decoration: none;
}


/* YHTEYDENOTTOLOMAKE (Countor-brändillä) */
.countor-form {
    background: var(--grey);
    border: 0px solid var(--orange);
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(0,0,0,0);
}

/* Otsikot, labelit */
.countor-form .form-label {
    font-weight: 600;
    color: var(--ink);
}

/* Inputit & textarea */
.countor-form .form-control {
    border-radius: 0;
    border: 1px solid var(--darkgrey);
    background: #fff;
}

.countor-form .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.15rem rgba(48,96,0,0.25);
}

/* Checkboxit */
.countor-form .form-check-input {
    border-radius: 0;
    border-color: var(--darkgrey);
}

.countor-form .form-check-input:checked {
    background-color: var(--green);
    border-color: var(--green);
}

/* Brändinappi */
.btn-brand {
    background-color: var(--green);
    border-color: var(--green);
    border-radius: 0;
    color: #fff;
    font-weight: 600;
    padding-left: 2rem;
    padding-right: 2rem;
}

.btn-brand:hover {
    background-color: #264d00;
    border-color: #264d00;
    color: #fff;
}

/* Lisäilmavuutta yläreunaan */
.countor-form.mt-space {
    margin-top: 3rem;
}


/* =========
   YLEISET
   ========= */
body { 
    margin: 0;
    padding-top: 4.5rem; /* tilaa fixed-top-naville */
    color: var(--ink); 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Utility-taustat */
.bg-grey {
    background: var(--grey) !important;
}

.bg-darkgrey {
    background: var(--darkgrey) !important;
    color: #fff;
}
.bg-ink {
    background: var(--ink) !important;
    color: #fff;
}
.bg-black {
    background: var(--black) !important;
    color: #fff;
}
.bg-darkgrey h2,
.bg-darkgrey h3,
.bg-darkgrey p,
.bg-darkgrey .text-secondary {
    color: #fff !important;
}

.bg-darkgrey p {
    color: #e7e7e7 !important;
}

.bg-darkgrey .border {
    border-color: #fff !important;
}

.bg-green {
    background: var(--green) !important;
}

/* =========
   NAVIGAATIO
   ========= */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand img { 
    height: 30px; 
}

/* =========
   HERO-ALUE
   ========= */
.hero { 
    background: var(--orange);
    padding: 0;
}

.hero-text {
    padding: 3rem;
}

@media (min-width: 992px) {
    .hero-text {
        padding-left: 4rem;
    }
}
/* Hero-tekstin lisämarginaali vain isoilla näytöillä */
@media (min-width: 992px) {
    .hero-text {
        padding-left: 7%; /* Voit säätää arvoa (esim. 60–150px) */
    }
    .hero-text-inner {
        max-width: 700px; /* Teksti ei leviä liian leveäksi */
    }
}

/* Hero-kuva täyteen korkeuteen desktopilla */
header.hero {
    margin: 0;
    padding: 0;
}

header.hero .row,
header.hero .hero-img {
    margin: 0 !important;
    padding: 0 !important;
}

header.hero img {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    header.hero .row {
        align-items: stretch; /* colit saman korkuisiksi */
    }

    header.hero .hero-img {
        height: 100%;
    }

    header.hero .hero-img img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;          /* ei tyhjää tilaa alle */
        object-position: right center; /* vasen reuna voi leikkautua */
    }
}

/* =========
   BUTTONIT
   ========= */
.btn-brand { 
    background: var(--green);
    color: #fff;
    padding: 1rem 2rem; 
    border-radius: 0;
    font-weight: 600;
    border: none;
}

.btn-brand:hover { 
    background: var(--darkgrey);
    color: #fff;
}

/* =========
   FOOTER
   ========= */
footer {
    background: var(--darkgrey);
    color: #fff;
    margin: 0;
    padding: 0;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

/* PALVELUT-SIVUN NUMBEROITU LISTA */

.palvelumme-tausta {
  background: #fff;
  padding: 3rem 0;
}

.palvelumme {
  max-width: 1000px;
  margin: 0 auto;
}

.palvelumme-numero {
  font-size: 10rem !important;
  font-weight: 700;
  line-height: 0.7;        /* hieman tiiviimpi */
  color: var(--grey);
  text-align: left;
  padding-top: 0;
  margin-top: 0.5rem;     /* NOSTAA numeroa ylöspäin */
}


/* Tekstipalsta oikealla */
.palvelumme-teksti h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.palvelumme-teksti h3 {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.palvelumme-teksti p {
  margin-bottom: 0.6rem;
}

/* Pientä väliä eri palvelujen väliin */
.palvelumme-teksti {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.palvelumme-teksti:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* Mobiilissa numero keskelle ja pienempi */
@media (max-width: 576px) {
  .palvelumme-numero {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
}

#palvelut .card-equal {
    height: 300px;              
    display: flex;
    align-items: center;          
    justify-content: center;      
    text-align: center;
}

/* SOME-IKONIT FOOTERISSA */
.social-links a.social-icon {
    display: inline-block;
    color: var(--white);         
    font-size: 1.6rem;
    margin: 0 10px;
    transition: 0.3s ease;
}

.social-links a.social-icon:hover {
    color: var(--orange);        
    transform: scale(1.15);
}
/* Ajankohtaista-uutisten välinen erotusviiva */
section#ajankohtaista {
    border-bottom: 1px solid #ddd; /* voit vaihtaa värin esim. var(--grey) */
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Poista viiva viimeisestä */
section#ajankohtaista:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
/* =========
   LINKIT (yleinen tyyli)
   ========= */
a {
    color: var(--green);
    text-decoration: underline;
    transition: 0.15s ease-in-out;
}

a:hover {
    color: #264d00; /* hieman tummempi vihreä */
    text-decoration: none;
}
/* AJANKOHTAISTA – Päivämäärät näkyvämmiksi */
.news-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--green);
    color: #fff !important;
    border-radius: 999px;           /* pillimäinen muoto */
    font-weight: 600;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

/* Pieni lisäkontrasti tummalla taustalla */
.bg-darkgrey .news-date,
.bg-ink .news-date,
.bg-black .news-date {
    background-color: var(--yellow);
    color: var(--ink) !important;
}

