/*
Theme Name: GazelleTel
Theme URI: https://www.gazelletel.com
Author: Rage Technologies, Inc.
Author URI: https://www.gazelletel.com
Description: Block theme for Gazelle Telecommunications (GazelleTel), rebuilt from the original Wix site. Includes a one-click importer (Appearance > GazelleTel Setup) that creates all pages, images, logo and the home page slider, a built-in contact form, and redirects from the old Wix URLs. Edit everything visually in the block editor.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gazelletel
Tags: block-theme, full-site-editing, business, one-column, custom-logo, custom-menu, editor-style
*/

/* ---------- Home page background (matches the Wix site) ---------- */
body.home {
	background-image: url("assets/images/hero-bg.jpg");
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: scroll;
}

/* ---------- Header ---------- */
.gt-header {
	padding-top: 14px;
	padding-bottom: 0;
	position: relative;
	z-index: 20;
}
.gt-header__inner {
	align-items: center;
	gap: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #c9ced3;
}
.gt-logo img,
.gt-header .wp-block-site-logo img {
	display: block;
	height: auto;
	max-width: 240px;
}
.gt-header .gt-logo {
	margin: 0;
	flex-shrink: 0;
}
.gt-nav {
	gap: 4px 30px;
	font-weight: 500;
}
.gt-nav .wp-block-navigation-item__content {
	color: #222;
	padding: 6px 0;
}
.gt-nav .wp-block-navigation-item__content:hover,
.gt-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}
.gt-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
	padding: 8px 0;
	min-width: 210px !important;
}
.gt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 18px;
}
.gt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--muted);
}

/* ---------- Main ---------- */
.gt-main {
	padding-top: 40px;
	padding-bottom: 64px;
}
.gt-main--home {
	padding-top: 24px;
	padding-bottom: 48px;
}
.gt-main h1.wp-block-heading:first-child {
	margin-top: 0;
}
.gt-small {
	font-size: var(--wp--preset--font-size--small);
	opacity: .85;
}

/* ---------- Home slider ---------- */
.gt-slider {
	position: relative;
}
.gt-slide h1.wp-block-heading,
.gt-slide h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--xx-large);
	margin-bottom: .5em;
}
.gt-slide p {
	font-size: var(--wp--preset--font-size--large);
}
.gt-slide .wp-block-buttons {
	margin-top: 2rem;
}
.gt-slide .wp-block-image img {
	margin-inline: auto;
}
.gt-slider.is-ready {
	display: grid;
}
.gt-slider.is-ready > .gt-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
	margin: 0 !important;
	min-height: 440px;
}
.gt-slider.is-ready > .gt-slide.is-active {
	opacity: 1;
	visibility: visible;
}
.gt-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #9aa3ab;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.gt-slider__arrow:hover,
.gt-slider__arrow:focus-visible {
	color: var(--wp--preset--color--primary);
	background: rgba(255, 255, 255, .7);
}
.gt-slider__arrow--prev { left: -64px; }
.gt-slider__arrow--next { right: -64px; }
.gt-slider__dots {
	grid-area: 2 / 1;
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 16px !important;
}
.gt-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c3c9cf;
	cursor: pointer;
}
.gt-slider__dot[aria-current="true"] {
	background: var(--wp--preset--color--primary);
}
@media (max-width: 1120px) {
	.gt-slider__arrow { display: none; }
}
@media (max-width: 781px) {
	.gt-slider.is-ready > .gt-slide { min-height: 0; }
	.gt-slide .wp-block-column:last-child { order: -1; }
	.gt-slide .wp-block-image img { max-height: 240px; width: auto; }
}

/* ---------- Feature icons & service cards ---------- */
.gt-features .gt-feature__icon img {
	height: 90px;
	width: auto;
	object-fit: contain;
}
.gt-features h4.wp-block-heading {
	margin-top: .75rem;
	margin-bottom: .25rem;
}
.gt-features p {
	font-size: var(--wp--preset--font-size--small);
}
.gt-cards .gt-card {
	background: var(--wp--preset--color--base);
	border: 1px solid #e3e7eb;
	border-radius: 8px;
	padding: 24px;
	display: flex;
	flex-direction: column;
}
.gt-cards .gt-card .wp-block-image img {
	height: 180px;
	width: 100%;
	object-fit: contain;
}
.gt-cards .gt-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 1rem;
}

/* ---------- Diagram (SIP trunking) ---------- */
.gt-diagram img {
	max-width: 620px;
	width: 100%;
	height: auto;
}

@media (max-width: 781px) {
	.gt-features.wp-block-columns {
		flex-wrap: wrap !important;
		gap: 24px 16px;
	}
	.gt-features.wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 8px) !important;
		flex-grow: 0;
	}
}

/* ---------- Call-to-action band ---------- */
.gt-cta {
	background: var(--wp--preset--color--muted);
	border-radius: 8px;
	padding: 40px 24px;
	margin-top: 48px !important;
}
.gt-cta h2 {
	margin-top: 0;
}

/* ---------- Legal pages ---------- */
ol.gt-alpha {
	list-style-type: lower-alpha;
}
ol.gt-alpha li {
	margin-bottom: .5em;
}

/* ---------- Contact form ---------- */
.gt-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}
.gt-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}
.gt-form__field--full {
	grid-column: 1 / -1;
}
.gt-form input,
.gt-form textarea {
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	padding: 10px 12px;
	border: 1px solid #b9c0c7;
	border-radius: 4px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
}
.gt-form input:focus,
.gt-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 0;
	border-color: var(--wp--preset--color--primary);
}
.gt-form textarea {
	min-height: 150px;
	resize: vertical;
}
.gt-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.gt-form button {
	justify-self: start;
	font: inherit;
	font-weight: 500;
	color: #fff;
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: 4px;
	padding: .7em 2.2em;
	cursor: pointer;
}
.gt-form button:hover,
.gt-form button:focus-visible {
	background: #d14a1f;
}
.gt-form-notice {
	padding: 14px 18px;
	border-radius: 6px;
	margin-bottom: 18px;
	background: #e7f3ea;
	color: #1d5e2c;
	font-weight: 500;
}
.gt-form-notice--error {
	background: #fdecea;
	color: #8a1f11;
}
.gt-form__captcha,
.gt-form__noscript {
	grid-column: 1 / -1;
}
.gt-form__noscript {
	margin: 0;
	font-weight: 500;
	color: #8a1f11;
}
@media (max-width: 600px) {
	.gt-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.gt-footer {
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding-top: 36px;
	padding-bottom: 22px;
	font-size: var(--wp--preset--font-size--small);
}
.gt-footer a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.gt-footer a:hover {
	color: #ffd8c9;
}
.gt-footer p {
	line-height: 2;
}
.gt-footer__address p {
	line-height: 1.6;
}
.gt-footer__copy {
	text-align: center;
	opacity: .85;
	border-top: 1px solid rgba(255, 255, 255, .25);
	padding-top: 16px;
	margin-top: 24px !important;
}

/* ---------- Mobile header ---------- */
@media (max-width: 600px) {
	.gt-logo img,
	.gt-header .wp-block-site-logo img {
		max-width: 180px;
	}
}
