/* =====================================================================
   Navada - site.css
   The one stylesheet for pages on the new layout.
   Mobile first: base styles are for phones, @media blocks add the
   desktop layout. Colours and sizes are set once in :root below.
   ===================================================================== */

/* ---------- 1. Settings ---------- */
:root {
	--charcoal:      #151c17;   /* hero band, dark sections            */
	--ink:           #2f3532;   /* headings                             */
	--text:          #4f5853;   /* body text                            */
	--muted:         #5d6762;   /* small print                          */
	--sage:          #c1cac5;   /* the original Navada grey-green       */
	--line:          #e1e6e3;   /* card borders                         */
	--paper:         #f2f5f3;   /* light background                     */
	--white:         #ffffff;
	--on-dark:       #c9cecb;   /* body text on charcoal                */
	--accent:        #f5b823;   /* amber: borders and main buttons only */

	--font:          'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius:        12px;
	--max-width:     1200px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--paper);
}

h1, h2, h3 {
	margin: 0;
	font-family: var(--font);
	font-stretch: 75%;               /* Open Sans Condensed look */
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.08;
	color: var(--ink);
}
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 24px; }
p  { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--charcoal); }

img { max-width: 100%; height: auto; }

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

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

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 16px; }

/* ---------- 3. Texture overlay (the classic Navada dot pattern) ---------- */
.tex, .tex-light { position: relative; }
.tex > *, .tex-light > * { position: relative; z-index: 1; }

.tex::before,
.tex-light::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('images/overlay.png');
	opacity: 0.2;
	pointer-events: none;
}
.tex-light::before { opacity: 0.06; }

.tex::after {                       /* soft highlight sheen */
	content: '';
	position: absolute;
	inset: 0;
	background: url('images/highlight.png') center center;
	background-size: 100% 200%;
	opacity: 0.5;
	pointer-events: none;
}

/* ---------- 4. Small shared pieces ---------- */
.eyebrow {
	display: block;
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 18px;
	color: #6f7a74;
}
.eyebrow--accent { color: var(--accent); }

.btn {
	display: inline-block;
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 20px;
	line-height: 1.2;
	text-decoration: none;
	padding: 12px 26px;
	border: 4px solid transparent;
	border-radius: 16px;
	transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--charcoal); }
.btn--primary:hover { background: #ffc94a; border-color: #ffc94a; color: var(--charcoal); }

.btn--ghost { color: #d4d7d5; border-color: rgba(135, 141, 137, 0.5); }
.btn--ghost:hover { color: var(--white); border-color: rgba(135, 141, 137, 0.9); }

.btn--small { font-size: 18px; padding: 8px 18px; border-radius: 10px; }
.btn--block { display: block; text-align: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.link-arrow {
	align-self: flex-start;
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 18px;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 3px solid var(--accent);
}

/* ---------- 5. Header and navigation ---------- */
.site-header {
	background: var(--white);
	border-bottom: 4px solid var(--accent);
}
.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.site-nav a,
.site-header__phone {
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
}
.site-nav a { font-size: 17px; color: var(--text); padding: 12px 0; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--charcoal); box-shadow: inset 0 -3px 0 var(--accent); }
.site-header__phone { font-size: 19px; color: var(--ink); padding: 12px 0; }

/* Phone: menu button shows, links stack and are hidden until opened */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px;
	font: inherit;
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.site-nav {
	display: none;
	flex-direction: column;
	width: 100%;
	order: 3;
	border-top: 1px solid var(--line);
	padding: 8px 0;
}
.site-nav.is-open { display: flex; }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 32px;
		width: auto;
		order: 0;
		border-top: 0;
		padding: 0;
	}
}

/* ---------- 6. Hero ---------- */
.hero {
	background: url('../images/banner.jpg') left center no-repeat;
	background-size: cover;
	padding: 48px 0;
}
.hero__band { background: rgba(21, 28, 23, 0.93); }
.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding-top: 56px;
	padding-bottom: 64px;
	text-align: center;
}
.hero__logo { display: block; width: 520px; }
.hero__tagline {
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 20px;
	color: #b4b7b5;
}
@media (min-width: 900px) {
	.hero { padding: 72px 0; }
	.hero__inner { padding-top: 72px; padding-bottom: 80px; }
	.hero__tagline { font-size: 22px; }
}

/* ---------- 7. Sections ---------- */
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.section--top-rule { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 80px 0; } }

.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	margin-bottom: 40px;
}

/* Two columns that stack on phones */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split--top { align-items: flex-start; }
.split__text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }
.split__text p { font-size: 17px; line-height: 1.7; }

/* ---------- 8. Dark Managed IT band ---------- */
.band-dark {
	background: var(--charcoal);
	color: var(--white);
	border-top: 5px solid var(--accent);
	padding: 64px 0;
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .split__text p { color: var(--on-dark); }
@media (min-width: 900px) { .band-dark { padding: 80px 0; } }

.pillars {
	flex: 1 1 480px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.pillar {
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid rgba(135, 141, 137, 0.35);
	border-radius: var(--radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.pillar p { font-size: 15px; color: var(--on-dark); }

/* ---------- 9. "How can we help" tiles ---------- */
.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px;
	min-height: 260px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 2px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(21, 28, 23, 0.08); color: var(--ink); }
.tile h3 { font-size: 30px; }
.tile p { color: var(--text); }
.tile svg { color: var(--text); }
.tile .btn, .tile .link-arrow { margin-top: auto; align-self: flex-start; }

.tile--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.tile--dark:hover { color: var(--white); }
.tile--dark h3 { color: var(--white); }
.tile--dark p { color: var(--on-dark); }
.tile--dark svg { color: var(--accent); }

/* ---------- 10. Facts strip ---------- */
.facts { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	padding-top: 32px;
	padding-bottom: 32px;
	text-align: center;
}
.facts strong {
	display: block;
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 28px;
	color: var(--ink);
}
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- 11. Service cards ---------- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	background: var(--white);
	border: 2px solid var(--line);
	border-top: 5px solid var(--accent);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(21, 28, 23, 0.08); color: var(--ink); }
.card p { font-size: 15px; color: var(--text); }
.card svg { color: var(--text); }
.card .link-arrow { margin-top: auto; font-size: 17px; }

/* ---------- 12. Business hours card ---------- */
.hours {
	flex: 1 1 320px;
	background: var(--paper);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.hours h3 { font-size: 26px; }
.hours__list { margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.hours__list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dde3df; padding-bottom: 10px; }
.hours__list div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours__list dt, .hours__list dd { margin: 0; }
.hours__list dd { color: var(--muted); }
.hours__list dd strong { color: var(--ink); }
.hours__phone {
	font-stretch: 75%;
	font-weight: 700;
	font-size: 32px;
	color: var(--ink);
	text-decoration: none;
}

/* ---------- 13. Footer ---------- */
.site-footer {
	background: var(--paper);
	border-top: 5px solid var(--accent);
	padding: 56px 0 32px;
}
.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 32px;
	margin-bottom: 40px;
}
.site-footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.site-footer h3 { font-size: 20px; margin-bottom: 4px; }
.site-footer a { color: var(--text); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--charcoal); text-decoration: underline; }
.site-footer__copy {
	display: block;
	width: fit-content;
	margin: 0 auto;
	background: #e7eae8;
	color: var(--muted);
	font-size: 13px;
	padding: 10px 28px;
	border-radius: 8px;
}

/* ---------- 14. Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	.tile:hover, .card:hover { transform: none; }
}

/* ---------- 15. Featured products (Atrex catalogue) ----------
   The catalogue file is pasted from Atrex every morning and loaded into
   #catalogue. Its markup is an old-style table with <font> tags, so these
   rules turn it into cards without changing what Atrex produces:
   - the table becomes a grid, each cell becomes a card
   - Atrex's own wrapper and "Featured Products" heading are hidden
     (the page supplies its own heading)
   - the <font> tag sizes are overridden
   ---------------------------------------------------------------------- */
.catalogue-section .section-head { margin-bottom: 32px; }

#catalogue #main-wrapper,
#catalogue .container { max-width: none; margin: 0; padding: 0; background: none; border: 0; }
#catalogue h2.major { display: none; }

#catalogue table { display: block; width: 100%; }
#catalogue tbody {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));   /* 3 across on desktop, like Atrex rows */
	gap: 20px;
	width: 100%;
	border-collapse: separate;
}
#catalogue tr { display: contents; }          /* rows disappear, cells flow into the grid */
#catalogue td {
	display: flex;
	background: var(--white);
	border: 2px solid var(--line);
	border-top: 5px solid var(--accent);
	border-radius: var(--radius);
	padding: 20px;
	text-align: left;
}
#catalogue td:empty { display: none; }

#catalogue .catalogue-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}
#catalogue .catalogue-item > div:first-child { display: flex; flex-direction: column; gap: 12px; }
#catalogue .catalogue-item br { display: none; }

#catalogue img {
	display: block;
	width: 100%;
	max-width: 100% !important;   /* beats Atrex's inline max-width: 250px */
	height: 180px;
	object-fit: contain;
	background: var(--white);
	margin: 0 auto;
}

/* Price: amber tag under the photo, product code underneath */
#catalogue pricespan { position: static; display: block; }
#catalogue .price {
	position: static;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 2px;
	width: auto;
	height: auto;
	padding: 0;
	background: none;
	text-align: left;
	line-height: 1.3;
}
#catalogue .price::before { display: none; }
#catalogue .price br { display: none; }
#catalogue .price font { font-size: inherit; }
#catalogue .price b {
	display: inline-block;
	font-stretch: 75%;
	font-weight: 700;
	font-size: 26px;
	color: var(--charcoal);
	background: var(--accent);
	padding: 2px 12px;
	border-radius: 8px;
}
#catalogue .price a {
	font-size: 12px;
	color: var(--muted);
	text-decoration: none;
}
#catalogue .price a:hover { text-decoration: underline; }

#catalogue .description {
	width: auto;
	padding: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text);
}
.catalogue-more { margin-top: 32px; text-align: center; }

/* ---------- 16. Page hero (inner pages) ---------- */
.page-hero {
	background: var(--charcoal);
	color: var(--white);
	padding: 56px 0 64px;
}
.page-hero h1 {
	font-size: clamp(34px, 5vw, 56px);
	color: var(--white);
	max-width: 820px;
}
.page-hero__lead { font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 680px; }
.page-hero .split__text { gap: 20px; }
.page-hero__img { flex: 1 1 380px; display: flex; align-items: center; justify-content: center; }
.page-hero__img img { border-radius: var(--radius); }
@media (min-width: 900px) { .page-hero { padding: 80px 0 88px; } }

.footnote { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 17. Feature columns with icon items (Managed IT page) ---------- */
.columns4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	align-items: start;
}
.column {
	background: var(--white);
	border: 2px solid var(--line);
	border-top: 5px solid var(--accent);
	border-radius: var(--radius);
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.column__sub { margin-top: -10px; font-size: 14px; color: var(--muted); }
.icon-item { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.icon-item img { grid-row: span 2; width: 40px; height: 40px; object-fit: contain; }
.icon-item h4 { margin: 0; font-size: 15px; line-height: 1.35; color: var(--ink); }
.icon-item p { grid-column: 2; font-size: 14px; line-height: 1.55; color: var(--text); }

/* Short statement on a dark band */
.statement {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
	font-size: 20px;
	line-height: 1.7;
	color: var(--on-dark);
}
.statement strong {
	display: block;
	margin-top: 12px;
	font-stretch: 75%;
	text-transform: uppercase;
	font-size: 28px;
	color: var(--accent);
}

.screenshot {
	display: block;
	margin: 0 auto 40px;
	border: 2px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 16px 40px rgba(21, 28, 23, 0.12);
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}
.feature {
	padding: 20px;
	border-left: 4px solid var(--accent);
	background: var(--paper);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { font-size: 14px; line-height: 1.55; }

/* ---------- 18. Forms (used by every form page) ---------- */
.form-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.form-card {
	flex: 2 1 480px;
	background: var(--white);
	border: 2px solid var(--line);
	border-top: 5px solid var(--accent);
	border-radius: var(--radius);
	padding: 32px;
}
.contact-card {
	flex: 1 1 280px;
	background: var(--charcoal);
	color: var(--on-dark);
	border-radius: var(--radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.contact-card h3 { color: var(--white); }
.contact-card a { color: var(--white); text-decoration: none; font-size: 18px; font-weight: 600; }
.contact-card a small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field input,
.field select,
.field textarea {
	width: 100%;
	font: inherit;
	font-size: 16px;               /* 16px stops phones zooming in */
	color: var(--ink);
	background: var(--white);
	border: 2px solid #cfd6d2;
	border-radius: 10px;
	padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(245, 184, 35, 0.45); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b3261e; }
.field-error { font-size: 14px; color: #b3261e; }

.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.alert--error { background: #fdecea; color: #8c1d18; border: 1px solid #f3b8b3; }
.alert--success { background: #eef7f0; color: #1e5631; border: 1px solid #b8dcc3; }
.alert--success h3 { color: #1e5631; margin-bottom: 6px; }

.cf-turnstile { margin: 4px 0 20px; min-height: 65px; }
.form-privacy { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

button.btn { cursor: pointer; font-family: inherit; }

/* Honeypot: hidden from people, visible to bots */
.nf-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 19. Extra form pieces (contact + booking) ---------- */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.field-hint { font-size: 14px; line-height: 1.5; color: var(--muted); }
.field-hint:empty { display: none; }
.field-hint.is-warning { color: #8c4a00; }
.field-hint.is-ok { color: #1e5631; }
.field input[type="file"] { padding: 10px; background: var(--paper); cursor: pointer; }
.field select { appearance: auto; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend {
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 20px;
	color: var(--ink);
	padding: 0;
	margin-bottom: 12px;
}
.fieldset + .fieldset { border-top: 1px solid var(--line); padding-top: 20px; }
.alert--success p + p { margin-top: 6px; }
.contact-card__hours small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.contact-card a.btn { align-self: flex-start; color: var(--charcoal); font-size: 18px; }
.contact-card strong { color: var(--white); }
.statement-actions { margin-top: 32px; }
div.card { transition: none; }
div.card:hover { transform: none; box-shadow: none; }
.cards--three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- 20. Partner logos (About page) ----------
   Logos show in grey to suit the design, and turn full colour on hover. */
.partners-section { background: var(--white); }
.partners {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px 64px;
}
.partners li { display: flex; align-items: center; justify-content: center; min-height: 80px; }
.partners img {
	max-height: 72px;
	max-width: 220px;
	width: auto;
	filter: grayscale(100%);
	opacity: 0.75;
	transition: filter .2s, opacity .2s;
}
.partners li:hover img { filter: none; opacity: 1; }
.partners__name {
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 28px;
	color: #8b9790;
	letter-spacing: 0.04em;
}
