/* ========================================
   IRMÃOS HEDLUND - Custom Styles
   ======================================== */

:root {
  --primary: #0B5089;
  --secondary: #FFC200;
  --primary-dark: #07345a;
  --text: #555555;
  --bg-light: #EFEFEF;
}

* { box-sizing: border-box; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: #fff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- TYPOGRAPHY ---- */
.section-title {
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.section-title .mdi {
  color: var(--secondary);
  font-size: 1rem;
}

/* ---- NAVBAR ---- */
.navbar {
  background-color: var(--primary);
  border-bottom: 5px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar .logo img { height: 50px; }
.navbar ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}
.navbar ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.navbar ul li a:hover,
.navbar ul li a.active {
  background: rgba(255,255,255,0.15);
}
.navbar ul li a .mdi { font-size: 1rem; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
  }
  .navbar ul.open { display: flex; }
  .navbar { position: relative; }
}

/* ---- HERO / VIDEO ---- */
#hero {
  position: relative;
  height: 80vh;
  min-height: 460px;
  max-height: 780px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero .video-content {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
#hero .hero-logo {
  position: relative;
  z-index: 2;
  text-align: center;
}
#hero .hero-logo img {
  max-width: 650px;
  width: 75%;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.6));
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  text-transform: uppercase;
  font-size: 2rem;
  margin: 0;
  letter-spacing: 2px;
}
.page-hero h1 .mdi { color: var(--secondary); margin: 0 0.4rem; }

/* ---- SECTION: INFO (home) ---- */
#section-info {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
#section-info .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
#section-info .info-grid img {
  width: 100%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px rgba(11,80,137,0.2);
}
#section-info .info-grid p {
  text-align: justify;
  line-height: 1.8;
}
@media (max-width: 768px) {
  #section-info .info-grid { grid-template-columns: 1fr; }
}

/* ---- SECTION: SECTORS (home) ---- */
#section-sectors {
  padding: 3rem 1rem 4rem;
  background: var(--bg-light);
}
#section-sectors .sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
#section-sectors .sector-card a {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.2s;
}
#section-sectors .sector-card a:hover { transform: translateY(-4px); }
#section-sectors .sector-icon {
  font-size: 4rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}
#section-sectors .sector-card h3 {
  text-transform: uppercase;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0.5rem 0;
}
#section-sectors .sector-card p {
  font-size: 0.9rem;
  text-align: justify;
  line-height: 1.7;
}
@media (max-width: 768px) {
  #section-sectors .sectors-grid { grid-template-columns: 1fr; }
}

/* ---- SECTION: EMPRESA ---- */
#section-company {
  padding: 3rem 1rem;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}
#section-company .company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: justify;
  line-height: 1.8;
}
#section-company .company-lead {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 2rem;
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 768px) {
  #section-company .company-grid { grid-template-columns: 1fr; }
}

/* ---- SECTION: PRODUTOS ---- */
#section-products {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
#section-products .products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.category-sidebar h4 {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.category-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-sidebar ul li a {
  display: block;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.category-sidebar ul li a:hover,
.category-sidebar ul li a.active {
  color: var(--primary);
  border-left-color: var(--secondary);
  background: #f5f5f5;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.product-card {
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-3px); }
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px rgba(11,80,137,0.2);
  transition: box-shadow 0.2s;
}
.product-card img.img-placeholder {
  object-fit: cover;
}
.product-card:hover img { box-shadow: 0 0 6px 1px rgba(11,80,137,0.5); }
.product-card p {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0.5rem 0 0;
  color: var(--primary);
}
@media (max-width: 768px) {
  #section-products .products-layout { grid-template-columns: 1fr; }
  .category-sidebar ul { display: flex; flex-wrap: wrap; gap: 0.3rem; }
}

/* ---- SECTION: REPRESENTANTES ---- */
#section-reps {
  padding: 2rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.rep-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px rgba(11,80,137,0.3);
  margin-bottom: 0.8rem;
}
.rep-card .rep-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 3.5rem;
  color: #fff;
}
.rep-card h4 {
  color: var(--primary);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}
.rep-card p { font-size: 0.9rem; margin: 0.3rem 0 0; }
@media (max-width: 600px) {
  .reps-grid { grid-template-columns: 1fr; }
}

/* ---- SECTION: CONTATO ---- */
#section-contact {
  padding: 2rem 1rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.contact-form label {
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form .form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-left: 140px;
}
.btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: transparent; border: 2px solid #e74c3c; color: #e74c3c; }
.btn-danger:hover { background: #fef0f0; }

#map-section {
  padding: 2rem 0 0;
}
#map-section h2 {
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
#map-section iframe { display: block; }

@media (max-width: 600px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form label { text-align: left; }
  .contact-form .form-actions { padding-left: 0; }
}

/* ---- FOOTER ---- */
footer {
  background-color: var(--primary);
  border-top: 5px solid var(--secondary);
  color: #fff;
  margin-top: 0;
}
#footer-main {
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
#footer-main h2 { margin: 0 0 0.8rem; font-size: 1.2rem; }
#footer-main address { font-style: normal; line-height: 1.8; font-size: 0.9rem; }
#footer-main .social {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
#footer-main .social a { color: #fff; font-size: 2rem; text-decoration: none; transition: opacity 0.2s; }
#footer-main .social a:hover { opacity: 0.75; }

#footer-bottom {
  background: var(--primary-dark);
  padding: 0.8rem 1.5rem;
}
#footer-bottom .footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
#footer-bottom img { height: 28px; opacity: 0.8; }
@media (max-width: 600px) {
  #footer-main { grid-template-columns: 1fr; }
  #footer-main .social { justify-content: flex-start; }
  #footer-bottom .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
