* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #305B83;
    background: #f8f9fa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 850px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(48, 91, 131, 0.15);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease forwards;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    color: #305B83;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(20, 135, 190, 0.1);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #305B83 0%, #1487BE 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(20, 135, 190, 0.3);
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.lang-btn:hover::before {
    width: 200%;
    height: 200%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-wrapper {
    position: relative;
    width: 100%;
    min-height: 70vh;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url(/img/relation-client.jpg) center/cover no-repeat;
    color: #305B83;
}

.navbar,
.hero {
    position: relative;
    z-index: 2;
}

.navbar {
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 1.5rem 1rem 1.5rem;
    background-color: transparent;
}

.navbar a {
    margin-top: 0;
}

.navbar img {
    height: 210px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-left: auto;
    padding-top: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-menu li a:hover {
    color: #1487BE;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 2rem;
    gap: 0.25rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 0;
    border: none;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  }
  
.hero {
    position: relative;
    z-index: 1;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.btn-primary {
    background: #1487BE;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #0f6a9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.agencies-intro {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
    background: linear-gradient(135deg, rgba(48, 91, 131, 0.95) 0%, rgba(20, 135, 190, 0.9) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.agencies-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.intro-content.animate {
    animation: fadeInUp 1s ease forwards;
}

.agencies-intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.8rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.agencies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.agency-section {
    margin: clamp(2rem, 5vw, 4rem) 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.agency-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.agency-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 550px;
    align-items: stretch;
}

.agency-image-side {
    position: relative;
    overflow: hidden;
}

.agency-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.agency-section:hover .agency-image-side img {
    transform: scale(1.08);
}

.location-tag {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
    color: #305B83;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.agency-section.visible .location-tag {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(48, 91, 131, 0.1), transparent);
    pointer-events: none;
}

.agency-content-side {
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.agency-content-side > * {
    max-width: 100%;
}

.agency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(20, 135, 190, 0.1), rgba(48, 91, 131, 0.05));
    color: #1487BE;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.agency-content-side h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #305B83;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.agency-description {
    font-size: clamp(0.9375rem, 2vw, 1.05rem);
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 2rem;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.specialty-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(20, 135, 190, 0.04);
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.agency-section.visible .specialty-item {
    animation: slideInRight 0.5s ease forwards;
}

.agency-section.visible .specialty-item:nth-child(1) {
    animation-delay: 0.5s;
}

.agency-section.visible .specialty-item:nth-child(2) {
    animation-delay: 0.6s;
}

.agency-section.visible .specialty-item:nth-child(3) {
    animation-delay: 0.7s;
}

.agency-section.visible .specialty-item:nth-child(4) {
    animation-delay: 0.8s;
}

.specialty-item:hover {
    background: rgba(20, 135, 190, 0.08);
    transform: translateX(5px);
}

.specialty-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1487BE, #305B83);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.specialty-text {
    font-size: 0.95rem;
    color: #305B83;
    font-weight: 500;
    line-height: 1.4;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #1487BE, #0f6a9a);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(20, 135, 190, 0.3);
    width: auto;
    max-width: fit-content;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 135, 190, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.agency-section.reverse .agency-wrapper {
    grid-template-columns: 55% 45%;
}

.agency-section.reverse .agency-image-side {
    order: 2;
}

.agency-section.reverse .agency-content-side {
    order: 1;
}

.agency-section.reverse .location-tag {
    left: auto;
    right: 2rem;
    transform: translateX(100px);
}

.agency-section.reverse.visible .location-tag {
    transform: translateX(0);
}

.esc-footer-main {
    background: linear-gradient(135deg, #1e1e1e 0%, #141414 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    width: 100%;
}

.esc-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.esc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.esc-footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #1487BE;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.esc-footer-about {
    padding-right: 2rem;
}

.esc-footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.esc-footer-logo span {
    color: #1487BE;
}

.esc-footer-description {
    color: #99A9B7;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.esc-footer-links {
    list-style: none;
}

.esc-footer-links li {
    margin-bottom: 0.8rem;
}

.esc-footer-links a {
    color: #99A9B7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.esc-footer-links a:hover {
    color: #1487BE;
    padding-left: 5px;
}

.esc-footer-contact-info {
    color: #99A9B7;
    font-size: 0.9rem;
    line-height: 1.8;
}

.esc-footer-contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.esc-footer-contact-info svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.esc-footer-logo-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 200px;
    width: auto;
    display: block;
}

.esc-newsletter-box {
    background: rgba(20, 135, 190, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 135, 190, 0.2);
}

.esc-newsletter-box h4 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.esc-newsletter-box p {
    color: #99A9B7;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.esc-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.esc-newsletter-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.esc-newsletter-input::placeholder {
    color: #99A9B7;
}

.esc-newsletter-btn {
    padding: 0.8rem 1.5rem;
    background: #1487BE;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.esc-newsletter-btn:hover {
    background: #0f6a9a;
}

.esc-partners-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.esc-partners-title {
    text-align: center;
    color: #99A9B7;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.esc-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.esc-partner-logo {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: grayscale(100%) brightness(2);
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
}

.esc-partner-logo:hover {
    opacity: 1;
}

.esc-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.esc-footer-copyright {
    color: #99A9B7;
    font-size: 0.9rem;
}

.esc-footer-legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.esc-footer-legal-links a {
    color: #99A9B7;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.esc-footer-legal-links a:hover {
    color: #1487BE;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .navbar img {
        height: 150px;
    }

    .language-switcher {
        top: 20px;
        right: 600px;
        padding: 7px;
        gap: 6px;
    }

    .lang-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .agencies-intro {
        background-attachment: scroll;
    }

    .agency-wrapper,
    .agency-section.reverse .agency-wrapper {
        grid-template-columns: 1fr !important;
    }

    .agency-image-side {
        min-height: 350px;
        order: 1 !important;
    }

    .agency-content-side {
        order: 2 !important;
    }

    .location-tag {
        top: 1rem;
        left: 1rem !important;
        right: auto !important;
    }

    .esc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .esc-footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 968px) {
    .specialties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.625rem 0.9375rem;
        align-items: center;
    }

    .navbar img {
        height: 5.625rem;
        width: auto;
    }

    .language-switcher {
        top: 15px;
        right: 80px;
        padding: 5px;
        gap: 4px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 55px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-menu li a {
        color: #305B83;
        text-shadow: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 14px;
    }

    .agencies-intro {
        background-attachment: scroll;
    }

    .agency-image-side {
        min-height: 300px;
    }

    .agency-content-side {
        padding: 2rem 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 100%;
    }

    .esc-footer-main {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .esc-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .esc-footer-about {
        grid-column: 1;
        padding-right: 0;
    }

    .esc-footer-logo {
        font-size: 1.5rem;
    }

    .esc-newsletter-form {
        flex-direction: column;
    }

    .esc-newsletter-input {
        width: 100%;
        min-width: 100%;
    }

    .esc-newsletter-btn {
        width: 100%;
    }

    .logo-image {
        height: 7.5rem;
    }

    .esc-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .esc-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .esc-footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .navbar img {
        height: 70px;
    }

    .language-switcher {
        top: 12px;
        right: 70px;
        padding: 4px;
        gap: 3px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .agencies-intro h2 {
        font-size: 1.6rem;
    }

    .agency-image-side {
        min-height: 250px;
    }

    .agency-content-side {
        padding: 1.5rem 1rem;
    }

    .specialty-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .specialty-text {
        font-size: 0.875rem;
    }

    .esc-partners-grid {
        grid-template-columns: 1fr;
    }

    .esc-partner-logo {
        font-size: 1rem;
    }

    .logo-image {
        height: 100px;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .navbar img {
        height: 70px;
    }

    .language-switcher {
        top: 10px;
        right: 70px;
        padding: 4px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .header-wrapper {
        min-height: 100vh;
    }

    .hero {
        padding: 40px 20px 30px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .nav-menu {
        padding: 80px 20px 30px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .lang-btn,
    .btn-primary,
    .cta-button,
    .nav-menu li a,
    .esc-footer-links a {
        min-height: 44px;
        min-width: 44px;
    }

    .lang-btn:hover,
    .btn-primary:hover,
    .cta-button:hover,
    .specialty-item:hover,
    .esc-partner-logo:hover {
        transform: none;
    }

    .btn-primary:active,
    .cta-button:active {
        transform: scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #1487BE;
    outline-offset: 2px;
}

@media screen and (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}