:root {
    --porto-primary: #0088cc;
    --porto-primary-hover: #0099e6;
    --porto-secondary: #e36159;
    --porto-tertiary: #2baab1;
    --porto-dark: #1d2127;
    --pacific-navy: #002c4c;
    --text: #777777;
    --heading: #1d2127;
    --border: #ededed;
    --footer: #0e0e0e;
    --footer-bottom: #060606;
    --container: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: "Open Sans", Arial, sans-serif; font-size: 14px; line-height: 22px; -webkit-font-smoothing: antialiased; }
a { color: var(--porto-primary); text-decoration: none; }
a:hover { color: var(--porto-primary-hover); }
img { max-width: 100%; height: auto; }
svg { display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.content-narrow { max-width: 920px; }
.site-main { min-height: 45vh; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; left: 16px; top: 16px; z-index: 9999; width: auto; height: auto; padding: 12px 16px; margin: 0; clip: auto; background: #fff; }

/* Header — based on the active Porto 2.6.1 settings from the legacy database. */
.site-header { position: sticky; top: 0; z-index: 1000; background: linear-gradient(#f6f6f6, #fff); border-top: 5px solid #ededed; box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: box-shadow .2s ease; }
.admin-bar .site-header { top: 32px; }
.site-header.is-sticky { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.site-header__inner { min-height: 128px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; margin-right: auto; }
.custom-logo-link, .legacy-logo { display: block; }
.custom-logo, .legacy-logo img { display: block; width: auto; max-width: 170px; max-height: 66px; object-fit: contain; }
/* Porto original: navegação na primeira linha e redes sociais abaixo, alinhadas à direita. */
.header-right {
    align-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "navigation" "socials";
    justify-items: end;
    align-content: end;
    row-gap: 5px;
    padding-bottom: 20px;
}
.primary-navigation { grid-area: navigation; }
.header-socials {
    grid-area: socials;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 0;
}
.header-socials a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    color: #777;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    transition: all .18s ease;
}
.header-socials a:hover { border-color: var(--porto-primary); background: var(--porto-primary); color: #fff; }
.header-socials svg { width: 15px; height: 15px; fill: currentColor; }

.menu { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.menu li { position: relative; margin: 0; }
.menu > li > a { display: block; padding: 11px 13px 9px; border-radius: 4px; color: var(--porto-primary); font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 20px; transition: background .16s ease, color .16s ease; }
.menu > li:hover > a, .menu > .current-menu-item > a, .menu > .current-menu-ancestor > a { color: #fff; background: var(--porto-primary); }
.menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 100; min-width: 250px; margin: 0; padding: 5px 0; list-style: none; background: #fff; border-top: 3px solid var(--porto-primary); box-shadow: 0 8px 22px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.menu .sub-menu .sub-menu { left: 100%; top: -8px; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu .sub-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-bottom: 1px solid #f0f0f0; color: #777; font-size: 12px; white-space: nowrap; }
.menu .sub-menu .menu-item-icon { width: 16px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: #999; }
.menu .sub-menu .menu-item-icon svg { width: 15px; height: 15px; fill: currentColor; }
.menu .sub-menu .menu-item-label { display: inline-block; }
.menu .sub-menu a:hover { color: #777; background: #f4f4f4; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.hamburger { display: grid; gap: 5px; }
.hamburger i { display: block; height: 2px; background: #444; border-radius: 2px; }

/* Home */

/* Legacy home banner reconstructed from the original Master Slider configuration. */
.pacific-home-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
}
.pacific-home-slider__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}
.pacific-home-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s ease;
    background: #000;
    pointer-events: none;
}
.pacific-home-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.pacific-home-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
}
.pacific-home-slide--cftv img {
    width: min(1200px, 100%);
    max-width: 1200px;
    object-fit: cover;
}
.pacific-slider-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 52px;
    height: 84px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--porto-primary);
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 68px;
    font-weight: 300;
    line-height: 76px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,.22);
    opacity: .92;
    transition: opacity .18s ease, transform .18s ease;
}
.pacific-slider-arrow:hover,
.pacific-slider-arrow:focus-visible {
    opacity: 1;
    color: var(--porto-primary);
    outline: none;
}
.pacific-slider-arrow:active {
    transform: translateY(-50%) scale(.94);
}
.pacific-slider-arrow--prev { left: 0; }
.pacific-slider-arrow--next { right: 0; }

@media (max-width: 1200px) {
    .pacific-home-slider {
        height: 33.333vw;
        min-height: 230px;
        max-height: 400px;
    }
}
@media (max-width: 760px) {
    .pacific-home-slider {
        height: 46vw;
        min-height: 220px;
    }
    .pacific-slider-arrow {
        width: 42px;
        height: 64px;
        font-size: 54px;
        line-height: 58px;
    }
    .pacific-home-slide--cftv img {
        width: 100%;
        max-width: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pacific-home-slide { transition: none; }
}

.home-intro { padding: 42px 0 10px; }
.home-intro p { margin: 0; font-size: 18px; line-height: 29px; color: #777; }
.legacy-separator { height: 1px; margin-top: 30px; background: #e5e5e5; }
.services-section { padding: 31px 0 62px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; }
.service-card { position: relative; min-height: 205px; padding-left: 50px; }
.service-card__icon { position: absolute; left: 0; top: 2px; width: 34px; color: var(--porto-primary); }
.service-card__icon svg { width: 32px; height: 32px; fill: currentColor; }
.service-card h2 { margin: 0 0 10px; color: #1d2127; font-size: 17px; line-height: 22px; font-weight: 700; }
.service-card p { margin: 0; color: #777; }

.about-band { padding: 54px 0 57px; background: var(--pacific-navy); color: #fff; }
.about-band__inner { max-width: 980px; }
.about-band h2, .news-band > .container > h2 { margin: 0 0 17px; color: #fff; font-size: 30px; line-height: 40px; font-weight: 300; }
.about-band h2 strong { font-weight: 700; }
.about-band p { max-width: 1000px; margin: 0 0 22px; color: rgba(255,255,255,.87); font-size: 14px; line-height: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 16px; border: 1px solid transparent; border-radius: 4px; background: var(--porto-primary); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; transition: .18s ease; }
.button:hover { color: #fff; filter: brightness(1.06); }
.button--outline-light { border-color: #fff; background: transparent; color: #fff; }
.button--outline-light:hover { background: #fff; color: var(--pacific-navy); }
.button--tertiary { background: var(--porto-tertiary); }
.button--large { min-height: 48px; padding: 12px 24px; font-size: 14px; }

.contact-cta { padding: 52px 0; background: #fff; }
.contact-cta__inner { display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 42px; }
.contact-cta h2 { margin: 0; color: var(--heading); font-size: 25px; line-height: 34px; font-weight: 300; text-align: center; }
.contact-cta .button { justify-self: start; }

.news-band { padding: 50px 0 58px; background: var(--pacific-navy); }
.legacy-news-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 46px; }
.legacy-news-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.legacy-date { overflow: hidden; border-radius: 3px; background: #fff; text-align: center; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.legacy-date strong { display: block; padding: 8px 0 5px; color: #333; font-size: 18px; font-weight: 700; }
.legacy-date span { display: block; padding: 5px 2px; background: var(--porto-primary); color: #fff; font-size: 10px; text-transform: uppercase; }
.legacy-news-item h3 { margin: 0 0 6px; color: #fff; font-size: 16px; line-height: 22px; font-weight: 600; }
.legacy-news-item h3 a { color: #fff; }
.legacy-news-item p { margin: 0; color: #a9b0b6; font-size: 13px; line-height: 20px; }

/* Legacy internal pages */
.page-banner { background: #171717; border-top: 5px solid #384045; border-bottom: 5px solid #ccc; color: #fff; }
.page-banner__inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.page-banner h1 { margin: 0; color: #fff; font-size: 24px; line-height: 32px; font-weight: 400; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 11px; }
.breadcrumbs a { color: #fff; }
.legacy-page-section { padding: 45px 0 70px; }
.entry-content { color: #777; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--heading); font-family: "Open Sans", Arial, sans-serif; font-weight: 400; }
.entry-content h2 { font-size: 30px; line-height: 40px; font-weight: 300; }
.entry-content h3 { font-size: 25px; line-height: 32px; }
.entry-content p { margin: 0 0 20px; }
.entry-content ul, .entry-content ol { margin-bottom: 22px; }
.entry-content img { height: auto; }
.entry-meta { color: #999; font-size: 12px; }
.entry-featured { margin: 0 0 28px; }
.archive-description { margin-bottom: 28px; }

/* News list */
.news-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.news-card { overflow: hidden; background: #fff; border: 1px solid #e7e7e7; border-radius: 3px; }
.news-card__image img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card__body { padding: 22px 24px 25px; }
.news-card__title { margin: 4px 0 11px; font-size: 18px; line-height: 25px; }
.news-card__title a { color: var(--heading); }
.news-card p { margin-top: 0; }
.read-more { font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--footer); color: #777; }
.footer-main { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 46px; }
.footer-brand img { width: 78px; height: 78px; object-fit: contain; margin-bottom: 13px; }
.footer-brand p { max-width: 240px; }
.footer-column h3 { margin: 0 0 16px; color: #fff; font-size: 16px; font-weight: 600; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 0 0 8px; }
.footer-column a, .site-footer a { color: #fff; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
.footer-socials { display: flex; gap: 6px; margin-top: 18px; }
.footer-socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #555; }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom { background: var(--footer-bottom); color: #555; }
.footer-bottom .container { padding-top: 22px; padding-bottom: 22px; font-size: 12px; }

.whatsapp-float { position: fixed; z-index: 950; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 24px; background: #25d366; color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.2); font-size: 12px; font-weight: 700; }
.whatsapp-float:hover { color: #fff; background: #1fbd59; }
.whatsapp-float svg { width: 23px; height: 23px; fill: currentColor; }

@media (max-width: 1120px) {
    .site-header__inner { min-height: 82px; }
    .header-right { display: flex; align-self: auto; align-items: center; padding-bottom: 0; }
    .header-socials { display: none; }
    .menu > li > a { padding-left: 9px; padding-right: 9px; font-size: 11px; }
}

@media (max-width: 900px) {
    body { font-size: 13px; line-height: 20px; }
    .admin-bar .site-header { top: 46px; }
    .site-header__inner { min-height: 76px; }
    .custom-logo, .legacy-logo img { max-width: 110px; max-height: 52px; }
    .menu-toggle { display: block; }
    .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 90px); overflow: auto; padding: 8px 20px 22px; background: #fff; border-top: 1px solid #eee; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
    .primary-navigation.is-open { display: block; }
    .menu { display: block; }
    .menu > li > a { padding: 11px 8px; border-radius: 0; color: #555; font-size: 12px; border-bottom: 1px solid #eee; }
    .menu > li:hover > a, .menu > .current-menu-item > a, .menu > .current-menu-ancestor > a { color: var(--porto-primary); background: transparent; }
    .menu .sub-menu, .menu .sub-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .menu .sub-menu a { white-space: normal; }
    .services-grid { grid-template-columns: 1fr; gap: 34px; }
    .service-card { min-height: 0; }
    .contact-cta__inner { grid-template-columns: 1fr; text-align: center; }
    .contact-cta .button { justify-self: center; }
    .legacy-news-grid, .news-grid { grid-template-columns: 1fr; }
    .page-banner__inner { min-height: 85px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
    .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 520px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .home-intro { padding-top: 30px; }
    .home-intro p { font-size: 16px; line-height: 26px; }
    .about-band h2, .news-band > .container > h2 { font-size: 26px; line-height: 34px; }
    .contact-cta h2 { font-size: 21px; line-height: 29px; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
}


/* WP-3 migrated content */
.service-card h2 a { color: inherit; }
.service-card h2 a:hover { color: var(--porto-primary); }
.entry-content hr { height: 1px; margin: 28px 0; border: 0; background: #e5e5e5; }
.entry-content figure { margin: 28px 0; }
.entry-content figure img { display: block; max-width: 100%; height: auto; }
.entry-content a { overflow-wrap: anywhere; }
.pacific-contact-grid { max-width: 760px; }
.staging-note { margin: 28px 0; padding: 14px 16px; border-left: 4px solid var(--porto-primary); background: #f4f8fb; color: #555; }
