/*
  home.css: estilos específicos da página inicial
  - Hero section (banner principal)
  - Seções específicas da home
*/

/* Hero Section - Banner Principal */
.hero {
	position: relative;
	width: 100%;
	height: 850px; /* Altura igual à referência */
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #0a1c4d; /* Fundo azul escuro de backup */
}

/* Shapes flutuantes decorativos */
.hero::before,
.hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .35;
	z-index: 2;
	pointer-events: none;
}
.hero::before {
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, var(--color-blue-500), transparent 70%);
	top: -120px;
	left: -80px;
	animation: float 9s ease-in-out infinite;
}
.hero::after {
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, var(--color-blue-600), transparent 70%);
	bottom: -120px;
	right: -100px;
	animation: float 11s ease-in-out infinite reverse;
}

/* Background image com parallax sutil */
.hero__background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}

.hero__background img {
	width: 100%;
	height: 110%;
	object-fit: cover;
	object-position: center right; /* Mantém a médica visível à direita */
	transform: scale(1.04);
	transition: transform 1.2s ease-out;
	will-change: transform;
}
.hero:hover .hero__background img { transform: scale(1.08); }

/* Overlay - gradiente mais sutil para manter legibilidade */
.hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		rgba(10, 28, 77, 0.95) 0%, 
		rgba(10, 28, 77, 0.7) 45%, 
		rgba(10, 28, 77, 0.3) 70%,
		transparent 100%
	);
	z-index: 2;
}

/* Conteúdo do hero */
.hero__content {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	min-height: inherit;
	padding: 80px 0 60px;
}

.hero__text {
	max-width: 560px;
	color: var(--color-white);
}

.hero__title {
	font-size: 54px;
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 12px;
	color: var(--color-white);
	text-shadow: 0 2px 8px rgba(0,0,0,.3);
	letter-spacing: -0.5px;
	animation: fadeUp .9s cubic-bezier(.22,.61,.36,1) both;
}

.hero__subtitle {
	font-size: 18px;
	font-weight: 400;
	margin: 0 0 20px;
	color: var(--color-blue-500);
	line-height: 1.3;
	letter-spacing: 0.2px;
	background: linear-gradient(90deg, var(--color-blue-500) 0%, #ffffff 50%, var(--color-blue-500) 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: fadeUp .9s .15s cubic-bezier(.22,.61,.36,1) both, shine 6s linear infinite;
}

.hero__description {
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 28px;
	color: var(--color-white);
	opacity: 0.98;
	max-width: 520px;
	font-weight: 400;
	animation: fadeUp .9s .3s cubic-bezier(.22,.61,.36,1) both;
}

/* Call to Action Button */
.hero__cta {
	position: relative;
	display: inline-block;
	background: linear-gradient(135deg, var(--color-blue-500), var(--color-blue-600));
	color: var(--color-white);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	padding: 14px 32px;
	border-radius: 30px;
	transition: all .3s cubic-bezier(.22,.61,.36,1);
	box-shadow: 0 6px 18px rgba(38, 156, 202, 0.45);
	letter-spacing: 0.5px;
	overflow: hidden;
	animation: fadeUp .9s .45s cubic-bezier(.22,.61,.36,1) both, pulseGlow 2.6s ease-in-out 1.6s infinite;
}
.hero__cta::before {
	content: "";
	position: absolute;
	top: 0; left: -100%;
	width: 100%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
	transition: left .6s ease;
}
.hero__cta:hover {
	background: linear-gradient(135deg, var(--color-blue-600), var(--color-primary));
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 10px 24px rgba(12, 41, 93, 0.5);
}
.hero__cta:hover::before { left: 100%; }

/* Responsivo */
@media (max-width: 900px) {
	.hero {
		height: 450px;
	}

	.hero__content {
		padding: 60px 0 50px;
	}

	.hero__title {
		font-size: 40px;
	}

	.hero__subtitle {
		font-size: 16px;
		margin-bottom: 18px;
	}

	.hero__description {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.hero__overlay {
		background: linear-gradient(90deg, 
			rgba(10, 28, 77, 0.95) 0%, 
			rgba(10, 28, 77, 0.75) 60%, 
			rgba(10, 28, 77, 0.4) 100%
		);
	}
}

@media (max-width: 640px) {
	.hero {
		height: 420px;
	}

	.hero__content {
		padding: 50px 0 40px;
	}

	.hero__title {
		font-size: 32px;
		margin-bottom: 10px;
	}

	.hero__subtitle {
		font-size: 15px;
		margin-bottom: 16px;
	}

	.hero__description {
		font-size: 13px;
		margin-bottom: 22px;
		line-height: 1.6;
	}

	.hero__cta {
		font-size: 13px;
		padding: 12px 28px;
		display: block;
		text-align: center;
	}
}

/* ========================================
   Seção de Notícias
   ======================================== */

.news {
	background: var(--color-white);
	padding: 80px 0;
	position: relative;
}
.news::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-gray-200), transparent);
}

.news__title {
	font-size: 36px;
	font-weight: 700;
	text-align: center;
	color: var(--color-primary);
	margin: 0 0 50px;
	letter-spacing: -0.3px;
	position: relative;
	display: inline-block;
	left: 50%;
	transform: translateX(-50%);
}
.news__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -14px;
	transform: translateX(-50%);
	width: 64px;
	height: 4px;
	background: linear-gradient(90deg, var(--color-blue-500), var(--color-primary));
	border-radius: 4px;
}

.news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

.news__card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}
.news__card-link .news__card { height: 100%; }
.news__card-noimg {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 60px;
	color: var(--color-blue-600);
	background: linear-gradient(135deg, #eef3fb, #d6e4f5);
}
.news__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--color-slate-700);
	font-size: 15px;
	padding: 40px;
}

/* Card de Notícia */
.news__card {
	background: var(--color-white);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(12, 41, 93, .08);
	transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease, border-color .4s ease;
	display: flex;
	flex-direction: column;
	position: relative;
	border: 1px solid rgba(12, 41, 93, 0.05);
}
.news__card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
	padding: 1.5px;
	background: linear-gradient(135deg, var(--color-blue-500), var(--color-primary));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}
.news__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 38px rgba(12, 41, 93, .18);
}
.news__card:hover::before { opacity: 1; }

.news__card-image {
	width: 101%;
	height: 273px;
	overflow: hidden;
	background: var(--color-gray-200);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.news__card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* Mostra imagem completa sem cortar */
	transition: transform .55s cubic-bezier(.22,.61,.36,1), filter .4s ease;
}
.news__card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(12, 41, 93, .25));
	opacity: 0;
	transition: opacity .4s ease;
}

.news__card:hover .news__card-image img {
	transform: scale(1.08);
}
.news__card:hover .news__card-image::after { opacity: 1; }

.news__card-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news__card-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--color-primary);
	margin: 0 0 12px;
	line-height: 1.3;
    align-self: center;
}

.news__card-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-neutral-900);
	margin: 0;
	flex: 1;
    align-self: center;
}

/* Botão Ler Tudo */
.news__cta {
	text-align: center;
}

.news__button {
	position: relative;
	display: inline-block;
	background: linear-gradient(135deg, var(--color-blue-500), var(--color-blue-600));
	color: var(--color-white);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	padding: 14px 48px;
	border-radius: 30px;
	transition: all .35s cubic-bezier(.22,.61,.36,1);
	box-shadow: 0 6px 18px rgba(12, 92, 124, 0.3);
	letter-spacing: 0.5px;
	overflow: hidden;
}
.news__button::before {
	content: "";
	position: absolute;
	top: 0; left: -100%;
	width: 100%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
	transition: left .6s ease;
}
.news__button:hover {
	background: linear-gradient(135deg, var(--color-blue-600), var(--color-primary));
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 10px 24px rgba(12, 41, 93, 0.4);
}
.news__button:hover::before { left: 100%; }

/* Responsivo: Notícias */
@media (max-width: 900px) {
	.news {
		padding: 60px 0;
	}

	.news__title {
		font-size: 32px;
		margin-bottom: 40px;
	}

	.news__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
		margin-bottom: 40px;
	}

	.news__card:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 500px;
		margin: 0 auto;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.news {
		padding: 50px 0;
	}

	.news__title {
		font-size: 28px;
		margin-bottom: 32px;
	}

	.news__grid {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 36px;
	}

	.news__card:nth-child(3) {
		grid-column: auto;
		max-width: none;
	}

	.news__card-image {
		height: 200px;
	}

	.news__card-content {
		padding: 20px;
	}

	.news__card-title {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.news__card-text {
		font-size: 14px;
	}

	.news__button {
		padding: 12px 40px;
		font-size: 13px;
	}
}

/* ========================================
   Seção de Parceiros
   ======================================== */

.partners {
	background: linear-gradient(180deg,
		var(--color-blue-700) 10%,
		var(--color-blue-700) 20%,
		var(--color-blue-800) 40%,
		var(--color-blue-800) 100%
	);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}
.partners::before,
.partners::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: .25;
	pointer-events: none;
}
.partners::before {
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, var(--color-blue-500), transparent 70%);
	top: -120px;
	left: -120px;
	animation: float 12s ease-in-out infinite;
}
.partners::after {
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, var(--color-blue-600), transparent 70%);
	bottom: -100px;
	right: -100px;
	animation: float 14s ease-in-out infinite reverse;
}

.partners__title {
	font-size: 36px;
	font-weight: 700;
	text-align: center;
	color: var(--color-blue-500);
	margin: 0 0 60px;
	letter-spacing: -0.3px;
	position: relative;
}
.partners__title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	background: linear-gradient(90deg, var(--color-blue-500), var(--color-white));
	border-radius: 4px;
	margin: 14px auto 0;
}

.partners__grid { position: relative; z-index: 1; }

.partners__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	align-items: center;
	justify-items: center;
}

.partners__item {
	width: 100%;
	max-width: 240px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-white);
	border-radius: 12px;
	padding: 20px;
	transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
	position: relative;
	overflow: hidden;
}
.partners__item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(88,201,253,.18), transparent 60%);
	opacity: 0;
	transition: opacity .35s ease;
}
.partners__item:hover {
	transform: translateY(-8px) scale(1.04);
	box-shadow: 0 14px 30px rgba(0,0,0,.22), 0 0 0 2px rgba(88,201,253,.4);
}
.partners__item:hover::before { opacity: 1; }

.partners__item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(0%);
	transition: filter .35s ease, transform .35s ease;
	position: relative;
	z-index: 1;
}
.partners__item:hover img {
	transform: scale(1.05);
}

/* Aumentar apenas o parceiro 2 */
.partners__item--larger img {
	max-width: 230%;
	max-height: 230%;
	transform: scale(1.5);
}

.partners__item--larger:hover img {
	transform: scale(1.55);
}

.partners__item:hover img {
	filter: grayscale(0%);
}

/* Responsivo: Parceiros */
@media (max-width: 900px) {
	.partners {
		padding: 60px 0;
	}

	.partners__title {
		font-size: 32px;
		margin-bottom: 50px;
	}

	.partners__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.partners__item {
		max-width: 220px;
		height: 110px;
	}

	/* Ajustar tamanho do parceiro 2 no tablet */
	.partners__item--larger img {
		max-width: 200%;
		max-height: 200%;
		transform: scale(1.5);
	}
}

@media (max-width: 640px) {
	.partners {
		padding: 50px 0;
	}

	.partners__title {
		font-size: 28px;
		margin-bottom: 40px;
	}

	.partners__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.partners__item {
		max-width: 100%;
		height: 100px;
		padding: 16px;
	}

	/* Ajustar tamanho do parceiro 2 no mobile */
	.partners__item--larger img {
		max-width: 180%;
		max-height: 180%;
		transform: scale(1.2);
	}
}

/* ========================================
   Seção de Localização
   ======================================== */

.location {
	background: var(--color-white);
	padding: 80px 0 100px;
	margin-top: 80px;
	position: relative;
}

.location__content {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 80px;
	padding-left: 60px;
}

/* Faixa Azul de Fundo - Largura total da tela */
.location__background {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 160px;
	width: 100vw;
	height: 320px;
	background: var(--color-primary);
	z-index: 1;
}

/* Informações */
.location__info {
	flex: 0 0 380px;
	position: relative;
	z-index: 2;
	color: var(--color-white);
	padding-top: 90px;
}

.location__title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 50px;
	letter-spacing: -0.3px;
	color: var(--color-primary);
	position: relative;
	display: inline-block;
}
.location__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -14px;
	width: 64px;
	height: 4px;
	background: linear-gradient(90deg, var(--color-blue-500), var(--color-primary));
	border-radius: 4px;
}

.location__name {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 16px;
	line-height: 1.3;
}

.location__address {
	font-size: 16px;
	line-height: 1.7;
	font-style: normal;
	margin: 0;
	opacity: 0.95;
}

/* Mapa Sobreposto - Centralizado na faixa */
.location__map {
	flex: 1;
	position: relative;
	z-index: 3;
	height: 550px;
	max-width: 700px;
	box-shadow: 0 18px 48px rgba(12, 41, 93, .25);
	border-radius: 12px;
	overflow: hidden;
	margin-top: 80px;
	transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
}
.location__map:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(12, 41, 93, .35);
}

.location__map iframe {
	display: block;
	width: 100%;
	height: 100%;
}

/* Responsivo: Localização */
@media (max-width: 900px) {
	.location {
		padding: 60px 0 80px;
		margin-top: 60px;
	}

	.location__content {
		flex-direction: column;
        align-items: center;
		gap: 30px;
		padding-left: 0;
	}

	.location__background {
		width: 100vw;
		left: 50%;
		transform: translateX(-50%);
		top: 100px;
		height: 280px;
	}

	.location__info {
		flex: 1;
		padding-top: 60px;
		text-align: center;
	}

	.location__title {
		font-size: 32px;
		margin-bottom: 30px;
		color: var(--color-primary);
	}

	.location__name {
		font-size: 22px;
		margin-bottom: 14px;
	}

	.location__address {
		font-size: 15px;
	}

	.location__map {
		width: 100%;
		max-width: 100%;
		height: 400px;
		margin-top: 20px;
	}
}

@media (max-width: 640px) {
	.location {
		padding: 50px 0 60px;
		margin-top: 50px;
	}

	.location__content {
		gap: 20px;
		padding-left: 0;
	}

	.location__background {
		top: 80px;
		height: 240px;
	}

	.location__info {
		padding-top: 40px;
	}

	.location__title {
		font-size: 28px;
		margin-bottom: 24px;
	}

	.location__name {
		font-size: 20px;
		margin-bottom: 12px;
	}

	.location__address {
		font-size: 14px;
	}

	.location__map {
		height: 320px;
		margin-top: 10px;
	}
}
