/* Brand colors come from the Glassy Guys logo. */
:root {
	--sky: #2cc5f1; /* logo background */
	--sky-pale: #e8f8fd;
	--orange: #fe9a0a; /* logo lettering */
	--orange-dark: #e07f00;
	--navy: #002b4d; /* logo outline */
	--blue: #1572a1; /* overalls blue, darkened for readable small text */
	--yellow: #f9c017; /* stars and sparkles */
	--ink: #0f2638;
	--muted: #44596b;
	--white: #ffffff;
	--line: #cfe9f3;
	--radius: 14px;
	--radius-pill: 999px;
	--font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
	--font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	font-family: var(--font-body);
	font-size: 1.125rem;
	background: var(--white);
	color: var(--ink);
	line-height: 1.6;
}

img {
	max-width: 100%;
	display: block;
}

/* All photos are 3:4. Reserving the space stops lazy loading from shifting the page. */
.photo-tile img,
.ba-side img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

a {
	color: inherit;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--navy);
	line-height: 1.15;
}

:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
}

.container {
	width: min(1120px, 100% - 2.5rem);
	margin: 0 auto;
}

/* Header */

header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--navy);
	color: var(--white);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.brand-logo {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--sky);
	overflow: hidden;
	flex-shrink: 0;
}

.brand-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand span {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--orange);
}

nav ul {
	list-style: none;
	display: flex;
	gap: 0.3rem;
	align-items: center;
	font-size: 1rem;
}

nav a {
	display: inline-block;
	padding: 0.45rem 0.75rem;
	border-radius: var(--radius-pill);
	color: var(--white);
	text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.has-menu:hover > a,
.has-menu:focus-within > a {
	background: #1a8fd0; /* a brighter blue from the logo's overalls */
	color: var(--white);
}

/* Phone menu button: hidden on wide screens, where the menu bar shows */

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding-inline: 0.9rem;
	border: 2px solid var(--orange);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--white);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.menu-toggle:hover,
.menu-open .menu-toggle {
	background: #1a8fd0;
	border-color: #1a8fd0;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
}

.menu-bars::before,
.menu-bars::after {
	content: '';
	position: absolute;
	left: 0;
}

.menu-bars::before {
	top: -6px;
}

.menu-bars::after {
	top: 6px;
}

.menu-open .menu-bars {
	background: transparent;
}

.menu-open .menu-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-open .menu-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Services drop-down. Opens on hover, on keyboard focus and on the first tap on a tablet. */

.has-menu {
	position: static; /* the menu centers under the whole menu bar, so it never runs off the screen */
}

nav {
	position: relative;
}

.caret {
	font-size: 0.8em;
	margin-left: 0.15rem;
}

.menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding-top: 0.6rem; /* a bridge so the menu stays open while the pointer moves down to it */
	z-index: 60;
}

.has-menu:hover .menu,
.has-menu:focus-within .menu {
	display: block;
}

.menu-cols {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: 1.25rem 2rem;
	background: var(--white);
	color: var(--navy);
	border-top: 5px solid var(--orange);
	padding: 1.25rem 1.5rem 0.9rem;
	box-shadow: 0 18px 40px rgba(0, 43, 77, 0.3);
}

.menu-head {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--blue);
	margin: 0 0 0.4rem 0.6rem;
}

.menu .menu-cols ul {
	display: grid;
	gap: 0.15rem;
}

.menu .menu-cols a {
	display: block;
	padding: 0.45rem 0.6rem;
	border-radius: 10px;
	color: var(--navy);
	font-weight: 700;
}

.menu .menu-cols a:hover,
.menu .menu-cols a:focus-visible {
	background: var(--sky-pale);
	color: var(--navy);
}

.menu .menu-all {
	display: block;
	background: var(--navy);
	color: var(--orange);
	font-weight: 700;
	text-align: center;
	border-radius: 0 0 var(--radius) var(--radius);
	padding: 0.75rem 0.6rem;
}

.menu .menu-all:hover,
.menu .menu-all:focus-visible {
	background: #0b4a7d;
	color: var(--yellow);
}

/* Call and text, outside the menu because phones hide it */

.contact-btns {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.contact-btns a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-inline: 1.1rem;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
}

.contact-btns .call {
	background: var(--orange);
	color: var(--navy);
}

.contact-btns .call:hover {
	background: var(--yellow);
}

.contact-btns .text {
	border: 2px solid rgba(255, 255, 255, 0.7);
	color: var(--white);
}

.contact-btns .text:hover {
	background: #1a8fd0;
	border-color: #1a8fd0;
}

/* Hero: the logo's sky blue, with its sparkles */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--sky);
	padding: 3rem 0 3.5rem;
}

.sparkle {
	position: absolute;
	pointer-events: none;
	fill: var(--white);
}

.sparkle.gold {
	fill: var(--yellow);
}

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	grid-template-areas:
		'head form'
		'rest form';
	gap: 1.5rem 3rem;
	align-items: start;
}

.hero-head {
	grid-area: head;
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
}

.mascot {
	width: 170px;
	height: auto;
	aspect-ratio: 2 / 3;
	border-radius: var(--radius);
	border: 4px solid var(--navy);
}

.hero-rest {
	grid-area: rest;
}

.hero-form {
	grid-area: form;
	scroll-margin-top: 5rem; /* keeps the sticky header off the form when #quote links land */
	background: var(--white);
	border: 4px solid var(--navy);
	border-radius: 18px;
	padding: 0.5rem;
}

.hero-form iframe {
	display: block;
	width: 100%;
}

.hero-place {
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 0.5rem;
}

.hero h1 {
	font-size: clamp(2.1rem, 4.2vw, 3.1rem);
	font-weight: 700;
}

.hero p.lead {
	font-size: 1.2rem;
	color: var(--navy);
	max-width: 32rem;
	margin-bottom: 1.4rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 1.5rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7rem 1.4rem;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.btn-primary {
	background: var(--orange);
	color: var(--navy);
	border-color: var(--navy);
}

.btn-primary:hover {
	background: var(--yellow);
}

.btn-ghost {
	background: var(--white);
	color: var(--navy);
	border-color: var(--navy);
}

.btn-ghost:hover {
	background: var(--sky-pale);
}

.hero-badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-size: 1rem;
	font-weight: 700;
}

.hero-badges li {
	padding: 0.35rem 0.9rem;
	background: var(--white);
	color: var(--navy);
	border-radius: var(--radius-pill);
}

.quote-aside {
	margin-top: 1.75rem;
	padding: 1.25rem 1.4rem;
	background: var(--navy);
	color: var(--white);
	border-radius: var(--radius);
	max-width: 32rem;
}

.quote-aside h2 {
	font-size: 1.35rem;
	color: var(--orange);
	margin-bottom: 0.7rem;
}

.quote-aside ul {
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.quote-aside li {
	padding-left: 1.6rem;
	position: relative;
}

.quote-aside li::before {
	content: '✔';
	position: absolute;
	left: 0;
	color: var(--yellow);
}

/* Sections */

section {
	padding: 4rem 0;
}

.band-pale {
	background: var(--sky-pale);
}

.section-header {
	margin-bottom: 2.25rem;
	text-align: center;
}

.section-header h2 {
	font-size: clamp(1.8rem, 3vw, 2.3rem);
	margin-bottom: 0.5rem;
}

.section-header p {
	max-width: 36rem;
	margin: 0 auto;
	color: var(--muted);
}

/* Services */

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2.25rem 2rem;
}

.service-card {
	border-top: 5px solid var(--sky);
	padding-top: 1rem;
}

.service-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sky-pale);
	border: 2px solid var(--sky);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 0.7rem;
}

.service-card h3 {
	font-size: 1.35rem;
	margin-bottom: 0.45rem;
}

.service-card p {
	color: var(--muted);
	margin-bottom: 0.6rem;
}

.service-meta {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--blue);
}

/* Photos */

.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
}

.photo-tile {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--navy);
	border: 4px solid var(--white);
	box-shadow: 0 0 0 1px var(--line);
}

.photo-tile .label {
	position: absolute;
	left: 0.7rem;
	bottom: 0.7rem;
	background: var(--white);
	color: var(--navy);
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-pill);
	font-size: 0.95rem;
	font-weight: 700;
}

/* Before & After */

.ba-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.75rem;
}

.ba-card {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--navy);
	color: var(--white);
}

.ba-images {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3px;
}

.ba-side {
	position: relative;
}

.ba-tag {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	padding: 0.2rem 0.7rem;
	border-radius: var(--radius-pill);
	font-size: 0.95rem;
	font-weight: 700;
	background: var(--white);
	color: var(--navy);
}

.ba-side.after .ba-tag {
	background: var(--orange);
}

.ba-body {
	padding: 1rem 1.2rem 1.2rem;
}

/* Reviews */

#reviews {
	scroll-margin-top: 4.5rem;
}

.reviews-summary {
	font-weight: 700;
	color: var(--navy);
}

.reviews-stars {
	color: var(--orange);
	letter-spacing: 0.08em;
}

.reviews-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0.25rem 0.25rem 1rem;
	list-style: none;
	overscroll-behavior-x: contain;
}

@media (prefers-reduced-motion: no-preference) {
	.reviews-track {
		scroll-behavior: smooth;
	}
}

.reviews-track:focus-visible {
	outline-offset: 4px;
	border-radius: var(--radius);
}

.review-card {
	flex: 0 0 min(340px, 85%);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	padding: 1.3rem;
}

.review-card blockquote {
	flex: 1;
}

.review-card footer {
	padding: 0;
	background: none;
	color: var(--muted);
	font-size: 0.95rem;
}

.review-card cite {
	font-style: normal;
	font-weight: 700;
	color: var(--navy);
}

.reviews-controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8rem;
	margin-top: 1rem;
}

/* Footer: link columns on every page */

body > footer {
	padding: 3rem 0 2rem;
	background: var(--navy);
	color: rgba(255, 255, 255, 0.85);
	font-size: 1rem;
}

.footer-cols {
	display: grid;
	grid-template-columns: 1.3fr repeat(4, 1fr);
	gap: 2rem;
}

.footer-cols h2 {
	font-size: 1.15rem;
	color: var(--orange);
	margin-bottom: 0.7rem;
}

.footer-cols ul {
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.footer-cols a {
	color: var(--white);
	text-decoration: none;
}

.footer-cols a:hover {
	color: var(--orange);
	text-decoration: underline;
}

.footer-about p {
	margin-bottom: 0.8rem;
}

.footer-phone {
	font-size: 1.25rem;
	font-weight: 700;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.8rem 1.5rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
}

.footer-bottom a {
	color: var(--white);
}

@media (max-width: 980px) {
	.footer-cols {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.footer-cols {
		grid-template-columns: 1fr;
	}
}

/* Service and services pages */

.page-hero {
	background: var(--sky);
	padding: 2.5rem 0 3rem;
}

.crumbs {
	font-size: 1rem;
	margin-bottom: 0.75rem;
	color: var(--navy);
}

.crumbs a {
	color: var(--navy);
	font-weight: 700;
}

.page-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 2rem 3rem;
	align-items: start;
}

.page-hero h1 {
	font-size: clamp(2rem, 4vw, 2.9rem);
	font-weight: 700;
	margin-bottom: 1rem;
}

.page-hero .lead {
	font-size: 1.2rem;
	color: var(--navy);
	margin-bottom: 1.4rem;
	max-width: 34rem;
}

.page-hero .hero-form {
	grid-area: auto;
}

.prose {
	max-width: 44rem;
}

.prose h2 {
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	margin: 2.25rem 0 0.75rem;
}

.prose h2:first-child {
	margin-top: 0;
}

.prose p {
	margin-bottom: 1rem;
}

.ticks {
	list-style: none;
	display: grid;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.ticks li {
	padding-left: 1.8rem;
	position: relative;
}

.ticks li::before {
	content: '✔';
	position: absolute;
	left: 0;
	color: var(--blue);
	font-weight: 700;
}

.page-photo {
	max-width: 22rem;
	border-radius: var(--radius);
	border: 4px solid var(--white);
	box-shadow: 0 0 0 1px var(--line);
	margin: 0.5rem 0 1.25rem;
}

.page-photo img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: calc(var(--radius) - 4px);
}

.page-photo figcaption {
	font-size: 0.95rem;
	color: var(--muted);
	padding: 0.5rem 0.25rem 0.25rem;
}

.related {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.related a {
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 2px solid var(--navy);
	border-radius: var(--radius-pill);
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
}

.related a:hover {
	background: var(--sky-pale);
}

.cta-band {
	background: var(--sky-pale);
	color: var(--navy);
	border-top: 5px solid var(--sky);
	text-align: center;
	padding: 3rem 0;
}

.cta-band h2 {
	color: var(--navy);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	margin-bottom: 0.6rem;
}

.cta-band p {
	margin-bottom: 1.25rem;
}

.cta-band .hero-actions {
	justify-content: center;
	margin-bottom: 0;
}

.service-group + .service-group {
	margin-top: 3.25rem;
}

.service-group > h2 {
	font-size: clamp(1.6rem, 2.8vw, 2rem);
	margin-bottom: 0.35rem;
}

.service-group > p {
	color: var(--muted);
	margin-bottom: 1.5rem;
	max-width: 40rem;
}

.service-card h3 a {
	color: var(--navy);
	text-decoration: none;
}

.service-card h3 a:hover {
	text-decoration: underline;
}

.more-link {
	font-weight: 700;
	color: var(--blue);
}

.center-link {
	text-align: center;
	margin-top: 2.25rem;
}

@media (max-width: 980px) {
	.page-hero-inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Smaller screens */

nav a,
.brand span {
	white-space: nowrap;
}

@media (max-width: 1100px) {
	nav ul {
		gap: 0;
		font-size: 0.95rem;
	}
}

@media (max-width: 980px) {
	nav ul {
		display: none; /* section links move into the phone menu panel */
	}

	.menu-toggle {
		display: inline-flex;
	}

	.nav {
		gap: 0.5rem;
	}

	.contact-btns {
		margin-left: auto;
	}

	/* The phone menu panel drops down under the header bar */

	nav {
		position: static;
	}

	.menu-open nav > ul {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 64px);
		overflow-y: auto;
		background: var(--navy);
		border-top: 4px solid var(--orange);
		padding: 0.75rem 1.25rem 1.5rem;
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
		font-size: 1.15rem;
	}

	.menu-open nav > ul > li > a {
		display: block;
		padding: 0.7rem 0.9rem;
		border-radius: 12px;
	}

	.menu-open .caret {
		display: none;
	}

	.menu-open .has-menu .menu {
		display: block;
		position: static;
		transform: none;
		padding: 0 0 0.5rem;
	}

	.menu-open .menu-cols {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		background: rgba(255, 255, 255, 0.06);
		border-top: 0;
		border-radius: 12px;
		box-shadow: none;
		padding: 0.75rem 0.5rem;
	}

	.menu-open .menu-head {
		color: var(--orange);
	}

	.menu-open .menu .menu-cols a {
		color: var(--white);
		font-weight: 400;
	}

	.menu-open .menu .menu-cols a:hover {
		background: #1a8fd0;
		color: var(--white);
	}

	.menu-open .menu .menu-all {
		display: none;
	}

	.hero-inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			'head'
			'form'
			'rest';
	}

	.hero {
		padding-top: 2rem;
	}

	.sparkle {
		display: none; /* on one column they would sit on the text */
	}
}

@media (max-width: 560px) {
	.brand span {
		display: none;
	}

	.hero-head {
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 1rem;
	}

	.mascot {
		width: 110px;
		border-width: 3px;
	}

	.hero h1 {
		font-size: 1.85rem;
	}
}

@media (max-width: 380px) {
	header .container {
		width: calc(100% - 1.25rem);
	}

	.nav {
		gap: 0.35rem;
	}

	.contact-btns {
		gap: 0.35rem;
	}

	.contact-btns a,
	.menu-toggle {
		padding-inline: 0.7rem;
	}

	.brand-logo {
		width: 40px;
		height: 40px;
	}
}
