/* Karela Transport – põhistiilid */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #FAFAF9;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

@media (min-width: 1024px) {
    body {
        font-size: 1.0625rem;
    }
}

.page-wrap {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .page-wrap {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .page-wrap {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.page-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .page-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.page-section--white {
    background-color: #fff;
}

.page-section--soft {
    background-color: #f9fafb;
}

.page-section--cta {
    background-color: #f5f5f7;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #E7E5E4;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

@media (min-width: 1024px) {
    .site-header__bar {
        min-height: 4.5rem;
    }
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
}

.site-header__nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .site-header__nav {
        display: flex;
    }
}

.site-header__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #57534e;
    cursor: pointer;
}

.site-header__menu-btn:hover {
    background: #f5f5f4;
}

@media (min-width: 1024px) {
    .site-header__menu-btn {
        display: none;
    }
}

.site-header__mobile {
    display: none;
    border-top: 1px solid #e7e5e4;
    background: #fff;
}

.site-header__mobile.is-open {
    display: block;
}

.site-header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
}

.site-header__quote--desktop {
    display: none;
}

@media (min-width: 640px) {
    .site-header__quote--desktop {
        display: inline-flex;
    }
}

.site-header__brand-name {
    display: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b4332;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .site-header__brand-name {
        display: block;
    }
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    background-color: #F97316;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.btn-primary:hover {
    background-color: #EA580C;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F97316;
}

.card {
    background: #fff;
    border: 1px solid #E7E5E4;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stat-card {
    background: #fff;
    border: 1px solid #E7E5E4;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.hero-panel {
    background: linear-gradient(135deg, #1B4332 0%, #0D2818 100%);
}

/* Avaleht – hero taustapildiga */
.hero-home {
    position: relative;
    overflow: hidden;
    min-height: 28rem;
}

.hero-home__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-home__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
}

.hero-home__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(13, 40, 24, 0.95) 0%,
        rgba(27, 67, 50, 0.9) 42%,
        rgba(27, 67, 50, 0.65) 62%,
        rgba(27, 67, 50, 0.25) 82%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.hero-home__inner {
    position: relative;
    z-index: 1;
    padding: 3.5rem 0 4.5rem;
    max-width: 40rem;
}

.hero-home__inner .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-home__inner .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.page-hero__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .page-hero__inner {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .page-hero__inner {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.service-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .service-row {
        flex-direction: row;
        align-items: flex-start;
    }
}

.home-cta-bar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-cta-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .hero-home {
        min-height: 32rem;
    }

    .hero-home__inner {
        padding: 5rem 0 6rem;
    }
}

@media (min-width: 1024px) {
    .hero-home {
        min-height: 36rem;
    }

    .hero-home__image {
        object-position: center right;
    }

    .hero-home__inner {
        padding: 6rem 0 7rem;
        max-width: 42rem;
    }
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.625rem;
    background: #F0FDF4;
    color: #1B4332;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-link-active {
    color: #1B4332 !important;
    font-weight: 600;
    background: #F0FDF4;
}

/* Vormid */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #44403C;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D6D3D1;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Paigutused – ei sõltu puudulikust Tailwind grid buildist */
.split-layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .split-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
        gap: 3rem;
    }

    .split-layout--equal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .split-layout {
        gap: 4rem;
    }
}

.split-layout__main,
.split-layout__side {
    min-width: 0;
}

.body-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #57534e;
}

.body-text p + p {
    margin-top: 1rem;
}

/* Jalus */
.footer-wrap {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .footer-wrap {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
        gap: 2.5rem;
        align-items: start;
    }
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 3rem;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-logo__text {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-about {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #a8a29e;
    max-width: 22rem;
}

.footer-heading {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
}

.footer-nav li + li {
    margin-top: 0.5rem;
}

.footer-nav a {
    color: #d6d3d1;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: #78716c;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

.services-grid__full {
    grid-column: 1 / -1;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.section-intro {
    margin-bottom: 2.5rem;
}

.section-intro__text {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.625;
    color: #57534e;
    max-width: 42rem;
}

.info-panel {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .info-panel {
        padding: 2rem;
    }
}

.info-panel__stat {
    margin-bottom: 1.25rem;
}

.info-panel__value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1b4332;
    line-height: 1.2;
}

.info-panel__label {
    margin-top: 0.25rem;
    color: #57534e;
}

.info-panel__row {
    padding-top: 1.25rem;
    border-top: 1px solid #e7e5e4;
}

.info-panel__row + .info-panel__row {
    margin-top: 0;
}

.info-panel__heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #292524;
}

.info-panel__text {
    margin-top: 0.25rem;
    color: #57534e;
    line-height: 1.5;
}

/* Platsi galerii */
.yard-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .yard-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.yard-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e7e5e4;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.yard-gallery__frame {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f4;
}

.yard-gallery__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.yard-gallery__item:hover .yard-gallery__frame img {
    transform: scale(1.05);
}

.yard-gallery__caption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #44403c;
}

/* Veokite kaardid */
.fleet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fleet-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.fleet-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.fleet-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 500;
    color: #78716c;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
}

.fleet-card__media {
    aspect-ratio: 4 / 3;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fleet-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fleet-card__placeholder {
    color: #d6d3d1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fleet-card__body {
    flex-grow: 1;
}

.fleet-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b4332;
    line-height: 1.3;
    padding-right: 5.5rem;
}

.fleet-card__meta {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #78716c;
}

.fleet-card__desc {
    margin-top: 0.75rem;
    color: #57534e;
    line-height: 1.625;
}

/* Metsatehnika kaardid */
.equipment-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .equipment-card {
        padding: 2rem;
    }
}

.equipment-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.equipment-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b4332;
}

.equipment-card__year {
    font-weight: 400;
    font-size: 1rem;
    color: #78716c;
}

.equipment-card__year::before {
    content: ' · ';
}

.equipment-card__desc {
    margin-top: 0.75rem;
    color: #57534e;
    line-height: 1.625;
}

/* CTA plokk */
.cta-card {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .cta-card {
        padding: 2.5rem;
    }
}

/* Kontakt – kahe veeruga paigutus */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1.4fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

.contact-aside__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1b4332;
    margin: 0 0 1.25rem;
}

@media (min-width: 1024px) {
    .contact-aside__title {
        font-size: 1.5rem;
    }
}

.contact-panel {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .contact-panel {
        padding: 2rem;
    }
}

.contact-row {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e7e5e4;
    text-decoration: none;
}

.contact-row:first-child {
    padding-top: 0;
}

.contact-row--static {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-row__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #78716c;
    margin-bottom: 0.25rem;
}

.contact-row__value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #292524;
    word-break: break-word;
}

.contact-row--phone .contact-row__value {
    font-size: 1.25rem;
    color: #1b4332;
}

a.contact-row:hover .contact-row__value {
    color: #e85d04;
}

.contact-panel__note {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e7e5e4;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #78716c;
}

/* Keelevahetus – rippmenüü */
.lang-select-wrap {
    display: flex;
    align-items: center;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 7.25rem;
    max-width: 10rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #292524;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2357534e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    border: 1px solid #d6d3d1;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lang-select:hover {
    border-color: #a8a29e;
}

.lang-select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

@media (max-width: 639px) {
    .lang-select {
        min-width: 5.75rem;
        max-width: 6.5rem;
        padding: 0.4rem 1.5rem 0.4rem 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Toomas Seire – ainus kontaktiplokk (jalus) */
.footer-person__label {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fb923c;
}

.footer-person__name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.footer-person__role {
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
    color: #d6d3d1;
}

.footer-person__langs-title {
    margin: 1rem 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a8a29e;
}

.footer-person__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-person__langs li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    color: #e7e5e4;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}

.footer-person__contact {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.9375rem;
}

.footer-person__contact li {
    margin-top: 0.5rem;
}

.footer-person__contact li:first-child {
    margin-top: 0;
}

.footer-person__contact a {
    color: #fafaf9;
    font-weight: 600;
    text-decoration: none;
}

.footer-person__contact a:hover {
    color: #fb923c;
}

.footer-person__contact li:last-child {
    color: #a8a29e;
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Avaleht – teenuste ruudustik (ei sõltu Tailwind breakpointidest) */
.home-services-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .home-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* Mobiil – loetavus */
@media (max-width: 767px) {
    .hero-home {
        min-height: 22rem;
    }

    .hero-home__shade {
        background: linear-gradient(
            180deg,
            rgba(13, 40, 24, 0.94) 0%,
            rgba(27, 67, 50, 0.9) 100%
        );
    }

    .hero-home__inner {
        padding: 2.25rem 0 2.75rem;
    }

    .hero-home__inner h1 {
        font-size: 1.625rem;
        line-height: 1.25;
    }

    .hero-home__inner .text-lg {
        font-size: 1rem;
        line-height: 1.55;
    }

    .page-section {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .card.p-6 {
        padding: 1.25rem;
    }

    .card.p-8 {
        padding: 1.5rem;
    }

    .bg-brand-dark,
    footer.bg-brand-dark {
        background-color: #1b4332;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yard-gallery__frame img,
    .fleet-card,
    .equipment-card {
        transition: none;
    }

    .yard-gallery__item:hover .yard-gallery__frame img {
        transform: none;
    }
}
