/**
 * Cloud Canvas Custom – responsive rules.
 * Breakpoints match the original Elementor kit: tablet ≤1024px, mobile ≤767px.
 */

/* ------------------------------------------------------------------------
 * Tablet (≤1024px)
 * --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	:root {
		--cct-fs-body: 15px;
		--cct-fs-h1: 37px;
		--cct-fs-h2: 31px;
		--cct-fs-h3: 25px;
		--cct-fs-h4: 21px;
		--cct-fs-h5: 18px;
		--cct-fs-h6: 13px;
		--cct-fs-button: 12px;
		--cct-fs-label: 13px;
		--cct-fs-input: 13px;
		--cct-fs-small: 12px;
		--cct-fs-display: 44px;
		--cct-container: 1024px;
	}

	/* Header: logo 69% / toggle 9% / button 22%. */
	.cct-header__brand { width: 69%; }
	.cct-header__nav { width: 9%; }
	.cct-header__cta { width: 22%; }

	.cct-header__logo img {
		width: auto;
		height: 49px;
	}

	.cct-header__nav {
		position: static;
	}

	.cct-nav {
		position: static;
		align-self: center;
		padding: 3px;
	}

	.cct-nav__toggle {
		position: relative;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 38px;
		margin: 0 16px 10px;
		padding: 6.25px;
		border: 0;
		border-radius: 3px;
		background: transparent;
		color: var(--cct-white);
		font-size: 25px;
	}

	.cct-nav__toggle:hover,
	.cct-nav__toggle:focus-visible {
		color: var(--cct-blue);
	}

	.cct-nav__toggle .cct-icon {
		width: 1em;
		height: 1em;
	}

	.cct-nav__icon-close,
	.cct-nav.is-open .cct-nav__icon-open {
		display: none;
	}

	.cct-nav.is-open .cct-nav__icon-close {
		display: block;
	}

	/* Full-width drop-down panel (Elementor "stretch"), positioned against the header. */
	.cct-header__inner,
	.cct-header__nav,
	.cct-nav {
		position: static;
	}

	.cct-nav::before {
		display: none;
	}

	.cct-nav__panel {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 9998;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		border-radius: 7px;
		background-color: var(--cct-dark-20);
		transition: max-height 0.3s ease;
	}

	.cct-nav.is-open .cct-nav__panel {
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}

	.cct-nav__menu {
		flex-direction: column;
		align-items: stretch;
	}

	.cct-nav__menu > li {
		flex-wrap: wrap;
	}

	.cct-nav__menu > li:not(:last-child)::after {
		display: none;
	}

	.cct-nav__menu > li > a {
		flex: 1 1 auto;
		margin: 0 !important;
		padding: 13px 20px;
		font-size: var(--cct-fs-label);
		line-height: 20px;
		border-radius: 0;
	}

	.cct-nav__menu > li > a::before {
		display: none;
	}

	.cct-nav__menu > li:first-child > a {
		border-radius: 7px 7px 0 0;
	}

	.cct-nav__menu > li:last-child > a {
		border-radius: 0 0 7px 7px;
	}

	.cct-nav__menu > li > a:hover,
	.cct-nav__menu > li > a:focus-visible,
	.cct-nav__menu > li.current-menu-item > a {
		background-color: var(--cct-blue);
	}

	.cct-nav__menu .menu-item-has-children > a::after {
		display: none;
	}

	.cct-nav__sub-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 50px;
		border: 0;
		background: transparent;
		color: var(--cct-white);
		font-size: 14px;
	}

	.cct-nav__sub-toggle[aria-expanded="true"] .cct-icon {
		transform: rotate(180deg);
	}

	.cct-nav__menu .sub-menu {
		position: static;
		flex-basis: 100%;
		width: 100%;
		min-width: 0;
		display: none;
		border-radius: 0;
		background: transparent;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.cct-nav__menu > li.is-open > .sub-menu {
		display: block;
	}

	.cct-nav__menu .sub-menu a {
		padding: 13px 20px 13px 40px;
		border-radius: 0 !important;
	}

	.cct-hero {
		margin-top: 10em;
	}

	.cct-hero__note {
		font-size: 15px;
	}

	.cct-intro {
		padding: 80px 30px;
	}

	.cct-mission {
		padding: 3em 0;
	}

	.cct-mission__content {
		padding: 2em;
	}

	.cct-mission__list {
		gap: 14px;
	}

	.cct-badge-circle {
		top: 0;
		right: 0;
		width: 175px;
		min-height: 175px;
	}

	.cct-feature__title {
		font-size: 25px;
	}

	.cct-projects-section {
		padding: 1em 0 3em;
	}

	.cct-project-card__title {
		font-size: 12px;
	}

	.cct-services {
		padding: 80px 30px 150px;
	}

	.cct-service-card__title {
		font-size: 15px;
	}

	.cct-service-card__text {
		font-size: 13px;
	}

	.cct-tabs-section {
		padding: 80px 30px;
	}

	.cct-why__inner {
		align-items: center;
	}

	.cct-fade-slider__title {
		font-size: 22px;
	}

	.cct-process {
		padding: 80px 30px;
	}

	.cct-contact__col--form {
		padding: 0;
	}

	.cct-marquee {
		height: 990px;
	}

	.cct-info-card__title {
		font-size: 22px;
	}

	.cct-form-card .cct-form__button,
	.cct-form-card button[type="submit"] {
		font-size: 16px;
	}

	.cct-faq {
		width: 80%;
	}

	.cct-footer__main {
		padding: 3em 0 2em;
	}

	.cct-footer__brand {
		width: 100%;
		align-items: center;
		padding: 1em 7em 2em;
		text-align: center;
	}

	.cct-footer__logo img {
		margin-inline: auto;
	}

	.cct-footer__col--links,
	.cct-footer__col--support,
	.cct-footer__col--newsletter {
		width: 25%;
	}

	.cct-footer__bottom {
		padding: 1em;
	}

	.cct-post-grid,
	.cct-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cct-project__layout {
		grid-template-columns: 1fr;
	}
}

/* Header sits lower than the WP admin bar on narrow screens. */
@media (max-width: 782px) {
	.admin-bar .cct-header {
		top: 46px;
	}
}

/* ------------------------------------------------------------------------
 * Mobile (≤767px)
 * --------------------------------------------------------------------- */
@media (max-width: 767px) {
	:root {
		--cct-fs-body: 14px;
		--cct-fs-h1: 30px;
		--cct-fs-h2: 24px;
		--cct-fs-h3: 20px;
		--cct-fs-h4: 18px;
		--cct-fs-h5: 16px;
		--cct-fs-h6: 12px;
		--cct-fs-button: 11px;
		--cct-fs-label: 12px;
		--cct-fs-input: 12px;
		--cct-fs-small: 11px;
		--cct-fs-display: 32px;
		--cct-fs-section: 21px;
		--cct-fs-eyebrow: 12px;
		--cct-container: 767px;
	}

	/* Header: logo 50% / toggle 50%, button hidden. */
	.cct-header__brand,
	.cct-header__nav {
		width: 50%;
	}

	.cct-header__nav {
		align-items: flex-end;
	}

	.cct-header__cta {
		display: none;
	}

	.cct-header__logo img {
		width: 100%;
		height: auto;
	}

	.cct-nav {
		align-self: flex-end;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.cct-nav::before {
		display: none;
	}

	.cct-nav__toggle {
		margin: 0 0 0 auto;
		padding: 5.5px;
		background-color: rgba(0, 0, 0, 0.05);
		font-size: 22px;
	}

	.cct-nav__panel {
		border-radius: 20px;
		background-color: var(--cct-bg);
	}

	.cct-nav__menu > li > a,
	.cct-nav__menu .sub-menu a {
		font-family: var(--cct-font-heading);
		font-size: 16px;
		font-weight: 400;
	}

	.cct-nav__menu > li:first-child > a {
		border-radius: 20px 20px 0 0;
	}

	.cct-nav__menu > li:last-child > a {
		border-radius: 0 0 20px 20px;
	}

	.cct-nav__menu > li > a:hover,
	.cct-nav__menu > li > a:focus-visible,
	.cct-nav__menu > li.current-menu-item > a,
	.cct-nav__menu .sub-menu a:hover {
		background-color: var(--cct-blue-66);
	}

	/* Hero. */
	.cct-hero {
		margin-top: 5em;
		background-position: 0 23%;
	}

	.cct-hero__inner {
		flex-wrap: wrap;
	}

	.cct-hero__side,
	.cct-hide-mobile {
		display: none !important;
	}

	.cct-hero__center {
		padding: 21px;
	}

	.cct-hero__eyebrow {
		font-size: 12px;
	}

	.cct-hero__title {
		font-size: 21px;
		line-height: 1.2em;
	}

	.cct-hero__spacer {
		height: 0 !important;
	}

	.cct-hero__mobile {
		display: flex;
		flex-direction: column;
		gap: 40px;
		width: 100%;
		padding: 10px;
	}

	.cct-hero__mobile-row {
		display: flex;
		flex-wrap: nowrap;
		gap: var(--cct-gap);
		padding: 10px;
	}

	.cct-hero__mobile-row .cct-stat {
		width: 50%;
	}

	.cct-hero__note {
		font-size: 14px;
	}

	.cct-stat__number {
		font-size: 24px;
	}

	/* Intro. */
	.cct-intro {
		padding: 50px 15px;
	}

	.cct-intro__content {
		padding: 35px 0 0;
	}

	.cct-intro__eyebrow {
		font-size: 12px;
	}

	.cct-intro__title {
		font-size: 21px;
		line-height: 1.2em;
	}

	/* Mission. */
	.cct-mission {
		padding-block: 0 2em;
	}

	.cct-mission__content,
	.cct-mission__media {
		width: 100%;
	}

	.cct-feature__title {
		font-size: 20px;
	}

	.cct-badge-circle {
		width: 150px;
		min-height: 150px;
		padding: 7px;
	}

	/* Projects. */
	.cct-projects-section {
		padding: 0 0 2em;
	}

	.cct-project-card__title {
		font-size: 11px;
	}

	.cct-projects__arrow--prev {
		left: 0;
	}

	/* Services. */
	.cct-services {
		padding: 50px 15px;
	}

	.cct-services__grid {
		padding-top: 0;
	}

	.cct-services__col {
		flex: 0 0 100%;
		padding: 15px 0;
	}

	.cct-services__col:first-child {
		padding: 10px 0 15px;
	}

	.cct-service-card--offset {
		transform: none;
	}

	.cct-service-card__title {
		font-size: 14px;
	}

	/* Tabs. */
	.cct-tabs-section {
		padding: 50px 15px;
	}

	.cct-tabs {
		flex-direction: column;
		align-items: stretch;
		gap: 30px;
	}

	.cct-tabs__nav {
		flex-basis: auto;
	}

	.cct-tabs__panel {
		padding: 0;
	}

	.cct-tabs__tab {
		min-height: 0;
		font-size: 40px;
	}

	.cct-tabs__tab .cct-icon {
		width: 40px;
		height: 40px;
	}

	/* Why. */
	.cct-why__inner {
		flex-wrap: wrap;
	}

	.cct-why__content,
	.cct-why__media {
		flex: 0 0 100%;
	}

	.cct-fade-slider {
		width: 100%;
		max-width: none;
		padding-top: 108px;
	}

	.cct-fade-slider__img {
		height: 270px;
	}

	.cct-fade-slider__content {
		margin-top: -40px;
		padding: 0 10px 60px;
	}

	.cct-fade-slider__title {
		font-size: 20px;
	}

	/* Process. */
	.cct-process {
		padding: 50px 15px;
	}

	.cct-process__grid {
		padding: 20px 0 0;
	}

	.cct-process__col {
		flex: 0 0 100%;
		padding: 0;
	}

	.cct-process__col + .cct-process__col {
		padding-top: 45px;
	}

	/* Feedback. */
	.cct-feedback__intro,
	.cct-feedback__marquee {
		width: 100%;
	}

	.cct-feedback__title {
		font-size: 24px;
	}

	.cct-feedback__text {
		font-size: 16px;
	}

	.cct-marquee {
		height: 330px;
	}

	.cct-marquee--down {
		display: none;
	}

	.cct-quote__text,
	.cct-quote__name,
	.cct-quote__role {
		font-size: 14px;
	}

	/* Contact. */
	.cct-contact__grid {
		gap: 30px;
	}

	.cct-contact__col {
		width: 100%;
		flex: 0 0 100%;
		padding: 0;
	}

	.cct-contact__col + .cct-contact__col {
		padding-top: 40px;
	}

	.cct-contact__col--form {
		padding-top: 35px;
	}

	.cct-form-card {
		padding: 0;
		border-radius: 10px;
	}

	.cct-form {
		padding: 1px;
	}

	/* FAQ. */
	.cct-faq {
		width: 100%;
	}

	.cct-faq__intro {
		font-size: 16px;
	}

	.cct-faq .wp-block-details > summary {
		font-size: 16px;
	}

	/* Footer. */
	.cct-footer__main {
		padding: 2em var(--cct-gutter);
	}

	.cct-footer__brand {
		align-items: center;
		padding: 1em;
		text-align: left;
	}

	.cct-footer__logo {
		text-align: center;
	}

	.cct-footer__logo img {
		width: 100%;
	}

	.cct-footer__text {
		align-self: stretch;
	}

	.cct-footer__col--links,
	.cct-footer__col--support {
		width: 50%;
	}

	.cct-footer__col--newsletter {
		width: 98%;
	}

	.cct-footer__bottom-inner {
		flex-direction: column;
		justify-content: space-around;
		text-align: center;
	}

	.cct-footer__payments {
		text-align: center;
	}

	.cct-footer__payments img {
		width: 48%;
	}

	.cct-page-header {
		padding: 140px 0 40px;
	}

	.cct-post-grid,
	.cct-project-grid {
		grid-template-columns: 1fr;
	}

	.cct-badge {
		right: 20px;
	}
}

/* Tablet-only hidden elements (Elementor "hide on tablet"). */
@media (min-width: 768px) and (max-width: 1024px) {
	.cct-hide-tablet {
		display: none !important;
	}
}

/* Hide / show helpers. */
@media (min-width: 768px) {
	.cct-show-mobile {
		display: none !important;
	}
}

/* Mobile stacking (Elementor wraps every row and gives children 100% width). */
@media (max-width: 767px) {
	.cct-nav__toggle {
		width: auto;
		height: auto;
		margin: 0 0 0 auto;
	}

	.cct-intro__inner,
	.cct-services__grid,
	.cct-process__grid,
	.cct-contact__grid,
	.cct-feedback__inner,
	.cct-why__inner,
	.cct-mission__inner {
		flex-wrap: wrap;
	}

	.cct-intro__media,
	.cct-intro__content {
		flex: 0 0 100%;
	}

	.cct-tabs__tab {
		min-height: 103px;
	}

	.cct-footer__main {
		padding: 2em 0;
	}

	.cct-footer__payments {
		flex: 0 0 auto;
		width: 100%;
	}
}

/* ------------------------------------------------------------------------
 * Inner pages + scroll reveal – tablet (≤ 1024px)
 * --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.cct-page-hero {
		padding: 170px var(--cct-gutter) 80px;
	}

	.cct-approach,
	.cct-service-list,
	.cct-about,
	.cct-portfolio-page,
	.cct-contact-page,
	.cct-quote-band {
		padding-block: 70px;
	}

	.cct-approach__grid,
	.cct-service-list__grid,
	.cct-about__values,
	.cct-pgrid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.cct-service-tile:last-child:nth-child(2n+1),
	.cct-approach-card:last-child:nth-child(2n+1),
	.cct-value-card:last-child:nth-child(2n+1) {
		grid-column: 1 / -1;
	}

	.cct-about__top {
		gap: 40px;
		margin-bottom: 50px;
	}

	.cct-intro--photo .cct-intro__inner {
		gap: 40px;
		padding-block: 50px;
	}

	.cct-contact-page__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
		gap: 30px;
	}

	.cct-contact-page__form {
		padding: 30px;
	}

	.cct-quote-band__text {
		font-size: 31px;
	}
}

/* ------------------------------------------------------------------------
 * Inner pages + scroll reveal – mobile (≤ 767px)
 * --------------------------------------------------------------------- */
@media (max-width: 767px) {
	/* Shorter, vertical-only movement on phones (no sideways overflow). */
	.cct-js .cct-reveal--up,
	.cct-js .cct-reveal--left,
	.cct-js .cct-reveal--right {
		translate: 0 28px;
	}

	.cct-js .cct-reveal--zoom {
		translate: 0 16px;
		scale: 0.95;
	}

	.cct-js .cct-reveal {
		transition-duration: 0.7s;
	}

	.cct-page-hero {
		padding: 140px 16px 60px;
	}

	.cct-approach,
	.cct-service-list,
	.cct-about,
	.cct-portfolio-page,
	.cct-contact-page,
	.cct-stats-band,
	.cct-quote-band,
	.cct-cta-banner,
	.cct-intro--photo {
		padding-inline: 16px;
	}

	.cct-page-hero::before {
		background-size: 44px 44px;
		-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 15%, transparent 75%);
		mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 15%, transparent 75%);
	}

	.cct-page-hero__text {
		font-size: 16px;
		line-height: 25px;
	}

	.cct-section-head {
		margin-bottom: 34px;
	}

	.cct-approach,
	.cct-service-list,
	.cct-about,
	.cct-portfolio-page,
	.cct-contact-page,
	.cct-quote-band {
		padding-block: 50px;
	}

	.cct-approach__grid,
	.cct-service-list__grid,
	.cct-about__values,
	.cct-pgrid__list,
	.cct-contact-page__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.cct-approach-card,
	.cct-service-tile,
	.cct-value-card {
		padding: 28px 22px;
	}

	.cct-approach-card__num {
		font-size: 42px;
	}

	.cct-about__top {
		flex-direction: column;
		gap: 24px;
		margin-bottom: 40px;
	}

	.cct-about__media {
		flex-basis: auto;
		width: 80%;
		align-self: center;
	}

	.cct-intro--photo .cct-intro__inner {
		padding-block: 30px;
		gap: 30px;
	}

	.cct-intro--photo.cct-intro--reverse .cct-intro__inner {
		flex-direction: column-reverse;
	}

	.cct-media-frame img {
		outline-offset: 6px;
	}

	.cct-stats-band__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.cct-stats-band .cct-stat__number {
		font-size: 30px;
	}

	.cct-quote-band__text {
		font-size: 24px;
	}

	.cct-pgrid__filters {
		gap: 8px;
		margin-bottom: 28px;
	}

	.cct-pgrid__filter {
		padding: 8px 16px;
		font-size: 12px;
	}

	.cct-pgrid__item .cct-project-card {
		min-height: 260px;
	}

	.cct-contact-page__form {
		padding: 24px 18px;
	}

	.cct-contact-page__form-title {
		font-size: 22px;
	}

	.cct-form-card--full .cct-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.cct-form-card--full .cct-form > .cct-form__field:not(.cct-form__field--wide) {
		grid-column: 1 / -1;
	}

	.cct-contact-row {
		padding: 14px;
	}

	.cct-cta-banner {
		padding-block: 50px;
	}

	.cct-cta-banner__inner {
		padding: 40px 20px;
	}
}

/* Working process – tablet and mobile.
 * The original hid the whole third process column on tablets (which also hid
 * "Step 03") and stacked the steps 1-4-2-5-3 on phones. All five steps are now
 * shown in reading order: 2 columns on tablets, 1 column on phones. */
@media (max-width: 1024px) {
	.cct-main .cct-process__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 20px;
	}

	.cct-main .cct-process__col,
	.cct-main .cct-process__col.cct-hide-tablet {
		display: contents !important;
	}

	.cct-process__col:nth-child(1) > :nth-child(1) { order: 1; }
	.cct-process__col:nth-child(2) > :nth-child(1) { order: 2; }
	.cct-process__col:nth-child(3) > :nth-child(1) { order: 3; }
	.cct-process__col:nth-child(3) > :nth-child(2) { order: 4; align-self: center; }
	.cct-process__col:nth-child(1) > :nth-child(2) { order: 5; }
	.cct-process__col:nth-child(2) > :nth-child(2) { order: 6; }
}

@media (max-width: 767px) {
	.cct-main .cct-process__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}
