@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Titillium+Web:wght@400;600;700;900&display=swap');

:root {
    --green: #018f55;
    --green-dark: #087047;
    --teal: #58b9bc;
    --orange: #ff9f3d;
    --ink: #1f2a2e;
    --muted: #66737a;
    --line: #e4ecef;
    --soft: #f7fbfc;
    --white: #ffffff;
    --shadow: 0 18px 40px rgba(28, 64, 75, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-wrapper {
    min-width: 300px;
    overflow: hidden;
}

.auto-container {
    width: min(1200px, calc(100% - 30px));
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.header-top {
    background: var(--green);
    color: var(--white);
    font-size: 14px;
}

.header-top-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.contact-list,
.social-list,
.main-menu ul,
.user-links,
.contact-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.contact-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mini-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
}

.social-list {
    display: flex;
    gap: 9px;
}

.social-list a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 180ms ease;
}

.social-list a:hover,
.social-list a:focus {
    background: var(--white);
    color: var(--green);
}

.header-lower {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(20, 46, 55, 0.06);
}

.main-box {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo img {
    width: 214px;
    height: auto;
}

.main-menu {
    margin-left: auto;
}

.main-menu > ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 34px 0;
    color: #233034;
    font-weight: 700;
    transition: 180ms ease;
}

.main-menu li.current > a,
.main-menu a:hover,
.main-menu a:focus {
    color: var(--green);
}

.has-dropdown > a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
}

.has-dropdown > ul {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    width: 240px;
    padding: 12px 0;
    border-top: 3px solid var(--green);
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 180ms ease;
}

.has-dropdown:hover > ul,
.has-dropdown:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown li a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--ink);
}

.theme-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 0;
    border-radius: 3px;
    background: var(--green);
    color: var(--white);
    font-weight: 800;
    text-align: center;
    transition: 180ms ease;
}

.theme-btn:hover,
.theme-btn:focus {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.theme-btn.full {
    width: 100%;
}

.mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--green);
    font-size: 24px;
    line-height: 1;
}

.mobile-only {
    display: none;
}

.banner-section-one {
    background: var(--soft);
}

.slide-item {
    min-height: 520px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.content-outer {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.content-box {
    width: min(560px, 100%);
    padding: 30px 0 80px;
}

.content-box .title,
.sub-title {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--green);
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.content-box h1 {
    margin: 0;
    color: #111b20;
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 900;
}

.content-box p {
    max-width: 520px;
    color: var(--muted);
    font-size: 18px;
}

.top-features {
    position: relative;
    background: var(--green);
    padding: 0 0 48px;
}

.top-features::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 143, 85, 0.98), rgba(20, 155, 128, 0.92));
}

.feature-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    transform: translateY(-42px);
    margin-bottom: -42px;
}

.feature-block {
    min-height: 240px;
    padding: 38px 32px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: 180ms ease;
}

.feature-block:hover {
    transform: translateY(-4px);
}

.feature-icon,
.service-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(1, 143, 85, 0.1);
    color: var(--green);
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.feature-block h4,
.service-card h3 {
    margin: 0 0 12px;
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 23px;
    line-height: 1.2;
}

.feature-block p,
.service-card p,
.about-content p,
.about-page-grid p,
.detail-content p,
.appointment-copy p {
    margin: 0 0 20px;
    color: var(--muted);
}

.about-section,
.inner-section {
    padding: 96px 0;
}

.about-grid,
.about-page-grid,
.detail-grid,
.contact-grid,
.appointment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 58px;
    align-items: center;
}

.sec-title {
    margin-bottom: 28px;
}

.sec-title h2,
.page-title h1,
.appointment-copy h2,
.detail-content h2,
.admin-topbar h1 {
    margin: 0;
    font-family: "Titillium Web", Arial, sans-serif;
    line-height: 1.18;
    font-weight: 800;
}

.sec-title h2 {
    font-size: clamp(32px, 4vw, 46px);
}

.divider {
    width: 66px;
    height: 4px;
    display: block;
    margin-top: 18px;
    border-radius: 10px;
    background: var(--green);
}

.text-center .divider {
    margin-left: auto;
    margin-right: auto;
}

.about-images {
    position: relative;
    min-height: 520px;
}

.about-image {
    position: absolute;
    filter: drop-shadow(0 18px 22px rgba(18, 44, 50, 0.14));
}

.about-image.image-1 {
    width: 58%;
    top: 0;
    left: 0;
}

.about-image.image-2 {
    width: 58%;
    right: 0;
    bottom: 28px;
}

.about-image.image-3 {
    width: 38%;
    left: 30%;
    top: 46%;
}

.services-section {
    padding: 92px 0;
    background: var(--soft);
}

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

.service-card {
    min-height: 250px;
    display: block;
    padding: 36px 30px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(22, 62, 71, 0.05);
    transition: 180ms ease;
}

.service-card:hover,
.service-card:focus {
    border-color: rgba(1, 143, 85, 0.28);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card:hover .service-icon,
.service-card:focus .service-icon,
.detail-icon {
    background: var(--green);
    color: var(--white);
}

.page-title {
    position: relative;
    padding: 96px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.page-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 66, 72, 0.78);
}

.page-title .auto-container {
    position: relative;
}

.page-title h1 {
    font-size: clamp(38px, 5vw, 58px);
}

.page-title p {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.about-card,
.side-menu,
.contact-info-panel,
.appointment-copy {
    padding: 36px;
    border-radius: 4px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.about-card h3,
.side-menu h3,
.contact-info-panel h2 {
    margin-top: 0;
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 28px;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.side-menu li + li {
    border-top: 1px solid var(--line);
}

.side-menu a:not(.theme-btn) {
    display: block;
    padding: 12px 0;
    color: var(--ink);
    font-weight: 700;
}

.side-menu a:hover {
    color: var(--green);
}

.detail-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.detail-content {
    font-size: 17px;
}

.detail-content h2 {
    margin-bottom: 20px;
    font-size: 42px;
}

.site-form,
.admin-form {
    display: grid;
    gap: 18px;
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7e3e6;
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 143, 85, 0.12);
}

.alert {
    padding: 13px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.success {
    color: #0d5c3d;
    background: #ddf6eb;
}

.alert.error {
    color: #8a1c1c;
    background: #fde5e5;
}

.contact-info-panel p {
    margin: 0 0 20px;
}

.contact-info-panel strong,
.contact-info-panel span,
.contact-info-panel a {
    display: block;
}

.contact-info-panel strong {
    color: var(--green);
}

.main-footer {
    color: var(--white);
}

.widgets-section {
    background-size: cover;
    background-position: center;
}

.footer-overlay {
    padding: 86px 0 74px;
    background: rgba(11, 57, 62, 0.84);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 1fr 1.1fr;
    gap: 36px;
}

.footer-logo img {
    width: 230px;
    filter: brightness(0) invert(1);
}

.footer-widget h2 {
    position: relative;
    margin: 0 0 26px;
    padding-bottom: 14px;
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 26px;
}

.footer-widget h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--green);
}

.about-widget p,
.footer-widget li,
.footer-widget a {
    color: rgba(255, 255, 255, 0.78);
}

.user-links li {
    margin-bottom: 10px;
}

.user-links a:hover,
.contact-widget a:hover {
    color: var(--white);
}

.contact-widget li {
    margin-bottom: 16px;
}

.contact-widget strong,
.contact-widget span,
.contact-widget a {
    display: block;
}

.contact-widget strong {
    color: var(--white);
}

.footer-social {
    margin-top: 22px;
}

.footer-bottom {
    background: var(--green);
}

.footer-bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 800;
}

.scroll-top {
    position: absolute;
    left: 0;
    top: -24px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: 22px;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--soft);
}

.login-card {
    width: min(430px, 100%);
    padding: 36px;
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-card img {
    width: 210px;
    margin: 0 auto 18px;
}

.login-card h1 {
    margin: 0 0 22px;
    text-align: center;
    font-family: "Titillium Web", Arial, sans-serif;
}

.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: #f3f8f9;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
    background: #10292c;
    color: var(--white);
}

.admin-logo img {
    width: 190px;
    margin: 0 auto 28px;
    filter: brightness(0) invert(1);
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a,
.admin-view-site,
.admin-logout {
    padding: 12px 14px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-view-site:hover,
.admin-logout:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.admin-view-site {
    margin-top: auto;
}

.admin-main {
    padding: 30px;
}

.admin-topbar {
    margin-bottom: 24px;
}

.admin-topbar span {
    color: var(--green);
    font-weight: 800;
}

.admin-topbar h1 {
    font-size: 40px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.admin-panel {
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(22, 62, 71, 0.08);
}

.stat-card {
    padding: 28px;
}

.stat-card span {
    display: block;
    color: var(--green);
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.admin-panel {
    padding: 28px;
    margin-bottom: 24px;
}

.admin-panel h2,
.admin-panel h3 {
    margin-top: 0;
    font-family: "Titillium Web", Arial, sans-serif;
}

.admin-panel h2 {
    font-size: 30px;
}

.admin-panel h3 {
    margin-top: 24px;
    font-size: 22px;
}

.admin-grid {
    display: grid;
    gap: 16px;
}

.admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.repeat-item,
.service-editor,
.inbox-item {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 16px;
    background: #fbfdfd;
}

.inbox-item h3 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.inbox-item h3 span {
    color: var(--muted);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.text-danger {
    border: 0;
    background: transparent;
    color: #b52424;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .main-box {
        gap: 18px;
    }

    .main-menu > ul {
        gap: 18px;
    }

    .services-grid,
    .feature-grid,
    .footer-grid,
    .admin-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .about-page-grid,
    .detail-grid,
    .contact-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        min-height: 440px;
    }

    .admin-body {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .admin-grid.four,
    .admin-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .header-top-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .contact-list {
        gap: 10px;
    }

    .main-box {
        min-height: 78px;
        flex-wrap: wrap;
    }

    .logo img {
        width: 176px;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .main-menu {
        width: 100%;
        display: none;
        order: 5;
        margin-left: 0;
    }

    .main-menu.is-open {
        display: block;
    }

    .main-menu > ul {
        display: grid;
        gap: 0;
        padding: 8px 0 18px;
    }

    .main-menu a {
        padding: 12px 0;
    }

    .has-dropdown > ul {
        position: static;
        width: 100%;
        display: block;
        padding: 0 0 0 16px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .mobile-only {
        display: block;
    }

    .main-box > .theme-btn {
        display: none;
    }

    .slide-item,
    .content-outer {
        min-height: 470px;
    }

    .content-box {
        width: min(470px, 72%);
        padding-bottom: 40px;
    }

    .feature-grid,
    .services-grid,
    .footer-grid,
    .form-grid,
    .admin-cards,
    .admin-grid.two,
    .admin-grid.three,
    .admin-grid.four {
        grid-template-columns: 1fr;
    }

    .about-section,
    .inner-section,
    .services-section {
        padding: 70px 0;
    }

    .admin-body {
        display: block;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-main {
        padding: 20px 15px;
    }
}

@media (max-width: 560px) {
    .auto-container {
        width: min(100% - 24px, 1200px);
    }

    .content-box {
        width: 100%;
        padding: 44px 0 170px;
    }

    .content-box h1 {
        font-size: 38px;
    }

    .about-images {
        min-height: 330px;
    }

    .feature-block,
    .service-card,
    .about-card,
    .side-menu,
    .contact-info-panel,
    .appointment-copy,
    .admin-panel,
    .login-card {
        padding: 24px;
    }
}
