/* ==========================================================================
   Corax Technical Solutions — theme stylesheet
   Palette + type from the brand kit:
     Raven black  #0f0f0f   Petrol blue #1d4d6b
     SF teal      #225559   Plum shimmer #4a2b5e
     Headings: Michroma (stand-in for HandelGothic BT)
     Body:     Doppio One
   ========================================================================== */

:root {
	--raven-black: #0f0f0f;
	--petrol-blue: #1d4d6b;
	--sf-teal: #225559;
	--plum-shimmer: #4a2b5e;
	--plum-light: #6a4184;
	--plum-lighter: #8b5aa8;

	--off-white: #f3f2f0;
	--text-light: #f5f5f5;
	--text-muted: rgba(245, 245, 245, 0.78);
	--text-dark: #141416;

	--font-heading: 'Michroma', 'Arial Narrow', Arial, sans-serif;
	--font-body: 'Doppio One', 'Trebuchet MS', sans-serif;

	--max-width: 1180px;
	--radius: 10px;
	--section-pad: clamp(56px, 8vw, 110px);
}

/* ---------- Reset-ish basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	background-color: var(--raven-black);
	background-image: url('../images/feather-seamless.jpg');
	background-repeat: repeat;
	background-size: 1600px auto;
	background-position: top center;
	color: var(--text-light);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	line-height: 1.25;
	margin: 0 0 0.5em;
	letter-spacing: 0.01em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.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; top: -100px; left: 0;
	background: var(--plum-shimmer); color: #fff;
	padding: 10px 16px; z-index: 10000;
	transition: top 0.2s ease;
}
.skip-link:focus { top: 0; position: fixed; }

.section-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 2;
}

/* ---------- Feather texture ----------
   The texture itself lives on <body> as one continuous tiled layer so it
   flows unbroken behind every section (see body{} above). These elements
   used to each draw their own copy of the tile, which caused a visible
   break in the pattern at every section boundary — they're kept only as
   harmless, transparent stacking-context placeholders so no markup needs
   to change. */
.hero__bg,
.section-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15,15,15,0.55) 0%, rgba(15,15,15,0.72) 60%, rgba(15,15,15,0.92) 100%);
	z-index: 1;
}
.services,
.why-choose,
.contact {
	position: relative;
	overflow: hidden;
	padding: var(--section-pad) 0;
}
.services .section-bg,
.why-choose .section-bg,
.contact .section-bg {
	opacity: 1;
}
.services::after,
.why-choose::after,
.contact::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(15,15,15,0.86);
	z-index: 1;
}
.why-choose::after { background: rgba(15,15,15,0.9); }
/* Section divider lines removed — with one continuous body texture behind
   every section, a hard 1px line here reads as a stray scan-line rather
   than a seam-hider. The differing ::after tint strengths above already
   give each section enough visual separation. */

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 16px 34px;
	border-radius: 6px;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn--primary {
	background: var(--plum-shimmer);
	color: #fff;
	box-shadow: 0 6px 20px rgba(74, 43, 94, 0.45);
}
.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--plum-light);
	transform: translateY(-1px);
}
.btn--block { width: 100%; text-align: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--off-white);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.site-header__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-logo-link { display: inline-flex; align-items: center; }
.site-logo-img { height: 72px; width: auto; }
.custom-logo { height: 72px; width: auto; }

.site-nav .corax-nav-list {
	display: flex;
	align-items: center;
	gap: 32px;
}
.site-nav .corax-nav-list a {
	font-family: var(--font-heading);
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-dark);
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav .corax-nav-list a:hover,
.site-nav .corax-nav-list a:focus-visible {
	border-color: var(--plum-shimmer);
	color: var(--plum-shimmer);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	padding: 8px;
}
.menu-toggle__bar {
	width: 24px; height: 2px;
	background: var(--text-dark);
	display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	min-height: min(88vh, 760px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 120px 24px 100px;
}
.hero__inner {
	position: relative;
	z-index: 2;
	max-width: 820px;
}
.hero__heading {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	color: var(--text-light);
	text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero__subheading {
	font-family: var(--font-body);
	font-size: 1.05rem;
	color: var(--text-muted);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}
.hero .btn { margin-top: 18px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 32px;
}
.service-card {
	text-align: center;
	padding: 8px;
}
.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 74px; height: 74px;
	margin-bottom: 18px;
	color: var(--text-light);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__title {
	font-size: 1.05rem;
	color: var(--text-light);
	margin-bottom: 0.5em;
}
.service-card__desc {
	font-size: 0.92rem;
	color: var(--text-muted);
	max-width: 260px;
	margin: 0 auto;
}

/* ==========================================================================
   Why Choose Corax
   ========================================================================== */
.section-heading {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}
.section-heading h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	color: var(--text-light);
}
.section-heading p {
	color: var(--text-muted);
	font-size: 1rem;
}

.why-choose__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 44px 56px;
}
.why-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.why-card__icon {
	flex: none;
	width: 52px; height: 52px;
	color: var(--sf-teal);
}
.why-card__icon svg { width: 100%; height: 100%; }
.why-card__title {
	font-size: 1rem;
	color: var(--text-light);
	margin-bottom: 0.4em;
}
.why-card__desc {
	font-size: 0.92rem;
	color: var(--text-muted);
	margin: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact .section-inner { max-width: 640px; }
.contact__meta {
	color: var(--text-muted);
	font-size: 0.95rem;
}
.contact__meta a:hover { color: var(--plum-lighter); }

.corax-form-notice {
	padding: 14px 18px;
	border-radius: var(--radius);
	margin-bottom: 24px;
	font-size: 0.92rem;
}
.corax-form-notice--success {
	background: rgba(34, 85, 89, 0.35);
	border: 1px solid var(--sf-teal);
	color: #d7ece9;
}
.corax-form-notice--error {
	background: rgba(140, 40, 40, 0.25);
	border: 1px solid #a33;
	color: #f3d3d3;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.corax-website-field { position: absolute; left: -9999px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--text-dark);
	background: var(--off-white);
	border: none;
	border-radius: 6px;
	padding: 15px 16px;
	resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #6b6b6b;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--plum-shimmer);
	outline-offset: 1px;
}
.contact-form .btn { margin-top: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--raven-black);
	border-top: 1px solid rgba(255,255,255,0.08);
	padding: 40px 0;
}
.site-footer__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	color: var(--text-light);
}
.site-footer__mark { width: 32px; height: 32px; }
.site-footer__name em { font-style: normal; color: var(--text-muted); font-family: var(--font-body); margin-left: 6px; font-size: 0.85em; }
.site-footer__nav .corax-footer-nav-list,
.site-footer__nav .corax-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.site-footer__nav a {
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	color: var(--text-muted);
}
.site-footer__nav a:hover { color: var(--text-light); }
.site-footer__copy {
	width: 100%;
	margin: 16px 0 0;
	font-size: 0.78rem;
	color: rgba(245,245,245,0.5);
	text-align: center;
}

/* ==========================================================================
   Generic content fallback (blog / pages)
   ========================================================================== */
.generic-content { padding: var(--section-pad) 0; background: var(--raven-black); }
.generic-article { max-width: 720px; margin: 0 auto 48px; }
.generic-article h1, .generic-article h2 { color: var(--text-light); }
.generic-article__meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.generic-article__excerpt, .generic-article__body { color: var(--text-muted); }
.generic-article__body a { color: var(--plum-lighter); text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
	.services__grid { grid-template-columns: repeat(2, 1fr); }
	.why-choose__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	.site-logo-img,
	.custom-logo { height: 44px; }
	.menu-toggle { display: inline-flex; }
	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--off-white);
		box-shadow: 0 8px 16px rgba(0,0,0,0.12);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.site-nav.is-open { max-height: 320px; }
	.site-nav .corax-nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 8px 24px 20px;
	}
	.site-nav .corax-nav-list a {
		display: block;
		padding: 12px 0;
		width: 100%;
		border-bottom: 1px solid rgba(0,0,0,0.08);
	}

	.services__grid { grid-template-columns: 1fr; }
	.hero { padding: 100px 20px 80px; }
	.site-footer__inner { flex-direction: column; align-items: flex-start; }
}
