/*
Theme Name: Gregory Kincaid — Customer-Led AI
Theme URI: https://gregorykincaid.com/
Author: Gregory Kincaid
Description: A refined, responsive block theme for Gregory Kincaid's customer-led AI transformation advisory, speaking, and publishing platform.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gregory-kincaid
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, custom-logo, editor-style, portfolio, business
*/

:root {
  --gk-navy: #0D3554;
  --gk-teal: #0D6468;
  --gk-blue: #3F78AD;
  --gk-gold: #D3AE57;
  --gk-pearl: #F2F0E8;
  --gk-white: #FFFFFF;
  --gk-ink: #162633;
  --gk-muted: #5C6B74;
  --gk-line: rgba(13, 53, 84, 0.16);
  --gk-shadow: 0 18px 50px rgba(13, 53, 84, 0.10);
}

html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: 0.18em; }

a:hover { text-decoration-thickness: 2px; }

.wp-site-blocks { overflow: hidden; }

.gk-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--gk-line);
  backdrop-filter: blur(14px);
}

.gk-site-title a { text-decoration: none; }

.gk-kicker {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.gk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, 76vh, 790px);
}

.gk-hero::before,
.gk-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
}

.gk-hero::before {
  width: 680px;
  height: 680px;
  right: -260px;
  top: -290px;
  background: radial-gradient(circle at 40% 40%, rgba(63,120,173,.42), rgba(13,100,104,.10) 55%, transparent 72%);
}

.gk-hero::after {
  width: 820px;
  height: 420px;
  left: -310px;
  bottom: -250px;
  border: 1px solid rgba(211,174,87,.35);
  box-shadow: 0 0 0 60px rgba(63,120,173,.06), 0 0 0 120px rgba(13,100,104,.05);
  transform: rotate(-8deg);
}

.gk-hero-grid {
  min-height: clamp(620px, 76vh, 790px);
  align-items: center;
}

.gk-hero-card {
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}

.gk-button .wp-element-button,
.wp-block-button.gk-button .wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.gk-button .wp-element-button:hover,
.wp-block-button.gk-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.gk-outline-button .wp-block-button__link {
  background: transparent !important;
  border: 1px solid currentColor;
}

.gk-stat {
  min-height: 150px;
  border-top: 2px solid var(--gk-gold);
}

.gk-card {
  height: 100%;
  border: 1px solid var(--gk-line);
  box-shadow: var(--gk-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(13,53,84,.14);
}

.gk-card-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gk-pearl);
  color: var(--gk-navy);
  font-weight: 800;
}

.gk-playbook-cover {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(13,53,84,.24);
}

.gk-playbook-cover::before {
  content: "";
  position: absolute;
  inset: auto -15% -26% -15%;
  height: 52%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(63,120,173,.86), rgba(13,100,104,.96));
  transform: rotate(-5deg);
}

.gk-playbook-cover::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: 16%;
  height: 25%;
  border: 2px solid rgba(211,174,87,.75);
  border-radius: 50%;
  transform: rotate(8deg);
}

.gk-topic {
  border-left: 3px solid var(--gk-gold);
}

.gk-quote {
  position: relative;
}

.gk-quote::before {
  content: "“";
  position: absolute;
  left: -0.06em;
  top: -0.42em;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: rgba(211,174,87,.30);
}

.gk-section-label {
  display: inline-block;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--gk-gold);
}

.gk-post-card {
  border-bottom: 1px solid var(--gk-line);
}

.gk-footer-link a { text-decoration: none; }
.gk-footer-link a:hover { text-decoration: underline; }

.wp-block-navigation__responsive-container.is-menu-open {
  padding: 2rem;
  background: var(--gk-pearl) !important;
  color: var(--gk-navy) !important;
}

@media (max-width: 781px) {
  .gk-site-header { backdrop-filter: none; }
  .gk-hero { min-height: auto; }
  .gk-hero-grid { min-height: auto; }
  .gk-hero-card { margin-top: 1.5rem; }
  .gk-stat { min-height: auto; }
  .gk-playbook-cover { min-height: 390px; }
}

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


/* Contact Form 7 — Executive Inquiry Form */
/*
 * Component styles for the Contact Form 7 markup supplied with the
 * Gregory Kincaid Executive Inquiry form. Keeping these rules in the
 * theme ensures consistent front-end and editor-canvas presentation.
 */
.gk-contact-form--v2 {
  --gk-form-navy: #0D3554;
  --gk-form-teal: #0D6468;
  --gk-form-blue: #3F78AD;
  --gk-form-gold: #D3AE57;
  --gk-form-pearl: #F2F0E8;
  --gk-form-ink: #162633;
  --gk-form-muted: #5C6B74;
  --gk-form-line: rgba(13, 53, 84, 0.18);
  color: var(--gk-form-ink);
}

.gk-contact-form--v2 *,
.gk-contact-form--v2 *::before,
.gk-contact-form--v2 *::after {
  box-sizing: border-box;
}

.gk-contact-form--v2 .gk-form-section {
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--gk-form-line);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 12px 34px rgba(13, 53, 84, 0.07);
}

.gk-contact-form--v2 .gk-form-section-heading {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13, 53, 84, 0.12);
}

.gk-contact-form--v2 .gk-form-step {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gk-form-teal);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.gk-contact-form--v2 .gk-form-section-heading h3 {
  margin: 0;
  color: var(--gk-form-navy);
  font-size: 1.12rem;
  line-height: 1.25;
}

.gk-contact-form--v2 .gk-form-section-heading p {
  margin: 0.25rem 0 0;
  color: var(--gk-form-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.gk-contact-form--v2 .gk-form-grid {
  display: grid;
  gap: 1.1rem;
}

.gk-contact-form--v2 .gk-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gk-contact-form--v2 .gk-form-field {
  margin-bottom: 1.25rem;
}

.gk-contact-form--v2 .gk-form-grid .gk-form-field {
  margin-bottom: 0;
}

.gk-contact-form--v2 label,
.gk-contact-form--v2 legend {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0;
  color: var(--gk-form-navy);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.gk-contact-form--v2 .gk-required {
  color: var(--gk-form-teal);
}

.gk-contact-form--v2 .gk-field-help {
  margin: -0.15rem 0 0.65rem;
  color: var(--gk-form-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.gk-contact-form--v2 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.gk-contact-form--v2 input[type="text"],
.gk-contact-form--v2 input[type="email"],
.gk-contact-form--v2 input[type="tel"],
.gk-contact-form--v2 input[type="url"],
.gk-contact-form--v2 input[type="date"],
.gk-contact-form--v2 select,
.gk-contact-form--v2 textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(13, 53, 84, 0.24);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--gk-form-ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(13, 53, 84, 0.03);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.gk-contact-form--v2 textarea {
  min-height: 175px;
  resize: vertical;
}

.gk-contact-form--v2 input::placeholder,
.gk-contact-form--v2 textarea::placeholder {
  color: #738089;
  opacity: 1;
}

.gk-contact-form--v2 input:focus,
.gk-contact-form--v2 select:focus,
.gk-contact-form--v2 textarea:focus {
  outline: none;
  border-color: var(--gk-form-teal);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(13, 100, 104, 0.14);
}

.gk-contact-form--v2 .gk-choice-field {
  min-width: 0;
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
}

.gk-contact-form--v2 .gk-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.gk-contact-form--v2 .gk-choice-list .wpcf7-list-item {
  display: block;
  margin: 0;
}

.gk-contact-form--v2 .gk-choice-list .wpcf7-list-item:last-child {
  grid-column: 1 / -1;
}

.gk-contact-form--v2 .gk-choice-list .wpcf7-list-item label {
  display: flex;
  min-height: 48px;
  gap: 0.7rem;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(13, 53, 84, 0.18);
  border-radius: 9px;
  background: #FFFFFF;
  color: var(--gk-form-navy);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.25;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.gk-contact-form--v2 .gk-choice-list .wpcf7-list-item label:hover {
  border-color: rgba(13, 100, 104, 0.52);
  background: rgba(242, 240, 232, 0.55);
  transform: translateY(-1px);
}

.gk-contact-form--v2 .gk-choice-list input[type="radio"] {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin: 0;
  accent-color: var(--gk-form-teal);
}

.gk-contact-form--v2 .gk-choice-list .wpcf7-list-item label:has(input:checked) {
  border-color: var(--gk-form-teal);
  background: rgba(13, 100, 104, 0.08);
  box-shadow: 0 0 0 2px rgba(13, 100, 104, 0.10);
}

.gk-contact-form--v2 .gk-choice-list .wpcf7-list-item label:focus-within {
  outline: 3px solid rgba(63, 120, 173, 0.28);
  outline-offset: 2px;
}

.gk-contact-form--v2 .gk-consent {
  margin: 1rem 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(13, 53, 84, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.70);
  color: var(--gk-form-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.gk-contact-form--v2 .gk-consent .wpcf7-list-item {
  display: block;
  margin: 0;
}

.gk-contact-form--v2 .gk-consent label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.gk-contact-form--v2 .gk-consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--gk-form-teal);
}

.gk-contact-form--v2 .gk-consent a {
  color: var(--gk-form-navy);
  font-weight: 700;
}

.gk-contact-form--v2 .gk-submit-row {
  position: relative;
  margin-top: 1rem;
}

.gk-contact-form--v2 .gk-form-submit {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 7px;
  background: var(--gk-form-teal);
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.gk-contact-form--v2 .gk-form-submit:hover {
  transform: translateY(-2px);
  background: #0A5559;
  box-shadow: 0 12px 30px rgba(13, 53, 84, 0.18);
}

.gk-contact-form--v2 .gk-form-submit:focus-visible {
  outline: 3px solid rgba(63, 120, 173, 0.38);
  outline-offset: 3px;
}

.gk-contact-form--v2 .gk-form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.gk-contact-form--v2 .gk-submit-row .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  margin: -12px 0 0;
}

.gk-contact-form--v2 .gk-form-note {
  margin: 0.7rem 0 0;
  color: var(--gk-form-muted);
  font-size: 0.76rem;
  text-align: center;
}

.gk-contact-form--v2 .wpcf7-not-valid {
  border-color: #A53A34 !important;
}

.gk-contact-form--v2 .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: #8F2924;
  font-size: 0.78rem;
  line-height: 1.4;
}

.gk-contact-form--v2 .wpcf7-response-output {
  margin: 1.2rem 0 0 !important;
  padding: 0.9rem 1rem !important;
  border-width: 1px !important;
  border-radius: 9px;
  background: #FFFFFF;
  font-size: 0.86rem;
  line-height: 1.5;
}

.gk-contact-form--v2 form.sent .wpcf7-response-output,
.wpcf7 form.sent .gk-contact-form--v2 + .wpcf7-response-output {
  border-color: var(--gk-form-teal) !important;
}

@media (max-width: 760px) {
  .gk-contact-form--v2 .gk-form-grid--two,
  .gk-contact-form--v2 .gk-choice-list {
    grid-template-columns: 1fr;
  }

  .gk-contact-form--v2 .gk-choice-list .wpcf7-list-item:last-child {
    grid-column: auto;
  }

  .gk-contact-form--v2 .gk-form-grid {
    gap: 1rem;
  }

  .gk-contact-form--v2 .gk-form-grid .gk-form-field {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-contact-form--v2 *,
  .gk-contact-form--v2 *::before,
  .gk-contact-form--v2 *::after {
    transition-duration: 0.01ms !important;
  }
}
