/*
Theme Name: SCR Traffic Services
Theme URI: https://southcoastresolutions.com/
Author: SCR Companies
Description: One-page theme for SCR Traffic Services. All page text and images are editable from the page editor (custom fields), header/footer/scripts from "Theme Settings". Imports its images into the Media Library, creates the Home page and the primary menu on activation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scr-traffic
*/

/* ==========================================================================
   1. SHARED STYLES (all pages)
   ========================================================================== */

/* ---------- 1.1 Design tokens ---------- */
:root {
	--scr-navy: #0A1E3F;
	--scr-blue: #013388;
	--scr-orange: #F26A1B;
	--scr-sky: #9DB8F0;
	--scr-page-bg: #FDFBFB;
	--scr-white: #FFFFFF;
	--scr-text: #3A3A3B;
	--scr-line: #D6DBE6;
	--scr-muted-on-dark: #D6DDEC;
	--scr-field-border: #8A8F99;
	--scr-container: 1240px;
	--scr-gutter: 32px;
	--scr-section-space: clamp(56px, 8vw, 96px);
}

/* ---------- 1.2 Base ---------- */
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	background: var(--scr-page-bg);
	color: var(--scr-navy);
}

*, *::before, *::after { box-sizing: border-box; }

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

a { color: var(--scr-navy); }
a:hover { color: var(--scr-blue); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--scr-white);
	color: var(--scr-navy);
	font-weight: 700;
}

/* Rich-text fields (editor output) */
.scr-rich > p { margin: 0 0 1em; }
.scr-rich > :last-child { margin-bottom: 0; }

/* ---------- 1.3 Layout helpers ---------- */
.scr-container {
	max-width: calc(var(--scr-container) + 2 * var(--scr-gutter));
	margin: 0 auto;
	padding-left: var(--scr-gutter);
	padding-right: var(--scr-gutter);
}

@media (max-width: 600px) {
	:root { --scr-gutter: 20px; }
}

/* ---------- 1.4 Typography ---------- */
.scr-eyebrow {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--scr-blue);
}

.scr-heading {
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.08;
	margin: 0;
}

.scr-heading--xl { font-size: clamp(34px, 5vw, 56px); }

.scr-lead {
	margin: 0;
	font-size: 20px;
	line-height: 1.6;
	color: var(--scr-text);
}

.scr-section-intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ---------- 1.5 Buttons ---------- */
.scr-button {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.scr-button--primary {
	background: var(--scr-orange);
	color: var(--scr-navy);
}

.scr-button--primary:hover,
.scr-button--primary:focus-visible {
	background: transparent;
	border-color: var(--scr-orange);
	color: var(--scr-orange);
}

.scr-button--outline {
	border: 2px solid var(--scr-white);
	color: var(--scr-white);
	background: transparent;
}

.scr-button--outline:hover,
.scr-button--outline:focus-visible {
	border-color: var(--scr-orange);
	color: var(--scr-orange);
}

.scr-button--small { font-size: 17px; padding: 15px 26px; min-height: 48px; }
.scr-button--large { font-size: 18px; padding: 17px 31px; min-height: 56px; }
.scr-button--outline.scr-button--large { padding: 16px 30px; }

/* ---------- 1.6 Decorative stripe (repeating diagonal line) ---------- */
.scr-stripe {
	height: 14px;
	background: repeating-linear-gradient(135deg, var(--scr-blue) 0 28px, var(--scr-navy) 28px 56px);
}

.scr-stripe--orange {
	background: repeating-linear-gradient(135deg, var(--scr-orange) 0 28px, var(--scr-navy) 28px 56px);
}

/* ---------- 1.7 Header ---------- */
.scr-header {
	background: var(--scr-white);
	border-bottom: 1px solid var(--scr-line);
}

.scr-header__inner {
	padding-top: 18px;
	padding-bottom: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.scr-header__logo { display: block; line-height: 0; }
.scr-header__logo img { height: 64px; width: auto; display: block; }

.scr-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	align-items: center;
	font-size: 17px;
	font-weight: 500;
}

.scr-nav__list a {
	display: inline-block;
	text-decoration: none;
	padding: 10px 0;
	color: var(--scr-navy);
	transition: color .15s ease;
}

.scr-nav__list a:hover,
.scr-nav__list a:focus-visible { color: var(--scr-orange); }

.scr-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.scr-header__phone {
	font-size: 20px;
	font-weight: 700;
	color: var(--scr-blue);
	text-decoration: none;
	padding: 10px 0;
	transition: color .15s ease;
}

.scr-header__phone:hover,
.scr-header__phone:focus-visible { color: var(--scr-orange); }

/* ---------- 1.8 Footer ---------- */
.scr-footer {
	background: var(--scr-navy);
	color: var(--scr-muted-on-dark);
}

.scr-footer__inner {
	padding-top: 36px;
	padding-bottom: 36px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 32px;
	font-size: 16px;
}

.scr-footer__brand { display: flex; align-items: center; gap: 20px; }
.scr-footer__logo img { height: 48px; width: auto; display: block; }
.scr-footer__name { color: var(--scr-white); }

.scr-footer__note {
	font-size: 14px;
	padding-top: 6px;
	color: var(--scr-muted-on-dark);
}

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

.scr-footer__phone {
	color: var(--scr-white);
	font-weight: 700;
	text-decoration: none;
	transition: color .15s ease;
}

.scr-footer a.scr-footer__phone:hover,
.scr-footer a.scr-footer__phone:focus-visible { color: var(--scr-orange); }

/* ---------- 1.9 Gravity Forms (theme styling; GF's own CSS is disabled) ---------- */
.scr-form-card {
	flex: 1.2 1 400px;
	min-width: 0;
	background: var(--scr-page-bg);
	border: 1px solid var(--scr-line);
	padding: clamp(24px, 4vw, 40px);
}

.scr-form-card .gform_heading { display: none; }

.scr-form-card .gform_fields {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.scr-form-card .gfield { grid-column: span 12; min-width: 0; }
.scr-form-card .gfield--width-half { grid-column: span 6; }

@media (max-width: 560px) {
	.scr-form-card .gfield--width-half { grid-column: span 12; }
}

.scr-form-card .gfield_label,
.scr-form-card .gform-field-label {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--scr-navy);
}

.scr-form-card .gfield_required { color: var(--scr-navy); margin-left: 2px; }
.scr-form-card .gfield_required .gfield_required_text { font-weight: 400; font-size: 13px; }

.scr-form-card input[type="text"],
.scr-form-card input[type="email"],
.scr-form-card input[type="tel"],
.scr-form-card select,
.scr-form-card textarea {
	font: inherit;
	font-weight: 400;
	font-size: 18px;
	color: var(--scr-navy);
	background: var(--scr-white);
	border: 2px solid var(--scr-field-border);
	padding: 14px 16px;
	min-height: 52px;
	width: 100%;
	border-radius: 0;
}

.scr-form-card textarea { resize: vertical; height: 170px; min-height: 120px; }

.scr-form-card input:focus,
.scr-form-card select:focus,
.scr-form-card textarea:focus {
	outline: 3px solid var(--scr-sky);
	outline-offset: 0;
	border-color: var(--scr-blue);
}

.scr-form-card .gform_footer { margin-top: 20px; }

.scr-form-card .gform_footer input[type="submit"],
.scr-form-card .gform_footer button,
.scr-form-card .gform_button {
	width: 100%;
	font: inherit;
	font-weight: 700;
	font-size: 19px;
	background: var(--scr-orange);
	color: var(--scr-navy);
	border: 1px solid var(--scr-orange);
	padding: 18px 28px;
	min-height: 56px;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}

.scr-form-card .gform_footer input[type="submit"]:hover,
.scr-form-card .gform_footer button:hover,
.scr-form-card .gform_button:hover,
.scr-form-card .gform_button:focus-visible {
	background: transparent;
	color: var(--scr-orange);
}

.scr-form-card .gform_validation_errors,
.scr-form-card .validation_error {
	margin-bottom: 20px;
	padding: 14px 16px;
	background: #FDECEA;
	border-left: 4px solid #B3261E;
	color: #5F1410;
	font-size: 16px;
}

.scr-form-card .gform_validation_errors h2 { font-size: 16px; margin: 0; }
.scr-form-card .gfield_validation_message,
.scr-form-card .validation_message { margin-top: 6px; font-size: 15px; color: #B3261E; }
.scr-form-card .gfield_error input,
.scr-form-card .gfield_error select,
.scr-form-card .gfield_error textarea { border-color: #B3261E; }

.scr-form-card .gform_confirmation_message {
	font-size: 17px;
	line-height: 1.5;
	color: var(--scr-navy);
	background: #E6EEFB;
	padding: 14px 16px;
}

.scr-form-card .gform_validation_container,
.scr-form-card .gfield--type-honeypot,
.scr-form-card .gform_hidden,
.scr-form-card .gfield_visibility_hidden,
.scr-form-card .gform_ajax_spinner { display: none !important; }

.scr-form-card .gfield_description { margin-top: 6px; font-size: 15px; color: var(--scr-text); }

.scr-form-notice { margin: 0; font-size: 17px; line-height: 1.55; color: var(--scr-text); }

/* ---------- 1.10 Generic page content (default page.php / index.php) ---------- */
.scr-content {
	padding-top: var(--scr-section-space);
	padding-bottom: var(--scr-section-space);
	font-size: 18px;
	line-height: 1.65;
	color: var(--scr-text);
}

.scr-content h1 {
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.08;
	color: var(--scr-navy);
	margin: 0 0 24px;
}

.scr-content h2, .scr-content h3 { color: var(--scr-navy); line-height: 1.2; }


/* ==========================================================================
   2. HOME PAGE STYLES (template: "Home (One Page)")
   ========================================================================== */

/* ---------- 2.1 Hero ---------- */
.scr-hero {
	position: relative;
	min-height: 50vh;
	display: flex;
	flex-direction: column;
	color: var(--scr-white);
	background: var(--scr-navy);
	overflow: hidden;
}

.scr-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.scr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 30, 63, .92) 0%, rgba(10, 30, 63, .78) 55%, rgba(10, 30, 63, .55) 100%);
	z-index: 1;
}

.scr-hero__inner {
	position: relative;
	z-index: 2;
	flex: 1 0 auto;
	width: 100%;
	padding-top: clamp(56px, 9vw, 120px);
	padding-bottom: clamp(64px, 10vw, 130px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 48px;
	align-items: center;
}

.scr-hero > .scr-stripe { position: relative; z-index: 2; }

.scr-hero__content { display: flex; flex-direction: column; gap: 28px; }

.scr-hero__eyebrow { color: var(--scr-sky); }

.scr-hero__title {
	font-size: clamp(40px, 7vw, 62px);
	max-width: 900px;
	color: var(--scr-white);
}

.scr-hero__text {
	margin: 0;
	max-width: 640px;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.6;
	color: #EDF1F8;
}

.scr-hero__text a { color: var(--scr-white); }

.scr-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero side card */
.scr-hero-card {
	background: rgba(10, 30, 63, .94);
	border: 1px solid rgba(157, 184, 240, .35);
	display: flex;
	flex-direction: column;
}

.scr-hero-card__body {
	padding: 30px 32px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.scr-hero-card__title { font-size: 30px; color: var(--scr-white); }

.scr-hero-card__item { display: flex; gap: 14px; align-items: flex-start; }
.scr-hero-card__icon { flex: none; width: 28px; height: 28px; }
.scr-hero-card__item-title { font-weight: 700; font-size: 18px; color: var(--scr-white); }
.scr-hero-card__item-text { font-size: 16px; line-height: 1.5; color: var(--scr-muted-on-dark); }

/* ---------- 2.2 Trust bar ---------- */
.scr-trust-bar {
	background: var(--scr-white);
	border-bottom: 1px solid var(--scr-line);
}

.scr-trust-bar__list {
	list-style: none;
	margin: 0 auto;
	padding-top: 22px;
	padding-bottom: 22px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
}

.scr-trust-bar__item {
	font-size: 17px;
	font-weight: 700;
	color: var(--scr-navy);
	white-space: nowrap;
}

/* ---------- 2.3 What we do (services) ---------- */
.scr-services {
	padding-top: var(--scr-section-space);
	padding-bottom: var(--scr-section-space);
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.scr-services__intro { max-width: 750px; }

.scr-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px;
}

.scr-service-card {
	background: var(--scr-white);
	border: 1px solid var(--scr-line);
	display: flex;
	flex-direction: column;
}

.scr-service-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.scr-focus-top { object-position: 50% 25%; }
.scr-focus-upper { object-position: 50% 40%; }
.scr-focus-center { object-position: 50% 50%; }
.scr-focus-lower { object-position: 50% 70%; }

/* Text tile shown instead of a photo (e.g. "Events") */
.scr-service-card__tile {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--scr-navy);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.scr-service-card__tile-label {
	padding: 24px 26px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.08;
	font-size: 32px;
	color: var(--scr-white);
}

.scr-service-card__body {
	padding: 24px 26px 30px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.scr-service-card__title {
	font-size: 24px;
	color: var(--scr-navy);
	text-transform: capitalize;
}

.scr-service-card__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--scr-text);
}

/* ---------- 2.4 Telecom / utility band ---------- */
.scr-band {
	background: var(--scr-blue);
	color: var(--scr-white);
}

.scr-band__inner {
	padding-top: 22px;
	padding-bottom: 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.scr-band__text {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	max-width: 820px;
}

.scr-band__text a { color: var(--scr-white); }

.scr-band .scr-button--primary:hover,
.scr-band .scr-button--primary:focus-visible {
	color: var(--scr-white);
	border-color: var(--scr-orange);
}

/* ---------- 2.5 How we work ---------- */
.scr-how {
	background: var(--scr-white);
	border-top: 1px solid var(--scr-line);
	border-bottom: 1px solid var(--scr-line);
}

.scr-how__inner {
	padding-top: var(--scr-section-space);
	padding-bottom: var(--scr-section-space);
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.scr-how__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 32px;
}

.scr-step {
	border-top: 4px solid var(--scr-navy);
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.scr-step__number { font-size: 52px; color: var(--scr-blue); }

.scr-step__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--scr-navy);
	text-transform: capitalize;
}

.scr-step__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--scr-text);
}

/* ---------- 2.6 Who we work with ---------- */
.scr-clients {
	padding-top: var(--scr-section-space);
	padding-bottom: var(--scr-section-space);
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.scr-clients__title { font-size: clamp(30px, 4.5vw, 44px); }

.scr-clients__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.scr-clients__tag {
	background: var(--scr-white);
	border: 2px solid var(--scr-navy);
	padding: 14px 22px;
	font-size: 18px;
	font-weight: 700;
	color: var(--scr-navy);
	text-transform: capitalize;
}

/* ---------- 2.7 Safety first ---------- */
.scr-safety {
	background: var(--scr-navy);
	color: var(--scr-white);
}

.scr-safety__inner {
	padding-top: var(--scr-section-space);
	padding-bottom: var(--scr-section-space);
	display: flex;
	flex-direction: column;
	gap: 44px;
}

.scr-safety__top {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
}

.scr-safety__intro {
	flex: 1 1 380px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.scr-safety__eyebrow { color: var(--scr-sky); }

.scr-safety__title {
	font-size: clamp(36px, 5.5vw, 60px);
	color: var(--scr-white);
}

.scr-safety__text {
	margin: 0;
	font-size: 20px;
	line-height: 1.65;
	color: #E3E8F3;
}

.scr-safety__text a { color: var(--scr-white); }

.scr-safety__image {
	flex: 1 1 420px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.scr-safety__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 960px) {
	.scr-safety__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.scr-safety__grid { grid-template-columns: 1fr; }
}

.scr-safety-box {
	background: var(--scr-blue);
	padding: 26px 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.scr-safety-box__title {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	color: var(--scr-white);
	text-transform: capitalize;
}

.scr-safety-box__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--scr-muted-on-dark);
}

/* ---------- 2.8 On the job (photo gallery) ---------- */
.scr-gallery {
	padding-top: var(--scr-section-space);
	padding-bottom: var(--scr-section-space);
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.scr-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.scr-gallery__item { margin: 0; }

.scr-gallery__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.scr-gallery__caption {
	padding-top: 14px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.08;
	color: var(--scr-navy);
}

/* ---------- 2.9 Get started (contact) ---------- */
.scr-contact {
	background: var(--scr-white);
	border-top: 1px solid var(--scr-line);
}

.scr-contact__inner {
	padding-top: var(--scr-section-space);
	padding-bottom: var(--scr-section-space);
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
}

.scr-contact__intro {
	flex: 1 1 340px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.scr-contact__title { font-size: clamp(36px, 5.5vw, 60px); }

.scr-contact__details {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 19px;
}

.scr-contact__details a,
.scr-contact__intro .scr-rich a { transition: color .15s ease; }

.scr-contact__details a:hover,
.scr-contact__details a:focus-visible,
.scr-contact__intro .scr-rich a:hover { color: var(--scr-orange); }

.scr-contact__note {
	color: var(--scr-text);
	font-size: 17px;
	line-height: 1.55;
	padding-top: 6px;
}


/* ==========================================================================
   3. SECONDARY PAGE STYLES
   Reserved for future page templates. Add one commented sub-section per
   template, e.g. "3.1 About page", "3.2 Services page".
   ========================================================================== */
