/* Petemico integration for the supplied Clarity Pro template. */
:root{
    --default-font:"Segoe UI",system-ui,sans-serif;
    --heading-font:"Segoe UI",system-ui,sans-serif;
    --nav-font:"Segoe UI",system-ui,sans-serif
}

.header .navbar{
    width:100%
}
.navbar-brand img{
    object-fit:contain
}
.navbar .nav-link{
    color:var(--nav-color);
    font-weight:600
}

.eyebrow{
    font-size:.76rem;
    font-weight:700;
    letter-spacing:.12em;
    color:var(--accent-color)
}

.hero .hero-image img{
    width:100%;
    min-height:350px;
    object-fit:cover
}
.hero .hero-stats .stat-number{
    font-size:1.8rem
}
.service-card h3 a{
    color:var(--heading-color)
}

.about .image-composition .image-main img{
    width:100%;
    min-height:340px;
    object-fit:cover
}
.about .image-composition{
    padding-bottom:3rem
}

.btn-ink{
    background:var(--accent-color);
    color:var(--contrast-color);
    border-radius:50px;
    padding:.8rem 1.6rem
}
.btn-ink:hover{
    background:color-mix(in srgb,var(--accent-color),black 15%);
    color:white
}

.section-space{
    padding:80px 0
}
.section-heading{
    display:flex;
    justify-content:space-between;
    align-items:end;
    flex-wrap:wrap;
    gap:1rem;
    margin-bottom:2rem
}
.section-heading h2{
    font-size:2.3rem;
    font-weight:700
}

.text-action{
    font-weight:600
}
.catalog-card{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    background:var(--surface-color);
    box-shadow:0 8px 35px #0000000b;
    border:1px solid #e8eaf0
}
.catalog-image{
    width:100%;
    aspect-ratio:1.6;
    object-fit:cover
}
.catalog-placeholder{
    display:grid;
    place-items:center;
    background:#eff0fb;
    font-size:3rem
}
.catalog-card h3 a{
    color:var(--heading-color)
}
.card-arrow{
    color:var(--accent-color)
}

.project-section{
    background:var(--background-color);
    color:white
}
.project-section h2,.project-section h3{
    color:white
}
.project-section .eyebrow{
    color:#c8c6ff
}
.project-card{
    height:100%;
    padding:2rem;
    border:1px solid #ffffff35;
    border-radius:20px
}
.project-card>i{
    float:right
}

.contact-section{
    background:var(--background-color)
}
.contact-form{
    background:var(--surface-color);
    border-radius:22px;
    padding:2rem;
    box-shadow:0 10px 40px #00000008
}
.form-label{
    font-weight:600;
    font-size:.9rem
}
.form-control{
    padding:.8rem;
    border-radius:10px
}
.address-block{
    display:flex;
    gap:1rem;
    margin-top:1.5rem
}
.address-block i{
    color:var(--accent-color);
    font-size:1.4rem
}
.address-block address{
    margin-top:.4rem;
    font-size:.9rem
}
.section-copy{
    line-height:1.8
}

.site-footer{
    background:var(--background-color);
    color:white;
    padding:2rem 0
}
.site-footer a{
    color:white
}
.page-banner{
    padding:70px 0;
    background:var(--background-color);
    color:var(--default-color)
}
.page-banner h1{
    font-size:clamp(2rem,5vw,3.5rem)
}
.detail-copy{
    max-width:880px
}
.detail-image{
    width:100%;
    max-height:450px;
    object-fit:contain;
    border-radius:18px
}
.article-body{
    white-space:pre-line;
    line-height:1.9
}

@media(max-width:767px){
    .hero .hero-image img{
    min-height:220px
}
.section-space{
    padding:50px 0
}
.contact-form{
    padding:1.25rem
}

}

@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{
    animation:none!important;
    scroll-behavior:auto!important;
    transition:none!important
}

}



/* Dark surfaces use background tokens; heading tokens are white in Clarity. */
.contact-section,
.site-footer {
    color: var(--default-color);
}
.contact-section .form-control {
    background-color: var(--background-color);
    color: var(--default-color);
    border-color: #464763;
}
.contact-section .form-control:focus {
    border-color: #a6a2ff;
    box-shadow: 0 0 0 0.2rem #524dd340;
}
.contact-section .form-control::placeholder {
    color: #b7b5ce;
}
.contact-section .invalid-feedback {
    color: #ff9f9f;
}
.contact-section .eyebrow,
.contact-section .address-block i {
    color: #b5b1ff;
}
.site-footer {
    border-top: 1px solid #ffffff26;
}
.header .navbar-toggler {
    border-color: #ffffff55;
}
.header .navbar-toggler-icon {
    filter: invert(1);
}

.page-banner .eyebrow,
.page-banner .back-link {
    color: #b5b1ff;
}
/* Lightweight SVG motion for the industrial automation hero. */
.automation-motion {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid #7774c64d;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 35%, #27244f 0%, #101329 65%);
    box-shadow: 0 24px 80px #00000040;
}
.automation-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 16px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #c7c6ee;
    border-bottom: 1px solid #ffffff12;
}
.automation-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: #8bf0cf;
}
.automation-edition { color: #9598bd; }
.automation-scene { display: block; width: 100%; height: auto; }
.automation-label {
    font: 600 11px "Segoe UI", sans-serif;
    letter-spacing: 1px;
    fill: #e4e7fc;
}
.automation-tiny {
    font: 500 8px "Segoe UI", sans-serif;
    letter-spacing: 0.8px;
    fill: #a6b6d3;
}
.automation-wire { stroke: #50547e; stroke-width: 3; }
.automation-signal {
    stroke: #8bf0cf;
    stroke-width: 3;
    stroke-dasharray: 14 190;
    animation: automation-flow 5s linear infinite;
}
.automation-signal-later { animation-delay: -2.5s; stroke: #b5a5ff; }
.automation-signal-return { animation-duration: 7s; }
.automation-wave {
    stroke-dasharray: 150;
    animation: automation-trace 5s ease-in-out infinite;
}
.automation-needle {
    transform-origin: 127px 201px;
    animation: automation-gauge 6s ease-in-out infinite alternate;
}
.automation-rotor {
    transform-origin: 529px 276px;
    animation: automation-spin 8s linear infinite;
}
.automation-led { animation: automation-light 4s ease-in-out infinite; }
.automation-motion figcaption {
    padding: 0 20px 18px;
    text-align: center;
    font-size: 11px;
    color: #adb0cd;
}
.automation-pause {
    position: absolute;
    top: 65px;
    right: 112px;
    width: 15px;
    height: 15px;
    accent-color: #8bf0cf;
    cursor: pointer;
}
.automation-pause-label {
    position: absolute;
    top: 62px;
    right: 18px;
    color: #c7c6ee;
    font-size: 11px;
    cursor: pointer;
}
.automation-pause:focus-visible { outline: 2px solid #8bf0cf; outline-offset: 3px; }
.automation-pause:checked ~ .automation-scene * { animation-play-state: paused; }
@keyframes automation-flow { to { stroke-dashoffset: -408; } }
@keyframes automation-trace {
    0%, 12% { stroke-dashoffset: 150; opacity: 0.4; }
    60%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes automation-gauge {
    from { transform: rotate(-25deg); }
    to { transform: rotate(35deg); }
}
@keyframes automation-spin { to { transform: rotate(360deg); } }
@keyframes automation-light { 50% { opacity: 0.4; } }
@media (max-width: 400px) {
    .automation-edition { display: none; }
    .automation-heading { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .automation-scene * { animation: none !important; }
    .automation-pause, .automation-pause-label { display: none; }
}

/* Preserve original image proportions and avoid enlarging detail photos. */
.catalog-image {
    object-fit: contain;
    background: #111428;
}
.catalog-image[src*="valves.webp"] {
    background: #ffffff;
}
.detail-image {
    width: auto;
    max-width: 100%;
    max-height: 600px;
    margin-inline: auto;
    display: block;
}
.about .image-composition .image-main img {
    min-height: 0;
    height: auto;
}
.about .image-composition .image-secondary img {
    height: auto;
}

.language-switch {
    padding: .25rem;
    width: fit-content;
    border: 1px solid #ffffff30;
    border-radius: 10px;
}
.language-switch a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid transparent; border-radius: 7px; }
.language-switch a:hover { background: #ffffff12; }
.language-switch a[aria-current] { border-color: #aaa5ff; background: #524dd330; }
.language-switch a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.language-flag { display: block; width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff30; }

/* President biography, sourced from the company profile. */
.president-section { background:var(--background-color); scroll-margin-top:90px; }
.president-section h2 { font-size:clamp(2rem,3.5vw,3rem); max-width:520px; }
.president-intro { color:var(--nav-color); font-size:1.1rem; margin:20px 0 28px; }
.president-identity { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.president-monogram { display:grid; place-items:center; flex:0 0 64px; height:64px; border:1px solid #7772e5; border-radius:50%; background:#524dd326; color:#d7d4ff; font-size:1.4rem; font-weight:600; }
.president-identity h3 { font-size:1.3rem; margin:0 0 5px; }
.president-identity p { font-size:.85rem; margin:0; color:var(--nav-color); }
.president-history { background:var(--surface-color); border:1px solid #ffffff16; border-radius:24px; padding:36px; }
.president-milestone { display:flex; align-items:center; gap:24px; padding-bottom:24px; border-bottom:1px solid #ffffff1c; }
.president-year { font-size:clamp(2.8rem,5vw,4rem); font-weight:700; line-height:1; letter-spacing:-.05em; color:#b9b5ff; }
.president-milestone p { margin:8px 0 0; }
.president-journey { padding:0; margin:0; list-style:none; }
.president-journey li { position:relative; display:flex; align-items:center; gap:14px; padding:0 0 20px; font-weight:600; }
.president-journey li:last-child { padding-bottom:0; }
.president-journey li:not(:last-child)::after { content:""; position:absolute; left:17px; top:35px; bottom:0; width:1px; background:#7772e566; }
.president-journey li span { display:grid; place-items:center; width:35px; height:35px; border:1px solid #7772e566; border-radius:50%; color:#c7c3ff; font-size:.7rem; flex-shrink:0; }
.president-source { color:var(--nav-color); font-size:.85rem; margin:20px 0 24px; }
.president-region { display:flex; gap:16px; padding-top:24px; border-top:1px solid #ffffff1c; }
.president-region > i { font-size:1.6rem; color:#b9b5ff; }
.president-region p { margin:0; color:var(--nav-color); font-size:.95rem; }
@media(max-width:575.98px) { .president-history { padding:24px; } .president-milestone { align-items:flex-start; flex-direction:column; gap:16px; } }

.president-illustration { margin: 0 0 28px; }
.president-illustration img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid #ffffff24; }
.president-illustration figcaption { margin-top: 10px; color: var(--nav-color); font-size: .8rem; line-height: 1.6; }

.office-section { background: var(--background-color); scroll-margin-top: 90px; }
.office-gallery { overflow: hidden; border: 1px solid #ffffff24; border-radius: 22px; background: var(--surface-color); }
.office-photo { height: clamp(260px,48vw,550px); background: #080a19; display: flex; align-items: center; justify-content: center; }
.office-photo img { width: 100%; height: 100%; object-fit: contain; }
.office-gallery figcaption { padding: 20px 24px; color: var(--heading-color); font-weight: 600; min-height: 88px; }
.office-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 24px; }
.office-control { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff40; border-radius: 8px; background: transparent; color: #fff; }
.office-control:hover { background: #524dd34d; }
.office-control:focus-visible { outline: 2px solid #c4c0ff; outline-offset: 3px; }
.office-count { color: var(--nav-color); font-variant-numeric: tabular-nums; }
@media(max-width:575.98px) { .office-controls { padding: 0 16px 20px; gap: 8px; flex-wrap: wrap; } .office-play { font-size: .8rem; } .office-gallery figcaption { padding: 16px; } }

.expertise-section { background: var(--background-color); scroll-margin-top: 90px; }
.expertise-card { padding: 28px; background: var(--surface-color); border: 1px solid #ffffff1c; border-radius: 18px; display: flex; flex-direction: column; }
.expertise-icon { font-size: 2rem; color: #b9b5ff; margin-bottom: 24px; }
.expertise-card p { color: var(--nav-color); line-height: 1.75; }
.expertise-link { color: #c8c4ff; font-weight: 600; font-size: .9rem; }
.expertise-link:hover { color: #fff; }
.expertise-card .expertise-link { margin-top: auto; }
.migration-teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px; border: 1px solid #7772e566; border-radius: 22px; background: linear-gradient(120deg,#201e44,var(--surface-color)); }
.migration-teaser > div { max-width: 720px; }
.migration-teaser p { color: var(--nav-color); margin-bottom: 0; }
.migration-teaser .btn { flex-shrink: 0; white-space: normal; max-width: 260px; }
.reference-card { display: flex; flex-direction: column; }
.reference-card h3 a { color: var(--heading-color); }
.reference-system { color: #b9b5ff; font-size: .9rem; }
.reference-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.reference-filters a { padding: 10px 16px; border: 1px solid #ffffff30; border-radius: 30px; color: var(--nav-color); }
.reference-filters a[aria-current], .reference-filters a:hover { background: #524dd344; color: #fff; border-color: #aaa5ff; }
.reference-facts { padding: 28px; background: var(--surface-color); border-radius: 18px; border: 1px solid #ffffff1c; }
.reference-facts dt { font-size: .8rem; color: var(--nav-color); margin-bottom: 8px; }
.reference-facts dd { color: #fff; margin-bottom: 24px; overflow-wrap: anywhere; }
.reference-facts dd:last-child { margin-bottom: 0; }
.reference-note { color: var(--nav-color); font-size: .9rem; line-height: 1.8; }
@media(max-width:991.98px) { .migration-teaser { align-items: flex-start; flex-direction: column; padding: 26px; } }

.project-cover { width: 100%; height: 200px; object-fit: contain; border-radius: 12px; background: #080a19; }
.project-detail-cover { width: 100%; max-height: 560px; object-fit: contain; border-radius: 16px; }
.project-scope { white-space: pre-line; }

.btn-whatsapp { display: flex; width: 100%; align-items: center; justify-content: center; gap: 14px; min-height: 72px; background: #168846; color: #fff; padding: 18px 20px; border-radius: 12px; font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 700; line-height: 1.2; }
.btn-whatsapp .bi-whatsapp { font-size: clamp(2.2rem, 3.4vw, 2.8rem); line-height: 1; flex-shrink: 0; }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #116d38; color: #fff; outline: 2px solid #82e8ac; outline-offset: 3px; }
.company-address { white-space: pre-line; }

/* Keep sticky navigation legible over page content. */
#header.header {
    background-color: rgba(5, 7, 30, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    #header.header {
        background-color: rgba(5, 7, 30, .82);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
}
/* Align office and contact details on the same text column. */
.contact-section .address-block { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact-section .address-block > i { text-align: center; }
.contact-section .company-contact-link { color: #fff; align-self: center; overflow-wrap: anywhere; }
.contact-section .company-contact-link:hover,
.contact-section .company-contact-link:focus-visible { color: #fff; text-decoration: underline; }
