/* ==========================================================================
   Uptune Digital Agency -- main stylesheet
   Colors, fonts, and logo are all controlled from the variables below.
   Swap them out once real brand assets are ready -- nothing else needs to change.
   ========================================================================== */

:root {
	--color-primary: #1b1440;       /* deep indigo -- headings, header bg */
	--color-primary-light: #2e2266;
	--color-accent: #ff5a3c;        /* CTA orange -- buttons, links, highlights */
	--color-accent-dark: #e2472f;
	--color-text: #24222e;
	--color-text-light: #5c596b;
	--color-bg: #ffffff;
	--color-bg-alt: #f5f4fa;
	--color-border: #e5e3ee;

	--font-heading: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

	--container-width: 1180px;
	--radius: 10px;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

section { padding: 72px 0; }
section h2 { font-size: 2rem; text-align: center; margin-bottom: 0.4em; }
.section-lede { text-align: center; color: var(--color-text-light); max-width: 640px; margin: 0 auto 2.5em; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--color-primary); border: 2px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ------------------------------ Header ------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--color-border);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 76px;
	max-width: 1440px;
}
.site-logo { display: flex; align-items: center; margin-right: auto; flex-shrink: 0; }
.site-logo img, .site-logo .custom-logo { max-height: 44px; width: auto; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; color: var(--color-primary); white-space: nowrap; }
.logo-text span { color: var(--color-accent); }

.primary-nav { display: flex; }
.primary-nav > .menu { display: flex; align-items: center; gap: 2px; }
.primary-nav > .menu > li { position: relative; }
.primary-nav > .menu > li > a {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 12px;
	color: var(--color-primary);
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.2;
	white-space: nowrap;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav > .menu > li > a:hover,
.primary-nav > .menu > li > a:focus-visible {
	color: var(--color-accent);
	background: var(--color-bg-alt);
}
.primary-nav > .menu > li > a[aria-current="page"] {
	color: var(--color-accent);
}

.menu-item-has-children { display: flex; align-items: center; }
.menu-item-has-children > a::after {
	content: '';
	width: 6px; height: 6px;
	flex-shrink: 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	opacity: 0.55;
	transition: transform 0.15s ease;
}
.menu-item-has-children:hover > a::after,
.menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg);
	margin-top: 3px;
}
.submenu-toggle { display: none; }

.sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(27, 20, 64, 0.12);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu li a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--color-text);
	font-size: 0.92rem;
}
.sub-menu li a:hover { background: var(--color-bg-alt); color: var(--color-accent); }

.header-cta { flex-shrink: 0; padding: 10px 22px; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
	background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--color-primary); border-radius: 2px; }

/* ------------------------------ Hero (service pages) ------------------------------ */
.service-hero, .contact-page .service-hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	color: #fff;
	padding: 64px 0 56px;
}
.service-hero h1 { color: #fff; font-size: 2.4rem; max-width: 760px; }
.service-hero .hero-subhead { color: rgba(255,255,255,0.82); max-width: 600px; font-size: 1.1rem; }
.breadcrumb { margin-bottom: 18px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb span { margin: 0 6px; }

/* ------------------------------ Homepage hero ------------------------------ */
.hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(circle at top right, var(--color-primary-light), var(--color-primary) 60%);
	color: #fff;
	padding: 96px 0 80px;
	text-align: center;
}
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(circle at top right, rgba(46,34,102,0.82), rgba(27,20,64,0.86) 60%);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); max-width: 840px; margin: 0 auto 0.4em; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero .hero-subhead { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 620px; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 3em; flex-wrap: wrap; justify-content: center; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; }
.hero-stats span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ------------------------------ Cards ------------------------------ */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.card {
	display: block;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27,20,64,0.1); border-color: var(--color-accent); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.card p { color: var(--color-text-light); font-size: 0.95rem; }
.card-link { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; }
.card-static { cursor: default; }
.card-static:hover { transform: none; box-shadow: none; border-color: var(--color-border); }

/* ------------------------------ Why-us ------------------------------ */
.home-why { background: var(--color-bg-alt); }
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.why-copy p { color: var(--color-text-light); font-size: 1.05rem; }
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-point h3 { font-size: 1.05rem; }
.why-point p { color: var(--color-text-light); font-size: 0.92rem; }

/* ------------------------------ Process ------------------------------ */
.process-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: step; margin-top: 2em; }
.process-list li { position: relative; padding-top: 8px; }
.step-number {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--color-accent);
	margin-bottom: 0.3em;
}
.process-list h3 { font-size: 1.05rem; }
.process-list p { color: var(--color-text-light); font-size: 0.92rem; }

/* ------------------------------ FAQ ------------------------------ */
.service-faq h2 { margin-bottom: 1em; }
.faq-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 16px 20px;
	margin-bottom: 12px;
}
.faq-item summary { font-weight: 600; cursor: pointer; color: var(--color-primary); }
.faq-item p { margin-top: 0.8em; color: var(--color-text-light); }

/* ------------------------------ CTA sections ------------------------------ */
.service-cta, .home-cta {
	background: var(--color-primary);
	color: #fff;
	text-align: center;
}
.service-cta h2, .home-cta h2 { color: #fff; }
.service-cta p, .home-cta p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 1.6em; }

.service-intro { background: var(--color-bg-alt); }
.service-intro p { font-size: 1.1rem; color: var(--color-text-light); text-align: center; }

.service-benefits, .home-services, .service-children { background: var(--color-bg); }

/* ------------------------------ Contact page ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 64px 0; }
.contact-form { display: grid; gap: 16px; margin-top: 1.2em; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }
.contact-form input, .contact-form select, .contact-form textarea {
	font: inherit;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-bg-alt);
}
.contact-form button { justify-self: start; }
.contact-details ul { display: grid; gap: 20px; margin-top: 1.2em; }
.contact-details li { color: var(--color-text-light); }
.contact-details strong { color: var(--color-primary); display: block; margin-bottom: 2px; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.75); }
.footer-inner {
	display: grid;
	grid-template-columns: 1.6fr repeat(6, 1fr);
	gap: 32px;
	padding: 64px 24px 40px;
}
.footer-brand img, .footer-brand .custom-logo { max-height: 44px; width: auto; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.8em; }
.footer-social { display: flex; gap: 10px; margin-top: 1em; }
.footer-social a {
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 0.75rem; font-weight: 700;
}
.footer-col h4 { margin-bottom: 0.8em; }
.footer-col h4 a { color: #fff; font-size: 0.95rem; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.87rem; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner { padding: 20px 24px; text-align: center; font-size: 0.82rem; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 960px) {
	.footer-inner { grid-template-columns: repeat(3, 1fr); }
	.why-grid { grid-template-columns: 1fr; }
	.why-points { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1199px) {
	.nav-toggle { display: flex; }
	.header-cta { display: none; }

	.primary-nav {
		position: absolute;
		top: 76px; left: 0; right: 0;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.primary-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.primary-nav > .menu { flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 0; }
	.primary-nav > .menu > li { border-bottom: 1px solid var(--color-border); }
	.menu-item-has-children { flex-wrap: wrap; justify-content: space-between; }
	.submenu-toggle {
		display: block;
		width: 36px; height: 36px;
		background: none; border: none; cursor: pointer;
		position: relative;
	}
	.submenu-toggle::before, .submenu-toggle::after {
		content: ''; position: absolute; top: 50%; left: 50%;
		width: 12px; height: 2px; background: var(--color-primary);
		transform: translate(-50%, -50%);
	}
	.submenu-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.15s ease; }
	.submenu-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0deg); }
	.sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: none;
		max-height: 0; overflow: hidden; padding: 0;
		width: 100%;
		transition: max-height 0.2s ease;
	}
	.sub-menu.is-open { max-height: 600px; padding: 4px 0 10px; }
}

@media (max-width: 600px) {
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.hero-stats { gap: 28px; }
	section { padding: 48px 0; }
}
