@charset "utf-8";

/* ------------------------------------------------------------------ */
/* Font                                                                */
/* ------------------------------------------------------------------ */
@font-face {
	font-family: 'Conv_GOTHIC';
	src: url('../fonts/GOTHIC.eot');
	src: local('?'), url('../fonts/GOTHIC.woff') format('woff'),
		url('../fonts/GOTHIC.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Reset & tokens                                                      */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }

::selection { background: var(--green); color: #fff; }

:root {
	--green: #4c8c5a;
	--green-dark: #386943;
	--ink: #1d2620;
	--ink-soft: #4a544d;
	--paper: #ffffff;
	--paper-alt: #f4f7f4;
	--line: #e1e7e2;
	--red: #d64545;
	--shadow: 0 10px 30px rgba(24, 40, 28, 0.08);
	--radius: 14px;
	--maxw: 1160px;
}

body {
	margin: 0;
	font-family: 'Conv_GOTHIC', 'Segoe UI', Arial, sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

section { padding: 72px 0; }
section.alt { background: var(--paper-alt); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: var(--green-dark);
}
h3 { font-size: 1.15rem; color: var(--green-dark); }

.eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--green);
	margin-bottom: 10px;
}

.lede {
	font-size: 1.05rem;
	color: var(--ink-soft);
	max-width: 640px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 9px 26px 9px 9px;
	border-radius: 6px 22px 6px 22px;
	background: var(--green-dark);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	border: none;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 4px 14px 4px 14px;
	background: rgba(255,255,255,0.22);
	flex: none;
}
.btn:hover { background: var(--green); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.btn:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.btn.secondary {
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.4);
}
.btn.secondary .btn-icon { background: rgba(255,255,255,0.18); }
.btn.secondary:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.btn.secondary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.btn.on-light {
	background: transparent;
	color: var(--green-dark);
	border: 2px solid var(--green);
	box-shadow: none;
}
.btn.on-light:hover { background: var(--green); color: #fff; }
.btn.on-light:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Header / nav                                                        */
/* ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 1px 0 var(--line);
}
.header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.brand img { height: 48px; width: auto; }

nav.main-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
nav.main-nav a {
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--green-dark); }

.header-cta {
	display: flex;
	align-items: center;
	gap: 18px;
}
.phone-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	background: var(--green);
	white-space: nowrap;
	border: 2px solid transparent;
	border-radius: 4px 16px 4px 16px;
	padding: 8px 14px;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.phone-link:hover,
.phone-link:focus-visible {
	background: transparent;
	border-color: var(--green-dark);
	color: var(--green-dark);
	outline: none;
}
.phone-link svg { flex: none; }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: var(--ink);
	margin: 5px 0;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */
.hero {
	position: relative;
	background: linear-gradient(160deg, var(--green-dark), var(--green) 70%);
	color: #fff;
	overflow: hidden;
	padding: 90px 0 100px;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: url('../images/tayside-background.jpg') center/cover no-repeat;
	opacity: 0.1;
	mix-blend-mode: luminosity;
}
.hero .wrap { position: relative; max-width: 760px; }
.hero h1 {
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	margin-bottom: 18px;
}
.hero p.lede { color: rgba(255,255,255,0.92); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.cert-mini {
	display: block;
	height: 26px;
	width: auto;
	margin-bottom: 14px;
}

/* ------------------------------------------------------------------ */
/* Stats strip                                                         */
/* ------------------------------------------------------------------ */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: -56px;
	position: relative;
	z-index: 2;
}
.stat-card {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 26px 20px;
	text-align: center;
}
.stat-card .num {
	font-size: 1.9rem;
	font-weight: 800;
	color: var(--green-dark);
	display: block;
}
.stat-card .label {
	font-size: 0.85rem;
	color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Benefits grid                                                       */
/* ------------------------------------------------------------------ */
.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow);
}
.card .icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(76, 140, 90, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--green-dark);
}
.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ------------------------------------------------------------------ */
/* Two-column info sections                                            */
/* ------------------------------------------------------------------ */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split ul { padding-left: 20px; color: var(--ink-soft); }
.split li { margin-bottom: 8px; }

/* ------------------------------------------------------------------ */
/* Certifications strip                                                 */
/* ------------------------------------------------------------------ */
.cert-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 48px;
	padding: 36px 0;
}
.cert-strip img { max-height: 68px; width: auto; }
.cert-strip img.cert-disclosure { max-height: 83px; }

/* ------------------------------------------------------------------ */
/* Reviews                                                             */
/* ------------------------------------------------------------------ */
.reviews-carousel {
	position: relative;
	margin-top: 40px;
}
.reviews-grid {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 22px;
	padding-bottom: 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.reviews-grid::-webkit-scrollbar { display: none; }
.reviews-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	color: var(--green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.reviews-arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }
.reviews-arrow:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.reviews-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.reviews-arrow-prev { left: -22px; }
.reviews-arrow-next { right: -22px; }
.review-card {
	flex: 0 0 calc((100% - 44px) / 3);
	scroll-snap-align: start;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.review-card .stars { color: #e8a13d; letter-spacing: 2px; font-size: 0.95rem; }
.review-card p.quote {
	margin: 0;
	color: var(--ink);
	font-size: 0.96rem;
	flex-grow: 1;
}
.review-card .who {
	font-size: 0.85rem;
	color: var(--ink-soft);
	border-top: 1px solid var(--line);
	padding-top: 12px;
}
.review-card .who strong { color: var(--ink); display: block; }

/* ------------------------------------------------------------------ */
/* Contact                                                              */
/* ------------------------------------------------------------------ */
.contact-section {
	background: linear-gradient(160deg, var(--green-dark), var(--green) 70%);
	color: #fff;
}
.contact-section h2 { color: #fff; }
.contact-section .lede { color: rgba(255,255,255,0.9); }
.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-top: 40px;
}
.contact-grid-2 { grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact-card {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: var(--radius);
	padding: 26px;
	text-decoration: none;
	color: #fff;
	transition: background 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.contact-card .icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255,255,255,0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.contact-card .label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.8;
	margin-bottom: 6px;
}
.contact-card .value { font-weight: 700; font-size: 1.05rem; }

.contact-card-combo {
	min-width: 0;
	padding: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: none;
}
.contact-card-combo:hover { background: rgba(255,255,255,0.08); transform: none; }
.combo-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px;
	border-radius: 10px;
	text-decoration: none;
	color: #fff;
	transition: background 0.15s ease;
}
.combo-row:hover { background: rgba(255,255,255,0.1); }
.combo-row .icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255,255,255,0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.combo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.combo-text .label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.8;
}
.combo-text .value { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.combo-divider { height: 1px; background: rgba(255,255,255,0.18); margin: 0 18px; }

.contact-cta {
	min-width: 0;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: var(--radius);
	padding: 26px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
}
.contact-cta h3 { color: #fff; margin: 0; }
.contact-cta p { color: rgba(255,255,255,0.85); margin: 0 0 6px; font-size: 0.95rem; }

/* ------------------------------------------------------------------ */
/* Get a Quote page                                                     */
/* ------------------------------------------------------------------ */
.quote-hero {
	background: linear-gradient(160deg, var(--green-dark), var(--green) 70%);
	color: #fff;
	padding: 64px 0 56px;
}
.quote-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.quote-hero .lede { color: rgba(255,255,255,0.92); max-width: 600px; }

.quote-layout {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 40px;
	align-items: start;
}

.quote-swap {
	overflow: hidden;
}
.quote-swap.is-resizing {
	transition: height 0.3s ease;
}

.quote-form {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.quote-form .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.quote-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
	font: inherit;
	font-weight: 400;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--paper-alt);
	color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
	outline: none;
	border-color: var(--green);
	background: #fff;
}

.form-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.btn-debug {
	font: inherit;
	font-size: 0.85rem;
	padding: 8px 14px;
	border: 1px dashed var(--line);
	border-radius: 8px;
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
}
.btn-debug:hover { border-color: var(--green); color: var(--green-dark); }
.btn-debug[hidden] { display: none; }
.btn-debug[disabled] { opacity: 0.6; cursor: default; }

.quote-form[hidden] { display: none; }
.quote-form {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.quote-form.is-leaving {
	opacity: 0;
	transform: translateY(-8px);
}
.quote-success {
	opacity: 0;
	transform: translateY(10px);
	scroll-margin-top: 100px;
}
.quote-success.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.quote-success-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.quote-success h3 { margin: 0; }
.quote-success p { margin: 0; color: var(--ink-soft); }
.detail-loc-below { display: none; }
.quote-form textarea { resize: vertical; }
.quote-form .btn {
	align-self: flex-start;
	margin-top: 6px;
	cursor: pointer;
}
.form-note {
	font-size: 0.8rem;
	color: var(--ink-soft);
	margin: 0;
}

.quote-aside {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
}
.quote-aside h3 { margin-bottom: 8px; }
.quote-aside p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 18px; }
.quote-aside .aside-link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--green-dark);
	font-weight: 700;
	text-decoration: none;
	margin-bottom: 12px;
}
.quote-aside .aside-link:hover { color: var(--green); }
.quote-aside .aside-link svg { flex: none; }
.aside-divider {
	height: 1px;
	background: var(--line);
	margin: 20px 0;
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
footer {
	background: var(--ink);
	color: rgba(255,255,255,0.75);
	padding: 32px 0;
	font-size: 0.85rem;
}
footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* Privacy policy page                                                  */
/* ------------------------------------------------------------------ */
.policy-content { max-width: 780px; }
.policy-content h2 {
	margin-top: 44px;
	font-size: 1.3rem;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--ink-soft); margin: 0 0 14px; }
.policy-content ul { color: var(--ink-soft); margin: 0 0 14px; padding-left: 22px; }
.policy-content li { margin-bottom: 6px; }
.policy-content a { color: var(--green-dark); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */
/* Collapse the nav into the hamburger well before true mobile widths, so
   a phone browser's "desktop site" mode (which reports a viewport of
   roughly 980-1024px) never squishes the inline nav links together. */
@media (max-width: 1024px) {
	nav.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ink);
		flex-direction: column;
		align-items: stretch;
		padding: 6px;
		gap: 2px;
		box-shadow: 0 16px 32px rgba(0,0,0,0.25);
		transform: translateY(-16px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
	}
	nav.main-nav.open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	nav.main-nav a {
		color: #fff;
		padding: 11px 14px;
		font-size: 0.92rem;
	}
	nav.main-nav a:hover,
	nav.main-nav a:focus-visible { background: var(--green); color: #fff; }
	.nav-toggle { display: block; }
}

@media (max-width: 960px) {
	.stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; gap: 28px; }
	.contact-grid { grid-template-columns: 1fr 1fr; }
	.quote-layout { grid-template-columns: 1fr; }
	.detail-loc-side { display: none; }
	.detail-loc-below { display: inline; }
}

@media (max-width: 720px) {
	.site-header {
		background: #fff;
		box-shadow: none;
	}
	nav.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ink);
		flex-direction: column;
		align-items: stretch;
		padding: 6px;
		gap: 2px;
		border-radius: 0;
		box-shadow: 0 16px 32px rgba(0,0,0,0.25);
		transform: translateY(-16px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
	}
	nav.main-nav.open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	nav.main-nav a {
		color: #fff;
		padding: 11px 14px;
		border-radius: 0;
		font-size: 0.88rem;
	}
	nav.main-nav a:hover,
	nav.main-nav a:focus-visible { background: var(--green); color: #fff; }
	.nav-toggle { display: block; }
	.header-cta { gap: 6px; }
	.header-cta .phone-link span.phone-text { display: none; }
	.header-cta .phone-link { padding: 8px 10px; }
	.header-row { height: auto; padding: 12px 0; }
	.brand { margin-left: 8px; }
	.brand img { height: 43px; }
	section { padding: 56px 0; }
	.grid-3, .contact-grid { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr 1fr; }
	.cert-strip { gap: 26px; }
	.hero { padding: 56px 0 80px; }
	.hero-actions .btn { width: 100%; justify-content: center; }
	.quote-form .form-row { grid-template-columns: 1fr; }
	.quote-form { padding: 24px; }

	/* Hide the "Peace of mind" card on mobile only */
	.mobile-hide { display: none; }

	/* Reviews carousel: on mobile show one card at a time (with a peek of
	   the next) instead of three, since three would be too narrow. */
	.reviews-grid {
		gap: 16px;
		padding: 4px 4px 12px 0;
	}
	.review-card {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
	.reviews-arrow { display: none; }
}
