/*
Theme Name: T3 Services Group
Theme URI: https://t3servicesgroup.com/
Author: SimpleBlend
Description: Custom theme for T3 Services Group. Converted from the Direction C static build. Content is managed with ACF Pro; forms run on Gravity Forms.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: t3
Tags: custom-theme, one-column, custom-menu, featured-images
*/

/*
 * Presentation lives in assets/css/index-c.css and assets/css/pages.css,
 * enqueued from inc/enqueue.php. This file exists for the theme header and
 * for WordPress-specific overrides that the static build never needed.
 */

/* --- WordPress core classes ------------------------------------------- */
.alignnone { margin: 1.5rem 0; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; color: var(--slate); margin-top: .5rem; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal;
}
.prose img { max-width: 100%; height: auto; }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* --- Gravity Forms mapped onto the build's form system ----------------- */
.form-card .gform_wrapper { margin: 0; }
.form-card .gform_fields {
  display: grid; gap: var(--s-2);
  grid-template-columns: 1fr;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 620px) {
  .form-card .gform_fields { grid-template-columns: 1fr 1fr; }
}
.form-card .field { grid-column: 1 / -1; margin-bottom: 0; }
@media (min-width: 620px) {
  .form-card .field.t3-half { grid-column: span 1; }
}
.form-card .field--hidden,
.form-card .gform_hidden,
.form-card .gfield_visibility_hidden { display: none; }

.form-card .gfield_label { font-size: .9375rem; font-weight: 600; color: var(--navy); }
.form-card .ginput_container { display: grid; }
.form-card .gfield_description,
.form-card .gform_fileupload_rules { font-size: var(--fs-caption); color: var(--slate); }

/* Gravity Forms prints its own required indicator; colour it like the build's
   .req asterisk rather than rewriting the markup. */
.form-card .gfield_required { color: var(--orange-deep); font-weight: 600; }
.form-card .gfield_required_text { display: none; }
.form-card .gform_heading { margin: 0; }
.form-card .gform_required_legend { display: none; }

.form-card .field.has-error input,
.form-card .field.has-error select,
.form-card .field.has-error textarea { border-color: #C0392B; }
.form-card .validation_message,
.form-card .gfield_validation_message {
  font-size: var(--fs-caption); font-weight: 500; color: #A62B1E; margin-top: .25rem;
}
.form-card .gform_validation_errors {
  margin: 0 0 var(--s-2); padding: .875rem 1rem;
  border: 1.5px solid #C0392B; border-radius: var(--radius);
  background: #FDF3F2; color: #A62B1E; font-size: .9375rem;
}
.form-card .gform_validation_errors h2 { font-size: 1rem; margin: 0 0 .25rem; color: #A62B1E; }
.form-card .gform_validation_errors ol { margin: 0; padding-left: 1.25rem; }

.form-card .gform_footer { margin-top: var(--s-1); }
.form-card .gform_confirmation_message {
  padding: 1rem 1.125rem;
  border: 1.5px solid var(--orange-cta); border-radius: var(--radius);
  background: #FFF6F1; color: var(--navy);
}
.form-card .gform_ajax_spinner { margin-left: .75rem; vertical-align: middle; }

/* Honeypot must stay in the DOM but out of sight and out of the tab order. */
.form-card .gform_validation_container { position: absolute !important; left: -9999px; }
