/*
Theme Name: Nemari
Theme URI: https://nemari.lt/
Author: Nemari
Version: 1.0.0
Text Domain: nemari
*/

:root { --violet: #a590b2; --violet-hover: #ae82c9; --ink: #272727; --muted: #666; --paper: #fff; --line: #ded7e2; --container: 1200px; color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); font-size: 16px; line-height: 1.2; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1.2rem; font-weight: 400; line-height: 1.8rem; }
p { margin: 0 0 1rem; }
.site-container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.top-logo { min-height: 380px; display: grid; place-items: center; background-color: #d6d0da; background-repeat: no-repeat; background-position: center; background-size: cover; }
.main-logo { width: 420px; display: block; text-align: center; }
.header-scroll-sentinel { height: 1px; margin-top: -1px; }
.site-header { position: sticky; top: 0; z-index: 20; border-block: 1px solid var(--violet); background: #fff; }
.header-content { height: 50px; min-height: 0; display: flex; align-items: center; gap: .8rem; transition: height .2s ease; }
.compact-logo { display: block; flex: 0 0 0; width: 0; overflow: hidden; opacity: 0; transform: scale(.8); transform-origin: left center; transition: width .2s ease, opacity .2s ease, transform .2s ease; }
.compact-logo img { display: block; width: 90px; max-width: none; }
.primary-navigation { min-width: 0; flex: 1 1 auto; }
.site-header.is-scrolled .header-content { height: 110px; }
.site-header.is-scrolled .compact-logo { flex-basis: 90px; width: 90px; opacity: 1; transform: scale(1); }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 20px; }
.primary-menu > li { position: relative; }
.primary-menu a, .primary-menu .menu-item-has-children > a { display: block; padding: 0; color: #444; line-height: 48px; text-decoration: none; white-space: nowrap; }
.primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a { padding-inline: 5px; color: #fff; background: var(--violet); }
.primary-menu .sub-menu { position: absolute; left: -1px; top: 100%; z-index: 30; display: none; min-width: 250px; padding: 8px 0; border-radius: 0 0 5px 5px; background: var(--violet); box-shadow: 0 8px 16px #0002; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { padding: 9px 15px; color: #fff; white-space: normal; }
.primary-menu .sub-menu a:hover { background: #917ba0; }
.always-open { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.always-open a { text-decoration: none; }
.phone-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 3px; background: var(--violet); color: #fff; font-size: 20px; }
.language-switcher { display: flex; gap: 10px; }
.language-switcher a { color: #333; font-size: .9rem; text-decoration: none; }
.language-switcher .is-active { color: var(--violet); font-weight: 700; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; }
.intro-section { padding: 38px 0 24px; background: #fff var(--nemari-pux) center; }
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.intro-card h1 { min-height: 40px; font-size: 1.5rem; text-transform: uppercase; }
.intro-card > div { min-height: 235px; line-height: 1.45; overflow: hidden; }
.button, .contact-form button { display: inline-block; border: 1px solid var(--violet); border-radius: 3px; padding: 8px 16px; background: var(--violet); color: var(--ink); font: inherit; font-size: 13px; line-height: 20px; text-decoration: none; cursor: pointer; }
.button:hover, .contact-form button:hover { border-color: var(--violet-hover); background: var(--violet-hover); }
.intro-card .button { display: block; width: max-content; margin: 7px auto 0; }
.services-section { padding: 34px 0 50px; border-top: 1px solid var(--violet); background-repeat: repeat; }
.service-page-section { padding-top: 48px; }
.services-section blockquote { max-width: 900px; margin: 0 auto 35px; padding: 0 0 0 22px; border-left: 5px solid var(--violet); font-size: 1.2rem; font-style: italic; line-height: 1.5; }
blockquote cite { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; font-style: normal; }
.services-section h2, .partners-section h2 { text-align: center; text-transform: uppercase; }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.featured-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 42px; }
.featured-service-card { min-height: 235px; padding: 15px 12px; background: #f9f5f3; box-shadow: 0 0 15px 5px #bfbfbf; text-align: center; }
.featured-service-card img { width: 70px; height: 70px; object-fit: contain; }
.featured-service-card h3 { margin: 14px 0 10px; color: #666; font-size: .95rem; font-weight: 400; line-height: 1.2; text-transform: uppercase; }
.featured-service-card p { color: #555; font-size: .92rem; line-height: 1.35; }
.service-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin: 0 0 45px; }
.service-list { margin: 0; padding: 0; list-style: none; }
.service-list li { position: relative; margin: 0 0 13px; padding-left: 34px; color: #444; line-height: 1.35; }
.service-list li::before { position: absolute; top: 0; left: 0; content: '↗'; color: var(--violet); font-size: 1.3rem; }
.service-card { display: grid; min-height: 135px; place-items: start center; align-content: start; gap: 10px; padding: 10px; background: #f9f5f3; box-shadow: 0 0 15px 5px #bfbfbf; text-align: center; transition: box-shadow .2s ease; }
.service-card:nth-child(-n+5) { min-height: 235px; }
.stone-services .service-card:nth-child(-n+5) { min-height: 135px; }
.service-card:hover { box-shadow: 0 0 15px 16px #dfdae1; }
.service-card img { width: 70px; height: 70px; object-fit: contain; }
.service-card span { padding-top: 7px; color: #666; font-size: .95rem; line-height: 1.2; text-transform: uppercase; }
.partners-section { padding: 48px 0; background: #414141; color: #fff; }
.partners-section h2 { margin-bottom: 58px; color: #fff; font-size: 1.1rem; text-align: center; text-transform: none; }
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; }
.partner-introduction { grid-column: 1 / 4; grid-row: 1; padding-right: 45px; }
.partner-introduction h3 { margin-bottom: 26px; font-size: 1.2rem; font-weight: 400; }
.partner-introduction p { max-width: 510px; margin: 0; line-height: 1.32; }
.partner-logo { display: grid; place-items: center; min-height: 125px; }
.partner-logo img { display: block; max-width: 100%; max-height: 80px; object-fit: contain; }
.partner-logo:nth-child(2) { grid-column: 4 / 7; grid-row: 1; }
.partner-logo:nth-child(3) { grid-column: 1 / 4; grid-row: 2; }
.partner-logo:nth-child(4) { grid-column: 4 / 5; grid-row: 2; }
.partner-logo:nth-child(5) { grid-column: 5 / 6; grid-row: 2; }
.partner-logo:nth-child(6) { grid-column: 6 / 7; grid-row: 2; }
.partner-logo:nth-child(2) img, .partner-logo:nth-child(3) img { max-height: 200px; }
.partner-page-intro { padding: 50px 0; border-top: 1px solid var(--violet); background-repeat: repeat; }
.partner-page-intro h1, .other-partners h2 { margin-bottom: 34px; font-size: 1.1rem; font-weight: 400; text-align: center; }
.partner-page-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.partner-page-grid h2 { margin-bottom: 24px; font-size: 1.2rem; font-weight: 400; }
.partner-page-grid p { max-width: 510px; line-height: 1.35; }
.partner-page-logo { display: grid; place-items: center; }
.partner-page-logo img { max-width: 250px; max-height: 180px; object-fit: contain; }
.other-partners { padding: 48px 0; background: #414141; color: #fff; }
.other-partners h2 { color: #fff; }
.other-partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 35px; }
.other-partners-grid > div { display: grid; min-height: 110px; place-items: center; }
.other-partners-grid img { max-width: 100%; max-height: 90px; object-fit: contain; }
.site-main { min-height: 45vh; padding: 52px 0; }
.content-entry { max-width: 940px; margin-inline: auto; }
.entry-title, .page-heading h1 { font-size: 2rem; text-transform: uppercase; }
.entry-content { color: #444; line-height: 1.55; }
.entry-content > * { max-width: 100%; }
.entry-content img { display: block; margin: 1.25rem auto; }
.entry-content a { color: #725c81; }
.entry-content blockquote { margin: 1.5rem 0; padding-left: 20px; border-left: 5px solid var(--violet); font-style: italic; }
.blog-index { max-width: 900px; }
.blog-intro { padding: 36px 0; border-bottom: 1px solid var(--violet); background: var(--nemari-pux) repeat #fff; }
.blog-intro blockquote { max-width: 940px; margin: 0 auto; padding-left: 22px; border-left: 5px solid var(--violet); color: #444; font-style: italic; line-height: 1.5; }
.blog-card { padding: 0 0 42px; margin-bottom: 42px; border-bottom: 50px solid transparent; border-image: var(--nemari-hr) 90 round; }
.blog-card h2 { margin-bottom: .3rem; font-size: 1.55rem; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 0 0 1.2rem; color: #777; font-size: .9rem; }
.blog-meta dt { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); }
.blog-meta dd { margin: 0; }
.blog-meta a { color: inherit; }
.blog-introtext img { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; }
.blog-entry time { display: block; margin-bottom: 1.2rem; color: #777; font-size: .9rem; }
.read-more { float: right; margin-top: 8px; }
.blog-card::after { display: block; clear: both; content: ''; }
.site-contact { padding: 50px 0; background: var(--nemari-pux) repeat #f6f1f4; }
.contact-details { padding-top: 0; background-color: #fff; }
.contact-details .contact-grid { padding: 45px 0 52px; border-top: 1px solid var(--line); }
.contact-details h2 { color: var(--violet); text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-row { display: flex; align-items: center; gap: 20px; margin: 16px 0; color: inherit; text-decoration: none; }
.contact-row > span { display: grid; width: 54px; height: 54px; place-items: center; background: var(--violet); color: #fff; font-size: 24px; }
.contact-row strong { color: var(--violet); font-weight: 400; }
.contact-row small { display: block; margin-top: 6px; color: #444; font-size: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #ccc; border-radius: 3px; padding: 10px; background: #fff; color: #444; font: inherit; }
.contact-form input:hover, .contact-form input:focus, .contact-form textarea:hover, .contact-form textarea:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 6px #a590b2; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form textarea { min-height: 112px; margin-bottom: 12px; resize: vertical; }
.form-trap { position: absolute; left: -10000px; }
.form-notice { padding: 10px; background: #e8f5e8; }
.form-notice.is-error { background: #f8e5e5; }
.nemari-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 28px 0; }
.nemari-column { min-width: 0; }
.nemari-contact-card { display: flex; align-items: center; gap: 16px; margin: 12px 0; color: inherit; text-decoration: none; }
.nemari-contact-card > span { display: grid; width: 52px; height: 52px; place-items: center; flex: 0 0 auto; background: var(--violet); color: #fff; font-size: 24px; }
.nemari-contact-card strong { color: var(--violet); font-weight: 400; }
.nemari-contact-card small { display: block; margin-top: 6px; color: #444; font-size: 1rem; }
.nemari-quote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--violet); color: #444; font-size: 1.05rem; font-style: italic; line-height: 1.55; }
.nemari-quote cite { display: block; margin-top: 9px; color: var(--muted); font-size: .95rem; font-style: normal; }
.review-notice { padding: 32px 0; border-bottom: 1px solid var(--violet); background: var(--nemari-pux) repeat #fff; }
.review-notice p { max-width: 940px; margin: 0 auto; padding-left: 22px; border-left: 5px solid var(--violet); font-style: italic; line-height: 1.5; }
.reviews-content .nemari-quote { margin-block: 0 25px; }
.site-footer { padding: 30px 0 0; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; min-height: 180px; }
.footer-grid > a:first-child { width: 150px; }
.footer-grid p { text-align: center; line-height: 1.5; }
.facebook-link { padding: 18px; border: 1px solid #ddd; color: #506399; text-align: center; text-decoration: none; }
.cookie-banner { position: fixed; right: 15px; bottom: 15px; z-index: 50; max-width: 540px; padding: 15px; background: #333; color: #fff; box-shadow: 0 4px 20px #0005; }
.cookie-banner p { margin-right: 10px; }
.cookie-banner button { border: 1px solid #fff; padding: 8px 14px; background: transparent; color: #fff; cursor: pointer; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } .featured-services-grid { grid-template-columns: repeat(2, 1fr); } .service-card:nth-child(-n+5) { min-height: 180px; } .stone-services .service-card:nth-child(-n+5) { min-height: 135px; } }
@media (max-width: 767px) { .site-container { width: min(var(--container), calc(100% - 28px)); } .top-logo { min-height: 250px; } .main-logo { width: 280px; } .header-content { display: grid; height: auto; min-height: 54px; grid-template-columns: auto 1fr auto; } .menu-toggle { display: inline-block; } .compact-logo { width: 54px; flex-basis: 54px; opacity: 1; transform: none; justify-self: center; } .compact-logo img { width: 54px; } .always-open { font-size: .78rem; } .phone-icon { width: 28px; height: 28px; font-size: 15px; } .primary-navigation { display: none; grid-column: 1 / -1; } .primary-navigation.is-open { display: block; } .primary-menu, .primary-menu .sub-menu { display: block; position: static; width: 100%; box-shadow: none; background: transparent; } .primary-menu a, .primary-menu .sub-menu a { padding: 11px 5px; line-height: 1.2; color: #333; } .primary-menu .sub-menu { padding-left: 18px; } .primary-menu > .current-menu-item > a { color: #fff; } .intro-grid, .contact-grid, .nemari-row, .service-list-grid, .partner-page-grid { grid-template-columns: 1fr; gap: 28px; } .intro-card > div { min-height: auto; } .services-grid, .featured-services-grid, .other-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .service-card, .service-card:nth-child(-n+5), .stone-services .service-card:nth-child(-n+5) { min-height: 145px; } .featured-service-card { min-height: 210px; } .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .partner-introduction, .partner-logo:nth-child(2), .partner-logo:nth-child(3), .partner-logo:nth-child(4), .partner-logo:nth-child(5), .partner-logo:nth-child(6) { grid-column: auto; grid-row: auto; padding: 0; } .partner-introduction { grid-column: 1 / -1; } .partner-logo:nth-child(2), .partner-logo:nth-child(3) { grid-column: span 2; } .footer-grid { grid-template-columns: 1fr; justify-items: center; padding-bottom: 25px; } .form-fields { grid-template-columns: 1fr; } }
