/* ====================================================================
   Britto Mano Homepage Custom Hero Stylesheet
   Designed to blend seamlessly with the Tank portfolio template
   ==================================================================== */

/* Hero Container styling */
.ph-britto-hero {
	position: relative;
	background-color: #0a0a0a !important;
	overflow: hidden;
}

/* Background image and gradient overlay wrapper */
.ph-britto-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

/* Background portrait image aligned to the right */
.ph-britto-img {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 55%;
	object-fit: cover;
	object-position: center top;
	opacity: 0.95;
	transition: opacity 0.5s ease;
}

/* Gradient overlay to smoothly blend image into the solid dark background */
.ph-britto-gradient {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	background-image: 
		linear-gradient(to right, #0a0a0a 0%, #0a0a0a 35%, rgba(10, 10, 10, 0.8) 52%, rgba(10, 10, 10, 0.2) 70%, rgba(10, 10, 10, 0) 100%),
		linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0) 15%);
}

/* Content adjustment within the page header */
.ph-britto-hero .page-header-inner {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	min-height: 100vh;
	width: 100%;
}

/* Tagline layout adjustments */
.ph-britto-hero .brand-tagline {
	font-family: 'Poppins', sans-serif !important;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 4px;
	color: #af1212; /* Accent red matching loader */
	margin-top: 0;
	margin-bottom: 25px;
	display: inline-block;
}

/* Title text refinements */
.ph-britto-hero .ph-caption-title {
	font-family: 'Noto Serif JP', serif;
	line-height: 1.25;
	font-weight: 500;
	letter-spacing: -1px;
}

.ph-britto-hero .ph-caption-title em {
	font-family: 'Noto Serif JP', serif;
	font-style: italic;
}

.ph-britto-hero .ph-caption-title u {
	text-decoration: underline;
	text-underline-offset: 8px;
	text-decoration-thickness: 2px;
	text-decoration-color: rgba(175, 18, 18, 0.6); /* Underline in transparent red accent */
}

/* Description styling alignment */
.ph-britto-hero .ph-caption-description {
	margin-top: 30px;
	color: #b0b0b0;
	max-width: 650px;
}

/* Bottom right badge similar to reference image */
.ph-britto-meta {
	position: absolute;
	bottom: 80px;
	right: 80px;
	text-align: right;
	z-index: 10;
	font-family: 'Poppins', sans-serif;
	pointer-events: none;
}

.ph-britto-meta .meta-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: #FFF;
	letter-spacing: 2px;
}

.ph-britto-meta .meta-desc {
	display: block;
	font-size: 12px;
	color: #a0a0a0;
	margin-top: 4px;
	font-weight: 400;
}

/* Spacing classes helper */
.margin-top-40 {
	margin-top: 40px;
}

/* ------------------------------------------------------------- *
   Responsive Styles
/* ------------------------------------------------------------- */

/* Large Tablets and Medium Screens */
@media (max-width: 1200px) {
	.ph-britto-img {
		width: 50%;
	}
	.ph-britto-gradient {
		background-image: 
			linear-gradient(to right, #0a0a0a 0%, #0a0a0a 30%, rgba(10, 10, 10, 0.85) 55%, rgba(10, 10, 10, 0.3) 75%, rgba(10, 10, 10, 0) 100%),
			linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0) 15%);
	}
	.ph-britto-meta {
		right: 40px;
		bottom: 60px;
	}
}

/* Tablets (Portrait) */
@media (max-width: 991px) {
	.ph-britto-img {
		width: 60%;
		opacity: 0.85;
	}
	.ph-britto-gradient {
		background-image: 
			linear-gradient(to right, #0a0a0a 0%, #0a0a0a 20%, rgba(10, 10, 10, 0.9) 55%, rgba(10, 10, 10, 0.4) 80%, rgba(10, 10, 10, 0.2) 100%),
			linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0) 20%);
	}
	.ph-britto-hero .ph-caption-description {
		max-width: 500px;
	}
	.ph-britto-meta {
		right: 30px;
		bottom: 40px;
	}
}

/* Mobile Devices */
@media (max-width: 767px) {
	.ph-britto-hero .page-header-inner {
		padding-top: 120px;
		padding-bottom: 80px;
		min-height: auto;
		height: auto;
		display: block;
	}
	.ph-britto-img {
		width: 100%;
		height: 100%;
		opacity: 0.4; /* Fade out image more to guarantee full text readability on small displays */
	}
	.ph-britto-gradient {
		background-image: 
			linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, #0a0a0a 90%),
			linear-gradient(to right, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
	}
	.ph-britto-hero .ph-caption {
		text-align: center;
		margin: 0 auto;
		padding: 0 15px;
	}
	.ph-britto-hero .ph-caption-title {
		font-size: clamp(32px, 8vw, 48px);
	}
	.ph-britto-hero .ph-caption-description {
		margin-left: auto;
		margin-right: auto;
	}
	.ph-britto-hero .brand-tagline {
		font-size: 12px;
		letter-spacing: 3px;
		margin-bottom: 15px;
	}
	.ph-britto-meta {
		position: static;
		text-align: center;
		margin-top: 50px;
		width: 100%;
	}
	.ph-britto-meta .meta-name {
		font-size: 13px;
	}
	.ph-britto-meta .meta-desc {
		font-size: 11px;
	}
}

/* ------------------------------------------------------------- *
   Intro Section Styles
/* ------------------------------------------------------------- */
.britto-intro-title {
	font-family: 'Noto Serif JP', serif !important;
	font-size: clamp(28px, 3.5vw, 48px) !important;
	line-height: 1.5 !important;
	color: #FFF !important;
	margin: 0 !important;
	font-weight: 500 !important;
}

.britto-intro-title em {
	font-style: italic !important;
}

.britto-intro-title u {
	text-decoration: underline !important;
	text-underline-offset: 8px !important;
	text-decoration-thickness: 2px !important;
	text-decoration-color: rgba(175, 18, 18, 0.6) !important; /* Underline in transparent red accent */
}

/* ------------------------------------------------------------- *
   About Section Styles (Two-Column Layout)
/* ------------------------------------------------------------- */
.britto-about-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.britto-about-img-wrap {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
	position: relative;
}

.britto-about-desc {
	color: #b9b9b9;
}

@media (max-width: 991px) {
	.britto-about-row {
		display: block; /* Stacks layout on tablet and mobile */
	}
	.margin-bottom-lg-0 {
		margin-bottom: 40px !important;
	}
}

/* ------------------------------------------------------------- *
   Testimonials Slider Styling
/* ------------------------------------------------------------- */
.britto-ts-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	padding: 50px 60px;
	max-width: 850px;
	margin: 0 auto;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
	text-align: center;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.britto-ts-card:hover {
	border-color: rgba(175, 18, 18, 0.3);
	background: rgba(255, 255, 255, 0.03);
}

.britto-ts-rating {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-bottom: 20px;
	color: #ffb703; /* Elegant Gold */
	font-size: 14px;
}

.britto-ts-quote-icon {
	font-size: 28px;
	color: #af1212; /* Accent red */
	opacity: 0.8;
	margin-bottom: 20px;
	line-height: 1;
}

.britto-ts-text {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(16px, 1.8vw, 20px) !important;
	line-height: 1.8 !important;
	color: #d0d0d0 !important;
	margin-bottom: 35px;
	font-style: italic;
	font-weight: 400;
}

.britto-ts-footer {
	display: inline-flex;
	align-items: center;
	text-align: left;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 25px;
}

.britto-ts-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #af1212;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 15px;
	margin-right: 15px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	text-transform: uppercase;
	font-family: 'Poppins', sans-serif;
	flex-shrink: 0;
}

.britto-ts-meta {
	font-family: 'Poppins', sans-serif;
}

.britto-ts-name {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
}

.britto-ts-company {
	font-size: 11px;
	color: #888888;
	margin-top: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Responsive testimonial card padding */
@media (max-width: 767px) {
	.britto-ts-card {
		padding: 30px 20px;
	}
	.britto-ts-text {
		font-size: 15px !important;
		margin-bottom: 25px;
	}
	.britto-ts-footer {
		padding-top: 20px;
	}
	.britto-ts-avatar {
		width: 40px;
		height: 40px;
		font-size: 13px;
	}
}

/* Custom Video Poster styles for grid items */
.pgi-video-poster {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	z-index: 2;
	pointer-events: none;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pgi-image-wrap:hover .pgi-video-poster {
	opacity: 0;
	visibility: hidden;
}

/* ====================================================================
   Toast Notification System
   ==================================================================== */
#toast-container {
	position: fixed;
	top: 30px;
	right: 30px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 15px;
	pointer-events: none;
}

.custom-toast {
	min-width: 320px;
	max-width: 450px;
	padding: 16px 20px;
	border-radius: 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	background: rgba(20, 20, 20, 0.75);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	transform: translateX(120%);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.custom-toast.show {
	transform: translateX(0);
	opacity: 1;
}

.custom-toast-icon {
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
}

.custom-toast-success {
	border-color: rgba(46, 204, 113, 0.3);
}

.custom-toast-success .custom-toast-icon {
	background: rgba(46, 204, 113, 0.15);
	color: #2ecc71;
}

.custom-toast-error {
	border-color: rgba(231, 76, 60, 0.3);
}

.custom-toast-error .custom-toast-icon {
	background: rgba(231, 76, 60, 0.15);
	color: #e74c3c;
}

.custom-toast-content {
	flex-grow: 1;
	line-height: 1.4;
}

.custom-toast-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	font-size: 16px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.custom-toast-close:hover {
	color: #ffffff;
}

/* Submit button loading state */
.tt-btn button.btn-loading {
	pointer-events: none;
	position: relative;
	color: transparent !important;
}

.tt-btn button.btn-loading::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	margin-top: -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: toast-spin 0.8s linear infinite;
}

@keyframes toast-spin {
	to { transform: rotate(360deg); }
}

/* ====================================================================
   Unified Description Text Styling (Responsive Font Sizes)
   ==================================================================== */
.ph-britto-hero .ph-caption-description,
.ph-caption-description p,
.britto-about-desc,
.tt-accordion-content p {
	font-size: 18px !important;
	line-height: 1.8 !important;
}

@media (max-width: 991px) {
	.ph-britto-hero .ph-caption-description,
	.ph-caption-description p,
	.britto-about-desc,
	.tt-accordion-content p {
		font-size: 17px !important;
	}
}

@media (max-width: 767px) {
	.ph-britto-hero .ph-caption-description,
	.ph-caption-description p,
	.britto-about-desc,
	.tt-accordion-content p {
		font-size: 16px !important;
	}
}

