/* ==========================================================================
   Tenet Engineering theme styles
   --------------------------------------------------------------------------
   Colors, fonts, sizes and spacing live in theme.json (and show up in the
   editor's pickers). This file only holds the details blocks can't do on
   their own: gold accent lines, card shadows, the hero drawing panel, and
   form field styling.

   Every color below uses a theme.json preset variable when one exists, so
   changing a color in theme.json changes it here too:
     var(--wp--preset--color--navy)   var(--wp--preset--color--gold)
     var(--wp--preset--color--slate)  var(--wp--preset--color--border)

   Put your own one-off tweaks in your CSS plugin, not here, so a theme
   update never overwrites them.

   Sections:
     1. Site-wide basics
     2. Header
     3. Reusable block styles (Eyebrow, Label, Card, Panel, Gold Squares, Divided)
     4. Hero
     5. M / P / E strip
     6. Approach steps
     7. Navy band and contact section
     8. Contact form card
     9. Footer
    10. Phones and tablets
   ========================================================================== */


/* 1. Site-wide basics
   ========================================================================== */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px; /* menu links stop below the sticky header */
}

body {
	-webkit-font-smoothing: antialiased;
}

/* No gaps between header, page content and footer. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

/* Buttons lift slightly on hover, like the original design. */
.wp-block-button__link {
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #edf0f2;
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}


/* 2. Header
   ========================================================================== */

.tenet-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid #e7e8ed;
	box-shadow: 0 6px 30px rgba(8, 24, 54, 0.035);
}

/* Keep the sticky header below the black WordPress admin bar when logged in. */
.admin-bar .tenet-site-header {
	top: 32px;
}

.tenet-header-inner {
	min-height: 98px;
	gap: 34px;
}

.tenet-logo {
	margin: 0;
	flex-shrink: 0;
}

.tenet-logo img {
	display: block;
}

.tenet-nav .wp-block-navigation-item__content {
	transition: color 0.2s ease;
}

.tenet-header-cta .wp-block-button__link {
	white-space: nowrap;
}


/* 3. Reusable block styles
   These match the names in the editor's Styles panel.
   ========================================================================== */

/* Eyebrow: small uppercase label with a short gold line in front. */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 13px;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #767e88;
}

.is-style-eyebrow::before {
	content: "";
	display: block;
	flex-shrink: 0;
	width: 28px;
	height: 2px;
	background: var(--wp--preset--color--gold);
}

/* Label: same small uppercase text, no line. */
.is-style-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Service Card: light gray card with a gold bar on top. */
.wp-block-group.is-style-card {
	position: relative;
	height: 100%;
	padding: 37px 34px 36px;
	background: var(--wp--preset--color--card);
	border: 1px solid #e5e8ea;
	gap: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-group.is-style-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 64px;
	height: 3px;
	background: var(--wp--preset--color--gold);
}

.wp-block-group.is-style-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--card-hover);
}

.is-style-card > * {
	margin-block: 0;
}

.is-style-card .tenet-card-index {
	position: absolute;
	top: 32px;
	right: 26px;
	color: #a2aab5;
	letter-spacing: 0.13em;
}

.is-style-card h3 {
	margin-bottom: 15px;
}

.is-style-card > p {
	margin-bottom: 23px;
	line-height: 1.7;
}

/* Push the bullet list to the bottom of each card so lists line up. */
.is-style-card > .wp-block-list {
	margin-top: auto;
	width: 100%;
}

/* Square white box around each service icon. */
.tenet-icon-box {
	margin-bottom: 29px !important;
}

.tenet-icon-box img {
	box-sizing: border-box;
	width: 70px !important;
	height: 70px !important;
	padding: 12px;
	background: var(--wp--preset--color--white);
	border: 1px solid #d9dee5;
}

/* Gold Squares list: thin rule on top, small gold squares as bullets. */
.wp-block-list.is-style-gold-squares {
	display: grid;
	gap: 11px;
	margin-left: 0;
	padding: 20px 0 0;
	list-style: none;
	border-top: 1px solid #dde2e5;
	color: #4d576a;
}

.wp-block-list.is-style-gold-squares li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	line-height: 1.4;
}

.wp-block-list.is-style-gold-squares li::before {
	content: "";
	flex: 0 0 auto;
	width: 5px;
	height: 5px;
	margin-top: 6px;
	background: var(--wp--preset--color--gold);
}

/* Offset Panel: white box with a gray offset shadow and gold bar. */
.wp-block-group.is-style-panel {
	position: relative;
	padding: 36px;
	background: var(--wp--preset--color--white);
	border: 1px solid #d6dce2;
	box-shadow: var(--wp--preset--shadow--offset);
}

.wp-block-group.is-style-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 35px;
	width: 100px;
	height: 3px;
	background: var(--wp--preset--color--gold);
}

/* Numbered rows inside the panel ("What guides our work"). */
.tenet-value {
	gap: 18px;
	margin-block-start: 0 !important;
	padding: 22px 0;
	border-top: 1px solid #e6e9ec;
}

.tenet-value p {
	margin: 0;
	line-height: 1.6;
}

.tenet-value-num {
	flex: 0 0 43px;
	padding-top: 2px;
	color: #ae9667;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.tenet-value-title {
	color: #273354;
	font-size: 15px;
}

/* Divided columns: thin vertical lines between columns. */
.wp-block-columns.is-style-divided > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--border);
}


/* 4. Hero
   ========================================================================== */

.tenet-hero {
	min-height: 590px;
	background: #f8f9f8;
	overflow: hidden;
}

/* Left side lines up with the 1210px content edge on wide screens. */
.tenet-hero-copy {
	padding: 84px 60px 74px max(44px, calc((100vw - 1210px) / 2));
}

.tenet-hero-copy h1 {
	max-width: 650px;
}

.tenet-hero-intro {
	max-width: 535px;
	margin-bottom: 30px;
	line-height: 1.76;
}

.tenet-tagline {
	letter-spacing: 0.13em;
}

/* Right side: navy panel with faint blueprint grid lines. */
.tenet-hero-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 590px;
	padding: 36px 39px 30px;
	overflow: hidden;
}

.tenet-hero-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(180, 202, 236, 0.065) 1px, transparent 1px),
		linear-gradient(90deg, rgba(180, 202, 236, 0.065) 1px, transparent 1px);
	background-size: 35px 35px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
	mask-image: linear-gradient(90deg, transparent, #000 22%);
	pointer-events: none;
}

.tenet-hero-visual > * {
	position: relative;
	z-index: 1;
}

.tenet-blueprint-row p {
	margin: 0;
	color: #b6c3de;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tenet-blueprint {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	margin: 10px 0 !important;
}

.tenet-blueprint img {
	width: 100%;
	max-height: 520px;
	object-fit: contain;
}

.tenet-blueprint-footer {
	padding-top: 17px;
	border-top: 1px solid rgba(99, 115, 154, 0.5);
}

.tenet-blueprint-footer p {
	color: #becbe2;
	font-weight: 400;
}


/* 5. M / P / E strip
   ========================================================================== */

.tenet-discipline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 19px;
	margin: 0;
	padding: 29px 18px;
	color: var(--wp--preset--color--navy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.tenet-discipline strong {
	color: var(--wp--preset--color--gold);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0;
}


/* 6. Approach steps
   ========================================================================== */

.tenet-steps {
	border-top: 1px solid #ccd3db;
}

.tenet-steps > .wp-block-column {
	padding: 26px 27px 0;
}

.tenet-steps > .wp-block-column:first-child {
	padding-left: 0;
}

.tenet-steps p {
	margin-top: 0;
}


/* 7. Navy band and contact section
   ========================================================================== */

/* Faint concentric circles in the navy band. */
.tenet-bridge {
	position: relative;
	overflow: hidden;
}

.tenet-bridge::after {
	content: "";
	position: absolute;
	top: -200px;
	right: -10%;
	width: 690px;
	height: 690px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.03), 0 0 0 144px rgba(255, 255, 255, 0.02);
	pointer-events: none;
}

.tenet-bridge > *,
.tenet-contact > * {
	position: relative;
	z-index: 1;
}

/* Faint rotated square behind the contact form. */
.tenet-contact {
	position: relative;
	overflow: hidden;
}

.tenet-contact::before {
	content: "";
	position: absolute;
	right: -50px;
	bottom: -200px;
	width: 420px;
	height: 420px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	transform: rotate(45deg);
	pointer-events: none;
}

.tenet-contact p:not(.is-style-eyebrow):not(.is-style-label) {
	max-width: 430px;
}

.tenet-cta-note {
	margin-top: 42px !important;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}


/* 8. Contact form card
   Styles whatever form plugin you drop into the white card
   (WPForms, Gravity Forms, Contact Form 7, Fluent Forms).
   ========================================================================== */

.tenet-form-card {
	color: var(--wp--preset--color--ink);
}

.tenet-form-card label,
.tenet-form-card legend,
.tenet-form-card .wpforms-field-label,
.tenet-form-card .gfield_label {
	display: block;
	margin: 0 0 9px;
	color: #35415f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tenet-form-card :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea) {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 45px;
	padding: 12px 13px;
	background: #fafbfb;
	border: 1px solid #d9dee5;
	border-radius: 0;
	box-shadow: none;
	color: #28334d;
	font-family: inherit;
	font-size: 14px;
}

.tenet-form-card textarea {
	min-height: 105px;
	resize: vertical;
}

.tenet-form-card :is(input, select, textarea):focus {
	border-color: var(--wp--preset--color--navy);
	box-shadow: 0 0 0 2px rgba(37, 49, 93, 0.09);
	outline: none;
}

.tenet-form-card :is(button[type="submit"], input[type="submit"]) {
	width: 100%;
	height: 52px;
	background: var(--wp--preset--color--navy);
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--white);
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.tenet-form-card :is(button[type="submit"], input[type="submit"]):hover {
	background: var(--wp--preset--color--navy-hover);
}

/* The "form goes here" reminder in the pattern. Delete it once the form is in. */
.tenet-form-placeholder {
	margin: 0;
	padding: 24px;
	border: 1px dashed #c4ccd6;
	color: var(--wp--preset--color--slate);
	font-size: 14px;
	line-height: 1.6;
}


/* 9. Footer
   ========================================================================== */

.tenet-footer figure {
	margin: 0;
}

.tenet-footer-small {
	margin: 0;
	letter-spacing: 0.045em;
	line-height: 1.6;
}

.tenet-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 25px;
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tenet-footer-links a {
	color: #45516b;
	text-decoration: none;
}

.tenet-footer-links a:hover {
	color: var(--wp--preset--color--gold);
}


/* 10. Phones and tablets
   WordPress stacks columns below 782px wide.
   ========================================================================== */

@media (max-width: 1080px) {
	.tenet-hero-copy {
		padding-right: 30px;
		padding-left: 42px;
	}

	.wp-block-group.is-style-card {
		padding: 33px 24px;
	}
}

@media (max-width: 781px) {
	.admin-bar .tenet-site-header {
		top: 46px;
	}

	.tenet-header-inner {
		min-height: 76px;
		gap: 16px;
	}

	.tenet-logo img {
		width: 104px !important;
	}

	.tenet-header-right {
		gap: 12px !important;
	}

	.tenet-header-cta .wp-block-button__link {
		padding: 12px 14px;
		font-size: 10px;
	}

	.tenet-hero-copy {
		padding: 64px 25px 60px;
	}

	.tenet-hero-visual {
		min-height: 420px;
		padding: 23px 24px 20px;
	}

	/* Stacked columns: swap the vertical divider lines for horizontal ones. */
	.wp-block-columns.is-style-divided > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--border);
	}

	.tenet-discipline {
		justify-content: flex-start;
		padding: 16px 8px;
	}

	.tenet-steps > .wp-block-column,
	.tenet-steps > .wp-block-column:first-child {
		padding: 20px 0 22px;
	}

	.wp-block-group.is-style-panel {
		box-shadow: 8px 8px 0 #e6e9e9;
	}

	.tenet-form-card {
		padding: 26px !important;
	}
}

@media (max-width: 430px) {
	.tenet-header-cta {
		display: none;
	}

	.tenet-hero-copy .wp-block-buttons,
	.tenet-hero-copy .wp-block-button {
		width: 100%;
	}

	.tenet-hero-copy .wp-block-button__link {
		width: 100%;
	}

	.tenet-blueprint-row p {
		font-size: 8px;
		letter-spacing: 0.1em;
	}
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
