/* SooyalTech shared header and footer. Classes: sth-topbar, sth-header, sth-lang, sth-footer. */

/* Contact bar */
.sth-topbar { border-bottom: 1px solid #F1F5F9; }
.sth-topbar p { display: flex; justify-content: flex-end; gap: 28px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.sth-topbar a { color: #334155; text-decoration: none; }
.sth-topbar a:hover { color: #2563EB; text-decoration: underline; }

/* Brand lockup (text until the official logo file is supplied) */
.sth-brand .elementor-heading-title, .sth-brand .elementor-heading-title a { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #0F172A; text-decoration: none; }
.sth-brand b { font-weight: 800; color: #15803D; }
.sth-brand small { display: block; margin-top: 7px; font-size: 9.5px; font-weight: 700; line-height: 1; letter-spacing: .3em; text-transform: uppercase; color: #334155; }

/* Header row */
.sth-header { border-bottom: 1px solid #E2E8F0; }
.sth-header .hfe-nav-menu a.hfe-menu-item { transition: color .2s ease; }
.sth-header .sub-menu { border: 1px solid #E2E8F0; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(15, 23, 42, .12); }
.sth-cta .elementor-button.elementor-button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background-color: #15803D; color: #FFFFFF; font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 18px rgba(21, 128, 61, .24); }
.sth-cta .elementor-button.elementor-button:hover { background-color: #166534; color: #FFFFFF; }

/* Language selector */
.sth-lang { position: relative; font-size: 15px; }
.sth-lang summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 999px; font-weight: 600; color: #0F172A; cursor: pointer; list-style: none; }
.sth-lang summary::-webkit-details-marker { display: none; }
.sth-lang summary:hover { border-color: #2563EB; }
.sth-lang summary:focus-visible { outline: 3px solid #2563EB; outline-offset: 3px; }
.sth-lang ul { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 200px; margin: 0; padding: 8px; list-style: none; border: 1px solid #E2E8F0; border-radius: 14px; background: #FFFFFF; box-shadow: 0 16px 40px rgba(15, 23, 42, .12); }
.sth-lang li { margin: 0; padding: 9px 12px; border-radius: 8px; color: #0F172A; }
.sth-lang li[aria-current] { background: #EFF6FF; font-weight: 700; color: #1D4ED8; }
.sth-lang li span { display: block; font-size: 13px; color: #475569; }

@media (min-width: 1025px) {
  .sth-header .hfe-nav-menu > li:last-child { display: none; }
  .sth-header .hfe-nav-menu > li:nth-last-child(2) > .sub-menu { left: auto !important; right: 0 !important; }
}
@media (max-width: 1024px) {
  .sth-header .sth-lang-widget { order: 2; margin-left: auto; width: auto; }
  .sth-header .elementor-widget-navigation-menu { order: 3; flex: 0 0 auto; width: auto; }
  .sth-brand .elementor-heading-title, .sth-brand .elementor-heading-title a { font-size: 24px; }
  .sth-brand small { font-size: 8.5px; letter-spacing: .26em; }
}

/* Footer */
.sth-footer .sth-footer-grid.e-con { grid-template-columns: minmax(250px, 1.7fr) repeat(5, minmax(0, 1fr)); }
.sth-footer .sth-brand .elementor-heading-title { color: #FFFFFF; }
.sth-footer .sth-brand b { color: #22C55E; }
.sth-footer .sth-brand small { color: #CBD5E1; }
.sth-footer p { margin: 0 0 14px; line-height: 1.65; }
.sth-footer p:last-child { margin-bottom: 0; }
.sth-footer a { color: #CBD5E1; text-decoration: none; }
.sth-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.sth-footer ul { margin: 0; padding: 0; list-style: none; }
.sth-footer li { margin: 0; padding: 6px 0; }
.sth-footer-title .elementor-heading-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: #FFFFFF; }
.sth-footer-bottom { border-top: 1px solid rgba(203, 213, 225, .22); }
@media (max-width: 1024px) {
  .sth-footer .sth-footer-grid.e-con { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sth-footer .sth-footer-grid > .e-con:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sth-footer .sth-footer-grid.e-con { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sth-footer li a { display: inline-block; padding: 5px 0; }
}

/* Current page marker, matched to the approved mockup */
@media (min-width: 1025px) {
  .sth-header .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item { color: #15803D !important; box-shadow: inset 0 -3px 0 #16A34A; }
}

/* Contact bar icons */
.sth-topbar a { display: inline-flex; align-items: center; gap: 8px; }
.sth-topbar a::before { content: ""; width: 17px; height: 17px; background: center / contain no-repeat; }
.sth-topbar a[href^="mailto"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='1' y='3' width='18' height='14' rx='3' fill='%232563EB'/%3E%3Cpath d='M4 7l6 4 6-4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sth-topbar a[href^="tel"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11 11 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11 11 0 0 0 .6 3.6 1 1 0 0 1-.25 1z' fill='%232563EB'/%3E%3C/svg%3E"); }
.sth-brand small { font-size: 10px; }
@media (max-width: 1024px) { .sth-brand small { font-size: 9px; } }

/* Tablet and phone header: brand, language, then a 44px menu button, never wider than the screen */
.sth-lang summary { white-space: nowrap; }
.sth-lang summary svg { flex: 0 0 auto; }
.sth-header .sth-lang-widget { flex: 0 0 auto; width: auto; max-width: none; }
@media (max-width: 1024px) {
  .st-header.sth-header .elementor-widget-navigation-menu { flex: 0 0 44px; width: 44px; max-width: 44px; }
  .sth-header .sth-lang-widget { margin-left: auto; }
}
@media (max-width: 400px) {
  .sth-brand .elementor-heading-title, .sth-brand .elementor-heading-title a { font-size: 22px; }
  .sth-brand small { letter-spacing: .2em; }
  .sth-lang summary { padding: 0 11px; }
}

/* A closed phone menu must not add width to the page */
@media (max-width: 1024px) {
  .sth-header nav.hfe-dropdown:not(.menu-is-active) { max-width: 44px; height: 0; overflow: hidden; }
}

/* Official logo image (replaces the text lockup) */
.sth-logo { width: auto; flex: 0 0 auto; line-height: 0; }
.sth-logo a { display: inline-block; }
.sth-logo img { display: block; width: auto; height: 54px; max-width: none; }
.sth-logo--footer img { height: 62px; }
@media (max-width: 1200px) and (min-width: 1025px) { .sth-header .sth-logo img { height: 46px; } }
@media (max-width: 1024px) { .sth-header .sth-logo img { height: 46px; } }
@media (max-width: 400px) { .sth-header .sth-logo img { height: 40px; } }

/* Three-color footer: navy base, white brand panel, green gradient strip, title lines and copyright bar */
.sth-footer { position: relative; overflow: hidden; }
.sth-footer::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #166534 0%, #16A34A 50%, #4ADE80 100%); }
.sth-footer .sth-footer-grid.e-con { grid-template-columns: minmax(282px, 1.9fr) repeat(5, minmax(0, 1fr)); }
.sth-footer-card { border-radius: 20px; background-color: #FFFFFF; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.sth-footer-card .sth-logo img { width: 218px; max-width: 100%; height: auto; }
.sth-footer .sth-footer-card p { color: #334155; }
.sth-footer .sth-footer-card a { color: #0F172A; font-weight: 600; }
.sth-footer .sth-footer-card a:hover { color: #15803D; }
.sth-footer .sth-footer-card a:focus-visible { outline-color: #2563EB; }
.sth-footer-title .elementor-heading-title::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 9px; border-radius: 3px; background: linear-gradient(90deg, #16A34A, #4ADE80); }
.sth-footer ul a { color: #F1F5F9; }
.sth-footer-bottom { border-top: 0; background-color: #166534; background-image: linear-gradient(90deg, #14532D 0%, #166534 40%, #15803D 70%, #22C55E 100%); }
@media (max-width: 1024px) {
  .sth-footer .sth-footer-grid.e-con { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sth-footer .sth-footer-grid.e-con { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sth-footer-bottom { background-image: linear-gradient(90deg, #14532D 0%, #166534 50%, #15803D 100%); }
}

/* Footer refinements: room for the longest service name, and a full-width brand panel on tablets */
@media (min-width: 1025px) {
  .sth-footer .sth-footer-grid.e-con { grid-template-columns: minmax(276px, 1.75fr) 1fr 1.35fr .85fr 1.05fr 1.05fr; column-gap: 28px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .sth-footer .sth-footer-card.e-con.e-con { flex-direction: row !important; align-items: center; gap: 36px; }
  .sth-footer-card .sth-logo { flex: 0 0 auto; }
  .sth-footer-card .elementor-widget-text-editor { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 1.3fr 1.1fr 1fr; gap: 20px; align-items: center; }
  .sth-footer-card .elementor-widget-text-editor .elementor-widget-container { display: contents; }
  .sth-footer .sth-footer-card p { margin: 0; }
}
