/* ==========================================================================
   Ampla Facilities - Folha de estilos principal
   --------------------------------------------------------------------------
   1.  Variáveis
   2.  Base / reset
   3.  Utilitários
   4.  Barra de progresso de leitura e botão "voltar ao topo"
   5.  Header (top bar, menu, busca)
   6.  Banner das páginas internas
   7.  Títulos de seção
   8.  Slider da Home
   9.  Seção "Sobre" / imagem com moldura
   10. Cards de serviços
   11. Página de serviço (detalhe + sidebar)
   12. Galeria + lightbox
   13. Formulários / botões
   14. Trabalhe conosco, busca, 404
   15. Footer
   16. Responsivo
   ========================================================================== */

/* 1. Variáveis
   ========================================================================== */
:root {
    --color-primary: #0c4b4b;
    --color-secondary: #0c6967;
    --color-accent-hover: #b84915;
    --color-nav: #041375;
    --color-nav-hover: #1e73be;
    --color-text: #3a3a3a;
    --color-heading: #191919;
    --color-border: #ddd;
    --color-light-bg: #f1f1f1;
    --color-whatsapp: #61ce70;
    --color-progress: #dd9933;

    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Teko', sans-serif;
    --font-nav: 'Roboto', sans-serif;

    --shadow-soft: 0 1px 8px rgba(0, 0, 0, .08);
    --transition: all .5s ease-in-out;
}

/* 2. Base / reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-heading);
}

h2 {
    font-size: 52px;
    color: var(--color-secondary);
}

h3 {
    font-size: 30px;
}

p {
    margin: 0 0 20px;
    line-height: 25px;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color .2s linear, background-color .2s linear;
}

a:hover,
a:focus {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

ul, ol {
    margin: 0 0 24px;
}

strong, b {
    font-weight: 600;
}

button {
    font: inherit;
    cursor: pointer;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--color-nav-hover);
    outline-offset: 2px;
}

/* Container do Bootstrap limitado a 1140px (padrão do layout original) */
.container,
.container-fluid {
    --bs-gutter-x: 30px;
}

.row {
    --bs-gutter-x: 30px;
}

.row.g-0 {
    --bs-gutter-x: 0;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* 3. Utilitários
   ========================================================================== */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.bg-light-gray { background-color: var(--color-light-bg); }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.page-wrapper {
    overflow: hidden;
}

/* 4. Barra de progresso de leitura e botão "voltar ao topo"
   ========================================================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 10000;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-progress);
    transform: scaleX(0);
    transform-origin: left;
}

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 26px;
    line-height: 44px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s linear, visibility .2s linear;
}

.scroll-top.is-visible {
    opacity: .8;
    visibility: visible;
}

.scroll-top:hover {
    opacity: 1;
}

/* 5. Header
   ========================================================================== */
.header-container {
    padding-left: 50px;
    padding-right: 50px;
}

.site-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top bar */
.top-bar {
    background-color: var(--color-secondary);
    color: #fff;
    font-size: 14px;
    line-height: 21px;
}

.top-bar a {
    color: #fff;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, .8);
}

.top-bar__slogan li {
    position: relative;
    z-index: 1;
    padding: 12px 15px 12px 0;
}

.top-bar__slogan li::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6000px;
    background-color: var(--color-primary);
    transform: skewX(24deg);
    z-index: -1;
}

.top-bar__contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.top-bar__contacts li {
    padding: 10px 15px;
    border-right: 1px solid rgba(255, 255, 255, .6);
}

.top-bar__contacts i {
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
}

/* Barra principal */
.main-bar-wrapper {
    position: relative;
    z-index: 100;
}

.main-bar {
    position: relative;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--color-border);
    transition: box-shadow .3s ease;
}

.main-bar .header-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 94px;
}

.logo {
    flex: 0 0 auto;
    padding-top: 20px;
    position: relative;
    z-index: 11;
}

.logo img {
    display: block;
    width: 230px;
    height: 55px;
}

/* Menu principal */
.main-nav {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.main-nav__list {
    display: flex;
}

.main-nav__list > li {
    position: relative;
    font-family: var(--font-nav);
    font-weight: 500;
}

.main-nav__list > li > a {
    display: block;
    padding: 35px 15px;
    color: var(--color-nav);
    font-size: 16px;
    line-height: 24px;
}

.main-nav__list > li:hover > a,
.main-nav__list > li.is-active > a {
    color: var(--color-nav-hover);
}

.submenu-toggle {
    display: none;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 220px;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.main-nav__list > li:hover > .sub-menu,
.main-nav__list > li:focus-within > .sub-menu {
    margin-top: 0;
    opacity: 1;
    visibility: visible;
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-nav);
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.sub-menu li:last-child a {
    border-bottom: 0;
}

.sub-menu a:hover,
.sub-menu .is-active > a {
    color: var(--color-nav-hover);
}

/* Busca + botão orçamentos */
.header-actions {
    order: 3;
    flex: 0 0 auto;
    display: flex;
    padding-top: 25px;
}

.header-search-toggle {
    width: 48px;
    height: 40px;
    border: 0;
    background: var(--color-secondary);
    color: #fff;
    font-size: 16px;
}

.header-search-toggle[aria-expanded="true"] .fa-search::before {
    content: '\f00d';
}

.header-cta {
    display: block;
    padding: 8px 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
}

.header-cta i {
    margin-left: 10px;
}

.header-cta:hover,
.header-cta:focus {
    background: var(--color-accent-hover);
    color: #fff;
}

.header-search {
    position: absolute;
    top: 65px;
    right: 50px;
    z-index: 20;
    border: 3px solid var(--color-primary);
    background: #fff;
}

.header-search form {
    display: flex;
    width: 280px;
    padding: 12px;
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.header-search button {
    border: 0;
    background: none;
    padding: 0 0 0 15px;
    color: var(--color-primary);
    font-size: 18px;
}

/* Botão do menu mobile */
.nav-toggle {
    display: none;
    order: 4;
    margin: 27px 0 0 15px;
    padding: 12px 10px;
    border: 0;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: #000;
    transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle span + span {
    margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header fixo ao rolar a página */
.main-bar-wrapper.is-fixed .main-bar {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

/* 6. Banner das páginas internas
   ========================================================================== */
.page-banner {
    position: relative;
    display: flex;
    align-items: center;
    height: 250px;
    background: var(--color-secondary) url('../img/sobre/empresa.png') center / cover no-repeat;
}

.page-banner__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-secondary);
    opacity: .9;
}

.page-banner .container {
    position: relative;
    text-align: center;
}

.page-banner__title {
    margin: 0 0 15px;
    color: #fff;
    font-size: 72px;
}

/* 7. Títulos de seção
   ========================================================================== */
.section-title {
    margin-bottom: 50px;
}

.section-title--left {
    margin-bottom: 0;
}

.section-title--center {
    text-align: center;
}

.section-title__subtitle {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 30px;
}

.section-title__subtitle span {
    position: relative;
    display: inline-block;
}

.section-title__subtitle span::before,
.section-title__subtitle span::after {
    content: '';
    position: absolute;
    bottom: 7px;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
}

.section-title__subtitle span::after {
    right: -50px;
}

.section-title__subtitle span::before {
    left: -50px;
}

.section-title--left .section-title__subtitle span::before {
    display: none;
}

.section-title__title {
    margin: 0 0 15px;
}

.section-title--center .section-title__title {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* 8. Slider da Home
   ========================================================================== */
.hero-slider {
    position: relative;
    margin-top: 10px;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.hero-slider__track {
    display: grid;
    aspect-ratio: 1919 / 600;
}

.hero-slider__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% 57%;
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    opacity: .8;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
    transition: opacity .3s;
}

.hero-slider__arrow:hover {
    opacity: 1;
}

.hero-slider__arrow--prev { left: 15px; }
.hero-slider__arrow--next { right: 15px; }

.hero-slider__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 5;
    display: flex;
    transform: translateX(-50%);
}

.hero-slider__dots button {
    width: 10px;
    height: 10px;
    margin: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .67);
    transition: background-color .4s;
}

.hero-slider__dots button.is-active,
.hero-slider__dots button:hover {
    background: #1d81f9;
}

/* 9. Seção "Sobre" / imagem com moldura
   ========================================================================== */
.about-section {
    padding: 80px 0 40px;
    background: #fff;
}

.page-home .about-section {
    margin-top: -10px;
}

.company-section {
    padding: 100px 0;
}

.framed-image {
    position: relative;
    margin-bottom: 80px;
    padding: 40px 30px 0 40px;
}

.framed-image__inner {
    position: relative;
    z-index: 1;
}

.framed-image__inner img {
    display: block;
    width: 100%;
}

.framed-image__inner::before {
    content: '';
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: -40px;
    width: 60%;
    border: 10px solid var(--color-primary);
    z-index: -1;
}

/* Variação da página Empresa: moldura mais grossa e "Desde 2013" */
.framed-image--tall .framed-image__inner::before {
    bottom: auto;
    width: 80%;
    height: 80%;
    border-width: 15px;
}

.since-year {
    position: absolute;
    top: 100%;
    right: 30px;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 100px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(-14px);
}

.since-year span {
    color: var(--color-heading);
}

.since-year strong {
    color: var(--color-primary);
    font-weight: 500;
}

.about-content {
    padding-top: 40px;
}

.about-content--company {
    padding-top: 0;
}

.about-content p {
    margin-bottom: 25px;
    line-height: 28px;
}

.about-content > strong {
    display: block;
    line-height: 24px;
}

/* 10. Cards de serviços
   ========================================================================== */
.services-section {
    padding: 80px 0 50px;
    background: #f8f8f8;
}

.services-section--white {
    background: #fff;
}

.service-col {
    position: relative;
    z-index: 0;
    margin-bottom: 30px;
    padding: 15px;
}

/* Blocos animados nos cantos ao passar o mouse */
.service-col::before,
.service-col::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 0;
    height: 4px;
    background: var(--color-primary);
    transition: all .5s ease 0s;
}

.service-col::before { top: 5px; right: 5px; }
.service-col::after { bottom: 5px; left: 5px; }

.service-col:hover::before,
.service-col:hover::after {
    width: 50%;
    height: 50%;
}

.service-card {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.service-card__number {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(0, 0, 0, .1);
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 500;
    line-height: 100px;
    opacity: .5;
    pointer-events: none;
}

.service-card__title {
    position: relative;
    margin: 64px 0 50px;
    font-size: 30px;
    line-height: 33px;
    color: var(--color-heading);
    transition: color .5s;
}

.service-card__footer {
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.service-card__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    background-color: #000;
    border-color: transparent;
}

.service-card:hover .service-card__title,
.service-card:hover .link-arrow {
    color: #fff;
}

.service-card:hover .service-card__bg {
    opacity: .2;
}

/* Link com seta animada */
.link-arrow {
    position: relative;
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 700;
}

.link-arrow::before {
    content: '\f178';
    position: absolute;
    top: 0;
    left: 50%;
    font-family: 'FontAwesome';
    font-weight: 400;
    opacity: 0;
    transition: var(--transition);
}

.link-arrow:hover::before {
    left: 110%;
    opacity: 1;
}

/* 11. Página de serviço
   ========================================================================== */
.service-detail {
    padding: 80px 0 70px;
}

.service-detail__media {
    margin: 0 0 30px;
}

.service-detail__media img {
    display: block;
    width: 100%;
}

.rich-text h2 {
    margin-bottom: 15px;
}

.rich-text ul {
    margin: 0 0 24px 20px;
    padding: 0;
}

.rich-text li {
    line-height: 24px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget__title {
    font-size: 30px;
}

.service-list {
    max-width: 600px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    font-size: 15px;
}

.service-list li {
    border-bottom: 1px solid var(--color-border);
    transition: background-color .3s, color .3s;
}

.service-list li:nth-child(odd) {
    background-color: #e2f9cc;
}

.service-list li:last-child {
    border-bottom: 0;
}

.service-list li:hover,
.service-list li.is-active {
    background-color: #e0e0e0;
}

.service-list a {
    display: block;
    padding: 15px 10px;
    line-height: 22.5px;
}

.service-list a:hover,
.service-list .is-active a {
    color: #007bff;
}

/* 12. Galeria + lightbox
   ========================================================================== */
.gallery-section {
    padding-top: 50px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.gallery__item {
    display: block;
    aspect-ratio: 235 / 282;
    overflow: hidden;
}

.gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, opacity .4s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
    opacity: .9;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 70px;
    background: rgba(0, 0, 0, .9);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__figure {
    margin: 0;
    text-align: center;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: calc(100vh - 110px);
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);
}

.lightbox__counter {
    margin-top: 10px;
    color: #ccc;
    font-size: 14px;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 0;
    background: none;
    color: #fff;
    opacity: .8;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    opacity: 1;
}

.lightbox__close {
    top: 10px;
    right: 20px;
    font-size: 44px;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    font-size: 60px;
    transform: translateY(-50%);
}

.lightbox__nav--prev { left: 15px; }
.lightbox__nav--next { right: 15px; }

/* 13. Formulários / botões
   ========================================================================== */
.contact-section {
    padding: 70px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    display: block;
    width: 100%;
    height: 50px;
    padding: 18px;
    border: 1px solid transparent;
    background: #fff;
    box-shadow: var(--shadow-soft);
    color: #555;
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    line-height: 20px;
    outline: none;
    transition: border-color .2s;
}

.form-control:focus {
    border-color: var(--color-secondary);
}

.form-control.is-invalid {
    border-color: #d93223;
}

textarea.form-control {
    height: 220px;
    resize: vertical;
}

.form-error {
    display: block;
    margin-top: 5px;
    color: #d93223;
    font-size: 13px;
}

.form-alert {
    margin-bottom: 30px;
    padding: 15px 20px;
    border-left: 4px solid;
    background: #fff;
    font-size: 15px;
}

.form-alert--success {
    border-color: #2e9b47;
    color: #1f6d31;
}

.form-alert--error {
    border-color: #d93223;
    color: #a3261b;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-primary-site {
    display: inline-block;
    padding: 15px 40px;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: 1px;
    transition: background-color .3s;
}

.btn-primary-site:hover,
.btn-primary-site:focus {
    background: var(--color-accent-hover);
    color: #fff;
}

/* 14. Trabalhe conosco, busca, 404
   ========================================================================== */
.careers-section {
    margin: 20px 0;
    padding: 10px 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 20px 40px;
    border-radius: 3px;
    background: var(--color-whatsapp);
    color: #fff;
    font-family: var(--font-nav);
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
}

.btn-whatsapp i {
    font-size: 20px;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #4cb85b;
    color: #fff;
}

.search-section,
.error-section {
    padding: 70px 0;
}

.search-page-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-results {
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-results li {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.search-results h2 {
    margin-bottom: 5px;
    font-size: 34px;
}

.search-results p {
    margin: 0;
}

.error-section__code {
    display: block;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 160px;
    line-height: 1;
}

/* 15. Footer
   ========================================================================== */
.site-footer {
    background: #000;
    color: #acacac;
}

.site-footer a {
    color: #acacac;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
}

.footer-top {
    border-bottom: 1px solid #404040;
}

.footer-container {
    padding-left: 47px;
    padding-right: 47px;
}

.footer-col {
    padding: 40px 15px 10px;
    border-right: 1px solid #404040;
}

.footer-col:last-child {
    border-right: 0;
}

.footer-logo {
    display: block;
    max-width: 240px;
    margin-bottom: 25px;
}

.footer-logo img {
    display: block;
    width: 229px;
}

.footer-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
}

.footer-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

.footer-links {
    margin: -10px 0 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    line-height: 35px;
}

.footer-contact {
    position: relative;
    margin-bottom: 20px;
    padding-left: 40px;
}

.footer-contact i {
    position: absolute;
    top: 5px;
    left: 0;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.footer-contact a {
    display: block;
}

.footer-bottom {
    background: #0c0c0c;
    color: #fff;
}

.copyright {
    margin: 0;
    padding: 15px 0;
    font-size: 14px;
    line-height: 21px;
    text-align: center;
}

/* 16. Responsivo
   ========================================================================== */
@media (max-width: 1199px) {
    .main-nav__list > li > a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .header-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-bar__slogan {
        display: none;
    }

    .top-bar .d-flex {
        justify-content: center !important;
    }

    .top-bar__contacts {
        justify-content: center;
    }

    .top-bar__contacts li:last-child {
        border-right: 0;
    }

    .main-bar .header-container {
        min-height: 80px;
    }

    .logo img {
        width: 180px;
        height: 43px;
    }

    .header-actions {
        margin-left: auto;
        padding-top: 20px;
    }

    .nav-toggle {
        display: block;
        margin-top: 20px;
    }

    /* Menu lateral (drawer) */
    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        width: 280px;
        max-width: 85vw;
        padding: 20px 0;
        overflow-y: auto;
        background: #fff;
        box-shadow: 2px 0 15px rgba(0, 0, 0, .15);
        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .nav-open .main-nav {
        transform: translateX(0);
    }

    .nav-open::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(0, 0, 0, .4);
    }

    .main-nav__list {
        flex-direction: column;
    }

    .main-nav__list > li {
        border-bottom: 1px solid #eee;
    }

    .main-nav__list > li > a {
        padding: 12px 20px;
        font-size: 16px;
    }

    .submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: block;
        width: 48px;
        height: 48px;
        border: 0;
        background: none;
        color: var(--color-nav);
        font-size: 20px;
    }

    .submenu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .sub-menu {
        position: static;
        display: none;
        width: 100%;
        margin: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        background: #f7f7f7;
    }

    .has-children.is-open > .sub-menu {
        display: block;
    }

    .sub-menu a {
        padding-left: 35px;
    }

    .header-search {
        top: 70px;
        right: 15px;
    }

    h2,
    .section-title__title {
        font-size: 42px;
    }

    .page-banner {
        height: 200px;
    }

    .page-banner__title {
        font-size: 56px;
    }

    .about-content {
        padding-top: 0;
        margin-bottom: 40px;
    }

    .company-section {
        padding: 70px 0 30px;
    }

    .framed-image--tall {
        margin-bottom: 110px;
    }

    .service-detail .order-lg-1 {
        margin-top: 20px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-col {
        border-right: 0;
        border-bottom: 1px solid #404040;
        padding-bottom: 20px;
    }

    .footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    h2,
    .section-title__title {
        font-size: 36px;
    }

    .section-title__subtitle {
        font-size: 24px;
        line-height: 26px;
    }

    /* Linhas decorativas do subtítulo centralizado ocupam espaço demais no celular */
    .section-title--center .section-title__subtitle span::before,
    .section-title--center .section-title__subtitle span::after {
        display: none;
    }

    .page-banner {
        height: 160px;
    }

    .page-banner__title {
        font-size: 44px;
    }

    .top-bar__contacts {
        flex-direction: column;
    }

    .top-bar__contacts li {
        padding: 6px 0;
        border-right: 0;
    }

    .hero-slider__arrow {
        font-size: 16px;
    }

    .hero-slider__dots {
        bottom: 8px;
    }

    .about-section {
        padding: 60px 0 20px;
    }

    .framed-image {
        padding: 30px 0 0 30px;
        margin-bottom: 60px;
    }

    .framed-image__inner::before {
        top: -30px;
        bottom: -30px;
        left: -30px;
        border-width: 8px;
    }

    .framed-image--tall .framed-image__inner::before {
        border-width: 10px;
    }

    .since-year {
        right: 0;
        font-size: 64px;
        transform: translateY(-8px);
    }

    .framed-image--tall {
        margin-bottom: 90px;
    }

    .services-section {
        padding: 60px 0 30px;
    }

    .service-detail {
        padding: 50px 0 40px;
    }

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

    .lightbox {
        padding: 50px 10px;
    }

    .lightbox__nav {
        font-size: 44px;
    }

    .contact-section {
        padding: 50px 0;
    }

    .btn-whatsapp {
        padding: 18px 28px;
    }
}

@media (max-width: 575px) {
    /* Texto justificado em telas estreitas cria espaços grandes entre palavras */
    .text-justify {
        text-align: left;
    }
}

@media (max-width: 479px) {
    .logo img {
        width: 150px;
        height: 36px;
    }

    .header-cta {
        font-size: 13px;
        padding: 8px;
    }

    .header-cta i {
        display: none;
    }

    .header-search-toggle {
        width: 40px;
    }

    .nav-toggle {
        margin-left: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
