/* =========================================================
   CEFO Montagens Industriais — base, layout e responsividade
   ========================================================= */

:root {
  --color-primary: #075db5;
  --color-primary-bright: #0787e8;
  --color-secondary: #06284b;
  --color-dark: #031326;
  --color-dark-2: #041b35;
  --color-light: #f6f7f8;
  --color-white: #ffffff;
  --color-muted: #647181;
  --color-border: #c6ccd3;
  --color-yellow: #f3c400;
  --shadow-soft: 0 16px 40px rgba(3, 19, 38, .12);
  --radius-lg: 2px;
  --radius-md: 2px;
  --max-width: 1180px;
  --font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Arial", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--color-dark); background: var(--color-white); font-family: var(--font-body); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(var(--max-width), calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .7rem 1rem; background: var(--color-primary); color: white; }
.skip-link:focus { top: 1rem; }

/* Typography */
.eyebrow { margin: 0 0 .8rem; color: var(--color-primary); font: 700 .76rem/1.2 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.eyebrow--blue { color: var(--color-primary-bright); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; }
.section-intro h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.15rem); line-height: .97; letter-spacing: -.02em; }
.products .section-intro h2, .projects .section-intro h2 { font-size: clamp(1.95rem, 3vw, 2.6rem); letter-spacing: -.05em; }
.section-intro > p:not(.eyebrow) { max-width: 280px; margin-bottom: 1.65rem; color: inherit; font-size: .9rem; }
.section-intro--dark { color: var(--color-white); }
.section-intro--light { color: var(--color-dark); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 42px; padding: .72rem 1.2rem; border: 1px solid transparent; font: 700 .78rem/1.1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--color-primary); color: var(--color-white); box-shadow: 0 8px 18px rgba(7, 93, 181, .2); }
.button--primary:hover { background: var(--color-primary-bright); box-shadow: 0 10px 24px rgba(7, 135, 232, .25); }
.button--outline-light { border-color: rgba(255, 255, 255, .85); color: var(--color-white); }
.button--outline-light:hover { background: var(--color-white); color: var(--color-dark); }
.button--outline-dark { border-color: var(--color-primary); color: var(--color-primary); }
.button--outline-dark:hover { background: var(--color-primary); color: var(--color-white); }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Header */
.topbar { min-height: 31px; background: var(--color-dark); color: rgba(255, 255, 255, .88); font-size: .69rem; }
.topbar__inner, .topbar__contact, .topbar__social { display: flex; align-items: center; }
.topbar__inner { justify-content: flex-end; min-height: 31px; gap: 1.25rem; }
.topbar__contact { gap: 1rem; }
.topbar a { transition: color .2s ease; }
.topbar a:hover { color: var(--color-primary-bright); }
.topbar i { margin-right: .35rem; color: var(--color-white); }
.topbar__social { gap: .75rem; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .25); }
.topbar__social a { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
.topbar__social i { margin: 0; font-size: .72rem; }
.site-header { position: relative; z-index: 10; background: var(--color-white); box-shadow: 0 1px 0 rgba(3, 19, 38, .05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 101px; }
.brand { display: block; width: 203px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.55rem; font: 700 .76rem/1 var(--font-display); text-transform: uppercase; }
.site-nav > a:not(.nav-cta) { position: relative; padding: 1.6rem 0; }
.site-nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: .95rem; left: 0; height: 2px; background: var(--color-primary); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav > a:not(.nav-cta):hover::after, .site-nav > a.is-active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1rem; background: var(--color-primary); color: var(--color-white); transition: background .2s ease, transform .2s ease; }
.nav-cta:hover { background: var(--color-primary-bright); transform: translateY(-1px); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--color-dark); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 548px; overflow: hidden; background: var(--color-dark); color: var(--color-white); }
.hero__image, .hero__overlay, .cta__image, .cta__overlay { position: absolute; inset: 0; }
.hero__image { background: url("../img/hero-industrial.webp") center center / cover no-repeat; }
.hero__overlay { background: linear-gradient(90deg, rgba(3, 19, 38, .98) 0%, rgba(3, 19, 38, .93) 29%, rgba(3, 19, 38, .5) 55%, rgba(3, 19, 38, .1) 100%); }
.hero::after { position: absolute; top: 0; bottom: 0; left: 37%; width: 23%; background: rgba(2, 24, 51, .73); clip-path: polygon(0 0, 42% 0, 100% 100%, 58% 100%); content: ""; pointer-events: none; }
.hero__content { position: relative; z-index: 1; padding-top: 4.8rem; padding-bottom: 4.8rem; }
.hero h1 { max-width: 520px; margin: 0 0 1.5rem; font-size: clamp(3rem, 5vw, 4.55rem); line-height: .93; letter-spacing: -.03em; }
.hero h1 span { color: var(--color-primary-bright); }
.hero h1 small { display: block; font: inherit; font-size: .67em; line-height: 1; }
.hero__text { max-width: 380px; margin-bottom: 1.55rem; font-size: .91rem; }

/* Benefits */
.benefits-strip { background: var(--color-light); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 2rem 0; }
.benefit-item { display: flex; align-items: center; gap: 1rem; min-height: 74px; padding: .25rem 1.45rem; border-right: 1px solid var(--color-border); }
.benefit-item:first-child { padding-left: .7rem; }
.benefit-item:last-child { border-right: 0; }
.benefit-item > i { flex: 0 0 auto; width: 45px; color: var(--color-secondary); font-size: 2.55rem; text-align: center; }
.benefit-item h2 { margin-bottom: .25rem; font-size: .92rem; line-height: 1; }
.benefit-item p { margin: 0; color: #44505e; font-size: .69rem; line-height: 1.3; }

/* Sections */
.section-dark { background: var(--color-dark); }
.section-light { background: var(--color-light); }
.services { padding: 4.5rem 0; }
.services__layout, .products__layout, .projects__layout { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 3.2rem; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.service-card { display: flex; min-height: 140px; flex-direction: column; align-items: center; justify-content: center; gap: 1.15rem; padding: 1.1rem .6rem; background: var(--color-light); color: var(--color-dark); text-align: center; transition: background .25s ease, color .25s ease, transform .25s ease; }
.service-card:hover { z-index: 1; background: var(--color-primary); color: var(--color-white); transform: translateY(-3px); }
.service-card i { color: var(--color-secondary); font-size: 2.15rem; transition: color .25s ease; }
.service-card:hover i { color: var(--color-white); }
.service-card span { font: 700 .95rem/1.15 var(--font-display); text-transform: uppercase; }
.products { padding: 4.4rem 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.product-card { margin: 0; background: var(--color-dark); color: var(--color-white); overflow: hidden; }
.product-card img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-card h3 { min-height: 66px; margin: 0; padding: 1rem .7rem; background: var(--color-secondary); font-size: .88rem; line-height: 1.15; text-align: center; }
.projects { padding: 4.5rem 0; }
.projects-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.projects-gallery figure { height: 142px; margin: 0; overflow: hidden; border: 2px solid var(--color-white); }
.projects-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.projects-gallery figure:hover img { transform: scale(1.06); }
.why { padding: 2.7rem 0 3rem; }
.why > .container > .eyebrow { margin-left: 0; }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 1rem; }
.why-item { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: .5rem .7rem; border-right: 1px solid var(--color-border); text-align: center; }
.why-item:first-child { border-left: 0; }
.why-item:last-child { border-right: 0; }
.why-item i { color: var(--color-secondary); font-size: 2rem; }
.why-item h2 { margin: 0; font-size: .9rem; line-height: 1.18; }

/* CTA and footer */
.cta { position: relative; min-height: 206px; overflow: hidden; background: var(--color-dark); color: var(--color-white); }
.cta__image { background: url("../img/solda-industrial.webp") center / cover no-repeat; }
.cta__overlay { background: linear-gradient(90deg, rgba(3, 19, 38, 1) 0%, rgba(3, 19, 38, .9) 43%, rgba(3, 19, 38, .2) 100%); }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 206px; }
.cta h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: .98; }
.cta__action { justify-self: center; }
.cta__action p { margin-bottom: .9rem; font-size: .9rem; }
.site-footer { background: var(--color-light); }
.footer-main { display: grid; grid-template-columns: 1.15fr 1.1fr 1.3fr; align-items: center; min-height: 175px; }
.footer-brand { padding-right: 2rem; }
.footer-brand img { width: 220px; }
.footer-contact { display: grid; gap: .4rem; padding: .4rem 2rem; border-right: 1px solid var(--color-border); border-left: 1px solid var(--color-border); font-size: .82rem; }
.footer-contact a:hover, .footer-bottom a:hover { color: var(--color-primary); }
.footer-contact i { width: 18px; margin-right: .45rem; color: var(--color-dark); text-align: center; }
.footer-address { display: flex; align-items: center; gap: 1rem; padding-left: 2rem; font-size: .82rem; font-style: normal; }
.footer-address > i { color: var(--color-dark); font-size: 1.7rem; }
.footer-bottom { background: var(--color-dark); color: rgba(255, 255, 255, .9); font-size: .66rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; }
.footer-bottom p { margin: 0; }

/* Responsiveness */
@media (max-width: 1060px) {
  .site-nav { gap: 1rem; font-size: .7rem; }
  .nav-cta { padding: .78rem .8rem; }
  .services__layout, .products__layout, .projects__layout { gap: 2rem; }
  .product-card img { height: 190px; }
}

@media (max-width: 860px) {
  .container { width: min(var(--max-width), calc(100% - 40px)); }
  .header__inner { min-height: 86px; }
  .brand { width: 175px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1rem 1rem; background: var(--color-white); box-shadow: var(--shadow-soft); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.nav-cta) { padding: .85rem 0; }
  .site-nav > a:not(.nav-cta)::after { bottom: .45rem; }
  .nav-cta { justify-content: center; margin-top: .35rem; }
  .hero { min-height: 560px; }
  .hero::after { left: 45%; width: 35%; }
  .hero__content { padding-top: 4rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-item { border-bottom: 1px solid var(--color-border); }
  .benefit-item:nth-child(2) { border-right: 0; }
  .benefit-item:nth-child(n+3) { border-bottom: 0; }
  .services__layout, .products__layout, .projects__layout { grid-template-columns: 1fr; align-items: start; }
  .section-intro > p:not(.eyebrow) { max-width: 440px; }
  .services-grid, .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-card img { height: 200px; }
  .projects-gallery figure { height: 170px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item:nth-child(3) { border-right: 0; }
  .why-item:nth-child(n+4) { border-top: 1px solid var(--color-border); }
  .why-item:nth-child(4) { border-left: 0; }
  .cta__inner { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .footer-brand { grid-row: span 2; }
  .footer-contact { border-right: 0; }
  .footer-address { padding-left: 2rem; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .topbar__inner { justify-content: space-between; gap: .5rem; }
  .topbar__contact { gap: .55rem; font-size: .6rem; }
  .topbar__contact a:nth-child(2) { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar__social { padding-left: .5rem; }
  .brand { width: 162px; }
  .hero { min-height: 610px; }
  .hero__image { background-position: 63% center; }
  .hero__overlay { background: linear-gradient(90deg, rgba(3, 19, 38, .98) 0%, rgba(3, 19, 38, .84) 70%, rgba(3, 19, 38, .45) 100%); }
  .hero::after { display: none; }
  .hero__content { padding-top: 4.6rem; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero__text { max-width: 320px; font-size: .86rem; }
  .button-row { flex-direction: column; align-items: stretch; max-width: 285px; }
  .button { width: 100%; }
  .benefits-grid { grid-template-columns: 1fr; padding: .75rem 0; }
  .benefit-item, .benefit-item:first-child { min-height: 82px; padding: .75rem .2rem; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .benefit-item:last-child { border-bottom: 0; }
  .benefit-item > i { width: 42px; }
  .services, .products, .projects { padding: 3.4rem 0; }
  .services-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .service-card { min-height: 132px; }
  .service-card i { font-size: 1.85rem; }
  .service-card span { font-size: .82rem; }
  .product-card img { height: 145px; }
  .product-card h3 { min-height: 66px; font-size: .76rem; }
  .projects-gallery { grid-template-columns: repeat(2, 1fr); }
  .projects-gallery figure { height: 120px; }
  .why { padding: 2.4rem 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { min-height: 126px; }
  .why-item:nth-child(2), .why-item:nth-child(4) { border-right: 0; }
  .why-item:nth-child(3) { border-right: 1px solid var(--color-border); }
  .why-item:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .cta { min-height: 410px; }
  .cta__image { background-position: 72% center; }
  .cta__overlay { background: linear-gradient(90deg, rgba(3, 19, 38, .98) 0%, rgba(3, 19, 38, .77) 100%); }
  .cta__inner { display: flex; min-height: 410px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.7rem; }
  .cta h2 { font-size: 2rem; }
  .cta__action { align-self: stretch; }
  .cta__action p { font-size: .86rem; }
  .cta__action .button { max-width: 285px; }
  .footer-main { display: block; min-height: 0; padding-top: 2rem; padding-bottom: 2rem; }
  .footer-brand { padding: 0 0 1.6rem; }
  .footer-brand img { width: 190px; }
  .footer-contact { padding: 1.2rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
  .footer-address { padding: 1.2rem 0 0; }
  .footer-bottom .container { flex-direction: column; gap: .35rem; }
}

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