/* ==========================================================================
   Branson Solutions — Modern Redesign
   Aesthetic: "Elevated Perspective" — Dark, urban, architectural precision
   ========================================================================== */

/* --- Custom Properties --- */
:root {
	--clr-bg:        #0e141b;
	--clr-surface:   #141c26;
	--clr-surface-2: #1a2a3a;
	--clr-border:    rgba(91, 164, 207, 0.1);
	--clr-text:      #d8e2ec;
	--clr-text-dim:  #7a8fa3;
	--clr-accent:    #5ba4cf;
	--clr-accent-2:  #3d7eb5;
	--clr-white:     #ffffff;

	--font-display: Georgia, 'Times New Roman', serif;
	--font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset --- */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 17.6px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	font-weight: 300;
	color: var(--clr-text);
	background: var(--clr-bg);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
}

button, input {
	font-family: inherit;
	border: none;
	outline: none;
	background: none;
}

/* --- Film Grain Overlay --- */
.grain {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 256px 256px;
}

/* --- Header --- */
#header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 2.5rem;
	background: linear-gradient(to bottom, rgba(14, 20, 27, 0.97), rgba(14, 20, 27, 0.6), rgba(14, 20, 27, 0));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: transform 0.6s var(--ease-out-expo);
}

/* Logo */
.logo {
	display: inline-flex;
	align-items: center;
}

.logo svg {
	display: block;
	height: 42px;
	width: auto;
}

/* Header nav */
.header-nav {
	display: flex;
	gap: 2rem;
}

.header-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--clr-text-dim);
	transition: color 0.3s ease;
}

.header-link:hover {
	color: var(--clr-accent);
}

.header-cta {
	color: var(--clr-bg);
	background: var(--clr-accent);
	padding: 0.45rem 1.1rem;
	border-radius: 8px;
	font-weight: 500;
	transition: background 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.header-cta:hover {
	background: var(--clr-accent-2);
	color: var(--clr-white);
	transform: translateY(-1px);
}

.header-link svg {
	opacity: 0.6;
	flex-shrink: 0;
}

/* --- Entrance Animations --- */
.hero-content h1,
.hero-content .hero-sub,
.hero-cta,
.scroll-hint {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

body.loaded .hero-content h1  { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
body.loaded .hero-content .hero-sub { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
body.loaded .hero-cta         { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
body.loaded .scroll-hint      { opacity: 1; transform: translateY(0); transition-delay: 1s; }

/* --- Hero Section --- */
#hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	filter: brightness(0.45) contrast(1.05) saturate(0.8);
	transform: scale(1.05);
	transition: transform 12s linear;
}

body.loaded .hero-bg img {
	transform: scale(1);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 80%, rgba(91, 164, 207, 0.1) 0%, transparent 60%),
		linear-gradient(to bottom, rgba(14, 20, 27, 0.5) 0%, rgba(14, 20, 27, 0.15) 35%, rgba(14, 20, 27, 0.8) 100%);
}

/* Decorative diagonal line */
.hero-deco-line {
	position: absolute;
	top: 15%;
	right: 8%;
	width: 1px;
	height: 200px;
	background: linear-gradient(to bottom, transparent, var(--clr-accent), transparent);
	opacity: 0.3;
	transform: rotate(25deg);
}

/* Hero content */
.hero-content {
	position: relative;
	z-index: 2;
	max-width: 680px;
	padding: 6rem 2rem 2rem;
	text-align: center;
}

.hero-content h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--clr-white);
	margin-bottom: 0.2em;
}

.hero-sub {
	font-size: 1.05rem;
	color: var(--clr-text-dim);
	margin-bottom: 2.5rem;
}

.hero-cta {
	display: inline-flex;
	width: auto;
	padding: 1rem 2.5rem;
	text-decoration: none;
}

/* --- Form Elements --- */
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

/* CTA / Submit button */
.btn-subscribe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 1.05rem 2rem;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--clr-bg);
	background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
	border-radius: 12px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.btn-subscribe::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--clr-accent-2), var(--clr-accent));
	opacity: 0;
	transition: opacity 0.4s ease;
}

.btn-subscribe:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(91, 164, 207, 0.3);
}

.btn-subscribe:hover::before {
	opacity: 1;
}

.btn-subscribe span,
.btn-subscribe svg {
	position: relative;
	z-index: 1;
}

.btn-subscribe:active {
	transform: translateY(0);
}

/* --- Scroll Hint --- */
.scroll-hint {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	z-index: 2;
}

.scroll-hint span {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--clr-text-dim);
}

.scroll-line {
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, var(--clr-accent), transparent);
	animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
	0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
	50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* --- Shared Section Styles --- */
.section-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 6rem 2.5rem;
}

/* --- About Section --- */
.section-about {
	background: var(--clr-bg);
	border-top: 1px solid var(--clr-border);
}

.about-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 4rem;
	align-items: start;
}

.about-image {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--clr-border);
}

.about-image img {
	width: 100%;
	height: auto;
	display: block;
	filter: grayscale(0.2);
	transition: filter 0.6s ease;
}

.about-image:hover img {
	filter: grayscale(0);
}

.about-text h2 {
	font-family: var(--font-display);
	font-weight: bold;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	color: var(--clr-white);
	margin-bottom: 1.5rem;
}

.about-text p {
	font-size: 0.95rem;
	color: var(--clr-text-dim);
	line-height: 1.8;
	margin-bottom: 1.25rem;
}

.about-text p:last-child {
	margin-bottom: 0;
}

/* --- Services Section --- */
.section-services {
	background: var(--clr-surface);
	border-top: 1px solid var(--clr-border);
}

.section-services h2 {
	font-family: var(--font-display);
	font-weight: bold;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	color: var(--clr-white);
	text-align: center;
	margin-bottom: 3rem;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.service-card {
	background: var(--clr-bg);
	border: 1px solid var(--clr-border);
	border-radius: 14px;
	padding: 2rem 1.75rem;
	transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
	border-color: rgba(91, 164, 207, 0.2);
}

.service-card h4 {
	font-family: var(--font-display);
	font-weight: bold;
	font-size: 1.1rem;
	color: var(--clr-accent);
	margin-bottom: 0.75rem;
}

.service-card p {
	font-size: 0.9rem;
	color: var(--clr-text-dim);
	line-height: 1.7;
}

/* --- Schedule Section --- */
.section-schedule {
	background: var(--clr-surface);
	border-top: 1px solid var(--clr-border);
}

.section-schedule h2 {
	font-family: var(--font-display);
	font-weight: bold;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	color: var(--clr-white);
	text-align: center;
	margin-bottom: 0.5rem;
}

.schedule-sub {
	text-align: center;
	font-size: 1rem;
	color: var(--clr-text-dim);
	margin-bottom: 2.5rem;
}

.consultation-description {
	max-width: 700px;
	margin: 0 auto 3rem;
	text-align: left;
}

.consultation-description p {
	font-size: 0.95rem;
	color: var(--clr-text-dim);
	line-height: 1.8;
	margin-bottom: 1.25rem;
}

.consultation-description p:last-child {
	margin-bottom: 0;
}

.consultation-questions {
	list-style: none;
	margin: 1.25rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.consultation-questions li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.95rem;
	color: var(--clr-text);
	line-height: 1.7;
}

.consultation-questions li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--clr-accent);
	opacity: 0.7;
}

.cal-embed-wrapper {
	max-width: 1000px;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--clr-border);
	background: var(--clr-bg);
}

#my-cal-inline-free-consultation {
	width: 100%;
	height: 700px;
	overflow: auto;
}

/* --- Contact Section --- */
.section-contact {
	background: var(--clr-bg);
	border-top: 1px solid var(--clr-border);
}

.contact-card-wrapper {
	text-align: center;
}

.section-contact h2 {
	font-family: var(--font-display);
	font-weight: bold;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	color: var(--clr-white);
	margin-bottom: 2rem;
}

.contact-card {
	display: inline-block;
	padding: 2.5rem 3.5rem;
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: 16px;
}

.contact-card h3 {
	font-family: var(--font-display);
	font-weight: bold;
	font-size: 1.4rem;
	color: var(--clr-white);
	margin-bottom: 0.3rem;
}

.contact-title {
	font-size: 0.95rem;
	color: var(--clr-accent);
	margin-bottom: 1rem;
}

.contact-email {
	display: inline-block;
	font-size: 1rem;
	color: var(--clr-text-dim);
	transition: color 0.3s ease;
}

.contact-email:hover {
	color: var(--clr-accent);
}

/* --- Footer --- */
#footer {
	background: var(--clr-surface);
	border-top: 1px solid var(--clr-border);
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 4rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 4rem 2.5rem 3rem;
}

.footer-brand {
	flex: 1;
}

.footer-logo {
	margin-bottom: 0.75rem;
	display: inline-flex;
}

.footer-logo svg {
	height: 48px;
	width: auto;
}

.footer-tagline {
	font-size: 0.95rem;
	color: var(--clr-text-dim);
	max-width: 280px;
	line-height: 1.6;
}

.footer-contact {
	flex: 1;
}

.footer-contact h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--clr-white);
	margin-bottom: 1.25rem;
}

.footer-contact ul {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9rem;
	color: var(--clr-text-dim);
	line-height: 1.5;
}

.footer-contact li svg {
	flex-shrink: 0;
	margin-top: 0.15rem;
	color: var(--clr-accent);
	opacity: 0.7;
}

.footer-contact li a {
	transition: color 0.3s ease;
}

.footer-contact li a:hover {
	color: var(--clr-accent);
}

.footer-bottom {
	text-align: center;
	padding: 1.5rem 2.5rem;
	border-top: 1px solid var(--clr-border);
	font-size: 0.8rem;
	color: var(--clr-text-dim);
	letter-spacing: 0.03em;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: var(--clr-text);
}

.menu-toggle svg {
	display: block;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile */
@media (max-width: 768px) {
	#header {
		padding: 1rem 1.25rem;
	}

	.menu-toggle {
		display: block;
	}

	.header-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--clr-surface);
		border-bottom: 1px solid var(--clr-border);
		padding: 1rem 1.5rem;
		gap: 0;
	}

	.header-nav.open {
		display: flex;
	}

	.header-nav .header-link {
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--clr-border);
		font-size: 0.95rem;
		color: var(--clr-text);
	}

	.header-nav .header-link:last-child {
		border-bottom: none;
	}

	.header-cta {
		margin-top: 0.5rem;
		text-align: center;
		border-bottom: none !important;
		border-radius: 8px;
		padding: 0.6rem 1rem;
	}

	.hero-content {
		padding: 1.5rem;
	}

	.hero-deco-line {
		display: none;
	}

	.section-inner {
		padding: 4rem 1.5rem;
	}

	.about-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.about-image {
		max-width: 280px;
		margin: 0 auto;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	#my-cal-inline-free-consultation {
		height: 550px;
	}

	.contact-card {
		padding: 2rem 2rem;
	}

	.footer-inner {
		flex-direction: column;
		gap: 2.5rem;
		padding: 3rem 1.5rem 2rem;
	}

	.footer-bottom {
		padding: 1.25rem 1.5rem;
	}

	.logo svg {
		height: 34px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.hero-content h1 {
		font-size: 1.8rem;
	}

	.hero-sub {
		font-size: 0.9rem;
	}

	.btn-subscribe {
		padding: 0.9rem 1.5rem;
		font-size: 0.9rem;
	}

	.service-card {
		padding: 1.5rem 1.25rem;
	}

	.contact-card {
		padding: 1.75rem 1.5rem;
		width: 100%;
	}

	.contact-card h3 {
		font-size: 1.2rem;
	}

	.contact-email {
		font-size: 0.85rem;
		word-break: break-all;
	}

	#my-cal-inline-free-consultation {
		height: 480px;
	}

	.footer-logo svg {
		height: 38px;
	}
}

/* --- Selection Color --- */
::selection {
	background: rgba(91, 164, 207, 0.3);
	color: var(--clr-white);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
	background: var(--clr-surface-2);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--clr-text-dim);
}
