/* Contact template (page-templates/tmpl-contact.php). Values follow the
   original Elementor page: 400px hero, 60px section spacing, form box 70%
   wide with a 2px blue border, office cards with 15px radius. */

/* Hero */
.page-hero { display: flex; align-items: center; min-height: 400px; padding-block: 60px; }
.page-hero__inner { width: 100%; }
.page-hero__title { font-size: 54px; line-height: 62px; }
.page-hero__text { max-width: none; margin-top: 30px; }

/* Shared section heading */
.ct-head { margin-bottom: 40px; text-align: center; }
.ct-head__title { text-transform: capitalize; } /* "Drop Us A Message", as live. */
.ct-head__text { margin: 20px 0 0; color: var(--gd-text-80); font: 500 18px/30px var(--gd-font); }

/* Drop us a message */
.ct-message { padding-block: 60px; scroll-margin-top: 80px; }
.ct-message__form {
	width: 70%;
	margin-inline: auto;
	padding: 30px;
	border: 2px solid rgba(27, 68, 175, .5);
	border-radius: 15px;
}
.ct-message__form .gd-enquiry__field { margin-bottom: 23px; }
.ct-message__form textarea { height: 150px; min-height: 150px; } /* As live. */
.ct-message__form button.gd-enquiry__submit { font-weight: 400; letter-spacing: 3px; }

/* Offices */
.ct-offices { padding-block: 20px 60px; } /* 80px below the form, as live. */
.ct-offices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1025px) { .ct-offices__grid { padding-inline: 10px; } } /* Cards 413px wide, as live. */
.ct-offices__grid--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.ct-offices__grid--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.ct-offices__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-office {
	padding: 50px 45px 35px;
	border: 1px solid rgba(27, 68, 175, .3);
	border-radius: 15px;
	background: #fff;
	text-align: center;
	transition: background-color .3s;
}
.ct-office:hover { background: #f0f1fd; } /* #353FE8 at 10% over white. */
.ct-office__flag { display: block; width: 54px; height: auto; margin: 0 auto 20px; }
.ct-office__name { margin: 0 0 10px; color: var(--gd-ink); font: 700 22px/30px var(--gd-font); }
.ct-office__subtitle { margin: 0 0 6px; color: var(--gd-muted); font: 600 18px/30px var(--gd-font); }
.ct-office__address { margin: 0; color: var(--gd-muted); font: 500 18px/30px var(--gd-font); font-style: normal; overflow-wrap: anywhere; } /* 18/30, as live. */

/* Closing band */
.ct-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 100px;
	background: #01064f;
	color: #fff;
	text-align: center;
}
.ct-cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ct-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(1, 6, 79, .83); }
.ct-cta__title { max-width: 1280px; margin: 0 auto 30px; color: var(--gd-orange); font: 700 54px/80px var(--gd-font); letter-spacing: .32px; text-transform: capitalize; }
.ct-cta__text { max-width: 840px; margin: 0 auto 40px; color: #fff; font: 500 18px/30px var(--gd-font); }
.ct-cta__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 40px; margin: 0; padding: 0; list-style: none; }
.ct-cta__contact a { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 500 22px/32px var(--gd-font); text-decoration: none; }
.ct-cta__contact a:hover span { text-decoration: underline; }
.ct-cta__contact svg { flex: none; width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 1024px) {
	.page-hero { min-height: 320px; }
	.page-hero__title { font-size: 36px; line-height: 50px; }
	.ct-message__form { width: 90%; }
	.ct-offices__grid,
	.ct-offices__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ct-office { padding: 30px 20px 25px; }
	.ct-cta__title { font-size: 36px; line-height: 50px; }
}
@media (max-width: 767px) {
	.page-hero { min-height: 0; padding-block: 50px; }
	.page-hero__inner { padding-inline: 10px; }
	.page-hero__title { font-size: 36px; line-height: 50px; }
	.page-hero__text { margin-top: 20px; font-size: 18px; line-height: 36px; } /* As live. */
	.ct-head { margin-bottom: 20px; }

	.ct-message { padding-block: 40px 0; }
	.ct-message__form { width: 100%; padding: 20px; }
	.ct-offices { padding-block: 30px 40px; }
	.ct-offices__grid,
	.ct-offices__grid--2,
	.ct-offices__grid--4 { grid-template-columns: 1fr; }
	.ct-cta { padding-block: 50px; }
	.ct-cta__title { font-size: 30px; line-height: 42px; }
	.ct-cta__text { margin-bottom: 30px; font-size: 18px; line-height: 36px; } /* As live. */
	.ct-cta__contact { flex-direction: column; align-items: center; }
	.ct-cta__contact a { font-size: 18px; }
}

/* Type details as live (letter-spacing / title case). */
.ct-office__name { letter-spacing: .32px; text-transform: capitalize; }

/* Tablet (768-1024), as live: offices stay 3 per row. */
@media (min-width: 768px) and (max-width: 1024px) {
	.ct-offices__grid:not(.ct-offices__grid--1, .ct-offices__grid--2, .ct-offices__grid--4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ct-office { padding-inline: 12px; }
}
/* Office address / subtitle: 80% ink, as live. */
.ct-office__address,
.ct-office__subtitle { color: var(--gd-text-80); }