﻿/* Home page styles, scoped to the content sections. */
:root {
    --home-ink: #183f43;
    --home-muted: #52696c;
    --home-teal: #087c70;
    --home-border: #dcece8;
    --home-shadow: 0 14px 40px rgb(24 63 67 / 8%);
}

main > section,
main > section * {
    box-sizing: border-box;
}

main > section {
    padding: 64px 24px;
    color: var(--home-ink);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

main > section img {
    display: block;
    max-width: 100%;
}

.sector1,
.about .cont,
.serv,
.fac,
.chooseset {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.layout {
    padding-top: 112px;
    background: radial-gradient(ellipse at top left, #dcf4ed, transparent 65%), #fffaf4;
}

.sector1 {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
    gap: 36px;
    align-items: stretch;
}

.banner {
    align-self: center;
    padding: 16px 0;
}

.banner img {
    width: 140px;
    height: auto;
    margin-bottom: 24px;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgb(24 63 67 / 5%);
}

.banner h2 {
    margin-bottom: 20px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.3;
    letter-spacing: -1px;
}

.banner p {
    color: var(--home-muted);
    line-height: 1.9;
}

.slide_continer {
    min-width: 0;
    display: flex;
}

.slider {
    position: relative;
    width: 100%;
    min-height: 530px;
    overflow: hidden;
    border-radius: 28px;
    background: #dcece8;
    box-shadow: var(--home-shadow);
}

.slider .slide {
    display: none;
    position: absolute;
    inset: 0;
    background: #183f43;
}

.slider .slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgb(8 36 39 / 90%) 100%);
    pointer-events: none;
}

.slider .content {
    position: absolute;
    z-index: 1;
    left: 30px;
    right: 30px;
    bottom: 84px;
    padding: 18px;
    border-radius: 14px;
    background: rgb(8 36 39 / 80%);
    color: #fff;
}

.content h2 {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.3;
}

.content p {
    line-height: 1.7;
}

.slider .btn {
    position: absolute;
    z-index: 2;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 50%;
    background: #fff;
    color: var(--home-teal);
    font-size: 20px;
    cursor: pointer;
}

.slider .prev { left: 30px; }
.slider .next { left: 86px; }
.slider .btn:hover { background: #ffe6ce; }

main > section > h2 {
    position: relative;
    padding-bottom: 22px;
    margin-bottom: 36px;
    text-align: center;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.7px;
}

main > section > h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 76px;
    height: 4px;
    border-radius: 8px;
    background: linear-gradient(90deg, #029e90 65%, #fb7f20 65%);
    transform: translateX(-50%);
}

.about .cont {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 40px;
}

.about .cont > div:first-child {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #edf9f5, #fff3e5);
}

.about .cont img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.about .cont p {
    position: relative;
    padding-left: 32px;
    margin-bottom: 18px;
    color: var(--home-muted);
}

.about .cont p svg {
    position: absolute;
    top: 5px;
    left: 0;
    width: 20px;
    height: 20px;
}

.about .cont a {
    display: inline-block;
    margin-top: 4px;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--home-teal);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.about .cont a:hover { background: #075d55; }

.service {
    background: #f3faf7;
    border-block: 1px solid var(--home-border);
}

.serv {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.serv > div {
    min-width: 0;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgb(24 63 67 / 5%);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.serv a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 18px;
    border-radius: inherit;
    color: var(--home-teal);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.serv img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f6faf8;
    border-radius: 12px;
    margin-bottom: 18px;
}

.serv p {
    margin-bottom: 16px;
    flex: 1;
    font-size: 18px;
    line-height: 1.5;
    color: var(--home-ink);
}

.serv br { display: none; }

.fac {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fac > div {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.fac > div > div {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: #f4faf8;
}

.fac > div > div > div:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--home-teal);
}

.fac svg { width: 32px; height: 32px; }
.fac h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.4; }
.fac p { color: var(--home-muted); }

.choose {
    background: linear-gradient(135deg, #eff9f6, #fff8ef);
    border-top: 1px solid var(--home-border);
}

.chooseset {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 40px;
}

.chooseset img {
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: auto;
    border-radius: 24px;
}

.chooseset1 { display: grid; gap: 20px; min-width: 0; }

.chooseset1 > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.chooseset1 p {
    padding: 24px;
    border: 1px solid var(--home-border);
    border-top: 3px solid #029e90;
    border-radius: 16px;
    background: #fff;
    color: var(--home-muted);
    box-shadow: var(--home-shadow);
}

.chooseset1 > div:nth-child(2) p { border-top-color: #fb7f20; }

.chooseset1 strong {
    display: block;
    margin-bottom: 10px;
    color: var(--home-ink);
    font-size: 18px;
    line-height: 1.5;
}

main > section a:focus-visible,
main > section button:focus-visible {
    outline: 3px solid #c25a0b;
    outline-offset: 4px;
}

@media (hover: hover) {
    .serv > div:hover {
        transform: translateY(-4px);
        box-shadow: var(--home-shadow);
    }
}

@media (max-width: 1000px) {
    .sector1,
    .about .cont,
    .chooseset { grid-template-columns: minmax(0, 1fr); }
    .banner { max-width: 720px; }
    .banner img { width: 110px; }
    .slider { min-height: 460px; }
    .about .cont > div:first-child { max-width: 340px; margin: auto; }
    .serv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chooseset img { max-width: 240px; }
}

@media (max-width: 640px) {
    main > section { padding: 40px 16px; }
    .layout { padding-top: 104px; }
    .sector1 { gap: 24px; }
    .banner { padding: 0; }
    .banner h2 { letter-spacing: -0.5px; }
    .slider { min-height: 410px; border-radius: 20px; }
    .slider .content { left: 16px; right: 16px; bottom: 80px; padding: 16px; }
    .slider .prev { left: 20px; }
    .slider .next { left: 76px; }
    .serv,
    .fac,
    .chooseset1 > div { grid-template-columns: minmax(0, 1fr); }
    .about .cont,
    .chooseset { gap: 28px; }
    .fac > div > div { padding: 20px; gap: 14px; }
    .fac > div > div > div:first-child { flex-basis: 44px; height: 44px; border-radius: 12px; }
    .fac svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .serv > div { transition: none; }
    .serv > div:hover { transform: none; }
}

/* Independent testimonial carousel. */
.testimonials { background: #fff; }
.testimonial-intro,
.testimonial-notice { text-align: center; max-width: 700px; margin: 0 auto 14px; color: var(--home-muted); }
.testimonial-notice { font-size: 13px; }
.testimonial-carousel { max-width: 860px; margin: 28px auto 0; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.testimonial-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: #eff8f5;
    color: var(--home-teal);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.testimonial-controls button:hover { background: #ffe8d5; }
.testimonial-card {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--home-border);
    border-top: 4px solid #029e90;
    border-radius: 24px;
    background: linear-gradient(135deg, #f0faf6, #fff9f1);
    box-shadow: var(--home-shadow);
    text-align: center;
}
.testimonial-stars { color: #975900; font-size: 26px; letter-spacing: 5px; margin-bottom: 20px; }
.testimonial-card blockquote { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.8; color: var(--home-ink); }
.testimonial-card figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; text-align: left; }
.testimonial-avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #d9eee7; color: var(--home-teal); font-weight: 700; }
.testimonial-card figcaption strong { display: block; font-size: 15px; }
.testimonial-card figcaption span > span { display: block; font-size: 12px; color: var(--home-muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.testimonial-dots button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.testimonial-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9aafaa; }
.testimonial-dots button[aria-current="true"]::before { width: 24px; border-radius: 8px; background: var(--home-teal); }
.testimonials [hidden] { display: none; }
