/*
 * Tax Accountant Theme - Front Page v2 Styles
 *
 * Styles for the redesigned front page sections (Sprint 2).
 * Uses design-system-v2.css classes and variables.
 * Sprint 3: Added parallax bg, service images, profile photo,
 *           wave dividers, glassmorphism hover, background patterns.
 *
 * @package Tax_Accountant
 * @version 3.0.0
 */


/* ========================================
 * 1. Hero Section v2
 * ======================================== */
.hero-section-v2 {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--gradient-primary);
	padding: 120px 0 80px;
}

/* Parallax background image layer */
.hero-v2-parallax-bg {
	position: absolute;
	inset: -20% 0 0 0;
	z-index: 0;
	will-change: transform;
}

.hero-v2-parallax-bg img {
	width: 100%;
	height: auto;
	min-height: 120%;
	object-fit: cover;
	display: block;
}

.hero-v2-overlay {
	position: absolute;
	inset: 0;
	background: var(--gradient-hero-overlay);
	z-index: 1;
}

.hero-v2-bg-pattern {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 32px 32px;
	z-index: 1;
	pointer-events: none;
}

.hero-v2-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.hero-v2-title {
	color: var(--color-text-white);
	margin-bottom: 24px;
}

.hero-v2-title-line {
	display: block;
	font-size: var(--font-size-5xl);
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.hero-v2-title-line:last-child {
	font-size: var(--font-size-4xl);
}

.hero-v2-subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--font-size-lg);
	line-height: var(--line-height-base);
	margin-bottom: 40px;
}

/* Industry Category Buttons */
.hero-v2-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	margin-bottom: 40px;
}

.hero-category-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
	color: var(--color-text-white);
	transition: all var(--hover-transition);
	cursor: pointer;
}

.hero-category-btn i {
	font-size: var(--font-size-xl);
	color: var(--color-accent);
}

.hero-category-btn span {
	line-height: 1.4;
	text-align: left;
}

.hero-category-btn:hover {
	background: var(--glass-bg-strong);
	border-color: var(--glass-border-strong);
	transform: translateY(-2px);
	box-shadow: var(--shadow-glass);
	color: var(--color-text-white);
}

/* Hero CTA */
.hero-v2-cta {
	margin-top: 8px;
}

/* Hero Wave Divider */
.hero-v2-wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	z-index: 2;
	line-height: 0;
}

.hero-v2-wave svg {
	display: block;
	width: 100%;
	height: 80px;
}


/* ========================================
 * 2. FAQ Link Cards Section
 * ======================================== */
.section-faq-cards {
	padding: var(--section-spacing) 0;
	background: var(--color-bg-white);
	position: relative;
}

/* Dot pattern background for FAQ section */
.section-faq-cards::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(74, 144, 217, 0.06) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
	z-index: 0;
}

.section-faq-cards > .container {
	position: relative;
	z-index: 1;
}

.faq-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--grid-gap);
	margin-bottom: 40px;
}

.faq-card {
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
	border-left: 3px solid var(--color-accent);
}

.faq-card__icon {
	margin-bottom: 16px;
}

.faq-card__icon i {
	font-size: 28px;
	color: var(--color-accent);
}

.faq-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.faq-card__title {
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	line-height: var(--line-height-heading);
	margin-bottom: 16px;
	flex: 1;
}

.faq-card__link {
	margin-top: auto;
}

.faq-card__link--disabled {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	opacity: 0.6;
}

/* FAQ card glassmorphism hover effect */
.card-v2--glass-hover {
	transition: all var(--hover-transition);
}

.card-v2--glass-hover:hover {
	background: var(--glass-bg);
	backdrop-filter: blur(var(--glass-blur));
	-webkit-backdrop-filter: blur(var(--glass-blur));
	border-left-color: var(--color-secondary);
	box-shadow: var(--shadow-glass);
}

.faq-cards-footer {
	text-align: center;
}


/* ========================================
 * 3. Service Cards v2 Section
 * ======================================== */
.section-service-cards-v2 {
	padding: var(--section-spacing) 0;
	background: var(--gradient-section-alt);
}

.service-cards-v2-list {
	display: flex;
	flex-direction: column;
	gap: 48px;
	margin-bottom: 48px;
}

/* Individual service card - alternating layout */
.service-card-v2 {
	display: flex;
	align-items: center;
	gap: 48px;
}

.service-card-v2--reverse {
	flex-direction: row-reverse;
}

.service-card-v2__image {
	flex: 0 0 400px;
	max-width: 400px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: box-shadow var(--hover-transition);
}

.service-card-v2__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.service-card-v2:hover .service-card-v2__image {
	box-shadow: var(--shadow-hover);
}

.service-card-v2__content {
	flex: 1;
	position: relative;
	padding: 24px 0;
}

.service-card-v2__number {
	font-size: 72px;
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	opacity: 0.06;
	position: absolute;
	top: -20px;
	right: 0;
	line-height: 1;
	pointer-events: none;
}

.service-card-v2--reverse .service-card-v2__number {
	right: auto;
	left: 0;
}

.service-card-v2__title {
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	margin-bottom: 16px;
	line-height: var(--line-height-heading);
	position: relative;
}

.service-card-v2__desc {
	font-size: var(--font-size-base);
	color: var(--color-text-light);
	line-height: var(--line-height-base);
	margin-bottom: 20px;
}

.service-card-v2__link {
	display: inline-flex;
}

.service-cards-v2-cta {
	text-align: center;
	padding-top: 16px;
}

.service-cards-v2-cta__text {
	font-size: var(--font-size-base);
	color: var(--color-text-light);
	margin-bottom: 20px;
}


/* ========================================
 * 4. CTA Quick Contact v2 Section
 * ======================================== */
.section-cta-v2 {
	padding: 80px 0;
	position: relative;
}

/* Diagonal stripe pattern on CTA section */
.section-cta-v2::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 12px,
		rgba(255, 255, 255, 0.03) 12px,
		rgba(255, 255, 255, 0.03) 24px
	);
	pointer-events: none;
	z-index: 0;
}

.section-cta-v2 > .container {
	position: relative;
	z-index: 1;
}

.cta-v2-buttons {
	display: flex;
	gap: 24px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.cta-v2-btn {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 32px;
	border-radius: var(--radius-lg);
	text-decoration: none;
	transition: all var(--hover-transition);
	flex: 1;
	max-width: 360px;
	min-width: 280px;
}

.cta-v2-btn--phone {
	background: var(--color-bg-white);
	color: var(--color-primary);
	box-shadow: var(--shadow-md);
}

.cta-v2-btn--phone:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
	color: var(--color-primary);
}

.cta-v2-btn--email {
	background: var(--gradient-accent);
	color: var(--color-text-white);
	box-shadow: var(--shadow-accent);
}

.cta-v2-btn--email:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(212, 145, 59, 0.4);
	color: var(--color-text-white);
}

.cta-v2-btn__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-size-lg);
}

.cta-v2-btn--phone .cta-v2-btn__icon {
	background: rgba(27, 58, 92, 0.1);
	color: var(--color-primary);
}

.cta-v2-btn--email .cta-v2-btn__icon {
	background: rgba(255, 255, 255, 0.2);
	color: var(--color-text-white);
}

.cta-v2-btn__content {
	display: flex;
	flex-direction: column;
}

.cta-v2-btn__label {
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-regular);
	opacity: 0.8;
}

.cta-v2-btn--phone .cta-v2-btn__label {
	color: var(--color-text-light);
}

.cta-v2-btn__value {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
}

.cta-v2-btn--phone .cta-v2-btn__value {
	color: var(--color-primary);
}

.cta-v2-btn--email .cta-v2-btn__value {
	color: var(--color-text-white);
}

.cta-v2-note {
	text-align: center;
	font-size: var(--font-size-sm);
	color: rgba(255, 255, 255, 0.7);
}


/* ========================================
 * 5. Profile v2 Section
 * ======================================== */
.section-profile-v2 {
	padding: var(--section-spacing) 0;
	background: var(--color-bg-white);
}

.profile-v2-layout {
	display: flex;
	gap: 64px;
	align-items: flex-start;
}

.profile-v2-photo {
	flex: 0 0 280px;
	text-align: center;
}

.profile-v2-photo__frame {
	width: 240px;
	height: 320px;
	margin: 0 auto 16px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 4px solid var(--color-bg-white);
}

/* Profile photo image (SVG placeholder) */
.profile-v2-photo__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.profile-v2-photo__name {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	margin-bottom: 4px;
}

.profile-v2-photo__credential {
	font-size: var(--font-size-sm);
	color: var(--color-text-light);
}

.profile-v2-text {
	flex: 1;
}

.profile-v2-greeting {
	margin-bottom: 32px;
}

.profile-v2-greeting p {
	font-size: var(--font-size-base);
	line-height: 1.9;
	color: var(--color-text);
	margin-bottom: 16px;
}

.profile-v2-greeting p:last-child {
	margin-bottom: 0;
}

/* Career History Table */
.profile-v2-career {
	margin-bottom: 32px;
}

.profile-v2-career__title {
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-accent);
	display: inline-block;
}

.profile-v2-table {
	width: 100%;
	border-collapse: collapse;
}

.profile-v2-table__row--even {
	background: var(--color-bg-base);
}

.profile-v2-table__row--odd {
	background: transparent;
}

.profile-v2-table th,
.profile-v2-table td {
	padding: 12px 16px;
	text-align: left;
	font-size: var(--font-size-sm);
	line-height: var(--line-height-base);
}

.profile-v2-table__year {
	width: 120px;
	white-space: nowrap;
	color: var(--color-accent);
	font-weight: var(--font-weight-bold);
	font-style: normal;
	border-right: 2px solid var(--color-border);
}

.profile-v2-table__event {
	color: var(--color-text);
}

.profile-v2-detail-link {
	display: inline-flex;
}


/* ========================================
 * 6. Blog Cards v2 Section
 * ======================================== */
.section-recent-posts-v2 {
	padding: var(--section-spacing) 0;
	background: var(--gradient-section-alt);
}

.blog-cards-v2-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--grid-gap);
	margin-bottom: 40px;
}

.blog-card-v2 {
	display: flex;
	flex-direction: column;
}

.blog-card-v2__image {
	height: 200px;
	flex-shrink: 0;
}

.blog-card-v2__image a {
	display: block;
	width: 100%;
	height: 100%;
}

.blog-card-v2__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--hover-transition);
}

.blog-card-v2:hover .blog-card-v2__image img {
	transform: scale(var(--hover-img-scale));
}

.blog-card-v2__placeholder {
	width: 100%;
	height: 100%;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.blog-card-v2__placeholder i {
	font-size: 40px;
	color: rgba(255, 255, 255, 0.3);
}

.blog-card-v2__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.blog-card-v2__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.blog-card-v2__category {
	display: inline-block;
	padding: 2px 10px;
	background: var(--color-primary);
	color: var(--color-text-white);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-bold);
	border-radius: var(--radius-sm);
	line-height: 1.6;
}

.blog-card-v2__date {
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	font-weight: var(--font-weight-regular);
}

.blog-card-v2__title {
	font-size: var(--font-size-base);
	margin-bottom: 8px;
	line-height: var(--line-height-heading);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card-v2__excerpt {
	flex: 1;
	margin-bottom: 16px;
}

.blog-card-v2__link {
	display: inline-flex;
	margin-top: auto;
}

.blog-cards-v2-footer {
	text-align: center;
}

.blog-cards-v2-empty {
	text-align: center;
	padding: 48px 0;
}

.blog-cards-v2-empty .placeholder-notice {
	font-size: var(--font-size-lg);
	color: var(--color-text-muted);
}

.blog-cards-v2-empty .placeholder-notice i {
	display: block;
	font-size: 48px;
	margin-bottom: 16px;
	color: var(--color-border);
}


/* ========================================
 * 7. Area Map v2 Section
 * ======================================== */
.section-area-v2 {
	padding: var(--section-spacing) 0;
	background: var(--color-bg-white);
}

.area-v2-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--grid-gap);
	margin-bottom: 32px;
}

.area-v2-card {
	background: var(--color-bg-white);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	box-shadow: var(--shadow-sm);
	text-align: center;
	transition: all var(--hover-transition);
	border-top: 3px solid transparent;
}

.area-v2-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

.area-v2-card--primary {
	border-top-color: var(--color-accent);
}

.area-v2-card--secondary {
	border-top-color: var(--color-secondary);
}

.area-v2-card--remote {
	border-top-color: var(--color-primary);
}

.area-v2-card__icon {
	margin-bottom: 16px;
}

.area-v2-card__icon i {
	font-size: 32px;
}

.area-v2-card--primary .area-v2-card__icon i {
	color: var(--color-accent);
}

.area-v2-card--secondary .area-v2-card__icon i {
	color: var(--color-secondary);
}

.area-v2-card--remote .area-v2-card__icon i {
	color: var(--color-primary);
}

.area-v2-card__label {
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	margin-bottom: 16px;
}

.area-v2-card__items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.area-v2-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	line-height: 1;
}

.area-v2-badge--primary {
	background: rgba(212, 145, 59, 0.12);
	color: var(--color-accent-dark);
}

.area-v2-badge--secondary {
	background: rgba(74, 144, 217, 0.12);
	color: var(--color-secondary-dark);
}

.area-v2-badge--other {
	background: var(--color-bg-light);
	color: var(--color-text-light);
}

.area-v2-note {
	text-align: center;
}

.area-v2-note p {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--font-size-base);
	color: var(--color-text-light);
	background: var(--color-bg-base);
	padding: 16px 24px;
	border-radius: var(--radius-lg);
}

.area-v2-note i {
	color: var(--color-accent);
}


/* ========================================
 * 8. Wave Section Dividers (Sprint 3)
 * ======================================== */
.section-wave-divider {
	width: 100%;
	line-height: 0;
	overflow: hidden;
	position: relative;
}

.section-wave-divider svg {
	display: block;
	width: 100%;
	height: 60px;
}

/* Alt variant: top edge of alt-section colored */
.section-wave-divider--alt {
	margin-top: -1px;
}

/* White variant: used to transition from dark to white sections */
.section-wave-divider--white {
	margin-bottom: -1px;
}

.section-wave-divider--white svg path {
	fill: var(--color-bg-white);
}


/* ========================================
 * Responsive: Front Page v2
 * ======================================== */
@media (max-width: 1023px) {
	/* Hero */
	.hero-v2-title-line {
		font-size: var(--font-size-4xl);
	}

	.hero-v2-title-line:last-child {
		font-size: var(--font-size-3xl);
	}

	.hero-v2-categories {
		gap: 12px;
	}

	.hero-category-btn {
		padding: 10px 18px;
		font-size: var(--font-size-xs);
	}

	/* FAQ cards */
	.faq-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Service cards */
	.service-card-v2 {
		gap: 32px;
	}

	.service-card-v2__image {
		flex: 0 0 300px;
		max-width: 300px;
	}

	/* Profile */
	.profile-v2-layout {
		gap: 40px;
	}

	.profile-v2-photo {
		flex: 0 0 220px;
	}

	.profile-v2-photo__frame {
		width: 200px;
		height: 260px;
	}

	/* Blog cards */
	.blog-cards-v2-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Area */
	.area-v2-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.area-v2-card--remote {
		grid-column: 1 / -1;
	}

	/* Wave dividers */
	.section-wave-divider svg {
		height: 40px;
	}
}

@media (max-width: 767px) {
	/* Hero */
	.hero-section-v2 {
		min-height: 80vh;
		padding: 100px 0 60px;
	}

	.hero-v2-parallax-bg {
		inset: -10% 0 0 0;
	}

	.hero-v2-title-line {
		font-size: var(--font-size-3xl);
	}

	.hero-v2-title-line:last-child {
		font-size: var(--font-size-2xl);
	}

	.hero-v2-subtitle {
		font-size: var(--font-size-base);
	}

	.hero-v2-categories {
		flex-direction: column;
		align-items: center;
	}

	.hero-category-btn {
		width: 100%;
		max-width: 280px;
		justify-content: center;
	}

	.hero-v2-wave svg {
		height: 40px;
	}

	/* FAQ cards */
	.faq-cards-grid {
		grid-template-columns: 1fr;
	}

	/* Service cards - stack vertically */
	.service-card-v2,
	.service-card-v2--reverse {
		flex-direction: column;
	}

	.service-card-v2__image {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.service-card-v2__number {
		font-size: 48px;
	}

	/* CTA buttons - stack vertically */
	.cta-v2-buttons {
		flex-direction: column;
		align-items: center;
	}

	.cta-v2-btn {
		max-width: 100%;
		width: 100%;
	}

	/* Profile - stack vertically */
	.profile-v2-layout {
		flex-direction: column;
		align-items: center;
	}

	.profile-v2-photo {
		flex: none;
	}

	.profile-v2-career__title {
		font-size: var(--font-size-base);
	}

	.profile-v2-table th,
	.profile-v2-table td {
		padding: 10px 12px;
		font-size: var(--font-size-xs);
	}

	.profile-v2-table__year {
		width: 90px;
	}

	/* Blog cards */
	.blog-cards-v2-grid {
		grid-template-columns: 1fr;
	}

	.blog-card-v2__image {
		height: 180px;
	}

	/* Area */
	.area-v2-grid {
		grid-template-columns: 1fr;
	}

	.area-v2-card--remote {
		grid-column: auto;
	}

	/* Wave dividers */
	.section-wave-divider svg {
		height: 30px;
	}
}
