/* styles.css */

/* --- Variables & Reset --- */
:root {
	--primary-purple: #9b72cf;
	--dark-purple: #4a2c68;
	--text-color: #4a3b55;
	--accent-magenta: #c04295;
	--white-bg: rgba(255, 255, 255, 0.92);
	--card-radius: 25px;
	--font-heading: "Oswald", sans-serif;
	--font-body: "Open Sans", sans-serif;
	--header-offset: 160px;
}

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

body {
	font-family: var(--font-body);
	color: var(--text-color);
	line-height: 1.6;
	background-color: #a685e2;
	background-image: url("images/background.jpg"),
		linear-gradient(135deg, #dcbdf5 0%, #a685e2 100%);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	min-height: 100vh;
	padding-bottom: 50px;
}

.nav-section {
	scroll-margin-top: var(--header-offset);
}

/* --- Typography --- */
h1,
h2,
h3 {
	font-family: var(--font-heading);
	text-transform: uppercase;
	color: var(--dark-purple);
	margin-bottom: 1rem;
}

h2 {
	font-size: 2.5rem;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	text-align: center;
	border-bottom: 4px solid var(--primary-purple);
	padding-bottom: 5px;
}

p {
	margin-bottom: 1.2rem;
}

/* --- Layout Utilities --- */
.container {
	max-width: 1100px; /* Slightly wider to fit the header items */
	margin: 0 auto;
	padding: 0 20px;
}

.white-card {
	background-color: var(--white-bg);
	border-radius: var(--card-radius);
	padding: 40px;
	margin-bottom: 40px;
	box-shadow: 0 8px 32px rgba(74, 44, 104, 0.1);
}

/* --- Header & Nav --- */
header {
	background: rgba(255, 255, 255, 0.85);
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(5px);
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header > .container {
	display: grid;
	grid-template-areas: "brand" "navigation";
	row-gap: 12px;
}

.header-content {
	grid-area: brand;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(74, 44, 104, 0.1);
	text-align: center;
	position: relative;
}

/* Logo Styling */
.brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.brand-flower {
	display: block;
	flex: none;
	width: 9rem;
	height: auto;
}

.brand-name {
	margin: 0;
	font: 400 2.25rem/1.1 "Oswald", "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	color: #6f1489;
}

.brand-name small {
	display: block;
	margin-top: 0.15em;
	font-size: 0.45em;
}

.brand-compact {
	display: none;
}

.license-info {
	font-family: var(--font-heading);
	font-size: 0.9rem;
	color: var(--dark-purple);
	font-weight: bold;
	text-align: center;
}

/* Icons Row: Socials + Certs */
.icons-row {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.social-icons {
	display: flex;
	gap: 8px;
}

/* Social Circles (FB, IG, LinkedIn) */
.social-icons a {
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.social-icons a i {
	line-height: 1;
}

.social-circle {
	width: 32px;
	height: 32px;
	background: #0077b5; /* Default blue, can change per icon if desired */
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
	font-family: sans-serif;
	transition: transform 0.2s;
}

.social-circle:hover {
	transform: scale(1.1);
}

/* Certification Logos */
.credentials {
	justify-self: start;
	align-self: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	max-width: 10rem;
}

.credentials .license-info {
	text-transform: uppercase;
	line-height: 1.2;
}

.cert-icons-group {
	display: flex;
	gap: 8px;
}

.cert-icons-group img {
	display: block;
}

.cert-icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

/* Navigation Menu */
.nav-bar {
	grid-area: navigation;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.nav-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: var(--dark-purple);
	margin: 5px 0;
	border-radius: 999px;
	transition: transform 0.25s ease, opacity 0.2s ease;
	transform-origin: center;
}

.nav-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	position: relative;
	z-index: 5;
}

.nav-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.nav-links {
	grid-column: 2;
	list-style: none;
	display: flex;
	gap: clamp(6px, 1vw, 16px);
	flex-wrap: nowrap;
	justify-content: center;
	flex: 1 1 auto;
}

.nav-item {
	position: relative;
}

.subnav-row {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 18px;
	font-size: 0.95rem;
	font-family: var(--font-body);
	font-weight: 700;
	letter-spacing: 0.3px;
	padding-bottom: 4px;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.subnav-row li {
	list-style: none;
}

.subnav-row a {
	text-decoration: none;
	color: var(--dark-purple);
	padding: 4px 6px;
	opacity: 0.9;
	background-image: linear-gradient(var(--primary-purple), var(--primary-purple));
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 0% 3px;
	transition: color 0.2s ease, background-size 0.25s ease;
}

.nav-bar.about-open .subnav-row,
.nav-bar.about-hover:not(.nav-mobile) .subnav-row,
.nav-bar.about-expanded .subnav-row {
	display: flex;
}

@media (prefers-reduced-motion: no-preference) {
	.subnav-row {
		animation: subnav-fade-in 220ms ease-out;
	}
}

@keyframes subnav-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.nav-links a {
	text-decoration: none;
	color: var(--dark-purple);
	font-family: var(--font-heading);
	font-weight: bold;
	font-size: 1.2rem;
	padding: 5px 10px;
	border-radius: 5px;
	background-image: linear-gradient(var(--primary-purple), var(--primary-purple));
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 0% 3px;
	transition: color 0.2s ease, background-size 0.25s ease;
}

.nav-links a:hover {
	background-color: var(--primary-purple);
	color: white;
}

.subnav-row a:hover {
	background-size: 100% 3px;
}

.nav-links a.active {
	background-size: 100% 3px;
}

.nav-links a.parent-active {
	background-size: 100% 2px;
}

.subnav-row a.active {
	opacity: 1;
	font-weight: 700;
	background-size: 100% 3px;
}

.nav-socials {
	display: flex;
	justify-content: flex-end;
	flex: 0 0 auto;
}

.insured-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
	font-family: var(--font-heading);
	color: var(--dark-purple);
}

.insured-icon {
	height: 70px;
}

/* --- Sections Specifics --- */
.booking-card {
	text-align: center;
}

.booking-card p {
	margin-bottom: 0;
	font-weight: bold;
}

.booking-note {
	margin-top: 1.5rem;
}

.booking-flower {
	display: block;
	width: 3rem;
	height: auto;
	margin: 0.75rem auto;
}

.booking-locations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 20px;
	max-width: 740px;
	margin: 0 auto;
}

.booking-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 24px;
	border-radius: 999px;
	background-color: #e8e8fb;
	box-shadow: 0 10px 24px rgba(47, 42, 61, 0.18);
	color: var(--dark-purple);
	text-decoration: none;
}

.booking-button span {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: bold;
	text-transform: uppercase;
}

.booking-button small {
	font-size: 1rem;
}

.booking-button:hover,
.booking-button:focus-visible {
	background-color: #d6d6f4;
}

/* About Section */
.about-section {
	margin-bottom: 60px;
}

.disclaimer {
	font-style: italic;
	font-size: 0.9rem;
	margin-top: 20px;
	display: block;
}

/* Instagram reels */
.media-container {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.media-container .instagram-media {
	width: 100%;
	max-width: 540px;
	min-width: 0 !important; /* Override Instagram's inline minimum on narrow screens. */
}

/* FAQ */
.faq-item {
	margin-bottom: 25px;
}

.faq-question {
	font-weight: bold;
	color: var(--dark-purple);
	text-decoration: underline;
	font-size: 1.1rem;
	margin-bottom: 5px;
	display: inline-block;
}

/* Footer */
footer {
	text-align: center;
	color: var(--dark-purple);
	font-family: var(--font-heading);
	font-size: 0.9rem;
	padding-top: 20px;
}

/* Keep the seals level with the navigation icons when the license sits above them. */
@media (width > 980px) {
	header {
		top: calc(0px - var(--brand-travel, 0px));
	}

	.header-content > .brand:first-child {
		opacity: clamp(0, calc(1 - 1.5 * var(--brand-progress, 0)), 1);
	}

	.brand-compact {
		position: absolute;
		bottom: 10px;
		display: flex;
		flex-direction: row;
		gap: 1rem;
		opacity: clamp(0, calc(1.5 * var(--brand-progress, 0) - 0.35), 1);
		pointer-events: none;
		user-select: none;
	}

	.brand-compact .brand-flower {
		width: 6rem;
	}

	.brand-compact .brand-name {
		font-size: 2rem;
		text-transform: uppercase;
	}

	.brand-compact small {
		display: inline;
		margin: 0;
	}
	.credentials {
		max-width: none;
		align-items: flex-start;
	}
	.nav-links,
	.nav-socials {
		align-self: end;
		align-items: center;
		min-height: 32px;
	}
}

@media (width > 980px) and (prefers-reduced-motion: reduce) {
	.header-content > .brand:first-child {
		opacity: calc(1 - round(var(--brand-progress, 0), 1));
	}

	.brand-compact {
		opacity: round(var(--brand-progress, 0), 1);
	}
}

/* Responsive */
@media (max-width: 980px) {
	:root {
		--header-offset: 160px;
	}

	.nav-toggle {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		grid-area: toggle;
		align-self: center;
		width: 44px;
		min-height: 44px;
	}

	.nav-toggle span {
		margin: 0;
	}

	header > .container {
		grid-template-columns: minmax(0, 1fr) 44px;
		grid-template-areas:
			"brand       toggle"
			"credentials toggle"
			"navigation  navigation";
		gap: 0 8px;
		padding-inline: clamp(8px, 2vw, 20px);
	}

	.header-content {
		padding: 0;
		border-bottom: 0;
	}

	.credentials {
		grid-area: credentials;
		justify-self: center;
		max-width: 100%;
		margin-top: 6px;
	}

	.brand {
		flex-direction: row;
		gap: clamp(6px, 2vw, 16px);
	}

	.brand-flower {
		width: clamp(3.5rem, 19vw, 6rem);
	}

	.brand-name {
		font-size: clamp(1rem, 5vw, 2rem);
		text-align: left;
		text-wrap: balance;
	}

	.brand-name small {
		display: inline;
		margin: 0;
	}

	.social-icons {
		gap: 6px;
	}

	.social-circle {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.cert-icon {
		width: 34px;
		height: 34px;
	}

	.insured-icon {
		height: 62px;
	}

	.nav-panel {
		display: none;
		position: absolute;
		right: 0;
		top: calc(100% + 8px);
		width: 260px;
		max-height: calc(100dvh - var(--header-offset) - 40px);
		overflow-y: auto;
		background: rgba(255, 255, 255, 0.96);
		border-radius: 16px;
		padding: 16px;
		box-shadow: 0 12px 28px rgba(74, 44, 104, 0.2);
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		z-index: 20;
	}

	.nav-bar.nav-open .nav-panel {
		display: flex;
	}

	.nav-row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.nav-links {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 15px;
		margin-top: 0;
	}

	.nav-item {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding-bottom: 0;
		width: 100%;
	}

	.subnav-row {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding-left: 12px;
		width: 100%;
	}

	.nav-bar.about-open .subnav-row {
		display: none;
	}

	.nav-bar.about-expanded .subnav-row {
		display: flex;
	}

	.nav-socials {
		width: 100%;
		justify-content: flex-start;
		padding-top: 10px;
		border-top: 1px solid rgba(74, 44, 104, 0.1);
	}
}

@media (max-width: 700px) {
	h2 {
		font-size: clamp(1.5rem, 6vw, 2.5rem);
		overflow-wrap: anywhere;
	}

	.white-card {
		padding: clamp(20px, 5vw, 40px);
	}

	:root {
		--header-offset: 140px;
	}


	.insured-icon {
		height: 56px;
	}
}

.nav-toggle.is-open span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 440px) {
	.credentials {
		flex-direction: row;
		align-self: center;
		gap: 8px;
	}
}
