/* ==========================================================================
   Infitech Custom — single stylesheet.
   Tokens are the values compiled from the original The7 configuration.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset, variable) ------------------------ */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../fonts/montserrat.woff2") format("woff2");
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/open-sans.woff2") format("woff2");
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/roboto.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
	--ift-accent: #3a5c97;
	--ift-accent-hover: #2bb673;
	--ift-text: #707070;
	--ift-heading: #222222;
	--ift-tint: rgba(0, 0, 0, 0.04);
	--ift-card: #f4f4f4;
	--ift-footer-bg: #191919;
	--ift-bottom-bg: #252525;
	--ift-footer-text: #aaaaaa;
	--ift-line: rgba(0, 0, 0, 0.1);

	--ift-font-body: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
	--ift-font-head: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
	--ift-font-hero: "Roboto", Helvetica, Arial, Verdana, sans-serif;

	--ift-content: 1250px;
	--ift-gutter: 44px;
	--ift-header-h: 100px;
	--ift-topbar-h: 36px;
	--ift-sidebar-w: 370px;
	--ift-sidebar-gap: 50px;
	--ift-gap: 30px;
	--ift-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.07);
}

/* ---- Base --------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: #fff;
	color: var(--ift-text);
	font: 400 14px/26px var(--ift-font-body);
	-webkit-font-smoothing: antialiased;
}
#page {
	overflow-x: clip;
}
[hidden] {
	display: none !important;
}
img,
svg {
	max-width: 100%;
	height: auto;
}
a {
	color: var(--ift-accent);
	text-decoration: none;
}
a:hover,
a:focus-visible {
	color: var(--ift-accent-hover);
}
:focus-visible {
	outline: 2px solid var(--ift-accent);
	outline-offset: 2px;
}
p {
	margin: 0 0 20px;
}
ul,
ol {
	margin: 0 0 20px;
	padding-left: 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 20px;
	color: var(--ift-heading);
	font-family: var(--ift-font-head);
	font-weight: 700;
}
h1 { font-size: 46px; line-height: 56px; }
h2 { font-size: 32px; line-height: 42px; }
h3 { font-size: 26px; line-height: 36px; }
h4 { font-size: 20px; line-height: 30px; }
h5 { font-size: 18px; line-height: 28px; }
h6 { font-size: 16px; line-height: 26px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip-path: none;
	background: #fff;
	color: var(--ift-accent);
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.wf-wrap {
	width: 100%;
	max-width: var(--ift-content);
	margin: 0 auto;
	padding: 0 var(--ift-gutter);
}

.ift-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* ---- Buttons ------------------------------------------------------------ */
.dt-btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-block;
	padding: 12px 18px;
	border: 0;
	border-radius: 0;
	background: var(--ift-accent);
	color: #fff;
	font: 700 14px/16px var(--ift-font-head);
	text-align: center;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}
.dt-btn:hover,
.dt-btn:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.wp-element-button:hover {
	background: var(--ift-accent-hover);
	color: #fff;
}
.dt-btn--block {
	display: block;
	width: 100%;
	margin-top: 20px;
}

/* ---- Header ------------------------------------------------------------- */
.masthead {
	position: relative;
	z-index: 100;
	background: #fff;
	box-shadow: var(--ift-shadow);
}
.top-bar {
	height: var(--ift-topbar-h);
	background: transparent;
	color: var(--ift-accent);
	font: 500 12px/18px var(--ift-font-head);
}
.top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 0 50px;
	max-width: none;
}
.top-bar a {
	color: inherit;
}
.top-bar a:hover {
	opacity: 0.7;
}
.top-bar-right {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}
.mini-contacts {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.mini-contacts .ift-icon {
	width: 16px;
	height: 16px;
}

.soc-ico {
	display: flex;
	gap: 5px;
}
.soc-ico a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 100px;
	background: rgba(0, 0, 0, 0.08);
	color: #999;
	transition: background-color 0.25s, color 0.25s;
}
.soc-ico a:hover,
.soc-ico a:focus-visible {
	background: var(--ift-accent);
	color: #fff;
	opacity: 1;
}
.soc-ico .ift-icon {
	width: 14px;
	height: 14px;
}

.header-bar {
	display: flex;
	align-items: center;
	min-height: calc(var(--ift-header-h) - 0px);
	max-width: none;
	padding: 0 50px;
}
.branding {
	flex: none;
	padding-right: 25px;
}
.branding img {
	display: block;
	width: 197px;
	height: auto;
}
.primary-nav {
	margin-left: auto;
}

/* Desktop menu */
.main-nav,
.main-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-nav {
	display: flex;
	align-items: center;
}
.main-nav > li {
	position: relative;
	padding: 10px 18px;
}
.main-nav > li:last-child {
	padding-right: 0;
}
.main-nav > li + li::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 0;
	height: 20px;
	border-left: 1px solid var(--ift-accent);
	content: "";
	transform: translateY(-50%);
}
.main-nav > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 0;
	color: #222;
	font: 700 14px/18px var(--ift-font-head);
}
.main-nav > li > a::after {
	position: absolute;
	right: 0;
	bottom: -2px;
	left: 0;
	height: 2px;
	background: var(--ift-accent);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s;
}
.main-nav > li:hover > a,
.main-nav > li:focus-within > a,
.main-nav > li.act > a {
	color: var(--ift-accent);
}
.main-nav > li:hover > a::after,
.main-nav > li:focus-within > a::after,
.main-nav > li.act > a::after {
	transform: scaleX(1);
}
.main-nav .ift-icon--chevron {
	width: 10px;
	height: 10px;
	stroke-width: 3;
}

.main-nav .sub-nav {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	width: 260px;
	padding: 10px;
	background: #fff;
	box-shadow: var(--ift-shadow);
	visibility: hidden;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.main-nav li:hover > .sub-nav,
.main-nav li:focus-within > .sub-nav {
	visibility: visible;
	opacity: 1;
	transform: none;
}
.main-nav .sub-nav .sub-nav {
	top: -10px;
	left: 100%;
}
.main-nav .sub-nav li {
	position: relative;
}
.main-nav .sub-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	color: #222;
	font: 600 13px/18px var(--ift-font-body);
}
.main-nav .sub-nav li:hover > a,
.main-nav .sub-nav li:focus-within > a,
.main-nav .sub-nav li.act > a {
	color: var(--ift-accent);
}
.main-nav .sub-nav .ift-icon--chevron {
	transform: rotate(-90deg);
}
/* Last top-level dropdowns open leftwards so they stay on screen. */
.main-nav > li:nth-last-child(-n + 3) > .sub-nav {
	right: 0;
	left: auto;
}
.main-nav > li:nth-last-child(-n + 3) .sub-nav .sub-nav {
	right: 100%;
	left: auto;
}

/* Mobile toggle */
.menu-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: background-color 0.25s;
}
.menu-toggle-bars {
	display: block;
	width: 20px;
	margin: 0 auto;
}
.menu-toggle-bars span {
	display: block;
	height: 2px;
	margin: 4px 0;
	background: #222;
	transition: background-color 0.25s;
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
	background: #222;
}
.menu-toggle:hover .menu-toggle-bars span,
.menu-toggle:focus-visible .menu-toggle-bars span {
	background: #fff;
}

/* Mobile panel */
.mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10001;
	width: 300px;
	max-width: 88vw;
	padding: 45px 15px 30px 30px;
	overflow-y: auto;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}
.mobile-panel.is-open {
	transform: none;
}
.mobile-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s;
}
.mobile-backdrop.is-open {
	opacity: 1;
}
.menu-open {
	overflow: hidden;
}
.mobile-close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: #222;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.mobile-nav,
.mobile-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.mobile-nav li {
	position: relative;
	border-bottom: 1px solid rgba(34, 34, 34, 0.12);
}
.mobile-nav a {
	display: block;
	padding: 12px 40px 12px 0;
	color: #222;
	font: 700 16px/22px var(--ift-font-head);
}
.mobile-nav li.act > a,
.mobile-nav a:hover {
	color: var(--ift-accent);
}
.mobile-nav .ift-icon--chevron {
	display: none;
}
.mobile-nav .sub-nav {
	display: none;
	padding-left: 15px;
}
.mobile-nav li.is-open > .sub-nav {
	display: block;
}
.mobile-nav .sub-nav li:last-child {
	border-bottom: 0;
}
.mobile-nav .sub-nav a {
	font-size: 14px;
}
.submenu-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 46px;
	padding: 0;
	border: 0;
	background: none;
	color: #222;
	cursor: pointer;
}
.submenu-toggle svg {
	transition: transform 0.2s;
}
.is-open > .submenu-toggle svg {
	transform: rotate(180deg);
}
.mobile-social {
	margin-top: 25px;
}

/* ---- Page title bar ----------------------------------------------------- */
.page-title {
	background: var(--ift-tint);
}
.page-title-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 130px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.page-title-head {
	margin: 0;
	color: var(--ift-heading);
	font: 700 26px/36px var(--ift-font-head);
}
.breadcrumbs {
	margin: 5px 0;
	padding: 0;
	list-style: none;
	color: var(--ift-heading);
	font: 400 12px/24px var(--ift-font-body);
	text-align: right;
}
.breadcrumbs li {
	position: relative;
	display: inline-block;
	margin-left: 8px;
	padding-left: 12px;
}
.breadcrumbs li:first-child {
	margin-left: 0;
	padding-left: 0;
}
.breadcrumbs li + li::before {
	position: absolute;
	top: 0;
	left: 0;
	content: "/";
}
.breadcrumbs a {
	color: inherit;
}
.breadcrumbs a:hover {
	text-decoration: underline;
}

/* ---- Main / content ----------------------------------------------------- */
.site-main {
	padding: 0;
}
.content {
	padding: 50px 0;
}
.content > :last-child {
	margin-bottom: 0;
}
.home .content {
	padding: 0;
}
.content img {
	height: auto;
}
.content h2 {
	font-size: 26px;
	line-height: 36px;
}
.content h3 {
	font-size: 18px;
	line-height: 28px;
	margin-bottom: 10px;
}

/* Full-width block sections break out of the centred wrapper. */
.content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-right: 0;
	margin-left: calc(50% - 50vw);
}
.content > .alignfull:first-child {
	margin-top: -50px;
}
.content > .alignfull:last-child {
	margin-bottom: -50px;
}
.home .content > .alignfull:first-child {
	margin-top: 0;
}
.home .content > .alignfull:last-child {
	margin-bottom: 0;
}

/* Accent underline under section headings. */
hr.wp-block-separator.ift-line {
	width: 50px !important;
	max-width: 50px;
	height: 4px;
	margin: 15px 0 50px;
	border: 0;
	background: var(--ift-accent);
	opacity: 1;
}

.ift-section {
	padding-right: max(25px, calc(50vw - var(--ift-content) / 2 + var(--ift-gutter)));
	padding-left: max(25px, calc(50vw - var(--ift-content) / 2 + var(--ift-gutter)));
}
.ift-section--about {
	padding-top: 70px;
	padding-bottom: 30px;
}
.ift-section--about .wp-block-column {
	padding-bottom: 50px;
}
.ift-section--about .wp-block-columns,
.ift-section--tint .wp-block-columns {
	gap: var(--ift-gap);
}
.ift-section--tint {
	padding-top: 70px;
	padding-bottom: 80px;
	background: var(--ift-tint);
}
.ift-section--tint h2 {
	line-height: 26px;
}
.ift-cards .ift-card {
	padding: 30px;
	background: #fff;
	text-align: center;
}
.ift-card figure {
	margin: 0 0 20px;
}
.ift-card figure.is-style-rounded img {
	width: 120px;
	height: 120px;
	margin: 0 auto;
	border-radius: 50%;
	object-fit: cover;
}
.ift-card h3 {
	font-weight: 700;
}
.ift-section--cta {
	padding-top: 70px;
	padding-bottom: 80px;
	background: #2a3a57 var(--ift-cta-bg, none) center / cover no-repeat;
	position: relative;
	isolation: isolate;
}
.ift-section--cta::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.5);
	content: "";
}
.ift-cta-inner {
	max-width: calc(var(--ift-content) * 2 / 3);
}
.ift-section--cta h2 {
	margin-bottom: 20px;
	color: #fff;
	font-size: 32px;
	line-height: 42px;
}
.ift-section--cta p {
	margin-bottom: 30px;
	color: #fff;
	font-size: 18px;
	line-height: 30px;
}
.wp-block-image {
	margin: 0 0 20px;
}
.wp-block-image img {
	display: block;
}
.wp-block-columns {
	margin-bottom: 0;
}

/* ---- Sidebar layout (service pages) ------------------------------------- */
.layout-sidebar-left {
	display: flex;
	align-items: flex-start;
	gap: var(--ift-sidebar-gap);
}
.layout-sidebar-left .content {
	flex: 1 1 0;
	min-width: 0;
}
.layout-sidebar-left .sidebar {
	flex: none;
	order: -1;
	width: var(--ift-sidebar-w);
	padding: 50px 0;
}
.widget-title {
	margin: 0 0 15px;
	font: 700 18px/28px var(--ift-font-head);
	color: var(--ift-heading);
}
.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sidebar .custom-menu > li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sidebar .custom-menu a {
	display: block;
	position: relative;
	padding: 10px 20px 10px 0;
	color: var(--ift-heading);
}
.sidebar .custom-menu > li > a {
	font-weight: 700;
}
.sidebar .custom-menu ul {
	padding: 0 0 8px 15px;
}
.sidebar .custom-menu a:hover,
.sidebar .custom-menu .current-menu-item > a,
.sidebar .custom-menu .current-menu-ancestor > a {
	color: var(--ift-accent);
}
.sidebar .custom-menu .menu-item-has-children > a::after {
	position: absolute;
	top: 50%;
	right: 4px;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	content: "";
	transform: translateY(-70%) rotate(45deg);
}

/* ---- Card grid (projects, clients, careers) ----------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ift-gap);
	padding: 0 0 70px;
}
.card-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
	padding: 30px;
	background: var(--ift-card);
}
.card-media {
	margin-bottom: 20px;
}
.card-media img {
	display: block;
	width: 100%;
	height: auto;
}
.card--logo .card-media {
	padding: 0 10%;
}
.card--logo {
	text-align: center;
}
.card-title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 30px;
}
.card-title::before {
	display: block;
	width: 50px;
	height: 4px;
	margin-bottom: 15px;
	background: var(--ift-accent);
	content: "";
}
.card--logo .card-title::before {
	margin-right: auto;
	margin-left: auto;
}
.card-body {
	margin-bottom: 0;
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	background: #1e2f4d;
	color: #fff;
}
.hero-slides {
	position: relative;
	min-height: 650px;
}
.hero-slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #1e2f4d, var(--ift-accent));
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s;
}
.hero-slide.is-active {
	z-index: 2;
	opacity: 1;
	visibility: visible;
}
.hero-slide::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
	content: "";
}
.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-inner {
	position: relative;
	z-index: 2;
	padding-right: 70px;
	padding-left: 70px;
}
.hero-title {
	max-width: 583px;
	margin: 0 0 25px;
	color: #fff;
	font: 700 50px/56px var(--ift-font-head);
}
.hero-text {
	max-width: 600px;
	margin: 0 0 45px;
	font: 500 18px/30px var(--ift-font-hero);
}
.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.hero-btn {
	display: inline-block;
	width: 180px;
	padding: 15px 18px;
	font: 700 16px/18px var(--ift-font-head);
	text-align: center;
	transition: background-color 0.25s, color 0.25s;
}
.hero-btn--primary {
	background: var(--ift-accent);
	color: #fff;
}
.hero-btn--primary:hover,
.hero-btn--primary:focus-visible {
	background: var(--ift-accent-hover);
	color: #fff;
}
.hero-btn--light {
	background: #fff;
	color: #303030;
}
.hero-btn--light:hover,
.hero-btn--light:focus-visible {
	background: #e8e8e8;
	color: #303030;
}
.hero-slide.align-center .hero-inner {
	text-align: center;
}
.hero-slide.align-center .hero-title,
.hero-slide.align-center .hero-text {
	margin-right: auto;
	margin-left: auto;
}
.hero-slide.align-center .hero-title {
	max-width: 900px;
}
.hero-slide.align-center .hero-buttons {
	justify-content: center;
}
.hero-dots {
	position: absolute;
	right: 0;
	bottom: 24px;
	left: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.hero-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.hero-dot.is-active {
	background: #fff;
}

/* ---- Footer ------------------------------------------------------------- */
.footer {
	background: var(--ift-footer-bg);
	color: var(--ift-footer-text);
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px;
	padding-top: 60px;
	padding-bottom: 30px;
}
.footer .widget {
	margin-bottom: 30px;
}
.footer .widget-title {
	color: #fff;
}
.footer a {
	color: var(--ift-footer-text);
}
.footer a:hover,
.footer a:focus-visible {
	color: #fff;
}
.footer .color-primary {
	color: #fff;
}
.footer .contact-info,
.footer .menu {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.footer .contact-info li {
	margin-bottom: 10px;
}
.footer .menu li {
	padding: 4px 0;
}
.footer .soc-ico a {
	background: rgba(255, 255, 255, 0.1);
	color: var(--ift-footer-text);
}
.footer .soc-ico a:hover {
	background: var(--ift-accent);
	color: #fff;
}
#bottom-bar {
	background: var(--ift-bottom-bg);
	color: var(--ift-footer-text);
}
.bottom-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 60px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.bottom-inner p {
	margin: 0;
}

.scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--ift-accent);
	color: #fff;
	opacity: 0.9;
}
.scroll-top:hover {
	background: var(--ift-accent-hover);
	color: #fff;
}

/* ---- Misc: blog fallback, search ---------------------------------------- */
.entry {
	margin-bottom: 40px;
}
.entry-title {
	margin-bottom: 10px;
}
.searchform {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin-bottom: 20px;
}
.searchform input[type="search"] {
	flex: 1;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ift-line);
	font: inherit;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1240px) {
	.hero-title {
		font-size: 44px;
		line-height: 50px;
	}
}

@media (max-width: 992px) {
	/* Header switches to the mobile layout. */
	.top-bar {
		display: block;
	}
	.top-bar-inner,
	.header-bar {
		padding: 0 20px;
	}
	.top-bar-inner {
		justify-content: center;
	}
	.show-on-desktop {
		display: none !important;
	}
	.top-bar-right {
		margin: 0;
	}
	.primary-nav {
		display: none;
	}
	.menu-toggle {
		display: block;
	}
	.header-bar {
		min-height: 60px;
	}
	.branding img {
		width: 150px;
	}
	.hero-slides {
		min-height: 560px;
	}
	.layout-sidebar-left {
		flex-direction: column;
		gap: 0;
	}
	.layout-sidebar-left .sidebar {
		order: 1;
		width: 100%;
		padding-top: 0;
	}
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 993px) {
	.hide-on-desktop {
		display: none !important;
	}
	.mobile-panel,
	.mobile-backdrop {
		display: none !important;
	}
}

@media (max-width: 778px) {
	:root {
		--ift-gutter: 20px;
	}
	h1 { font-size: 34px; line-height: 40px; }
	h2 { font-size: 26px; line-height: 34px; }
	h3 { font-size: 22px; line-height: 30px; }
	.page-title-inner {
		min-height: 80px;
	}
	.page-title-head {
		font-size: 22px;
		line-height: 30px;
	}
	.page-title-breadcrumbs {
		display: none;
	}
	.hero-slides {
		min-height: 480px;
	}
	.hero-inner {
		padding-right: 20px;
		padding-left: 20px;
		text-align: center;
	}
	.hero-title {
		margin-right: auto;
		margin-left: auto;
		font-size: 40px;
		line-height: 50px;
	}
	.hero-text {
		display: none;
	}
	.hero-buttons {
		justify-content: center;
	}
	.hero-title {
		margin-bottom: 40px;
	}
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-top: 40px;
	}
	.bottom-inner {
		justify-content: center;
		text-align: center;
	}
	.card-grid,
	.card-grid--2 {
		grid-template-columns: minmax(0, 1fr);
	}
	.ift-cta-inner {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 35px;
		line-height: 40px;
	}
	.hero-btn {
		width: 100%;
		max-width: 260px;
	}
}

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

/* ==========================================================================
   Step 3: services list, team, gallery, contact, archives
   ========================================================================== */

/* Services list cards */
.ift-service-row {
	gap: var(--ift-gap);
	margin-bottom: var(--ift-gap);
}
.ift-service-card {
	padding: 30px 30px 40px;
	background: var(--ift-card);
}
.ift-service-card h3 {
	font-size: 18px;
}

/* Team */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--ift-gap);
	text-align: center;
}
.team-media img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 20px;
}
.team-name {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 28px;
}
.team-role {
	margin: 0 0 12px;
	color: var(--ift-accent);
	font-weight: 600;
}
.team-bio p:last-child {
	margin-bottom: 0;
}

/* Gallery: masonry look from core gallery + lightbox */
.content--gallery .wp-block-gallery.has-nested-images {
	display: block;
	column-count: 3;
	column-gap: 10px;
}
.content--gallery .wp-block-gallery.has-nested-images figure.wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 10px;
	break-inside: avoid;
}
.content--gallery .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: auto;
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ift-gap);
	align-items: start;
}
.icon-text {
	display: grid;
	grid-template-columns: 48px 1fr;
	column-gap: 16px;
	margin-bottom: 30px;
}
.icon-text-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	grid-row: 1 / span 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ift-accent);
	color: #fff;
}
.icon-text-title {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 28px;
}
.icon-text-desc {
	grid-column: 2;
}
.contact-col h2 {
	margin-top: 0;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
	width: 100%;
	padding: 5px 10px;
	border: 1px solid var(--ift-line);
	border-radius: 0;
	background: #fff;
	color: var(--ift-text);
	font: 400 14px/26px var(--ift-font-body);
}
.contact-form input {
	min-height: 40px;
}
.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--ift-accent);
	outline: 0;
}
.contact-form p {
	margin-bottom: 15px;
}
.form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-notice {
	padding: 10px 15px;
	border-left: 4px solid;
}
.form-notice--success {
	border-color: var(--ift-accent-hover);
	background: rgba(43, 182, 115, 0.1);
}
.form-notice--error {
	border-color: #d63638;
	background: rgba(214, 54, 56, 0.08);
}

/* Archives */
.filter-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}
.filter-links a {
	display: block;
	padding: 6px 14px;
	color: var(--ift-heading);
	font: 700 14px/20px var(--ift-font-head);
	border-bottom: 2px solid transparent;
}
.filter-links a:hover,
.filter-links a[aria-current] {
	border-color: var(--ift-accent);
	color: var(--ift-accent);
}
.card-grid--flush {
	padding-bottom: 30px;
}
.single-media {
	margin-bottom: 20px;
}
.navigation.pagination {
	margin-top: 30px;
}
.navigation .nav-links {
	display: flex;
	gap: 8px;
}
.navigation .page-numbers {
	padding: 6px 12px;
	background: var(--ift-tint);
	color: var(--ift-heading);
}
.navigation .page-numbers.current {
	background: var(--ift-accent);
	color: #fff;
}

@media (max-width: 992px) {
	.contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.contact-col:last-child {
		grid-column: 1 / -1;
	}
	.content--gallery .wp-block-gallery.has-nested-images {
		column-count: 2;
	}
}
@media (max-width: 778px) {
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.content--gallery .wp-block-gallery.has-nested-images {
		column-count: 1;
	}
}
