/* ----- Universal box model ----- */

*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ----- Root variables ----- */

:root
{
	--color-primary: #16263b;
	--color-secondary: #f7f8fa;
	--color-details: #f48335;
	--color-light-gray: hsla(0, 0%, 94%, 0.6);
	--color-dark-gray: rgb(127, 133, 141);
	--color-transparent: rgb(255,255,255, 0.0);
	--color-beije: rgb(238, 233, 225);
}

/* ----- Globals ----- */

html
{
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

header
{
	height: 80px;
	font-family: "Sa";
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--color-primary);
	color: white;
	font-family: "Space Grotesk", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 600;
  	font-style: bold;
	padding: 0 14% 0 14%;
	position: sticky;
	top: 0;
	z-index: 1000;
}


body
{
	background-color: var(--color-primary);
}

a
{
	text-decoration: none;
	color: white;
}

a:hover
{
	color: var(--color-details);
}

button:hover
{
	cursor: pointer;
}

h1, h2, h3 , h4
{
	font-family: "Space Grotesk", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 460;
  	font-style: bold;
	font-size: 2.75rem;
	letter-spacing: 0.02em;
	text-transform: capitalize;
}

p
{
  	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 400;
  	font-style: normal;
  	text-align: justify;
	font-size: 1.125rem;
	line-height: 1.65rem;
	max-width: 75ch;
	color: var(--color-light-gray);
}

span
{
  	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 400;
  	font-style: normal;
	color: var(--color-details);
}

.logo
{
	width: 52px;
	height: auto;
}

/* ----- Classes ----- */

/* <header> */

.header-container-left
{
	display: flex;
	justify-content: left;
	align-items: center;
	width: 17%;
	gap: 7%;
}

.name
{
	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 400;
  	font-style: normal;
	font-size: 1rem;
	color: var(--color-secondary);
	margin: 0;
	width: auto;
	white-space: nowrap;
}

.header-container-right
{
	display: flex;
	justify-content: right;
	align-items: center;
	width: 50%;
	gap: 6%;
}

.dropdown
{
	position: relative;
	display: inline-block;
}


.dropdown-trigger
{
	display: flex;
	align-items: center;
	gap: 7px;
	background: none;
	border: none;
	color: white;
	font-family: "Space Grotesk", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: color 0.3s;
	white-space: nowrap;
}

.dropdown-trigger:hover
{
	color: var(--color-details);
}

.dropdown-trigger img
{
	width: 0.5rem;
	height: auto;
}

.dropdown-trigger:hover img
{
	transform: rotate(180deg);
}

.rotate
{
	transition: transform 0.3s ease-in-out;
}

.dropdown-menu
{
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 0.75rem;
	width: 12rem;
	background: #ffffff;
	border: 1px solid hsl(210, 18%, 88%);
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.dropdown:hover .dropdown-menu
{
	opacity: 1;
	visibility: visible;
}

.dropdown-menu a
{
	display: block;
	padding: 0.75rem 1.25rem;
	font-size: 0.875;
	color: hsl(215, 10%, 45%);
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover
{
	background: hsl(210, 15%, 95%);
	color: hsl(215, 35%, 12%);
}

/* inicio */

.inicio
{
	padding: 0 14% 0 14%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-content: center;
	justify-content: space-between;
	color: var(--color-secondary);
	height: calc(100vh - 80px);
	background: linear-gradient(180deg, var(--color-primary), var(--color-primary), rgba(26, 45, 76, 0.6));
}

.inicio-text
{
	display: flex;
	flex-direction: column;
	align-items: left;
	justify-content: center;
	text-align: left;
	gap: 2%;
	width: 85%;
}

.inicio-title
{
	line-height: 3rem;
	text-transform: none;
	letter-spacing: normal;
}

.inicio-text-container
{
	font-size: 1.125rem;
	line-height: 1.7rem;
	margin-top: 1rem;
	text-align: left;
}

.image-container
{
	display: flex;
	flex-direction: column;
	justify-self: end;
}

.inicio-image
{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 480px;
	height: 640px;
	border-radius: 4%;
	box-shadow: 0 0 40px 5px rgba(244, 131, 53, 0.5);
	filter: brightness(0.87);
}

.saibamais-button
{
	margin-top: 30px;
	width: 125px;
	height: 45px;
	padding: 0px 20px;
	border-radius: 999px;
	border: 2px solid gray;
	background-color: var(--color-transparent);
	color: var(--color-secondary);
	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 600;
  	font-style: normal;
}

/* .saibamais-button:hover
{
	border: 2px solid var(--color-details);
	color: var(--color-details);
}
 */
 
/* quem somos */

.quemsomos
{
	padding: 5% 14% 5% 14%;
	color: black;
	height: calc(100vh - 80px);
	background-color: var(--color-secondary);
	display: flex;
}

.quemsomos-text
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	text-align: center;
}

.quemsomos-text-container
{
	width: 70%;
	margin-top: 2rem;
	color: var(--color-dark-gray);
	text-align: center;
}

.quem-somos-btn
{
	display: flex;
	width: 54%;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-top: 4rem;
}

.qs-btn
{
	border: none;
	outline: none;
	border-radius: 10px;
	padding: 1rem;
	background-color: var(--color-primary);
	width: 70%;
	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 600;
	color: white;
  	font-style: normal;
}

.qs-btn:hover
{
	cursor: pointer;
	background: #1e3149;
	color: white;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

/* catalogo */


.catalogo 
{
	padding: 5% 14% 5% 14%;
	color: var(--color-secondary-text);
	height: calc(100vh - 80px);
	background: linear-gradient(180deg, var(--color-primary), var(--color-primary), rgba(26, 45, 76, 0.6));
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.catalogo-text
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	text-align: center;
}

.catalogo-title
{
	color: var(--color-secondary);
}

.equipamentos-bot-title
{
	margin-top: 2rem;
  	color: var(--color-dark-gray);
}

.equipamentos-bot-title.active, .equipamentos-top-title.active
{
	display: none;
	height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

.catalogo-industrias 
{
	max-width: 1300px;
	width: 100%;
	padding: 2rem;
	margin: 0 auto;
}

.categorias 
{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 3rem;
}

.industrias
{
	background: #183050;
	border: 2px solid gray;
	border-radius: 12px;
	padding: 1.5rem;
	text-align: center;
	color: #fff;
	transition:all 0.4 ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	height: 200px;
	width: 300px;
	flex: 1;
}

.industrias-imp
{
	background: hsla(174, 100%, 25%, 0.1);
	border: 2px solid #007f71;
}

.industrias-vib
{
	background: hsla(27, 89%, 77%, 0.1);
	border: 2px solid var(--color-details);
}

.industrias-mag
{
	background: hsla(45, 95%, 52%, 0.1);
	border: 2px solid hsl(45, 95%, 52%);
}

.industrias-imp:hover
{
	background: hsla(174, 100%, 25%, 0.1);
	border: 2px solid #007f71;
	cursor: pointer;
}

.industrias-vib:hover
{
	background: hsla(27, 89%, 77%, 0.1);
	border: 2px solid var(--color-details);
	cursor: pointer;
}

.industrias-mag:hover
{
	background: hsla(45, 95%, 52%, 0.1);
	border: 2px solid hsl(45, 95%, 52%);
	cursor: pointer;
}

.industrias.active .industrias-icon-imp
{
	background: hsla(152, 49%, 50%, 0.2);
}

.industrias.active .industrias-icon-vib
{
	background: hsla(45, 95%, 52%, 0.2);
}

.industrias.active .industrias-icon-mag
{
	background: hsla(61, 100%, 50%, 0.2);
}

.industrias-imp.active
{
	border: 2px solid #007f71;
	background: hsla(152, 49%, 50%, 0.2);
}

.industrias-vib.active
{
	border: 2px solid var(--color-details);
	background: hsla(45, 95%, 52%, 0.2);
}

.industrias-mag.active
{
	border: 2px solid hsl(45, 95%, 52%);
	background: hsla(61, 100%, 50%, 0.2);
}

.industrias.active
{
	transform: scale(1.03);
}

.industrias:not(.active).dimmed
{
	opacity: 0.5;
}

.industrias-img
{
	height: auto;
	width: 15%;
}

.industrias-icon
{
	font-size: 40px !important;
	border-radius: 10px;
	padding: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
}

.industrias-icon-imp
{
	background: hsla(152, 49%, 50%, 0.1);
	color: #007f71;
}

.industrias-icon-vib
{
	background: hsla(45, 95%, 52%, 0.1);
	color: #f29225;
}

.industrias-icon-mag
{
	font-size: 30px !important;
	background: hsla(61, 100%, 50%, 0.1);
	color: #e8b506;
}

.equip-button-span
{
	color: var(--color-secondary);
}

/* Hidden detail panel */

.catalogo-industrias 
{
	max-width: 1200px;
	width: 100%;
	padding: 2rem;
	margin: 0 auto;
}

.categorias 
{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.industrias 
{
	flex: 1;
	max-width: 800px;
}

#detail-panel 
{
	height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, margin-top 0.5s ease;
	margin-top: 0;
	visibility: hidden;
	padding: 0 2px 2px 2px;
}

#detail-panel.expanded 
{
	height: 400px;
	opacity: 1;
	margin-top: 2rem;
	visibility: visible;
	overflow: visible;
}

.panel-inner 
{
  	background: rgba(255, 255, 255, 0.05);
  	border: 1px solid rgba(255, 255, 255, 0.1);
  	border-radius: 16px;
  	display: grid;
  	grid-template-columns: 65fr 35fr;
	height: 400px; 
  	overflow: hidden;
}

.panel-text-header 
{
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.panel-text 
{
	flex-direction: column;
	display: flex;
	height: 100%;
	text-align: left;
	padding: 2rem;
}

.panel-text h3 
{
	font-size: 1.5rem;
	margin: 0;
	color: var(--color-details);
}

.panel-text p 
{
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.6;
}

.saiba-mais-btn 
{
	align-self: flex-start;
  	margin-top: auto;
  	margin-top: 1.5rem;
  	padding: 0.6rem 1.5rem;
  	background: none;
  	border: 2px solid var(--color-details);
  	border-radius: 8px;
  	color: var(--color-details);
	font-family: "Outfit", sans-serif;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
  	cursor: pointer;
  	transition: all 0.3s ease;
}

.saiba-mais-btn:hover 
{
  	background: var(--color-details);
  	color: var(--color-primary);
}

.panel-img 
{
  	overflow: hidden;
  	border-radius: 0 16px 16px 0;
}

.panel-img img 
{
  	width: 100%;
  	height: 100%;
  	object-fit: cover;
}

#panel-summary
{
	flex-grow: 1;
	overflow-y: auto;
	margin-bottom: 1rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.6;
}

.close-btn 
{
  	background: none;
  	border: none;
  	color: rgba(255, 255, 255, 0.4);
  	cursor: pointer;
  	font-size: 1.2rem;
}

.close-btn:hover 
{
  color: var(--color-details);
}

/* parceiros */

.parceiros
{
  padding: 10% 5% 10% 5%;
  color: black;
  height: calc(100vh - 80px);
  background-color: var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.parceiros-content
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  row-gap: 2rem;
}

.parceiros-title
{
  color: var(--color-secondary-text);
}

.parceiros-bot-title
{
  	margin-top: 2rem;
  	color: var(--color-dark-gray);
}

.parceiros-icons-container
{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 5%;
}

.parceiros-icons
{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 131px;
  height: 131px;
  border-radius: 10%;
  border: 2px solid lightgray;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.p-i
{
  height: auto;
  width: 100%;
  border-radius: 9%;
}

.parceiros-imp, .parceiros-vib, .parceiros-mag
{
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.parceiros-group-label
{
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  border: 2px solid;
  font-family: 'Outfit', sans-serif;
  font-weight:900;
}

.parceiros-imp:hover .parceiros-group-label,
.parceiros-vib:hover .parceiros-group-label,
.parceiros-mag:hover .parceiros-group-label
{
  opacity: 1;
}

.parceiros-imp:hover
{
  border-color: rgba(0, 127, 113, 0.4);
  background: rgba(0, 127, 113, 0.05);
}
.parceiros-imp .parceiros-group-label
{
  color: #007f71;
  border-color: rgba(0, 127, 113, 0.35);
  background-color: var(--color-secondary);
}

.parceiros-vib:hover
{
  border-color: rgba(232, 125, 30, 0.4);
  background: rgba(232, 125, 30, 0.05);
}
.parceiros-vib .parceiros-group-label
{
  color: #e87d1e;
  border-color: rgba(232, 125, 30, 0.35);
  background-color: var(--color-secondary);
}

.parceiros-mag:hover
{
  border-color: #e8b506;
  background: rgba(255, 251, 0, 0.10);
}
.parceiros-mag .parceiros-group-label
{
  color: #e8b506;
  border-color: #e8b506;
  background-color: var(--color-secondary);
}

/* < logos > */

.cetco-img, .italvibras-img, .hervisa-img, .findeva-img, .atd-img
{
  width: 90%;
}

.felemamg-img, .eralki-img
{
  width: 80%;
}

/* < logos > */

.cetco-img, .italvibras-img, .hervisa-img, .findeva-img, .atd-img
{
	width: 90%;
}

.felemamg-img, .eralki-img
{
	width: 80%;
}

/* <logos:hover> */

.cetco-icon:hover
{
	border: 2px solid #007f71;
}

.italvibras-icon:hover
{
	border: 2px solid #f8c090;
}
.hervisa-icon:hover
{
	border: 2px solid #c71c34;
}

.findeva-icon:hover
{
	border: 2px solid #009fe3;
}


.felemamg-icon:hover
{
	border: 2px solid #f29225;
}

.eralki-icon:hover
{
	border: 2px solid #005895;
}

.atd-icon:hover
{
	border: 2px solid #fc1c1a;
}

/* contactos */

.contactos
{
	padding: 5% 14% 5% 14%;
	color: var(--color-secondary-text);
	min-height: calc(100vh - 80px);
	height: auto;
	background: linear-gradient(180deg, var(--color-primary), var(--color-primary), rgba(26, 45, 76, 0.6));
}

.contactos-title
{
	color: var(--color-secondary);
}

.title-assist
{
	margin-bottom: 1.4rem;
}

.top-title
{
	color: var(--color-details);
	font-weight: 500;
	font-size: 1rem;
}

.contactos-bot-title
{
	margin-top: 2rem;
	text-align: center;
}

.contactos-text-field, .contactos-message-field, .contact-phone
{
	width: 60%;
	height: 2.4rem;
	margin: 0.7rem;
	background: #183050;
	color: var(--color-light-gray);
	border-radius: 7px;
	padding: 0 1rem 0 1rem;
 	border: 2px solid var(--color-light-gray);
	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 400;
  	font-style: normal;
	font-size: 1rem;
	color: var(--color-secondary);
}

.select-industria
{
	width: 60%;
	height: 2.4rem;
	margin: 0.7rem;
	background: #183050;
	color: var(--color-light-gray);
	border-radius: 7px;
	padding: 0 1rem 0 1rem;
 	border: 2px solid var(--color-light-gray);
	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 400;
  	font-style: normal;
	font-size: 1rem;
	cursor: pointer;
}

.contactos-message-field
{
	padding: 0.5rem 1rem 0.5rem 1rem;
	height: 8rem;
	resize: none;
}

.contactos-message-field:focus, .contactos-text-field:focus
{
	outline: none;
	border: 2px solid var(--color-details);
}

.contactos-enviar-button
{
	margin-top: 30px;
	width: 125px;
	height: 45px;
	padding: 0px 20px;
	border-radius: 999px;
	background-color: var(--color-details);
	color: var(--color-primary);
	font-family: "Outfit", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 600;
  	font-style: normal;
	border: none;
	width: 60%;
}

.contactos-enviar-button:hover
{
	box-shadow: 0 0 4px 3px rgba(242, 146, 37, 0.5);
}

.contactos-content
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* footer */

footer
{
	border-top: 1px solid var(--color-light-gray);
	padding: 1% 14% 1% 14%;
	background: linear-gradient(rgba(26, 45, 76, 0.6), var(--color-primary), var(--color-primary));
}

.footer-text
{
	display: grid;
	grid-template-columns: auto auto auto;
	padding-bottom: 2%;
	height: auto;
	justify-content: space-evenly;
}

.footer-name
{
	font-family: "Outfit", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 1rem;
	color: var(--color-secondary);
	margin: 0;
	height: 40px;
	display: flex;
	align-items: center;
}

.footer-access
{
	display: flex;
	flex-direction: column;
	gap: 7%;
	min-height: 100%;
	padding: 1rem;
}

.footer-map
{
	min-height: 100%;
	padding: 1rem;
}

.nav-links
{
	font-family: "Outfit", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	color: var(--color-secondary);
}

.nav-links:hover
{
	color: var(--color-details);
}


.footer-contacts div
{
	display: flex;
	flex-direction: flex-start;
	gap: 12px;
	margin-bottom: 15px;
}

.footer-contacts
{
	display: flex;
	flex-direction: column;
	gap: 7%;
	padding: 1rem;
}

.footer-contacts .material-icons 
{
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contacts-title
{
	width: 100%;
	text-align: left;
}

.footer-contacts-text
{
	display: block;
	font-family: "Outfit", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	color: var(--color-secondary);
}

.rights
{
	border-top: 1px solid var(--color-light-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 2% 14% 1% 14%;
}

.rights-reserved
{
	padding: 1.3rem;
	font-size: 1rem;
}


/* ----- Media compatibility ----- */

/* ── Hamburger button (hidden on desktop) ──────── */

.hamburger
{
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1100;
	padding: 4px;
	flex-shrink: 0;
}

.hamburger span
{
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--color-secondary);
	border-radius: 2px;
	transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
	line-height: unset;
	color: transparent;
}

/* Animated X state */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Mobile nav overlay ─────────────────────────── */

.mobile-nav
{
	display: none;
	position: fixed;
	inset: 0;
	top: 80px;
	background-color: var(--color-primary);
	z-index: 1050;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	padding: 2rem 5% 2rem 5%;
	gap: 0;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-nav a,
.mobile-nav .mobile-nav-group > span
{
	display: block;
	width: 100%;
	padding: 0.85rem 0;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 600;
	font-size: 1rem;
	color: var(--color-secondary);
	border-bottom: 1px solid rgba(247, 248, 250, 0.12);
	text-align: left;
	cursor: pointer;
	transition: color 0.2s;
	white-space: nowrap;
}

.mobile-nav a:hover,
.mobile-nav .mobile-nav-group > span:hover
{
	color: var(--color-details);
}

.mobile-nav-group
{
	width: 100%;
}

.mobile-nav-group > span
{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
}

.mobile-subnav
{
	display: none;
	flex-direction: column;
	padding-left: 1.25rem;
}

.mobile-nav-group .mobile-subnav
{
	display: flex;
}

.mobile-subnav a
{
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--color-secondary);
	padding: 0.6rem 0;
	border-bottom: none !important;
}

.mobile-subnav a:hover
{
	color: var(--color-details);
}


/* ══════════════════════════════════════════════════
   GLOBAL OVERRIDES (all screen sizes)
   — remove justify, centre body text
   — left-align detail panel content
   ══════════════════════════════════════════════════ */

/* Every <p> was justify; switch to center globally,
   then carve out exceptions below */
p
{
	text-align: center;
}

/* Inicio body text follows the title alignment */
.inicio-text-container
{
	text-align: left;
}

/* Parceiros icons — always allow wrapping so icons never get clipped */
.parceiros-icons-container
{
	flex-wrap: wrap;
}

/* Detail-panel summary and footer contacts stay left */
#panel-summary,
.panel-text p,
.footer-contacts p,
.footer-contacts span,
.footer-access p
{
	text-align: left;
}

/* Footer contacts p already inherits, but be explicit */
.footer-contacts div span.footer-contacts-text
{
	text-align: left;
}

/* Inicio pre-title ("SOLUÇÕES INDUSTRIAIS DE EXCELÊNCIA") — hide on all sizes */
.inicio-text > span:first-child
{
	display: none;
}

/* Extra breathing room between the h1 and the paragraph in inicio */
.inicio-text h1
{
	margin-bottom: 1.2rem;
}



/* ══════════════════════════════════════════════════
   SHORT VIEWPORTS — max-height: 950px
   Remove hero image when vertical space is limited
   so inicio text isn't squeezed.
   ══════════════════════════════════════════════════ */

@media (max-height: 950px)
{
	/* Hide the panel image so the textbox fits without overflow */
	.panel-img
	{
		display: none;
	}

	.panel-inner
	{
		grid-template-columns: 1fr;
	}

	/* Shrink the category cards slightly so the section breathes */
	.industrias
	{
		height: 110px;
		padding: 0.75rem 1rem;
		gap: 0.5rem;
	}

	.industrias-icon
	{
		font-size: 28px !important;
	}

	.industrias-icon-magnet
	{
		font-size: 24px !important;
	}
}

/* ══════════════════════════════════════════════════
   BREAKPOINT 0 — Wide but not full desktop
   max-width: 1500px
   Image starts squashing the text in this range —
   hide it and centre the inicio text instead.
   ══════════════════════════════════════════════════ */

@media (max-width: 1500px)
{
	.inicio
	{
		grid-template-columns: 1fr;
		align-items: center;
		justify-items: center;
	}

	.inicio-text
	{
		width: 60%;
		align-items: center;
		text-align: center;
	}

	.inicio-text h1,
	.inicio-text-container
	{
		text-align: center;
	}

	.image-container
	{
		display: none;
	}
}


/* ══════════════════════════════════════════════════
   BREAKPOINT 1 — Large laptops
   max-width: 1200px
   ══════════════════════════════════════════════════ */

@media (max-width: 1200px)
{
	header
	{
		padding: 0 7% 0 7%;
	}

	.inicio
	{
		padding: 0 7% 0 7%;
	}

	.quemsomos
	{
		padding: 5% 8% 5% 8%;
	}

	.quemsomos-text-container,
	.quem-somos-btn
	{
		width: 80%;
	}

	/* ── Catálogo — fills viewport vertically, expands if panel needs more ── */
	.catalogo
	{
		padding: 5% 8% 5% 8%;
		height: auto;
		min-height: 100vh;
		justify-content: center;
		gap: 2rem;
	}

	.catalogo-text
	{
		gap: 1.5rem;
		width: 100%;
	}

	.catalogo-title
	{
		font-size: 2rem;
		line-height: 2.4rem;
		padding-bottom: 14px;
	}

	.catalogo-industrias
	{
		padding: 0;
		width: 100%;
	}

	.industrias
	{
		height: 130px;
		padding: 1rem;
		gap: 0.6rem;
	}

	.industrias-icon
	{
		font-size: 30px !important;
	}

	.industrias-icon-magnet
	{
		font-size: 26px !important;
	}

	.industrias span:last-child
	{
		font-size: 0.85rem;
	}

	/* Panel — fully auto height, hide image column to save space */
	#detail-panel.expanded
	{
		height: auto;
		min-height: unset;
	}

	.panel-inner
	{
		grid-template-columns: 1fr;
		height: auto;
		min-height: unset;
	}

	.panel-img
	{
		display: none;
	}

	.panel-text
	{
		position: relative;
		padding: 1.25rem 1.5rem;
	}

	.panel-text-header
	{
		display: block;
		margin-bottom: 0.5rem;
	}

	.panel-text h3
	{
		font-size: 1rem;
		line-height: 1.4rem;
		padding-right: 2.5rem;
	}

	.close-btn
	{
		position: absolute;
		top: 1rem;
		right: 1rem;
	}

	#panel-summary
	{
		font-size: 0.88rem;
		line-height: 1.45rem;
		text-align: left;
	}

	.saiba-mais-btn
	{
		margin-top: 0.75rem;
		padding: 0.45rem 1rem;
		font-size: 0.85rem;
	}

	.parceiros
	{
		padding: 5% 8% 5% 8%;
	}

	/* Parceiros — wrap icons before they get clipped */
	.parceiros-icons-container
	{
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
	}

	.parceiros-imp,
	.parceiros-vib,
	.parceiros-mag
	{
		flex-wrap: wrap;
		justify-content: center;
	}

	.parceiros-icons
	{
		width: 115px;
		height: 115px;
	}

	.contactos
	{
		padding: 5% 8% 5% 8%;
	}

	footer
	{
		padding: 2% 8% 2% 8%;
	}

	.rights
	{
		margin: 2% 8% 1% 8%;
	}
}


/* ══════════════════════════════════════════════════
   BREAKPOINT 2 — Tablets
   max-width: 900px
   ══════════════════════════════════════════════════ */

@media (max-width: 900px)
{
	/* ── Header ── */
	header
	{
		height: 64px;
		padding: 0 5% 0 5%;
	}

	.header-container-left
	{
		width: auto;
		gap: 12px;
	}

	.header-container-right
	{
		display: none;
	}

	.hamburger
	{
		display: flex;
	}

	.mobile-nav
	{
		display: flex;
		top: 64px;
		padding: 2rem 5% 2rem 5%;
	}

	.logo
	{
		width: 36px;
	}

	/* ── Typography — uniform 2rem for all section titles ── */
	h1, h2
	{
		font-size: 2rem;
		line-height: 2.4rem;
	}

	h3, h4
	{
		font-size: 1.05rem;
		line-height: 1.55rem;
	}

	p
	{
		font-size: 1rem;
		line-height: 1.55rem;
	}

	/* ── Início — stack vertically, hide image ── */
	.inicio
	{
		grid-template-columns: 1fr;
		padding: 8% 6% 8% 6%;
		height: auto;
		min-height: calc(100vh - 64px);
		align-items: center;
		justify-items: center;
	}

	.inicio-text
	{
		width: 100%;
		align-items: center;
		text-align: center;
	}

	.image-container
	{
		display: none;
	}

	/* ── Quem Somos ── */
	.quemsomos
	{
		padding: 8% 6% 8% 6%;
		height: auto;
		min-height: calc(100vh - 64px);
	}

	.quemsomos-text-container
	{
		text-align: center;
		width: 92%;
	}

	.quem-somos-btn
	{
		width: 92%;
	}

	/* Hide pre-title on Quem Somos and Contactos */

	.quemsomos .top-title,
	.contactos .top-title,
	.equipamentos-top-title,
	.equipamentos-bot-title
	{
		display: none;
	}

	/* Hide all pre/post titles on Parceiros */
	.parceiros .top-title,
	.parceiros-bot-title
	{
		display: none;
	}

	/* ── Catálogo — fills viewport vertically, expands if panel needs more ── */
	.catalogo
	{
		padding: 6% 5% 6% 5%;
		height: auto;
		min-height: 100vh;
		justify-content: center;
		gap: 2rem;
	}

	.catalogo-text
	{
		gap: 1.5rem;
	}

	.catalogo-title
	{
		font-size: 2rem;
		line-height: 2.4rem;
		text-align: center;
	}

	.catalogo-industrias
	{
		padding: 0;
		width: 100%;
	}

	.categorias
	{
		gap: 0.75rem;
	}

	/* Cards go horizontal-row like mobile — compact height */
	.industrias
	{
		width: 100%;
		height: 72px;
		flex-direction: row;
		justify-content: flex-start;
		padding: 0 1.5rem;
		gap: 1rem;
	}

	.industrias-icon
	{
		font-size: 26px !important;
	}

	.industrias-icon-magnet
	{
		font-size: 22px !important;
	}

	.industrias span:last-child
	{
		font-size: 1rem;
	}

	/* Detail panel — auto height, no overflow */
	#detail-panel.expanded
	{
		height: auto;
		min-height: unset;
	}

	.panel-inner
	{
		grid-template-columns: 1fr;
		height: auto;
		min-height: unset;
	}

	.panel-img
	{
		display: none;
	}

	.panel-text
	{
		position: relative;
		padding: 1.25rem 1.5rem;
	}

	.panel-text-header
	{
		display: block;
		margin-bottom: 0.5rem;
	}

	.panel-text h3
	{
		display: block;
		font-size: 1rem;
		line-height: 1.4rem;
		padding-right: 2.5rem;
	}

	.close-btn
	{
		position: absolute;
		top: 1rem;
		right: 1rem;
	}

	#panel-summary
	{
		font-size: 0.9rem;
		line-height: 1.45rem;
		text-align: left;
	}

	.saiba-mais-btn
	{
		margin-top: 0.75rem;
		padding: 0.45rem 1rem;
		font-size: 0.85rem;
	}

	/* ── Parceiros — wrapping, centered ── */
	.parceiros
	{
		padding: 8% 5% 8% 5%;
		height: auto;
		min-height: calc(100vh - 64px);
	}

	.parceiros-content
	{
		text-align: center;
	}

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

	.parceiros-icons-container
	{
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.parceiros-imp,
	.parceiros-vib,
	.parceiros-mag
	{
		flex-wrap: wrap;
		justify-content: center;
	}

	.parceiros-icons
	{
		width: 110px;
		height: 110px;
	}

	/* ── Contact form ── */
	.contactos
	{
		padding: 8% 5% 8% 5%;
		min-height: calc(100vh - 64px);
	}

	.contactos-content
	{
		text-align: center;
	}

	.contactos-title,
	.contactos-bot-title
	{
		text-align: center;
	}

	.contactos-text-field,
	.contactos-message-field,
	.contact-phone,
	.select-industria,
	.contactos-enviar-button
	{
		width: 85%;
	}

	/* ── Footer ── */

	footer
	{
		padding: 4% 6% 4% 6%;
	}

	.footer-text
	{
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}

	.footer-map
	{
		grid-column: 1 / -1;
		display: flex;
		justify-content: center;
	}

	.footer-map iframe
	{
		width: 100%;
		max-width: 480px;
		height: 180px;
	}

	.rights
	{
		margin: 2% 6% 1% 6%;
	}
}




/* ══════════════════════════════════════════════════
   BREAKPOINT 2b — Narrow screens
   max-width: 740px
   Inicio text left-aligned; quemsomos wider.
   ══════════════════════════════════════════════════ */

@media (max-width: 740px)
{
	.inicio-text
	{
		align-items: flex-start;
		text-align: left;
	}

	.inicio-text h1,
	.inicio-text p,
	.inicio-text-container
	{
		text-align: left;
	}
}

/* ══════════════════════════════════════════════════
   BREAKPOINT 3 — Mobile phones
   max-width: 600px
   ══════════════════════════════════════════════════ */

@media (max-width: 600px)
{
	/* ── Header ── */
	header
	{
		height: 56px;
		padding: 0 5% 0 5%;
	}

	.logo
	{
		width: 28px;
	}

	.name
	{
		font-size: 0.85rem;
	}

	.mobile-nav
	{
		top: 56px;
		padding: 2rem 5% 2rem 5%;
	}

	/* ── Typography ── */
	h1, h2
	{
		font-size: 1.6rem;
		line-height: 2rem;
	}

	h3, h4
	{
		font-size: 0.95rem;
		line-height: 1.45rem;
	}

	p
	{
		font-size: 0.95rem;
		line-height: 1.5rem;
	}

	/* ── Início ── */

	.inicio
	{
		padding: 10% 5% 10% 5%;
	}

	/* ── Quem Somos ── */

	.quemsomos
	{
		padding: 10% 5% 10% 5%;
	}

	.quemsomos-text-container,
	.quem-somos-btn
	{
		width: 100%;
	}

	.quem-somos-btn
	{
		flex-direction: column;
		gap: 1rem;
		align-items: center;
	}

	.qs-btn
	{
		width: 100%;
		text-align: center;
	}

	/* ── Catálogo ── */

	.catalogo
	{
		padding: 10% 5% 10% 5%;
	}

	.categorias
	{
		flex-direction: column;
		gap: 0.75rem;
	}

	.industrias
	{
		width: 100%;
		height: 80px;
		flex-direction: row;
		justify-content: flex-start;
		padding: 1rem 1.5rem;
		gap: 1.2rem;
	}

	.industrias span:last-child
	{
		font-size: 1rem;
	}

	.industrias-icon
	{
		font-size: 26px !important;
	}

	.industrias-icon-magnet
	{
		font-size: 22px !important;
	}

	/* ── Parceiros ── */
	.parceiros
	{
		padding: 10% 5% 10% 5%;
	}

	.parceiros-icons
	{
		width: 90px;
		height: 90px;
	}

	/* ── Contact form ── */
	.contactos
	{
		padding: 10% 5% 10% 5%;
		min-height: unset;
		height: auto;
	}

	.contactos-text-field,
	.contactos-message-field,
	.contact-phone,
	.select-industria,
	.contactos-enviar-button
	{
		width: 100%;
		margin: 0.5rem 0;
	}

	.contactos-title
	{
		font-size: 1.6rem;
	}

	/* ── Footer ── */
	.footer-text
	{
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.footer-map
	{
		grid-column: unset;
	}

	.footer-map iframe
	{
		width: 100%;
		height: 160px;
	}

	footer
	{
		padding: 6% 5% 6% 5%;
	}

	.rights
	{
		margin: 2% 5% 1% 5%;
	}

	.rights-reserved
	{
		font-size: 0.85rem;
		text-align: center;
	}
}


/* ══════════════════════════════════════════════════
   BREAKPOINT 4 — Very small phones
   max-width: 380px
   ══════════════════════════════════════════════════ */

@media (max-width: 380px)
{
	h1, h2
	{
		font-size: 1.35rem;
		line-height: 1.75rem;
	}

	.logo
	{
		width: 24px;
	}

	.name
	{
		font-size: 0.72rem;
	}

	.industrias
	{
		padding: 0.75rem 1rem;
	}

	.parceiros-icons
	{
		width: 72px;
		height: 72px;
	}
}




/* ══════════════════════════════════════════════════
   LANDSCAPE TABLETS — max-width: 1200px + short viewport
   Handles iPad landscape, Surface, etc. where
   height is ~700-900px and panel can still overflow.
   ══════════════════════════════════════════════════ */

@media (max-width: 1200px) and (max-height: 850px) and (orientation: landscape)
{
	.catalogo
	{
		justify-content: flex-start;
		padding-top: 3%;
		padding-bottom: 3%;
		gap: 1.25rem;
	}

	.catalogo-text
	{
		gap: 1rem;
	}

	.catalogo-title
	{
		font-size: 1.6rem;
		line-height: 2rem;
		padding-bottom: 10px;
	}

	.industrias
	{
		height: 90px;
		padding: 0.75rem 1rem;
		gap: 0.5rem;
	}

	.industrias-icon
	{
		font-size: 24px !important;
	}

	.industrias-icon-magnet
	{
		font-size: 20px !important;
	}

	.industrias span:last-child
	{
		font-size: 0.8rem;
	}

	.panel-text
	{
		padding: 1rem 1.25rem;
	}

	#panel-summary
	{
		font-size: 0.82rem;
		line-height: 1.35rem;
	}

	.saiba-mais-btn
	{
		margin-top: 0.5rem;
		padding: 0.35rem 0.9rem;
		font-size: 0.8rem;
	}
}

/* ══════════════════════════════════════════════════
   TOUCH DEVICES — pointer: coarse, hover: none
   Forces hamburger on ALL touch screens regardless
   of viewport width (e.g. large tablets, Surface).
   ══════════════════════════════════════════════════ */

@media (hover: none) and (pointer: coarse)
{
	/* Always hide desktop nav and show hamburger */
	.header-container-right
	{
		display: none !important;
	}

	.hamburger
	{
		display: flex !important;
	}

	.mobile-nav
	{
		display: flex;
	}

	/* Always show subnavs expanded — no tap to open needed */
	.mobile-subnav
	{
		display: flex !important;
	}

	/* Group title becomes a category label, not a tap target */
	.mobile-nav-group > span
	{
		pointer-events: none;
		font-size: 0.75rem;
		padding: 0.4rem 0 0.2rem 0;
		border-bottom: none;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}

	/* Subnav links are the real tap targets — full prominence */
	.mobile-subnav a
	{
		font-size: 1rem !important;
		font-weight: 600 !important;
		color: var(--color-dark-gray) !important;
		padding: 0.85rem 0 !important;
		border-bottom: 1px solid rgba(247, 248, 250, 0.12) !important;
	}
}

