/* ==========================================================================
   CEPC Farrier — site styles
   Palette: Deep Ocean · Coastal Blue · Charcoal · Boat Ivory · Steel Mist
   ========================================================================== */

:root {
	--deep-ocean: #123A55;
	--deep-ocean-2: #0d2c41;
	--coastal: #28749A;
	--coastal-dark: #1f5f80;
	--charcoal: #30383E;
	--charcoal-2: #252c31;
	--ivory: #F3F0E6;
	--steel: #A6B6BD;
	--white: #FFFFFF;
	--ink: #262d32;
	--muted: #56636b;

	--font-head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--wrap: 1180px;
	--wrap-narrow: 780px;
	--radius: 4px;
	--shadow: 0 10px 30px rgba(18, 58, 85, .12);

	--cepc-mark-holes: var(--charcoal);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--ivory);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coastal); text-underline-offset: .18em; }
a:hover { color: var(--coastal-dark); }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: .01em;
	color: var(--charcoal);
	margin: 0 0 .5em;
}
p { margin: 0 0 1.1em; }

.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 1000;
	background: var(--ivory); color: var(--charcoal); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--coastal); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-head); font-weight: 600; font-size: 1rem;
	text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
	padding: .95rem 1.7rem; border-radius: var(--radius); border: 2px solid transparent;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--coastal); color: var(--white); border-color: var(--coastal); }
.btn--primary:hover { background: var(--coastal-dark); border-color: var(--coastal-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(243, 240, 230, .55); }
.btn--ghost:hover { border-color: var(--ivory); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
	background: var(--charcoal);
	color: var(--ivory);
	border-bottom: 3px solid var(--coastal);
	position: sticky; top: 0; z-index: 100;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ivory); }
.brand:hover { color: var(--white); }
.cepc-mark { width: 44px; height: 44px; color: var(--coastal); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; letter-spacing: .14em; }
.brand__sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--steel); margin-top: .35rem; }
.custom-logo-link img { max-height: 64px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.site-nav .menu a {
	font-family: var(--font-head); font-weight: 500; font-size: 1.02rem;
	text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
	color: var(--ivory); padding: .4rem 0; border-bottom: 2px solid transparent;
	transition: border-color .2s, color .2s;
}
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a { border-bottom-color: var(--coastal); color: var(--white); }

.header-phone {
	display: inline-flex; align-items: center; gap: .45rem;
	font-family: var(--font-head); font-weight: 600; letter-spacing: .06em;
	color: var(--ivory); text-decoration: none;
	padding: .55rem 1rem; border: 1px solid rgba(166, 182, 189, .45); border-radius: var(--radius);
}
.header-phone svg { width: 16px; height: 16px; color: var(--coastal); }
.header-phone:hover { border-color: var(--coastal); color: var(--white); }

.nav-toggle {
	display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
	flex-direction: column; gap: 5px;
}
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--ivory); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--charcoal-2); border-bottom: 3px solid var(--coastal);
		padding: .5rem 1.25rem 1.25rem; display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(166, 182, 189, .18); }
	.header-phone { margin-top: 1rem; justify-content: center; }
	.brand__sub { font-size: .62rem; letter-spacing: .12em; }
}
@media (max-width: 420px) {
	.brand__sub { font-size: .52rem; letter-spacing: .08em; }
	.cepc-mark { width: 38px; height: 38px; }
	.brand__name { font-size: 1.6rem; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
	font-family: var(--font-head); font-weight: 500; font-size: .9rem;
	text-transform: uppercase; letter-spacing: .2em; color: var(--coastal);
	margin-bottom: .9rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--steel); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--steel { background: var(--charcoal); color: var(--ivory); }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; letter-spacing: .02em; }
.lead { font-size: 1.28rem; color: var(--muted); }

/* subtle "chart contour" lines — nautical, not fishing-themed */
.hero__lines {
	position: absolute; inset: 0; pointer-events: none; opacity: .14;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='240' viewBox='0 0 600 240'%3E%3Cg fill='none' stroke='%23A6B6BD' stroke-width='1.2'%3E%3Cpath d='M0 40 C100 10 200 70 300 40 S500 10 600 40'/%3E%3Cpath d='M0 80 C100 50 200 110 300 80 S500 50 600 80'/%3E%3Cpath d='M0 120 C100 90 200 150 300 120 S500 90 600 120'/%3E%3Cpath d='M0 160 C100 130 200 190 300 160 S500 130 600 160'/%3E%3Cpath d='M0 200 C100 170 200 230 300 200 S500 170 600 200'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 600px 240px;
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(120% 140% at 85% 10%, #1b4d6f 0%, var(--deep-ocean) 45%, var(--deep-ocean-2) 100%);
	color: var(--white);
	padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 8rem);
}
.hero--photo {
	background:
		linear-gradient(90deg, rgba(13, 44, 65, .94) 0%, rgba(18, 58, 85, .82) 45%, rgba(18, 58, 85, .35) 100%),
		var(--hero-img) center / cover no-repeat,
		var(--deep-ocean);
}
.hero--photo .hero__lines { opacity: .07; }
.hero__inner { position: relative; max-width: var(--wrap); }
.hero__title {
	color: var(--white);
	font-size: clamp(2.7rem, 7vw, 5.2rem);
	font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
	max-width: 13ch; margin-bottom: 1.4rem;
}
.hero__text { font-size: clamp(1.15rem, 2vw, 1.4rem); color: rgba(243, 240, 230, .9); max-width: 38ch; margin-bottom: 2.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.page-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(160deg, var(--deep-ocean) 0%, var(--deep-ocean-2) 100%);
	color: var(--white); padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.page-hero .container { position: relative; }
.page-hero--photo {
	background:
		linear-gradient(90deg, rgba(13, 44, 65, .95) 0%, rgba(18, 58, 85, .85) 50%, rgba(18, 58, 85, .55) 100%),
		var(--hero-img) center 55% / cover no-repeat,
		var(--deep-ocean);
}
.page-hero--photo .hero__lines { opacity: .06; }

.availability {
	display: flex; gap: 1rem; align-items: flex-start;
	background: var(--deep-ocean); color: var(--ivory);
	border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.8rem;
	--cepc-mark-holes: var(--deep-ocean);
}
.availability p { margin: 0; font-weight: 600; line-height: 1.5; }
.availability .cepc-mark { width: 30px; height: 30px; color: var(--steel); margin-top: .1rem; }
.page-hero__title { color: var(--white); font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; margin: 0; }

/* ---------- Welcome ---------- */
.welcome__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.welcome__grid--solo { grid-template-columns: 1fr; max-width: 860px; }
.tagline {
	font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.65rem);
	color: var(--deep-ocean); letter-spacing: .02em;
	border-left: 4px solid var(--coastal); padding-left: 1rem; margin: 0 0 1.6rem;
}
.welcome__mission { font-size: 1.15rem; color: var(--ink); }
.welcome__media { margin: 0; position: relative; }
.welcome__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.welcome__media::before {
	content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 2px solid var(--steel); border-radius: var(--radius); z-index: -1;
}
@media (max-width: 860px) { .welcome__grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.service-card {
	background: var(--ivory); border-top: 4px solid var(--coastal); border-radius: var(--radius);
	padding: 2rem 1.6rem 1.6rem; transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%; background: var(--deep-ocean); color: var(--ivory); margin-bottom: 1.1rem;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; }
.service-card p { font-size: 1.02rem; color: var(--muted); margin: 0; }
@media (max-width: 1020px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- Facts ---------- */
.facts { padding: clamp(2.8rem, 6vw, 4rem) 0; border-top: 3px solid var(--coastal); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.fact { border-left: 2px solid rgba(166, 182, 189, .35); padding-left: 1.2rem; }
.fact__big { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-transform: uppercase; color: var(--white); margin: 0 0 .3rem; line-height: 1.15; }
.fact__small { font-size: .98rem; color: var(--steel); margin: 0; line-height: 1.45; }
@media (max-width: 900px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts__grid { grid-template-columns: 1fr; } }

/* ---------- Disciplines ---------- */
.disciplines__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.pill-list li {
	background: var(--white); border: 1px solid var(--steel); border-radius: 999px;
	padding: .6rem 1.2rem; font-weight: 600; color: var(--charcoal); font-size: 1rem;
}
@media (max-width: 860px) { .disciplines__inner { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
	background: var(--deep-ocean); color: var(--ivory);
	padding: clamp(3rem, 7vw, 4.5rem) 0; border-top: 3px solid var(--coastal);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band__title { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: uppercase; margin-bottom: .4rem; }
.cta-band__text { color: rgba(243, 240, 230, .85); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Page content (Shane & The Crew) ---------- */
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); text-transform: uppercase; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content .lead { margin-bottom: 2.5rem; }
.entry-content img { border-radius: var(--radius); }
.entry-featured { margin: 0 0 2.5rem; }
.entry-featured img { border-radius: var(--radius); box-shadow: var(--shadow); }

.crew-member {
	background: var(--white); border-radius: var(--radius); border-left: 5px solid var(--coastal);
	padding: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 1.75rem; box-shadow: 0 2px 0 rgba(48, 56, 62, .06);
}
.crew-member h2 { margin-bottom: .1rem; }
.crew-member .crew-role {
	font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em;
	font-size: .88rem; color: var(--coastal); margin-bottom: 1.1rem;
}
.crew-member p:last-child { margin-bottom: 0; }
.crew-member .wp-block-image { margin: 0 0 1.3rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card {
	background: var(--charcoal); color: var(--ivory); border-radius: var(--radius);
	padding: 2.2rem; border-top: 4px solid var(--coastal); position: sticky; top: 110px;
}
.contact-card__title { color: var(--white); font-size: 1.6rem; text-transform: uppercase; }
.contact-card__list { list-style: none; margin: 0; padding: 0; }
.contact-card__list li { padding: 1rem 0; border-top: 1px solid rgba(166, 182, 189, .22); line-height: 1.5; }
.contact-card__list li:first-child { border-top: 0; padding-top: .3rem; }
.contact-card__label {
	display: block; font-family: var(--font-head); text-transform: uppercase;
	letter-spacing: .16em; font-size: .78rem; color: var(--steel); margin-bottom: .2rem;
}
.contact-card a { color: var(--white); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-card a:hover { color: var(--steel); }
@media (max-width: 900px) {
	.contact__grid { grid-template-columns: 1fr; }
	.contact-card { position: static; order: 2; }
}

.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin: 0 0 1.2rem; }
.field label { display: block; font-weight: 600; color: var(--charcoal); margin-bottom: .35rem; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
	width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
	background: var(--ivory); border: 1px solid #c9d2d6; border-radius: var(--radius);
	padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coastal); box-shadow: 0 0 0 3px rgba(40, 116, 154, .2); background: var(--white); }
.field--hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 1.1rem 1.3rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice--ok { background: #e3f0f6; border-left: 4px solid var(--coastal); }
.notice--err { background: #fbeceb; border-left: 4px solid #b04a3e; }

/* ---------- Posts ---------- */
.post-summary { padding: 1.5rem 0; border-bottom: 1px solid #ddd8c9; }
.post-summary h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.post-summary h2 a { color: var(--charcoal); text-decoration: none; }
.post-summary__date { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-2); color: var(--steel); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.site-footer .brand { color: var(--ivory); }
.site-footer .cepc-mark { --cepc-mark-holes: var(--charcoal-2); }
.site-footer__tagline { margin-top: 1.2rem; font-style: italic; color: var(--steel); max-width: 32ch; }
.site-footer__heading { color: var(--ivory); font-size: 1rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: .55rem; line-height: 1.5; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__social { display: flex; gap: 1rem; margin-top: 1rem; }
.site-footer__bottom { border-top: 1px solid rgba(166, 182, 189, .18); padding: 1.3rem 0; font-size: .9rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Block editor alignment helpers ---------- */
.alignwide { width: min(100vw - 2.5rem, var(--wrap)); margin-inline: calc(50% - min(50vw - 1.25rem, var(--wrap) / 2)); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.has-deep-ocean-color { color: var(--deep-ocean); } .has-deep-ocean-background-color { background-color: var(--deep-ocean); }
.has-coastal-blue-color { color: var(--coastal); } .has-coastal-blue-background-color { background-color: var(--coastal); }
.has-charcoal-color { color: var(--charcoal); } .has-charcoal-background-color { background-color: var(--charcoal); }
.has-boat-ivory-color { color: var(--ivory); } .has-boat-ivory-background-color { background-color: var(--ivory); }
.has-steel-mist-color { color: var(--steel); } .has-steel-mist-background-color { background-color: var(--steel); }
.has-white-color { color: var(--white); } .has-white-background-color { background-color: var(--white); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
