/* --- Reset & Base (matching yoo_aurora/Timber theme) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font: 300 15px/22px 'Roboto', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #666;
}

body { margin: 0; }

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

a {
    color: #668cc6;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #546b8e;
    text-decoration: underline;
}

b, strong { font-weight: bold; }

p { margin: 0 0 25px; }

h1, h2, h3, h4 {
    font-weight: 300;
    color: #333;
    margin: 0 0 25px;
    line-height: 1.3;
}

h1 { font-size: 36px; line-height: 42px; }
h3 { font-size: 18px; line-height: 24px; }

figure { margin: 0; }

table { border-collapse: collapse; }

/* --- Layout: Sidebar + Content --- */
.wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1450px;
}

/* Sidebar */
.sidebar {
    width: 33.333%;
    position: relative;
    background: #3d3e50 url('../img/sidebar-bg.jpg') no-repeat;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    flex-shrink: 0;
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.sidebar-inner {
    position: sticky;
    top: 0;
    padding: 40px 0;
    text-align: center;
}

.sidebar-logo {
    display: inline-block;
    margin: 0 auto 40px;
}

.sidebar-logo img {
    max-width: 280px;
    display: block;
    margin: 0 auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    max-width: 240px;
    margin: 0 auto;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    transition: color 0.2s;
}

.sidebar-nav-link:hover {
    color: #fff;
    text-decoration: none;
}

.sidebar-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.2s;
}

.sidebar-nav-link:hover::after,
.sidebar-nav-link.active::after {
    width: 30px;
}

.sidebar-nav-link.active {
    color: #fff;
}

/* Content area */
.content-wrapper {
    flex: 1;
    position: relative;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 66px;
}

.content-container {
    padding: 60px;
}

.grid-divider {
    border: none;
    border-top: none;
    margin: 0 0 25px;
}

/* Breadcrumb */
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0 0 25px;
    padding: 0;
    font-size: 12px;
}

.breadcrumb li::after {
    content: "/";
    margin: 0 8px;
    color: #999;
}

.breadcrumb li:last-child::after { display: none; }

.breadcrumb a {
    color: #668cc6;
}

.breadcrumb .active {
    color: #999;
}

/* Article */
article h1 {
    font-size: 36px;
    font-weight: 300;
    line-height: 42px;
    margin-bottom: 25px;
}

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

/* Content bottom (service cards, images, map) */
.content-bottom {
    padding: 60px;
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- Service Cards Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-card {
    display: block;
    text-decoration: none;
}

.service-card:hover { text-decoration: none; }

/* Caption hover effect (matching tm-caption) */
.caption {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #333;
    border-radius: 1px;
}

.caption img {
    display: block;
    width: 100%;
    opacity: 1;
    transition: all 0.35s;
}

.caption figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.caption figcaption::before,
.caption figcaption::after {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    content: "";
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
}

.caption figcaption::before {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: scale(0, 1);
}

.caption figcaption::after {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    transform: scale(1, 0);
}

.caption h3 {
    margin: 0;
    padding: 3px 6px;
    background: #333;
    border-radius: 1px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.35s;
    z-index: 1;
}

.caption:hover img {
    opacity: 0.5;
    transform: scale(1.1);
}

.caption:hover figcaption::before,
.caption:hover figcaption::after {
    opacity: 1;
    transform: scale(1);
}

.caption:hover h3 {
    background: #fff;
    color: #333;
}

/* --- Offer page table --- */
.offer-table {
    width: 100%;
}

.offer-table td {
    vertical-align: top;
    padding: 0 15px 15px 0;
    width: 33.333%;
}

.accent { color: #d26b3e; }
.red { color: red; }

.offer-image {
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Contact page table --- */
.contact-table {
    width: 100%;
}

.contact-table td {
    vertical-align: top;
    padding: 0 15px 15px 0;
    width: 33.333%;
}

/* --- Footer --- */
.footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
    text-align: center;
}

.totop {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.totop:hover {
    border-color: #546b8e;
    color: #546b8e;
    text-decoration: none;
}

/* --- Mobile Header --- */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #3d3e50;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo img {
    height: 50px;
    width: auto;
}

.mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #3d3e50;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.active { display: block; }

.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fff;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 959px) {
    .sidebar { display: none; }
    .mobile-header { display: flex; }
    .wrapper { flex-direction: column; }

    .content-container,
    .content-bottom {
        padding: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .offer-table,
    .contact-table {
        display: block;
    }

    .offer-table tr,
    .contact-table tr {
        display: block;
    }

    .offer-table td,
    .contact-table td {
        display: block;
        width: 100%;
        padding: 0 0 20px;
    }

    .caption figcaption::before,
    .caption figcaption::after {
        top: 15px;
        right: 15px;
        bottom: 15px;
        left: 15px;
    }
}
