/*
Theme Name: Gorget Training
Theme URI: https://gorgettraining.com
Author: Otilia Marketing
Description: Custom block theme for Gorget Training, Rock Hill, SC. Brand colors, type and page patterns are built in. Edit page content in the block editor; booking links live under Settings → Gorget Booking.
Version: 1.1.7
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary — built for Gorget Training
Text Domain: gorget
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
::selection { background: #C29B5C; color: #041E42; }

.skip-link.screen-reader-text:focus { background: #fff; color: #041E42; padding: 1rem; z-index: 100000; }

/* ---------- Header ---------- */
.gt-header { box-shadow: 0 1px 0 rgba(4,30,66,.08); }
/* Sticky must sit on the template-part wrapper, which spans the whole page */
.wp-site-blocks > .wp-block-template-part:has(> .gt-header) { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .gt-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .gt-header) { top: 0; position: relative; } }
.gt-header .wp-block-image img { display: block; }
.gt-topbar p { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.gt-topbar a { color: inherit; text-decoration: none; }
.gt-topbar a:hover { text-decoration: underline; }
.gt-header .wp-block-navigation a { text-decoration: none; }
.gt-header .wp-block-navigation a:hover, .gt-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-color: #C29B5C; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.25rem; }

/* ---------- Brass ribbon (class labels, eyebrows) — angle from the logo arrowhead ---------- */
.gt-ribbon {
	display: inline-block; width: fit-content;
	background: #C29B5C; color: #041E42 !important;
	font-family: Inter, sans-serif; font-weight: 800; font-style: italic;
	font-size: .8125rem !important; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
	padding: .55rem 1.35rem .5rem; margin: 0 !important;
	clip-path: polygon(.7rem 0, 100% 0, calc(100% - .7rem) 100%, 0 100%);
}
.gt-ribbon.is-steel { background: #5B7FA8; color: #fff !important; }

/* ---------- Eyebrow (plain label) ---------- */
.gt-eyebrow { font-family: Inter, sans-serif; font-size: .8125rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Editorial accent ---------- */
.gt-accent, .gt-lead { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; }
.gt-lead { font-size: clamp(1.15rem, 2vw, 1.4rem) !important; line-height: 1.45; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease; }
.wp-block-button.is-style-brass .wp-block-button__link { background: #C29B5C; color: #041E42; }
.wp-block-button.is-style-brass .wp-block-button__link:hover { background: #d4b27a; color: #041E42; }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: #041E42; }
.wp-block-button.is-style-outline-dark .wp-block-button__link { background: transparent; color: #041E42; box-shadow: inset 0 0 0 2px #041E42; }
.wp-block-button.is-style-outline-dark .wp-block-button__link:hover { background: #041E42; color: #fff; }

/* ---------- Brass rule ---------- */
.gt-rule { width: 64px !important; height: 4px; background: #C29B5C; border: 0 !important; margin-left: 0 !important; opacity: 1 !important; }
.has-text-align-center + .gt-rule, .gt-rule.aligncenter { margin-left: auto !important; }

/* ---------- Angled photo edge (hero) ---------- */
.gt-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 782px) {
	.gt-hero > .wp-block-columns { min-height: 580px; }
	.gt-hero .gt-hero-photo { position: relative; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
	.gt-hero .gt-hero-photo > figure { position: absolute; inset: 0; margin: 0; }
	.gt-hero .gt-hero-photo > figure img { width: 100%; height: 100% !important; object-fit: cover; }
}

/* ---------- Cards ---------- */
.gt-card { border-top: 4px solid #041E42; height: 100%; }
.gt-card.is-brass { border-top-color: #C29B5C; }
.gt-card h3 { margin-top: 0; }
.has-charcoal-background-color .gt-num, .has-navy-background-color .gt-num { color: #C29B5C; }
.gt-num::after { content: ""; display: block; width: 28px; height: 3px; background: #C29B5C; margin-top: .4rem; }
.gt-num { font-family: "Archivo Black", sans-serif; color: #041E42; font-size: 1rem !important; letter-spacing: .1em; }

/* ---------- Schedule rows ---------- */
.gt-slot { border-left: 6px solid #C29B5C; }
.gt-slot.is-open-house { border-left-color: #5B7FA8; }
.gt-slot-time { font-family: "Archivo Black", sans-serif; font-size: clamp(1.5rem, 3vw, 2rem) !important; color: #041E42; line-height: 1 !important; text-transform: uppercase; }
.gt-meta { font-size: .9375rem !important; color: #4A5568; }
.gt-meta strong { color: #041E42; }
.gt-price { font-family: "Archivo Black", sans-serif; color: #041E42; font-size: 2.25rem !important; line-height: 1 !important; }
.gt-price s { font-family: Inter, sans-serif; font-size: 1rem; color: #4A5568; font-weight: 500; margin-left: .5rem; }

/* ---------- Check list ---------- */
.gt-checks { list-style: none; padding-left: 0 !important; }
.gt-checks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.gt-checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .85rem; height: .4rem; border-left: 3px solid #C29B5C; border-bottom: 3px solid #C29B5C; transform: rotate(-45deg); }
.has-navy-background-color .gt-checks li, .has-navy-background-color .gt-checks li::before { color: #fff; }

/* ---------- Quote band ---------- */
.gt-core-line { font-family: "Archivo Black", sans-serif; text-transform: uppercase; line-height: 1.05 !important; }

/* ---------- Bio ---------- */
.gt-bio h3 { margin-bottom: .25rem; }
.gt-bio .gt-role { font-family: Inter, sans-serif; font-weight: 700; font-size: .8125rem !important; letter-spacing: .14em; text-transform: uppercase; color: #4A5568; }

/* ---------- Footer ---------- */
.gt-footer { position: relative; overflow: hidden; }

.gt-footer a { color: #fff; text-decoration: none; }
.gt-footer a:hover { text-decoration: underline; }
.gt-footer .gt-footer-inner { position: relative; z-index: 1; }

/* ---------- Utilities ---------- */
.gt-shadow img { box-shadow: 0 18px 40px rgba(4,30,66,.18); }
.gt-cover-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gt-wide-photo img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 781px) {
	.gt-hero .gt-hero-photo img { aspect-ratio: 4 / 3; }
	.gt-stack-reverse > .wp-block-column:first-child { order: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .gt-card:hover, .wp-block-button__link:active { transform: none !important; } }

/* ---------- Header on small screens ---------- */
@media (max-width: 640px) {
	.gt-header .gt-header-cta { display: none !important; }
	.gt-topbar p:last-child { display: none; }
	.gt-logo img { width: 150px !important; }
}

/* ---------- Section joins ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- v1.1: classes, tables, notes ---------- */
.gt-class h3 { scroll-margin-top: 140px; }
.gt-class .wp-block-buttons { margin-top: auto; }
.gt-class { display: flex; flex-direction: column; }
.gt-note { border-left: 4px solid #C29B5C; }
.gt-note p { color: #1C2230; }
.gt-price-line { font-size: 1.125rem !important; color: #041E42; }
.gt-table table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.gt-table th { background: #041E42; color: #fff; text-align: left; font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: .7rem .8rem; border: 0; }
.gt-table td { padding: .7rem .8rem; border: 0; border-bottom: 1px solid #C9D1DC; }
.gt-table tbody tr:nth-child(even) td { background: #F7F8FA; }
.wp-block-table.gt-table { margin: 0; overflow-x: auto; }
@media (max-width: 1100px) { .gt-header .wp-block-navigation { gap: 1rem; } }
.has-navy-background-color a:not(.wp-element-button), .has-charcoal-background-color a:not(.wp-element-button) { color: #fff; }
.gt-card > h3:not(:first-child) { margin-top: 1.25rem; }

/* ---------- v1.1.1: footer and header at every width ---------- */
.gt-footer { font-size: .9375rem; line-height: 1.65; }
.gt-footer h4, .gt-footer .gt-footer-h { margin: 0 0 .6rem; }
.gt-footer p { margin: 0; }
.gt-footer .gt-footer-inner { padding-bottom: 0; }
/* Angled accent lives in the bottom bar only, never behind content */
.gt-footer::after {
	content: ""; position: absolute; right: 0; bottom: 0; width: 120px; height: 72px; pointer-events: none;
	background: linear-gradient(110deg, transparent 0 34%, #C29B5C 34% 44%, #5B7FA8 44% 100%);
}
.gt-footer .gt-legal { padding-right: 140px; }
@media (max-width: 781px) {
	.gt-footer::after { width: 64px; height: 48px; }
	.gt-footer .gt-legal { padding-right: 72px; }
}
/* Tablet: brand on its own row, three link columns below */
@media (min-width: 782px) and (max-width: 1100px) {
	.gt-footer .wp-block-columns { flex-wrap: wrap !important; row-gap: 2rem; }
	.gt-footer .wp-block-column { flex-basis: calc(33.333% - 2rem) !important; flex-grow: 1; }
	.gt-footer .wp-block-column:first-child { flex-basis: 100% !important; }
}
.gt-footer a[href^="mailto"] { white-space: nowrap; }

/* Header: collapse the menu below 1100px so links never wrap */
.gt-header-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1100px) {
	.gt-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.gt-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 1101px) and (max-width: 1240px) {
	.gt-header .wp-block-navigation { font-size: .8125rem; }
	.gt-header .wp-block-navigation .wp-block-navigation__container { gap: 1.1rem; }
}

/* Tablet layouts: no squeezed columns, no words broken mid-letter */
h1, h2, h3, h4 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.gt-hero h1 { font-size: clamp(2.25rem, 4.6vw, 4.75rem) !important; }
@media (min-width: 782px) and (max-width: 1100px) {
	.wp-block-columns:not(.gt-keep-cols):has(> .wp-block-column:nth-child(3)) { flex-wrap: wrap !important; row-gap: var(--wp--preset--spacing--40); }
	.wp-block-columns:not(.gt-keep-cols):has(> .wp-block-column:nth-child(3)) > .wp-block-column { flex-basis: calc(50% - var(--wp--preset--spacing--40)) !important; flex-grow: 1; }
	.gt-card h3, .gt-class h3 { font-size: 1.375rem !important; }
}
.gt-nowrap { white-space: nowrap; }
@media (min-width: 782px) and (max-width: 1100px) {
	.gt-footer .wp-block-columns:not(.gt-keep-cols):has(> .wp-block-column:nth-child(3)) > .wp-block-column { flex-basis: calc(33.333% - 2rem) !important; }
	.gt-footer .wp-block-columns:not(.gt-keep-cols):has(> .wp-block-column:nth-child(3)) > .wp-block-column:first-child { flex-basis: 100% !important; }
}
.gt-hero-photo img { object-position: center 35%; }

/* ---------- v1.1.3: interactions ---------- */
/* Jump links land below the pinned header */
html { scroll-padding-top: 128px; }
.admin-bar { scroll-padding-top: 160px; }
@media (max-width: 781px) { html { scroll-padding-top: 108px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Buttons: hover, then a small press so taps feel registered */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .08s ease; }
.wp-block-button__link:active { transform: translateY(1px) scale(.985); }

/* Cards: subtle response on desktop pointers only */
@media (hover: hover) and (pointer: fine) {
	.gt-card { transition: box-shadow .2s ease, transform .2s ease; }
	.gt-card:hover { box-shadow: 0 12px 28px rgba(4,30,66,.12); transform: translateY(-2px); }
}

/* Text links: underline thickens on hover instead of disappearing */
main a:not(.wp-element-button) { text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .15s ease; }
main a:not(.wp-element-button):hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: #C29B5C; }

.gt-footer .gt-footer-h { font-family: Inter, sans-serif !important; font-size: .8125rem !important; font-weight: 700; letter-spacing: .14em; line-height: 1.4; }

/* v1.1.4: photo fills its half of the dark band (no thin gap) */
@media (min-width: 782px) {
	.gt-stack-reverse > .wp-block-column:first-child { align-self: stretch; }
	.gt-stack-reverse .gt-cover-photo { height: 100%; margin: 0; }
	.gt-stack-reverse .gt-cover-photo img { height: 100%; aspect-ratio: auto; min-height: 420px; }
}

/* ---------- v1.1.5 ---------- */
/* Navy buttons: a hover you can actually see */
.wp-block-button:not(.is-style-brass):not(.is-style-outline-light):not(.is-style-outline-dark) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-brass):not(.is-style-outline-light):not(.is-style-outline-dark) .wp-block-button__link:focus-visible { background: #C29B5C !important; color: #041E42 !important; }
.wp-block-button.is-style-brass .wp-block-button__link:hover { background: #fff !important; color: #041E42 !important; }
.has-white-background-color .wp-block-button.is-style-brass .wp-block-button__link:hover,
.has-mist-background-color .wp-block-button.is-style-brass .wp-block-button__link:hover { background: #041E42 !important; color: #fff !important; }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff !important; color: #041E42 !important; }
.wp-block-button.is-style-outline-dark .wp-block-button__link:hover { background: #041E42 !important; color: #fff !important; }
.wp-block-button__link { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(4,30,66,.18); } }
/* Buttons: consistent space under the text above them, aligned across a row of cards */
.gt-card, .gt-slot .wp-block-column { display: flex; flex-direction: column; }
.gt-card > .wp-block-buttons, .gt-slot .wp-block-column > .wp-block-buttons { margin-top: auto !important; padding-top: 1.25rem; }
.wp-block-buttons { gap: .75rem; }
.gt-core-line.has-navy-color { font-size: clamp(1.5rem, 3vw, 2.25rem) !important; max-width: 22em; }
/* v1.1.6: smallest phones */
@media (max-width: 380px) { h1, h2 { font-size: clamp(1.6rem, 8.2vw, 2.6rem) !important; } .gt-nowrap { white-space: normal; } }
/* Tables on phones: keep words and prices whole; swipe sideways if needed */
.gt-table th, .gt-table td { word-break: normal; overflow-wrap: normal; white-space: nowrap; }
.gt-table table.has-fixed-layout { table-layout: auto; }
@media (max-width: 600px) {
	.gt-table table { font-size: .8125rem; }
	.gt-table th { font-size: .625rem; letter-spacing: .06em; padding: .55rem .5rem; white-space: normal; }
	.gt-table td { padding: .55rem .5rem; }
}
.wp-block-table.gt-table th, .wp-block-table.gt-table td { word-break: keep-all !important; overflow-wrap: normal !important; hyphens: none; }
/* Mobile menu: comfortable tap targets, away from the screen edge */
.gt-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem 1.75rem 2rem; }
.gt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.gt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; width: 100%; }
.gt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: .6rem 0; display: block; }
/* v1.1.7: footer accent is a clean full-width brand rule (no corner shape) */
.gt-footer::after { left: 0; right: 0; bottom: 0; width: auto !important; height: 6px !important; background: linear-gradient(90deg, #C29B5C 0 72%, #5B7FA8 72% 100%); display: block !important; }
.gt-footer .gt-legal { padding-right: 0 !important; }
.gt-hero .gt-hero-photo img[src*="hero-coaching"] { object-position: 62% 30%; }
