/* ==========================================================================
   HEADER — azwords theme
   ========================================================================== */

:root {
    --hc-navy: #1b2530;
    --hc-navy-light: #26313e;
    --hc-green: #59B20F;
    --hc-green-dark: #3d9440;
    --hc-text: #2c2c2c;
    --hc-border: #e7e7e7;
}

.header-new {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    border-bottom: 3px solid var(--hc-green);
}

/* ---- Top bar ---- */
.topbar {
    background: var(--hc-navy);
    color: #c9d1d9;
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar__right {
    display: flex;
    gap: 20px;
}

.topbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-menu li a {
    color: #c9d1d9;
    text-decoration: none;
    transition: color .15s ease;
}

.topbar-menu li a:hover { color: #fff; }

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-socials,
.mobile-menu__socials {
    display: flex;
    gap: 8px;
}

.topbar-socials .oform-social-btn,
.mobile-menu__socials .oform-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1.5px solid var(--hc-green);
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: all ease-in-out 400ms;
}

.topbar-socials .oform-social-btn:hover,
.mobile-menu__socials .oform-social-btn:hover {
    transform: none;
}

.topbar-socials .oform-social-btn i,
.mobile-menu__socials .oform-social-btn i {
    font-size: 16px;
    color: var(--hc-green);
    font-weight: 500;
}

.topbar-email {
    text-decoration: none;
    color: #fff;
}

.topbar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: .2px;
}

.topbar-phone__icon { color: var(--hc-green); flex-shrink: 0; }
.topbar-phone:hover { color: var(--hc-green); }
.topbar-phone:hover .topbar-phone__icon { color: var(--hc-green); }

/* ---- Language switcher (desktop) ---- */
.lang-switcher { position: relative; margin-top: 2px; }

.lang-switcher__current {
    background: none;
    border: 0;
    color: #c9d1d9;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.lang-switcher__current:hover { color: #fff; }
.lang-switcher__arrow { font-size: 10px; }

.lang-switcher__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    list-style: none;
    padding: 6px 0;
    min-width: 80px;
    z-index: 50;
}

.lang-switcher.is-open .lang-switcher__list { display: block; }

.lang-switcher__list li a {
    display: block;
    padding: 6px 14px;
    color: var(--hc-text);
    text-decoration: none;
    font-size: 13px;
}

.lang-switcher__list li a:hover { background: #f4f4f4; }

/* ---- Main header ---- */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 2px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo img { display: block; height: 40px; width: auto; }

.header-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-self: stretch;
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.btn-primary {
    background: var(--hc-green);
    border: 1px solid var(--hc-green);
    color: #fff;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-primary:hover { background: var(--hc-green-dark); border-color: var(--hc-green-dark); }

.header-tel { display: none; }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: 0;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--hc-text);
    border-radius: 2px;
}

/* ---- Main navigation ---- */
.main-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu > li { position: relative; }

.main-menu > li::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.main-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--hc-text);
    font-weight: 600;
    text-decoration: none;
    padding: 25px 0;
}

.main-menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--hc-green);
    transform: scaleX(0);
    transition: transform .15s ease;
}

.main-menu > li.menu-item-has-children > a::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}

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

.main-menu > li:hover > a::before,
.main-menu > li.current-menu-item > a::before { transform: scaleX(1); }

/* Level 2 (dropdown) */
.main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 77px;
    left: 0;
    background: #fff;
    border: 1px solid var(--hc-border);
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    min-width: 240px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 60;
}

.main-menu > li:hover > .sub-menu,
.main-menu .sub-menu li:hover > .sub-menu { display: block; }

.main-menu .sub-menu li { position: relative; }

.main-menu .sub-menu li > a {
    display: block;
    padding: 10px 20px;
    color: var(--hc-text);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.main-menu .sub-menu li:hover > a {
    background: #f6f8f6;
    color: var(--hc-green-dark);
}

/* Last item of a submenu = "view all" style link (green, arrow, dotted divider) */
.main-menu .sub-menu > li:last-child {
    border-top: 1.5px dashed #ccc;
    margin-top: 6px;
    padding-top: 6px;
}

.main-menu .sub-menu > li:last-child > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--hc-green-dark);
    font-weight: 700;
}

.main-menu .sub-menu > li:last-child > a::after {
    content: '\2192';
    font-weight: 700;
    line-height: 1;
}

.main-menu .sub-menu > li:last-child:hover > a { background: transparent; }

/* Level 3+ (nested sub-menus flyout to the right) */
.main-menu .sub-menu .sub-menu {
    top: -9px;
    left: 100%;
    margin-left: 2px;
}

.main-menu .sub-menu li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile-menu.is-open ~ .mobile-menu__overlay,
.mobile-menu__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Header: logo + close button */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 3px solid var(--hc-green);
    flex-shrink: 0;
    height: 70px;
}

.mobile-menu__logo { flex: 0 0 auto; }

.mobile-menu__logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.mobile-menu__close {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.mobile-menu__close span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2c2c2c;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.mobile-menu__close span:nth-child(1) { transform: rotate(45deg) translateY(6px); }
.mobile-menu__close span:nth-child(2) { transform: rotate(-45deg) translateY(-6px); }

/* Content: menu items with screen transitions */
.mobile-menu__content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.mobile-menu__screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu__content .mobile-menu__screen.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__screen.prev {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__list li { margin: 0; padding: 0; }

.mobile-menu__list > li { border-bottom: 1px solid #e7e7e7; }
.mobile-menu__list > li:last-child { border-bottom: none; }

.mobile-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu__list a:active { background-color: #f5f5f5; }

.mobile-menu__list .menu-item-has-children > a::after {
    content: '›';
    font-size: 24px;
    color: #999;
    font-weight: 300;
    line-height: normal;
}

.mobile-menu__list .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
}

.mobile-menu__list .sub-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e7e7e7;
}

.mobile-menu__list .sub-menu li:last-child { border-bottom: none; }

.mobile-menu__list .sub-menu a {
    padding: 12px 0 12px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #555;
}

.mobile-menu__list .sub-menu .menu-item-has-children > a::after {
    content: '›';
    font-size: 24px;
}

.mobile-menu__list .sub-menu .sub-menu a {
    padding-left: 32px;
    font-size: 12px;
    color: #777;
}

/* Footer: phone, email, socials, language */
.mobile-menu__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-top: 1px solid #e7e7e7;
    flex-shrink: 0;
    padding-bottom: 100px;
}

.mobile-menu__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #58b403;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0;
    transition: all 0.2s ease;
    justify-content: center;
}

.mobile-menu__phone svg { width: 22px; height: 22px; flex-shrink: 0; }

.mobile-menu__email {
    display: block;
    padding: 10px 12px;
    background: #fff;
    color: var(--hc-green);
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
    word-break: break-word;
    transition: all 0.2s ease;
}

.mobile-menu__email:active { background: #f5f5f5; }

.mobile-menu__socials { align-items: center; }
.mobile-menu__socials .oform-social-btn i { font-size: 28px; }
.mobile-menu__socials .oform-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu__actions {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.mobile-menu__lang {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 6px 12px;
    background: #fff;
    border-radius: 0;
    border: 1px solid #e7e7e7;
    height: 40px;
}

.mobile-menu__lang-link {
    padding: 4px 8px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.2s ease;
}

.mobile-menu__lang-link:hover,
.mobile-menu__lang-link.active {
    color: var(--hc-green);
    background: #f0f0f0;
}

/* Back button (injected by JS when a submenu screen is created) */
.mobile-menu__back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    margin-bottom: 8px;
    color: var(--hc-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e7e7e7;
    transition: all 0.2s ease;
}

.mobile-menu__back:active { background-color: #f5f5f5; }
.mobile-menu__back svg { width: 18px; height: 18px; color: var(--hc-green); }

.mobile-menu__list-wrapper {
    display: flex;
    flex-direction: column;
}

/* Scrollbar (optional cosmetic touch) */
.mobile-menu__screen::-webkit-scrollbar { width: 6px; }
.mobile-menu__screen::-webkit-scrollbar-track { background: transparent; }
.mobile-menu__screen::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.mobile-menu__screen::-webkit-scrollbar-thumb:hover { background: #999; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 961px) {
    .mobile-menu,
    .mobile-menu__overlay {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .topbar-menu { display: none; }
    .burger,
    .header-tel { display: flex; }
    .topbar,
    .header-actions .btn { display: none; }
    .header-main { padding: 15px 20px; }
    .main-menu .sub-menu,
    .main-menu { display: none; }
}


/* ==========================================================================
   FOOTER — azwords theme
   ========================================================================== */

/* ========================================================================
   6 Columns: Logo, Services, Company, Geography, Languages, Contacts
   ======================================================================== */

.footer-new {
    background-color: #3a3a3a;
    color: #cccccc;
    padding: 30px 0 40px;
    margin-top: 80px;
    font-family: 'Montserrat', sans-serif;
}

.footer-new a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-new a:hover {
    color: #2ecc71;
}

.footer-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

/* Footer Columns Grid - 6 Columns */
.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 45px;  /* Increased gap */
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* ========================================================================
   COLUMN 1: ABOUT (Logo & Description)
   ======================================================================== */

.footer-about {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    display: block;
}

.footer-description {
    font-size: 12px;
    line-height: 1.6;
    color: #bbbbbb;
    margin-bottom: 20px;
}

.footer-payment-methods {
    margin-bottom: 20px;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-icon {
    width: 45px;
    height: auto;
    background-color: #ffffff;
    padding: 4px;
    border-radius: 3px;
}

.footer-copyright-small {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #555555;
    font-size: 10px;
    color: #888888;
}

.footer-copyright-small p {
    margin: 0;
}

/* ========================================================================
   COLUMNS 2-5: MENUS
   ======================================================================== */

.footer-menu-col {
    grid-column: span 1;
    padding-top: 10px;
}

.footer-menu-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #59B20F;
    font-family: 'Montserrat', sans-serif;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu-list li {
    margin: 0;
    padding: 0;
}

.footer-menu-list a {
    font-size: 12px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-menu-list a:hover {
    color:#59B20F;
}

/* ========================================================================
   COLUMN 6: CONTACTS
   ======================================================================== */

.footer-contacts {
    grid-column: span 1;
    padding-top: 10px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 12px;
}

.contact-label {
    display: block;
    font-size: 10px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-value {
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
    font-size: 12px;
}

.contact-value a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.contact-value a:hover {
    color: #59B20F;
}

.footer-social-links {
  display: flex;
  gap: 8px;
}

.oform-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #59B20F;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  transition: all ease-in-out 400ms;
}

.oform-social-btn i{
    font-size: 18px;
    color: #59B20F;
    font-weight:500;
}

.oform-social-btn:hover {
  transform:scale(1.05);
}

.footer-menu-title-lang{
    margin-top:30px;
}

.footer-column-mob{
    display:none;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

/* Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
    .footer-columns {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
    
    .footer-logo-img {
        max-width: 130px;
    }
    
    .footer-description {
        font-size: 11px;
    }
    
    .footer-menu-title {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .footer-menu-list a {
        font-size: 11px;
    }
}

/* Small Tablet (992px - 1023px) */
@media (max-width: 1023px) {
    .footer-columns {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .footer-about {
        grid-column: span 4;
    }
    
    .footer-menu-col,
    .footer-contacts {
        grid-column: span 1;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .footer-new {
        padding: 50px 0 30px 0;
        margin-top: 60px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .footer-about {
        grid-column: span 3;
    }
    
    .footer-menu-col,
    .footer-contacts {
        grid-column: span 1;
    }
    
    .footer-logo-img {
        max-width: 120px;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    .footer-new {
        padding: 40px 0 20px 0;
        margin-top: 40px;
    }
    
    .footer-main .container {
        padding: 0 20px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-about,
    .footer-menu-col,
    .footer-contacts {
        grid-column: span 1;
    }
    
    .footer-logo-img {
        max-width: 110px;
    }
    
    .footer-description {
        font-size: 11px;
    }
    
    .footer-menu-title {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-menu-list {
        gap: 8px;
    }
    
    .footer-menu-list a {
        font-size: 11px;
    }
    
    .contact-item {
        margin-bottom: 12px;
    }
    
    .contact-value {
        font-size: 13px;
    }
    
    .footer-social-links {
        gap: 6px;
    }
    
    .footer-social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

      .footer-columns{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:30px 20px;
    }

    /* Row 1 */
    .footer-about{
        grid-column:1 / -1;
    }

    /* Row 2 */
    .footer-menu-col:nth-of-type(2){
        grid-column:1;
    }

    .footer-menu-col:nth-of-type(3){
        grid-column:2;
    }

    /* Row 3 */
    .footer-menu-col:nth-of-type(4){
        grid-column:1;
    }

    .footer-contacts{
        grid-column:2;
    }

    /* Row 4 */
    .footer-copyright-small{
        grid-column:1 / -1;
        margin-top:20px;
    }

    .footer-column-mob{
        display: flex;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: center;
    }

    .footer-about .footer-description, .footer-about .footer-payment-methods, .footer-about .footer-copyright-small{
        display:none
    }
}

/* Extra Small (<480px) */
@media (max-width: 479px) {
    .footer-new {
        padding: 30px 0 15px 0;
        margin-top: 30px;
    }
    
    .footer-main .container {
        padding: 0 20px;
    }
    
    .footer-columns {
        column-gap: 30px;
        row-gap: 15px;
    }
    
    .footer-logo-img {
        max-width: 100px;
    }
    
    .footer-description {
        font-size: 10px;
        text-align: center;
        margin-top: 10px;
    }
    
    .footer-menu-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-menu-list a {
        font-size: 13px;
    }

    .footer-menu-list {
        gap: 6px;
    }
    
    .payment-icon {
        width: 40px;
    }

    .footer-payment-methods {
    margin-bottom: 0px;
    }

    .footer-logo {
        margin-bottom: 0px;
    }
}