/**
 * Modern refresh: typography, spacing, cards, buttons.
 * Loaded after the theme CSS; remove the <link> to revert.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand: #26424d;
    --brand-dark: #1b3038;
    --brand-light: #345a68;
    --sand: #d4b08c;
    --sand-dark: #b8997b;
    --ink: #22282b;
    --muted: #5d676b;
    --line: #e7e3dd;
    --surface: #f8f6f3;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(20, 30, 35, .05), 0 8px 24px rgba(20, 30, 35, .08);
    --shadow-hover: 0 2px 4px rgba(20, 30, 35, .06), 0 16px 40px rgba(20, 30, 35, .16);
    --nav-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

body.navbar-is-fixed-top { margin-top: var(--nav-h); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: inherit;
    color: inherit;
    line-height: 1.25;
    letter-spacing: -.01em;
}

h1, h2, h3 { font-weight: 700; text-transform: none; }

h1, .h1 { font-size: 40px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 22px; }
h4, .h4 { font-size: 18px; font-weight: 600; }

p { margin-bottom: 1.1em; }

a { transition: color .2s ease; }

img { border-radius: var(--radius-sm); }

.container { max-width: 1200px; }

/* ---------- Buttons ---------- */
.btn {
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 0;
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(38, 66, 77, .25);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--brand-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(38, 66, 77, .32);
}

.btn-secondary,
.btn-secondary:focus {
    background-color: var(--sand);
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(212, 176, 140, .35);
}

.btn-secondary:hover,
.btn-secondary:active {
    background-color: #e0c29f;
    color: var(--ink);
    transform: translateY(-2px);
}

.content-section .btn { margin-top: 32px; }

/* ---------- Navbar ---------- */
.navbar-default {
    background-color: rgba(38, 66, 77, .97);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .14);
    min-height: var(--nav-h);
}

.navbar .logo { margin-top: 0; margin-bottom: 0; }
.logo img { height: 44px; margin: 16px 0; border-radius: 0; }

.navbar-toggle { margin-top: 21px; border-color: rgba(255, 255, 255, .3) !important; }

@media (min-width: 768px) {
    .navbar-nav > li > a {
        padding: 28px 18px;
        line-height: 20px;
    }
}

.navbar-default .navbar-nav > li > a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    position: relative;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus { color: #fff; text-decoration: none; background: transparent; }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #fff;
    background: transparent;
}

@media (min-width: 768px) {
    .navbar-default .navbar-nav > li > a::after {
        content: '';
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 18px;
        height: 2px;
        background: var(--sand);
        transform: scaleX(0);
        transition: transform .25s ease;
    }
    .navbar-default .navbar-nav > li > a:hover::after,
    .navbar-default .navbar-nav > .active > a::after {
        transform: scaleX(1);
    }
}

@media (max-width: 767px) {
    .navbar-default .navbar-collapse { background: var(--brand-dark); }
    .navbar-default .navbar-nav > .active > a { color: var(--sand) !important; }
}

/* ---------- Hero ---------- */
#intro {
    margin-top: 0;
    padding: 110px 0;
    background-position: center center;
}

#intro .intro-card {
    display: inline-block;
    max-width: 720px;
    padding: 44px 48px 40px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    color: var(--ink);
}

#intro h1 {
    margin: 0 0 14px;
    font-size: 42px;
    color: var(--brand);
}

#intro .intro-lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 26px;
}

#intro .btn { margin: 6px 6px 0; }

@media (max-width: 767px) {
    #intro { padding: 48px 0; }
    #intro .intro-card { padding: 28px 22px; }
    #intro h1 { font-size: 28px; }
    #intro .intro-lead { font-size: 16px; }
}

/* ---------- Sections ---------- */
.content-section {
    padding-top: 96px;
    padding-bottom: 96px;
}

@media (max-width: 767px) {
    .content-section { padding-top: 56px; padding-bottom: 56px; }
    h1, .h1 { font-size: 30px; }
    h2, .h2 { font-size: 24px; }
}

.brown-bg { background: var(--surface); }

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

/* section headings with a short accent bar */
#services > .row:first-child h2,
.content-section.text-center > .container > .row:first-child h2 {
    margin: 0 0 48px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 26px;
}

#services > .row:first-child h2::after,
.content-section.text-center > .container > .row:first-child h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: var(--sand);
}

/* ---------- Home: services ---------- */
#services > .row.no-gutters:nth-child(2) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
}

#services > .row.no-gutters:nth-child(2) > [class*="col-"] { padding: 12px; float: none; }

.service-item-wrapper {
    height: 100%;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: box-shadow .3s ease, transform .3s ease;
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* keep rounded corners while scaling */
}

.service-item-wrapper:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.service-item { min-height: 320px; padding: 0 36px 40px; background-color: #fff; }

.bg1, .bg2, .bg3 { background: #fff; }

.service-item h4 { padding: 48px 0 18px; }

.service-item h4 a { font-size: 22px; font-weight: 700; color: var(--ink); }

.service-item__text p a { color: var(--muted); }

.service-item-wrapper:hover .service-item__text p a { color: rgba(255, 255, 255, .92); }

.service-item .btn { margin-top: 12px; }

/* ---------- Home: advantages ---------- */
#adventages .item {
    padding: 36px 20px 24px;
    border-radius: var(--radius);
    transition: background-color .25s ease, box-shadow .25s ease;
}

#adventages .item:hover { background: #fff; box-shadow: var(--shadow); }

#adventages .item--image svg { width: 52px; height: 52px; color: var(--brand); }

#adventages .item h4 { font-size: 15px; letter-spacing: .06em; margin-top: 14px; }

#adventages .item--desc p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Contact ---------- */
#contact .col-md-4 { margin-bottom: 16px; }

.contact-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
}

.contact-item svg { color: var(--brand); }

.contact-item span { font-size: 16px; font-weight: 500; }

.contact-item a { color: var(--ink); }

.contact-item a:hover { color: var(--brand-light); }

@media (min-width: 992px) {
    #contact .row:nth-child(2) > .col-md-12 { display: flex; }
    #contact .col-md-4 { float: none; display: flex; flex-direction: column; }
    .contact-item { flex: 1; display: flex; align-items: center; justify-content: center; }
}

/* ---------- "What is terrazzo" banner ---------- */
#kas-yra-teracas { padding: 56px 0; }

#kas-yra-teracas p {
    margin: 0;
    font-size: 18px;
    line-height: 2.6;
}

#kas-yra-teracas a.btn { margin: 0 0 0 24px; vertical-align: middle; }

@media (max-width: 767px) {
    #kas-yra-teracas p { line-height: 1.6; }
    #kas-yra-teracas a.btn { display: table; margin: 18px auto 0; }
}

/* ---------- Inner pages ---------- */
.main-container.content-section { padding-top: 56px; padding-bottom: 96px; }

.breadcrumb {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb > .active { color: var(--ink); }
.breadcrumb > li + li::before { content: '›'; color: var(--sand-dark); padding: 0 10px; }

.page-header {
    border-bottom: 0;
    margin: 0 0 36px;
    padding: 0;
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--brand);
}

.page-header::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 18px;
    border-radius: 4px;
    background: var(--sand);
}

.region-content .field--name-body h2 { font-size: 24px; margin-top: 48px; margin-bottom: 14px; }
.region-content .field--name-body h3 { font-size: 20px; margin-top: 36px; margin-bottom: 12px; }
.region-content .field--name-body h4 {
    font-size: 17px;
    margin-top: 36px;
    margin-bottom: 10px;
    text-transform: none;
    color: var(--brand);
}
.region-content .field--name-body > :first-child { margin-top: 0; }

.region-content ul,
.region-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.region-content li { margin-bottom: .45em; }
.region-content li::marker { color: var(--sand-dark); }

.region-content table { margin: 16px 0 28px; }
.region-content td, .region-content th { padding: 6px 24px 6px 0; vertical-align: top; }

/* Paslaugos: service cards */
.service-block-inner { display: flex; flex-wrap: wrap; margin-bottom: 40px; }
.service-block-inner > [class*="col-"] { float: none; margin-bottom: 24px; }

.service-block-inner .service-item {
    height: 100%;
    min-height: 0;
    padding: 0 0 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-block-inner .service-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.service-block-inner .service-item img { border-radius: 0; width: 100%; transition: transform .6s ease; }
.service-block-inner .service-item:hover img { transform: scale(1.05); }
.service-block-inner .service-item__image { overflow: hidden; }
.service-block-inner .service-item h4 { padding: 26px 24px 10px; }
.service-block-inner .service-item__text { padding: 0 28px; }

/* Atlikti darbai: project cards */
.view-atlikti-darbai .view-content { display: flex; flex-wrap: wrap; }
.view-atlikti-darbai .views-row { float: none; margin-bottom: 30px; }

article.atlikti-darbai.teaser {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

article.atlikti-darbai.teaser:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

article.atlikti-darbai.teaser .content { display: contents; }

article.atlikti-darbai.teaser .field--name-field-pagrindine-nuotrauka { order: 1; overflow: hidden; }
article.atlikti-darbai.teaser .field--name-field-pagrindine-nuotrauka img { border-radius: 0; width: 100%; transition: transform .6s ease; }
article.atlikti-darbai.teaser:hover .field--name-field-pagrindine-nuotrauka img { transform: scale(1.05); }

article.atlikti-darbai.teaser h2 { order: 2; margin: 0; padding: 22px 24px 6px; font-size: 20px; }
article.atlikti-darbai.teaser h2 a { color: var(--ink); }
article.atlikti-darbai.teaser h2 a:hover { color: var(--brand-light); }

article.atlikti-darbai.teaser .field--name-body { order: 3; padding: 0 24px 22px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Project page gallery */
.field--name-field-nuotraukos.row { display: flex; flex-wrap: wrap; }
.field--name-field-nuotraukos > .field--item { float: none; margin-bottom: 30px; }
.field--name-field-nuotraukos a.colorbox { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.field--name-field-nuotraukos a.colorbox img { border-radius: 0; width: 100%; transition: transform .6s ease; }
.field--name-field-nuotraukos a.colorbox:hover img { transform: scale(1.06); }

#cboxContent, #cboxLoadedContent { border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.footer { background: #1d2427; border-top: 0; padding: 32px 0; }
.footer p { margin: 0; font-size: 13px; letter-spacing: .04em; color: #8d989c; }
.footer a { color: var(--sand); }

@media (max-width: 991px) {
    .footer .text-left, .footer .text-right { text-align: center; margin: 4px 0; }
}

/* ---------- Cookie banner ---------- */
.cc_banner-wrapper .cc_banner {
    font-family: inherit !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    width: auto !important;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px !important;
    border-radius: var(--radius);
    background: #fff !important;
    box-shadow: var(--shadow-hover);
    color: var(--muted) !important;
}

.cc_banner .cc_message { font-size: 14px !important; line-height: 1.5 !important; }
.cc_banner .cc_more_info { color: var(--brand) !important; font-weight: 600; }

.cc_banner .cc_btn {
    border-radius: 999px !important;
    background: var(--sand) !important;
    color: var(--ink) !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    padding: 10px 26px !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 24px !important;
}

@media (min-width: 600px) {
    .cc_banner.cc_container { display: flex; align-items: center; flex-direction: row-reverse; justify-content: space-between; }
}

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
    .btn { white-space: normal; max-width: 100%; padding: 12px 24px; line-height: 1.4; }
    .cc_banner.cc_container { display: flex; flex-direction: column-reverse; }
    .cc_banner .cc_btn { float: none !important; display: block !important; margin: 12px 0 0 !important; text-align: center; }
    .cc_banner-wrapper .cc_banner { padding: 14px 18px !important; }
}

/* wide tables (e.g. cookie list) scroll inside their own box on phones */
@media (max-width: 767px) {
    .region-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
