/* ===================== Cobergomes — estilos globais ===================== */

:root{
  --navy: #14346f;
  --navy-dark: #0e2450;
  --charcoal: #333d47;
  --gray: #999ca1;
  --gray-light: #e8e9eb;
  --bg-light: #f4f6f8;
  --white: #ffffff;
  --text: #2a2f36;
  --text-muted: #6b7178;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20,52,111,0.10);
  --shadow-sm: 0 4px 14px rgba(20,52,111,0.08);
  --container: 1180px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--navy-dark);
  margin: 0 0 0.5em;
}

h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
h2{ font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1em; color: var(--text); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--navy);
  border-left: 3px solid var(--navy);
  padding-left: 10px;
  margin-bottom: 14px;
}

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--alt{ background: var(--bg-light); }
.section--dark{ background: var(--charcoal); color: var(--white); }
.section--dark h2, .section--dark .eyebrow{ color: var(--white); }
.section--navy{ background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); }
.section--navy h2{ color: var(--white); }

.section-head{
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p{ color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn--primary{ background: var(--navy); color: var(--white); }
.btn--primary:hover{ background: var(--navy-dark); transform: translateY(-2px); }
.btn--ghost{ border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn--ghost:hover{ background: rgba(255,255,255,0.12); }
.btn--outline{ border-color: var(--navy); color: var(--navy); }
.btn--outline:hover{ background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(20,52,111,0.08);
}
.topbar{
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.topbar .container{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a{ color: inherit; }
.topbar a:hover{ color: var(--white); }

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 144px; width: auto; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a{
  display: block;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--charcoal);
  border-radius: var(--radius);
}
.nav-links a:hover, .nav-links a.active{
  color: var(--navy);
  background: var(--bg-light);
}
.nav-cta{ margin-left: 8px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 26px; height: 3px; background: var(--navy-dark); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--charcoal) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.hero .roofline{
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 90px;
  background: var(--white);
  clip-path: polygon(0% 100%, 0% 55%, 8% 30%, 16% 55%, 24% 20%, 32% 55%, 40% 35%, 48% 55%, 56% 15%, 64% 55%, 72% 40%, 80% 55%, 88% 25%, 96% 55%, 100% 45%, 100% 100%);
}
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-inner h1{ color: var(--white); }
.hero-inner .eyebrow{
  color: var(--white);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  border-left: none;
  padding: 7px 16px;
  border-radius: 999px;
}
.hero-inner p{ color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 560px; }
.hero-actions{ display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 64px;
  max-width: 640px;
}
.hero-stats div{
  border-left: 2px solid rgba(255,255,255,0.35);
  padding-left: 14px;
}
.hero-stats strong{
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
}
.hero-stats span{ font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* Inner-page hero (smaller) */
.page-hero{
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1{ color: var(--white); }
.page-hero .eyebrow{
  color: var(--white);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  border-left: none;
  padding: 7px 16px;
  border-radius: 999px;
}
.page-hero p{ color: rgba(255,255,255,0.85); max-width: 620px; }
.breadcrumb{ font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.breadcrumb a{ color: var(--white); }
.breadcrumb a:hover{ text-decoration: underline; }

/* ---------- Feature grid ---------- */
.grid{ display: grid; gap: 28px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }

.feature-card{
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover{ box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-card .icon{
  width: 54px; height: 54px;
  margin-bottom: 18px;
  color: var(--navy);
}
.feature-card h3{ margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p{ color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Product cards ---------- */
.product-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .media{
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .media svg{ width: 100%; height: 130px; }
.product-card .body{ padding: 26px; flex: 1; display: flex; flex-direction: column; }
.product-card h3{ margin-bottom: 10px; }
.product-card p{ color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.product-card .specs, .product-mini .specs{ margin: 14px 0 0; }
.product-card .specs li, .product-mini .specs li{
  font-size: 0.88rem;
  color: var(--text);
  padding: 5px 0;
  border-top: 1px dashed var(--gray-light);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.product-card .specs li span:first-child, .product-mini .specs li span:first-child{ color: var(--text-muted); }
.product-card .tag{
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--bg-light);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Category blocks (catalog) ---------- */
.category-block{ margin-bottom: 64px; }
.category-block:last-child{ margin-bottom: 0; }
.category-banner{
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius);
  padding: 28px 32px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}
.category-banner .icon{ width: 52px; height: 52px; flex-shrink: 0; color: var(--white); }
.category-banner h2{ color: var(--white); margin: 0 0 4px; }
.category-banner p{ color: rgba(255,255,255,0.82); margin: 0; font-size: 0.95rem; max-width: 660px; }

.product-mini{
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.product-mini .thumb{
  background: var(--white);
  border-radius: calc(var(--radius) - 2px);
  margin: -22px -24px 16px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-mini .thumb img{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.product-mini h3{ font-size: 1.1rem; margin-bottom: 6px; }
.product-mini > p{ color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 0;
}
.cta-band .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2{ color: var(--white); margin: 0; }
.cta-band p{ color: rgba(255,255,255,0.75); margin: 6px 0 0; }

/* ---------- About / split sections ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-visual{
  background: linear-gradient(150deg, var(--navy-dark), var(--navy) 60%, var(--charcoal));
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.split-visual img{ max-height: 160px; width: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35)); background: var(--white); padding: 24px; border-radius: var(--radius); }

.values-list li{
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
}
.values-list li:last-child{ border-bottom: none; }
.values-list .num{
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gray);
  min-width: 40px;
}
.values-list h4{ margin: 0 0 4px; text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--navy-dark); }
.values-list p{ margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card{
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-item{
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-light);
}
.contact-item:last-child{ border-bottom: none; }
.contact-item .icon{ width: 26px; height: 26px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.contact-item h4{ margin: 0 0 4px; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--navy-dark); }
.contact-item p, .contact-item a{ margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.contact-item a:hover{ color: var(--navy); }

.map-frame{
  border: 0;
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  margin-top: 24px;
  filter: grayscale(0.15);
}

.form-field{ margin-bottom: 18px; }
.form-field label{
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea, .form-field select{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-light);
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note{ font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-grid--teaser{ grid-template-columns: repeat(4, 1fr); }
.gallery-item{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  display: block;
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img{ transform: scale(1.07); }
.gallery-item .cap{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(14,36,80,0) 0%, rgba(14,36,80,0.88) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}
.gallery-item:hover .cap{ opacity: 1; transform: translateY(0); }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(9,16,32,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 88vw;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox .lightbox-cap{
  position: absolute;
  bottom: 30px; left: 0; right: 0;
  text-align: center;
  color: var(--white);
  font-family: var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,0.22); }
.lightbox-close{ top: 24px; right: 24px; }
.lightbox-prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px){
  .gallery-grid--teaser{ grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 24px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img{ height: 46px; margin-bottom: 16px; background: var(--white); padding: 8px 12px; border-radius: 4px; }
.footer-brand p{ color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 320px; }
.footer h4{
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul li{ margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .topbar .container{ justify-content: center; }
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 14px 16px; }
  .nav-toggle{ display: flex; }
  .nav-cta{ margin: 8px 16px 0; }
  .hero-stats{ grid-template-columns: 1fr; }
  .grid--4, .grid--3, .grid--2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .cta-band .container{ flex-direction: column; text-align: center; }
}
