/**
 * Theme Name: Enigma-Pro Child
 * Template: enigma-premium
  Version: 1.2.3
 */
:root{
    --ss-black: #292929;
    --ss-light-grey: #ecf0f1;
	--ss-white: #FFFFFF;
	--ss-medium-grey: #D6D7D9;
	--ss-muted-grey: #708090;
}
html {
	scroll-behavior: smooth;
}
.contact-container{
	display: flex;
  	flex-direction: row; /* Stacks children vertically */
  	gap: 0 16px;   
}
 .contact-row{
    padding: 0;
    background-color: #292929;
 }
 .contact-column{
	padding: 90px 36px;
	min-width: 40%;
 }
 .contact-column h2{
	color: var(--ss-white);
	font-weight: 700;
 }
 .contact-column p{
	color: var(--ss-medium-grey);
 }
.form-column{
	background-color: var(--ss-white);
	width: 60%;
}
.form-column h2{
	font-size: 20px;
	color: var(--ss-black);
	font-weight: 700;
}
.form-column p{
	color: var(--ss-muted-grey);
}
/* Contact section – left column checklist */
.contact-container .contact-column:not(.form-column) {
  flex: 1 1 0;
  min-width: 0;
}
.contact-container .contact-column.form-column {
  flex: 0 0 40%;
}

.contact-column .contact-checklist {
  list-style: none;
  margin: 50px 0 50px;
  padding: 0;
}
.contact-column .contact-checklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(214, 215, 217, 0.2);
  color: var(--ss-white);
  font-size: 16px;
  line-height: 24px;
}
.contact-column .contact-checklist li:first-child {
  border-top: 1px solid rgba(214, 215, 217, 0.2);
}
.contact-column .contact-checklist .fa {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 20px;
  color: var(--ss-black);
  background: var(--ss-light-grey);
  border-radius: 50%;
}

.contact-column .contact-callout {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--ss-light-grey);
  color: var(--ss-medium-grey);
  font-size: 16px;
  line-height: 26px;
}
.contact-column .contact-callout a {
  color: var(--ss-white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.contact-column .contact-callout a:hover {
  text-decoration: underline;
}
#contact {
	scroll-margin-top: 100px; 
}

 /* Custom Ninja Form Styling */
.ss-form{
	margin-top: 24px;
}
.ss-form label{
	font-family: Inter, Arial;
	color: var(--ss-black);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2em;
}
.ss-form .nf-field-label{
	margin: 0 !important;
}
.ss-form .nf-form-fields-required{
	display: none !important;
}
.ss-form .submit-btn{
	color: #FFFFFF;
	background-color: var(--ss-black) !important;
	border: 2px solid var(--ss-black) !important;
	font-family: Arial;
	justify-content: center;
	padding: 14px;
	width: 100% !important;
	font-size: 20px;
	font-weight: 700;
	box-shadow:none !important;
}
.ss-form .submit-btn:hover {
	color: var(--ss-black);
	background-color: var(--ss-white) !important;
	border: 2px solid var(--ss-black) !important;
	cursor: pointer;
}
.ss-form .nf-field-element input:not([type="submit"]),.ss-form .nf-field-element select, .ss-form .nf-field-element textarea {
	border: 1.5px solid var(--line);
    border-radius: 5px;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ss-black);
    background: var(--ss-light-grey);
}
.ss-form .nf-field-container{
	margin-bottom: 12px;
}
* Custom Contact Form 7 Styling (matches the Ninja Forms look) */
.ss-form {
	margin-top: 24px;
}

/* Labels */
.ss-form label {
	display: block;
	font-family: Inter, Arial;
	color: var(--ss-black);
	text-transform: capitalize;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2em;
	margin: 0;
}
.ss-form label .req {
	color: #e80000;
}

/* Field spacing (CF7 wraps each field in a <p>) */
.ss-form p {
	margin: 0 0 12px;
}
.ss-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 4px;
}

/* Inputs, selects, textareas */
.ss-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.ss-form select,
.ss-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid var(--line, transparent);
	border-radius: 5px;
	padding: 11px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ss-black);
	background: var(--ss-light-grey);
}

/* Submit button */
.ss-form .wpcf7-submit {
	display: block;
	width: 100%;
	padding: 14px;
	color: #FFFFFF;
	background-color: var(--ss-black);
	border: 2px solid var(--ss-black);
	font-family: Arial;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	cursor: pointer;
}
.ss-form .wpcf7-submit:hover {
	color: var(--ss-black);
	background-color: var(--ss-white);
	border: 2px solid var(--ss-black);
}

/* CF7 extras: spinner, validation and response messages */
.ss-form .wpcf7-spinner {
	display: block;
	margin: 8px auto 0;
}
.ss-form .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 4px;
}
.ss-form .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 5px;
	font-size: 14px;
}
/* ===== Blog list page ===== */

/* Page title banner */
.ssb-title {
	background: var(--ss-black);
	color: #fff;
	text-align: center;
	padding: 48px 16px 28px;
}
.ssb-title h1 {
	margin: 0;
	color: #fff;
	font-size: 36px;
	line-height: 40px;
	font-weight: 700;
}
.ssb-title p {
	margin: 8px 0 0;
	color: var(--ss-medium-grey);
	font-size: 16px;
}

/* Featured post */
.ssb-featured {
	background: var(--ss-black) center / cover no-repeat;
	min-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 16px 48px;
}
.ssb-featured-card {
	background: #fff;
	max-width: 640px;
	width: 100%;
	padding: 36px 40px;
	text-align: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.ssb-featured-card time {
	display: block;
	margin-bottom: 10px;
	color: var(--ss-muted-grey);
	font-size: 14px;
}
.ssb-featured-card h2 {
	margin: 0 0 14px;
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
}
.ssb-featured-card h2 a {
	color: var(--ss-black);
	text-decoration: none;
}
.ssb-featured-card p {
	margin: 0 0 22px;
	color: var(--ss-muted-grey);
	font-size: 15px;
	line-height: 26px;
}

/* Button (matches the contact form submit button) */
.ssb-btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--ss-black);
	color: #fff;
	border: 2px solid var(--ss-black);
	font: 700 13px Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}
.ssb-btn:hover {
	background: #fff;
	color: var(--ss-black);
}

/* Two-column layout */
.ssb-layout {
	display: flex;
	gap: 48px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 56px 16px;
}
.ssb-list {
	flex: 1 1 0;
	min-width: 0;
}
.ssb-sidebar {
	flex: 0 0 300px;
}

/* Post list items */
.ssb-post {
	display: flex;
	gap: 32px;
	margin: 0 0 36px;
	padding: 0 0 36px;
	border-bottom: 1px solid var(--ss-light-grey);
}
.ssb-thumb {
	flex: 0 0 260px;
	align-self: flex-start;
}
.ssb-thumb img {
	display: block;
	width: 260px;
	height: 195px;
	object-fit: cover;
	background: var(--ss-light-grey);
}
.ssb-body {
	flex: 1;
	min-width: 0;
}
.ssb-body h3 {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
}
.ssb-body h3 a {
	color: var(--ss-black);
	text-decoration: none;
}
.ssb-body h3 a:hover {
	color: var(--ss-muted-grey);
}
.ssb-body p {
	margin: 0 0 16px;
	color: var(--ss-muted-grey);
	font-size: 15px;
	line-height: 26px;
}
.ssb-meta {
	margin-top: 16px;
	color: var(--ss-muted-grey);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.ssb-meta a {
	color: var(--ss-muted-grey);
	text-decoration: none;
}
.ssb-meta a:hover {
	color: var(--ss-white);
}
.ssb-sep {
	display: inline-block;
	width: 1px;
	height: 12px;
	margin: 0 10px;
	background: var(--ss-medium-grey);
	vertical-align: middle;
}

/* Pagination (the_posts_pagination output) */
.ssb-pagination {
	margin-top: 48px;
}
.ssb-pagination .screen-reader-text {
	position: absolute;
	left: -9999px;
}
.ssb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.ssb-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1.5px solid var(--ss-medium-grey);
	color: var(--ss-black);
	font-size: 14px;
	font-weight: 700;
	line-height: 38px;
	text-align: center;
	text-decoration: none;
}
.ssb-pagination a.page-numbers:hover {
	border-color: var(--ss-black);
}
.ssb-pagination .page-numbers.current {
	background: var(--ss-black);
	border-color: var(--ss-black);
	color: #fff;
}

/* Sidebar widgets */
.ssb-widget {
	margin: 0 0 40px;
}
.ssb-widget h4 {
	margin: 0 0 14px;
	color: var(--ss-black);
	font-size: 15px;
	font-weight: 700;
}
.ssb-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ssb-widget li {
	position: relative;
	padding: 12px 22px 12px 0;
	border-bottom: 1px solid var(--ss-light-grey);
	color: var(--ss-muted-grey);
	font-size: 14px;
	line-height: 22px;
}
.ssb-widget li:first-child {
	border-top: 1px solid var(--ss-light-grey);
}
.ssb-widget li::after {
	content: "\f105";
	font-family: FontAwesome;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ss-medium-grey);
}
.ssb-widget li a {
	color: var(--ss-muted-grey);
	text-decoration: none;
}
.ssb-widget li a:hover {
	color: var(--ss-black);
}
.ssb-widget select,
.ssb-widget input[type="text"] {
	width: 100%;
	padding: 11px 12px;
	border: 1.5px solid var(--ss-medium-grey);
	border-radius: 5px;
	background: #fff;
	color: var(--ss-muted-grey);
	font: 14px "Open Sans", sans-serif;
}
.ssb-search {
	display: flex;
}
.ssb-search input[type="text"] {
	border-right: 0;
	border-radius: 5px 0 0 5px;
}
.ssb-search button {
	padding: 0 16px;
	background: var(--ss-black);
	color: #fff;
	border: 2px solid var(--ss-black);
	border-radius: 0 5px 5px 0;
	cursor: pointer;
}

/* Sidebar quote card */
.ssb-cta {
	padding: 28px 24px;
	background: var(--ss-black);
}
.ssb-cta h4 {
	margin-bottom: 8px;
	color: #fff;
	font-size: 20px;
}
.ssb-cta p {
	margin: 0 0 18px;
	color: var(--ss-medium-grey);
	font-size: 15px;
	line-height: 24px;
}
.ssb-cta .ssb-btn {
	background: #fff;
	color: var(--ss-black);
	border-color: #fff;
}
.ssb-cta .ssb-btn:hover {
	background: transparent;
	color: #fff;
}

.ssb-single-featured-photo {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.ssb-single-featured-photo img.ssb-main-photo {
    width: 100%;
    height: 375px;            /* Preferred default height */
    max-height: 400px;        /* Strict cap at 500px */
    object-fit: cover;        /* Crops intelligently without stretching or distortion */
    object-position: center;   /* Keeps the core focus of the image centered */
    display: block;
	transition: transform 0.4s ease-in-out;
    will-change: transform; /* GPU acceleration for liquid-smooth performance */
}

/* Trigger 6% scale zoom when hovering anywhere over the photo wrapper */
.ssb-single-featured-photo:hover img.ssb-main-photo {
    transform: scale(1.06);
}
/* Tablet: sidebar drops below the posts */
@media (max-width: 991px) {
	.ssb-layout {
		flex-direction: column;
		gap: 24px;
	}
	.ssb-sidebar {
		flex: 1 1 auto;
		width: 100%;
	}
}

/* Stack at tablet/phone widths */
@media (max-width: 991px) {
  .contact-container {
    flex-direction: column;
    gap: 0;
  }
  .contact-container .contact-column,
  .contact-container .contact-column.form-column {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 60px 24px;
  }
  #contact {
	scroll-margin-top: 140px; 
}
}

@media (max-width: 767px) {
  .contact-container .contact-column,
  .contact-container .contact-column.form-column {
    flex: 1 1 auto;
  }
  .contact-column .contact-checklist li {
    font-size: 15px;
  }
  #contact {
	scroll-margin-top: 0px; 
}
.ssb-single-featured-photo img.ssb-main-photo {
    height: 280px; /* Scaled down height for mobile screens to avoid over-scrolling */
}
}

/* Phone: thumbnail stacks above the text */
@media (max-width: 640px) {
	.ssb-title h1 { font-size: 30px; }
	.ssb-featured-card { padding: 28px 22px; }
	.ssb-featured-card h2 { font-size: 22px; line-height: 30px; }
	.ssb-post {
		flex-direction: column;
		gap: 18px;
	}
	.ssb-thumb {
		flex: none;
		width: 100%;
	}
	.ssb-thumb img {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}
	.ssb-body h3 {
		font-size: 22px;
		line-height: 28px;
	}
}

@media (max-width: 480px) {
  .contact-container .contact-column,
  .contact-container .contact-column.form-column {
    padding: 48px 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}