/*
Theme Name: mytheme
Theme URI: https://example.com/mytheme
Author: Your Team
Author URI: https://example.com
Description: Premium, multilingual, RTL-ready, Bootstrap 5 law firm theme. Modern, lightweight, customizable, accessible.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mytheme
Tags: custom-colors, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, blog, two-columns, accessibility-ready, bootstrap
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Root CSS variables (overridden by Customizer) */
:root {
  --mt-color-primary: #0d6efd;
  --mt-color-secondary: #6c757d;
  --mt-color-accent: #198754;
  --mt-color-text: #1a1a1a;
  --mt-color-bg: #ffffff;
  --mt-font-size-base: 18px;
  --mt-line-height: 1.7;
  --mt-container-max: 1320px;
  --mt-logo-h: 56px;
}

html, body { height: 100%; }
body { display:flex; flex-direction:column; min-height:100%; background: var(--mt-color-bg); color: var(--mt-color-text); font-size: var(--mt-font-size-base); line-height: var(--mt-line-height); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main#main { flex: 1 0 auto; }
.site-footer { flex-shrink:0; }
body {    -webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;}

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; letter-spacing: .2px; }
p { margin-bottom: 1rem; }
a { color: var(--mt-color-primary); text-decoration: none; transition: color .25s ease, background .25s ease, opacity .25s ease; }

input, textarea { text-align: left; }

a:hover, a:focus { color: #0a58ca; }

/* Header */
.topbar { background: #f8f9fa; font-size: .95rem; border-bottom: 1px solid rgba(0,0,0,.06); padding-bottom: 10px; padding-top: 10px; transition: padding 0.5s ease;}
.topbar .container { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.topbar-left { display:flex; align-items:center; gap: .75rem; white-space:nowrap; }
.topbar-right { display:flex; align-items:center; gap: 1rem; }
.topbar .icon { color: var(--mt-color-secondary);}
.topbar-right i { font-size:1.6rem;, transition: color 1s, font-size 1s;}
/* Mobile horizontal scroll */
@media (max-width: 575.98px){
  .topbar .container{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .topbar-left, .topbar-right{ flex-wrap:nowrap; }
}

.header-nav-bar {padding-top: 20px; padding-bottom: 20px; background: white; transition: padding 0.25s ease;}
.site-header.sticky-head { position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all 0.25s ease;}
.site-branding img { max-height: var(--mt-logo-h); height:auto; width:auto; transition: max-height .25s ease; }

.navbar .nav-link { padding: .75rem 1rem; font-weight:400; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--mt-color-primary); }
.lang-switch { display:flex; gap:.5rem; }
.lang-switch a { font-weight:600; font-size:.95rem; color: var(--mt-color-secondary); }
.lang-switch a:hover { color: var(--mt-color-primary); }

.grey-text {color: #a2a2a2;}

.menu-item a:active, .menu-item a:link, .menu-item a:visited {color: #a2a2a2; font-weight: 400; text-decoration: none;}
.menu-item a:hover {color: var(--mt-color-text); font-weight: 400;}
.topbar a:active, .topbar a:link, .topbar a:visited {color: #a2a2a2; font-weight: 400; text-decoration: none;}
.topbar a:hover {color: var(--mt-color-text);}
.topbar i {color: #a2a2a2;}
.topbar a:hover {color: var(--mt-color-text);}

/* Off-canvas menu */
.mobile-toggle { display:none; }
@media (max-width: 991.98px){ .mobile-toggle { display:inline-flex; align-items:center; gap:.5rem; border: none; background: white; color: #aeaeae; font-size: 20px;} .navbar-collapse{ display:none !important; } }
.mobile-offcanvas { position: fixed; top:0; bottom:0; right:0; width: 300px; background:#fff; box-shadow: -4px 0 20px rgba(0,0,0,.12); transform: translateX(100%); transition: transform .35s ease; z-index: 1040; display:flex; flex-direction:column; }
.mobile-offcanvas.show { transform: translateX(0); }
.mobile-offcanvas .offcanvas-header { padding: 1rem; border-bottom:1px solid rgba(0,0,0,.06); }
.mobile-offcanvas .offcanvas-body { padding:1rem; overflow:auto; font-size:2rem; font-size: 1.8rem;}

.mobile-offcanvas .nav-link { display:block; padding:.75rem 0; border-bottom:1px dashed rgba(0,0,0,.07); }
.offcanvas-backdrop { position: fixed; inset:0; background: rgba(0,0,0,.35); opacity:0; visibility:hidden; transition: all .3s ease; z-index:1035; }
.offcanvas-backdrop.show { opacity:1; visibility:visible; }

/* Hero */
.hero { position: relative; }
.hero .carousel-item { height: 500px; max-height: 60vh; display: flex;}
/* Hero container */
.hero {
  position: relative;               /* ensures children are positioned correctly */

  overflow: hidden;                 /* prevent scrollbars from affecting bg */
}

/* Background image */
.hero .slide-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;           /* keeps the same cover scaling */
  background-position: 35% 35%;    /* original position */
  filter: brightness(0.8);
  will-change: transform;           /* improves iOS rendering */
}

/* LTR override (e.g., English, Russian) */
html[dir="ltr"] .hero .slide-bg {
  background-position: 60% 35%;    /* adjusts for LTR */
}

/* Optional Safari-specific tweak if needed */
@supports (-webkit-touch-callout: none) {
  .hero .slide-bg {
    background-attachment: scroll; /* prevents subtle iOS zoom bug */
  }
}
.hero .overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45)); }
.hero .content { position:relative; z-index:2; align-items:center; justify-content:center; text-align:center; color:#fff; margin: auto; padding: 1rem 1rem; }
.hero h1, .hero .h1 { font-size: clamp(2rem, 4vw, 3.2rem) !important; font-weight:bold; }
.hero p.lead { font-size: clamp(1.3rem, 2vw, 2rem); opacity:.95; font-weight:bold; }
.hero .hero-cta {background: none;
  border: 2px white solid;
  font-weight: 600;
  color: white;
  padding: 10px 20px;
  font-size: 1.4rem;
  border-radius: 10px;
  display: inline-block;
}
  
.hero-cta:hover { text-decoration: none !important; }	  

.break-word-dash {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 991.98px){ 

}


/* Sections */
.section { padding: 2rem 0; }
.section-title { font-size: clamp(1.6rem, 10vw, 4rem); margin-bottom: 1.5rem; }

/* Expertise */
.expertise-grid .card { border:0; box-shadow: 0 8px 24px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; height:100%; }
.expertise-grid .card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.expertise-icon { font-size: 2rem; color: var(--mt-color-primary); }

/* Footer */
.site-footer { background: #f8f9fa; color:#3a3a3a; border-top:1px solid rgba(0,0,0,.06); padding: 2.5rem 0; }
.site-footer a { color: inherit; }
.site-footer h5 {color: #7d7d7d; font-weight:600;}
.footer-bottom { border-top:1px solid rgba(0,0,0,.08); margin-top:1.5rem; padding-top:1rem; font-size:.9375rem; }

/* Buttons */
.btn-primary { --bs-btn-bg: var(--mt-color-primary); --bs-btn-border-color: var(--mt-color-primary); --bs-btn-hover-bg: #0b5ed7; --bs-btn-hover-border-color: #0a58ca; }
.btn-outline-primary { --bs-btn-color: var(--mt-color-primary); --bs-btn-border-color: var(--mt-color-primary); --bs-btn-hover-bg: var(--mt-color-primary); --bs-btn-hover-border-color: var(--mt-color-primary); }

/* Accessibility */
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position:static; width:auto; height:auto; padding:.5rem; background:#000; color:#fff; z-index: 2000; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* Animations */
.fade-in-up { opacity:0; transform: translateY(10px); transition: all .5s ease; }
.fade-in-up.appear { opacity:1; transform:none; }

/* Boxed layout support */
.boxed .site-wrap { max-width: var(--mt-container-max); margin-inline:auto; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.06); }

/* Blog basics */
.post-card { border:0; box-shadow: 0 8px 24px rgba(0,0,0,.06); height:100%; }
.post-card .card-body { padding:1.25rem; }
.post-meta { color:#7a7a7a; font-size:.95rem; }

/* Utilities */
.bg-soft { background: #f5f7fb; }
.hr { border:0; border-top:1px solid rgba(0,0,0,.06); margin:2rem 0; }

.gap1 {
	gap: 1em;
}

.whatsapp-color {
	color: #25D366 !important;
}

.waze-color {
	color: #0099ff  !important;
}

.instagram-color {
	color: #F77737 !important;
}

.facebook-color {
	color: #4267B2 !important;
}

.whatsapp-gradient-text {
  background: linear-gradient(45deg, #25D366, #128C7E); /* Light green to darker green */
  -webkit-background-clip: text;
  color: transparent;
}

/* Instagram Gradient Text */
.instagram-gradient-text {
  background: linear-gradient(45deg, #F58529, #D31D3D, #8134AF, #1D2A6B); /* Orange to pink to purple to blue */
  -webkit-background-clip: text;
  color: transparent !important;
}

/* Waze Gradient Text */
.waze-gradient-text {
  background: linear-gradient(45deg, #39B54A, #2E3192); /* Bright green to dark blue */
  -webkit-background-clip: text;
  color: transparent;
}

/* Facebook Gradient Text */
.facebook-gradient-text {
  background: linear-gradient(45deg, #3b5998, #8b9dc3); /* Facebook blue to light blue */
  -webkit-background-clip: text;
  color: transparent;
}

.slide-bg { background-attachment: fixed;}

.text-slim {font-weight: 300;}

.grey-gradient {background: linear-gradient(115deg, #E2E2E2, #ffffff);}

.map {
	border: 1px #e2e2e2 solid !important;
	border-radius: 8px;
}

footer ul {
	padding: 0;
}

.site-footer i {
	color: var(--mt-color-secondary);
}

.clickable-post {
	cursor: pointer;
}


/* HIGH-END GREYSCALE LAWYER CARD */
.lawyer-greyscale-card {
    /* background: linear-gradient(0deg, #E2E2E2, #ffffff); */
    border-radius: 8px;
    padding: 30px 26px;
    /* border: 1px solid #d1d1d1; */
    box-shadow: 0 10px 36px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
	height: 100%;
}

/* Subtle vertical grayscale accent bar */
.lawyer-greyscale-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to top, #fff 30%, #74787B 100%);
    opacity: 0.35;
}

html[dir='rtl'] .lawyer-greyscale-card::before {
    right: 0;
}

/* Hover elevation and sharpness */
.lawyer-greyscale-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.lawyer-greyscale-card a {
    text-decoration: none;
}

/* Featured Image: grayscale + vignette */
.lawyer-greyscale-card img {
    border-radius: 12px;
    width: 100%;
    height: 230px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: filter 0.35s ease, transform 0.35s ease;
}

/* Hover: light zoom + refined clarity */
.lawyer-greyscale-card:hover img {
    transform: scale(1.03);
    filter: grayscale(100%) contrast(1.2) brightness(1);
}

/* Title – elegant, bold, authoritative */
.lawyer-greyscale-card .wp-block-post-title {
    font-size: 1.48rem;
    font-weight: normal;
    color: #111;
    letter-spacing: 0.01em;
}

.lawyer-greyscale-card .wp-block-post-title a {
	color: #515151;
}

/* Terms / categories – understated grey badge style */
.lawyer-greyscale-card .wp-block-post-terms {
    font-size: 0.76rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #555;
    margin-bottom: 6px;
}

/* Excerpt */
.lawyer-greyscale-card .wp-block-post-excerpt {
    color: #333;
    line-height: 1.6;
    font-size: 0.96rem;
    margin-top: 4px;
}

/* Monochrome Button: charcoal outline */
.lawyer-greyscale-card .wp-block-read-more,
.lawyer-greyscale-card a.more-link {
    padding: 10px 20px;
    border-radius: 40px;
    border: 2px solid #2a2a2a;
    background: #fff;
    color: #111 !important;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Hover – deep charcoal fill */
.lawyer-greyscale-card .wp-block-read-more:hover,
.lawyer-greyscale-card a.more-link:hover {
    background: #2a2a2a;
    color: #fff !important;
    border-color: #000;
}

.lawyer-greyscale-card .post-card-link {
    position: absolute;
    inset: 0;             /* fills the entire card */
    z-index: 5;
    text-indent: -9999px;
	
    overflow: hidden;
}

.lawyer-greyscale-card > * {
    position: relative;
    z-index: 10;
}

.button-full-post-size {
	
}

.contact-form-container {  }
/* Style the overall form container */
.wpcf7 {
  max-width: 600px; /* Form width */
}

/* Style for form input fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%; /* Make input fields take full width */
  padding: 15px; /* Add padding inside input fields */
  font-size: 16px; /* Clear readable font size */
  border: 1px solid #ccc; /* Light gray border */
  border-radius: 4px; /* Rounded corners for input fields */
  background-color: #f9f9f9; /* Subtle background color */
  color: #333; /* Dark text color for readability */
  box-sizing: border-box; /* Include padding in the width */
  margin-bottom: 20px; /* Space between fields */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

/* Style placeholder text */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #aaa; /* Light gray color for placeholder */
  font-size: 16px; /* Same font size as input text */
  font-style: italic; /* Make placeholder text italic */
}

.wpcf7 textarea {height: 120px;}

/* Input fields on focus (Border color changes) */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #0073e6; /* Change border to blue */
  box-shadow: 0 0 5px rgba(0, 115, 230, 0.2); /* Subtle blue shadow effect */
  outline: none; /* Remove default outline */
}

/* Style the submit button */
.wpcf7 input[type="submit"] {
  background-color: white; /* Blue color for the button */
  color: grey; /* White text */
  font-weight: bold;
  width: 100%;
  padding: 14px 30px; /* Padding for button */
  font-size: 18px; /* Slightly larger font for button */
  border: 2px solid grey; /* Remove border */
  border-radius: 4px; /* Rounded corners for button */
  cursor: pointer; /* Pointer cursor on hover */
  transition: all 0.3s ease; /* Smooth background transition */
  margin-top: 10px; /* Space above the button */
  text-align: center;
}

/* Hover effect for submit button */
.wpcf7 input[type="submit"]:hover { scale: 1.05; }

/* Error message styling */
.wpcf7 .wpcf7-not-valid-tip {
  color: #e74c3c; /* Red color for error messages */
  font-size: 14px; /* Smaller font size for error messages */
  margin-top: -10px; /* Adjust margin to position error text correctly */
}

/* Success message styling */
.wpcf7 .wpcf7-mail-sent-ok {
  color: #2ecc71; /* Green color for success messages */
  font-size: 16px; /* Adjust font size for success messages */
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {
  .wpcf7 {
    padding: 20px 15px; /* Adjust padding for smaller screens */
    max-width: 100%; /* Allow the form to take full width */
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    font-size: 14px; /* Adjust font size for better readability on mobile */
    padding: 12px; /* Adjust padding for mobile */
  }

  .wpcf7 input[type="submit"] {
    font-size: 16px; /* Adjust button font size for mobile */
    padding: 12px 25px; /* Adjust button padding */
  }
}

.homepage-description-text {
	
}

.homepage-description-text strong {
	font-weight: 500;
}

@media (max-width: 576px) {
	.homepage-description-text {
		font-size: 1.1rem !important;
	}
	

}

.justify-text { text-align: justify !important; }

article.post-card h3 {
	font-weight: 600;
	color: #373636;
	margin-bottom: 20px;
}

article.post-card p { color: #5A5A5A; }
article.post-card li { color: #5A5A5A; }

article a:link, article a:active, article a:visited {
	text-decoration: underline !important;
	color: #2271b1 !important;
}
article h1, .section-title {color: #c4c4c4;}
article h3, article h2 {color: #797979;}
article p {color: #5A5A5A;}
article ul {color: #5A5A5A;}
article ol {color: #5A5A5A;}

.breadcrumbs {
    font-size: 14px;
    margin: 10px 0;
    padding: 10px 0;
}

.breadcrumbs a {
    color: var(--mt-color-secondary);
	font-weight: 600;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .breadcrumb-current {
    font-weight: bold;
    color: #c4c4c4;
}

.breadcrumbs span {
    color: #777;
}

/* Separator between breadcrumb items */
.breadcrumbs .breadcrumb-current + span {
    font-size: 16px;
    margin-left: 10px;
    color: #aaa;
}

.breadcrumbs a + span {
    font-size: 16px;
    margin-left: 10px;
    color: #aaa;
}


/* === MOBILE OFFCANVAS MENU === */

.mobile-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    color: #111;
    box-shadow: 2px 0 20px rgba(0,0,0,0.25);
    transform: translateX(-100%);
    transition: transform .35s ease, opacity .35s ease;
    z-index: 1050;
    opacity: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-offcanvas.show {
    transform: translateX(0);
    opacity: 1;
}

/* HEADER */
.mobile-offcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
    padding-bottom: .75rem;
}
.mobile-offcanvas .offcanvas-header strong {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}
.mobile-offcanvas .offcanvas-header button {
    border: none;
    background: transparent;
    padding: .4rem .6rem;
    color: #333;
}
.mobile-offcanvas .offcanvas-header button:hover {
    color: #000;
}

/* BODY */
.mobile-offcanvas .offcanvas-body {
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 4px; /* avoid scroll bar covering text */
}

.mobile-offcanvas .offcanvas-body ul {
    padding:0;
}

/* NAV MENU (wp_nav_menu) */
.mobile-offcanvas .nav.flex-column > li {
    margin-bottom: .4rem;
}

.mobile-offcanvas .nav.flex-column > li > a {
    display: block;
    padding: .6rem .2rem;
    color: #222;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background .2s, color .2s;
}

.mobile-offcanvas .nav.flex-column > li > a:hover,
.mobile-offcanvas .nav.flex-column > li > a:focus {
    background: #f3f3f3;
    color: #000;
}

/* SUBMENU (depth 2) */
.mobile-offcanvas .sub-menu {
    margin-left: .8rem;
    border-left: 2px solid #ddd;
    padding-left: .8rem;
    margin-top: .3rem;
}
.mobile-offcanvas .sub-menu a {
    font-size: .95rem;
    padding: .45rem 0;
}

/* LANGUAGE SWITCHER */
.mobile-offcanvas .lang-switch {
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

/* BACKDROP */
#mobileBackdrop {
    background: rgba(0,0,0,0.45);
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1040;
    opacity: 0;
    transition: opacity .35s ease;
}
#mobileBackdrop.show {
    opacity: 1;
}

.footer-languages a {
	color: var(--mt-color-secondary);
}

.yulia-image-size img {
	width: 350px;
}

@media (max-width: 991.98px){ 
	.yulia-image-size img {
		width: 200px;
	}
}