/*
Theme Name: JEC Property Consultants
Theme URI: https://www.jec.ky/
Author: JEC Property Consultants Ltd.
Author URI: https://www.jec.ky/
Description: Bespoke WordPress theme for JEC Property Consultants Ltd. — Chartered Surveyors in the Cayman Islands since 1984. Editorial layout with a teal / charcoal brand palette, projects custom post type, light & dark mode and built-in Open Graph / Twitter social graph metadata.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jec
Tags: business, portfolio, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks, full-width-template, two-columns, right-sidebar
*/

/* --------------------------------------------------------------------------
   1. Design tokens
   Brand: teal #66BCAC · charcoal #1C1E21 · white #FFFFFF
   -------------------------------------------------------------------------- */

:root {
  --radius: 0.25rem;

  --background: #ffffff;
  --foreground: #1c1e21;
  --card: #ffffff;
  --card-foreground: #1c1e21;
  --primary: #66bcac;
  --primary-foreground: #1c1e21;
  --secondary: #f1f6f5;
  --secondary-foreground: #1c1e21;
  --muted: #f3f5f6;
  --muted-foreground: #66696d;
  --accent: #66bcac;
  --accent-foreground: #1c1e21;
  --destructive: #e7000b;
  --destructive-foreground: #ffffff;
  --border: #e1e3e5;
  --input: #dcdee0;
  --ring: #66bcac;

  --charcoal: #1c1e21;
  --charcoal-foreground: #ffffff;
  --charcoal-deep: #111315;
  --sand: #f7fbfa;

  --overlay: rgba(28, 30, 33, 0.55);
  --hairline: rgba(28, 30, 33, 0.15);

  --gradient-teal: linear-gradient(135deg, #66bcac 0%, #9fd0c3 100%);
  --shadow-soft: 0 1px 2px rgba(28, 30, 33, 0.06), 0 8px 24px -12px rgba(28, 30, 33, 0.12);
  --shadow-lift: 0 24px 60px -30px rgba(28, 30, 33, 0.28);

  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  --container: 72rem;
  --gutter: 1.5rem;
}

.dark {
  --background: #1c1e21;
  --foreground: #fafafa;
  --card: #252729;
  --card-foreground: #fafafa;
  --primary: #66bcac;
  --primary-foreground: #1c1e21;
  --secondary: #2c2e30;
  --secondary-foreground: #fafafa;
  --muted: #2c2e30;
  --muted-foreground: #a2a5a8;
  --accent: #66bcac;
  --accent-foreground: #1c1e21;
  --border: rgba(255, 255, 255, 0.12);
  --input: rgba(255, 255, 255, 0.16);
  --ring: #66bcac;

  --charcoal: #121416;
  --charcoal-foreground: #fafafa;
  --charcoal-deep: #0e1012;
  --sand: #252729;

  --overlay: rgba(14, 16, 18, 0.6);
  --hairline: rgba(255, 255, 255, 0.15);

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  cursor: pointer;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

h4,
h5,
h6 {
  font-weight: 500;
  margin: 0;
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.jec-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.jec-section {
  padding-block: 6rem;
}

.jec-section--tight {
  padding-block: 5rem;
}

.jec-section--sand {
  background-color: var(--sand);
}

.jec-section--muted {
  background-color: var(--muted);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   4. Typographic utilities
   -------------------------------------------------------------------------- */

.jec-eyebrow {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-foreground);
  margin: 0;
}

.jec-eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}

.jec-eyebrow--faint {
  color: rgba(255, 255, 255, 0.6);
}

.jec-rule::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--primary);
  margin-bottom: 1.25rem;
}

.jec-h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1.05;
}

.jec-h1--page {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
  line-height: 1.1;
}

.jec-h2 {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.25rem);
}

.jec-h3 {
  font-size: 1.875rem;
}

.jec-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.jec-prose {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.jec-prose > * + * {
  margin-top: 1.5rem;
}

.jec-measure {
  max-width: 48rem;
}

.jec-measure-lg {
  max-width: 56rem;
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */

.jec-btn,
.jec-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.jec-btn {
  padding: 1rem 1.5rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jec-btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.jec-btn--primary:hover {
  background-color: var(--charcoal);
  color: var(--charcoal-foreground);
}

.jec-btn--outline {
  border-color: var(--foreground);
  color: var(--foreground);
}

.jec-btn--outline:hover {
  background-color: var(--foreground);
  color: var(--background);
}

.jec-btn--charcoal {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.jec-btn--charcoal:hover {
  background-color: var(--charcoal);
  color: var(--charcoal-foreground);
}

.jec-btn--teal-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.jec-btn--teal-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.jec-btn--sm {
  padding: 0.625rem 1.25rem;
}

.jec-link-arrow {
  color: var(--foreground);
}

.jec-link-arrow:hover {
  color: var(--foreground);
}

.jec-link-arrow svg {
  color: var(--primary);
  transition: transform 0.2s ease;
}

.jec-link-arrow:hover svg,
.jec-card:hover .jec-link-arrow svg,
.jec-service:hover .jec-link-arrow svg {
  transform: translateX(0.25rem);
}

.jec-link-quiet {
  color: var(--muted-foreground);
}

.jec-link-quiet:hover {
  color: var(--foreground);
}

/* --------------------------------------------------------------------------
   6. Site header
   -------------------------------------------------------------------------- */

.jec-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--background) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@supports not (background-color: color-mix(in srgb, red 50%, transparent)) {
  .jec-header {
    background-color: var(--background);
  }
}

.jec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.jec-brand {
  display: flex;
  align-items: center;
}

.jec-brand img {
  height: 2.5rem;
  width: auto;
}

.jec-brand__logo--dark {
  display: none;
}

.dark .jec-brand__logo--light {
  display: none;
}

.dark .jec-brand__logo--dark {
  display: block;
}

.jec-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.jec-nav__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jec-nav__menu a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.jec-nav__menu a:hover,
.jec-nav__menu .current-menu-item > a,
.jec-nav__menu .current_page_item > a,
.jec-nav__menu .current-menu-ancestor > a,
.jec-nav__menu .current-page-ancestor > a {
  color: var(--foreground);
}

.jec-nav__menu ul {
  display: none;
}

.jec-theme-toggle {
  color: var(--muted-foreground);
  display: inline-flex;
  transition: color 0.2s ease;
}

.jec-theme-toggle:hover {
  color: var(--foreground);
}

.jec-theme-toggle .jec-icon-sun {
  display: none;
}

.dark .jec-theme-toggle .jec-icon-sun {
  display: block;
}

.dark .jec-theme-toggle .jec-icon-moon {
  display: none;
}

.jec-header__mobile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.jec-burger {
  color: var(--foreground);
  display: inline-flex;
}

.jec-burger .jec-icon-close {
  display: none;
}

.jec-header.is-open .jec-burger .jec-icon-close {
  display: block;
}

.jec-header.is-open .jec-burger .jec-icon-menu {
  display: none;
}

.jec-mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 0.5rem var(--gutter) 1rem;
}

.jec-header.is-open .jec-mobile-nav {
  display: block;
}

.jec-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jec-mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--foreground);
}

.jec-mobile-nav ul ul a {
  padding-left: 1rem;
  color: var(--muted-foreground);
}

@media (min-width: 860px) {
  .jec-nav {
    display: flex;
  }

  .jec-header__mobile,
  .jec-mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.jec-hero {
  position: relative;
}

.jec-hero__media {
  width: 100%;
  height: 68vh;
  min-height: 440px;
  object-fit: cover;
}

.jec-hero--compact .jec-hero__media {
  height: 62vh;
  min-height: 360px;
}

.jec-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay);
}

.jec-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.jec-hero__inner {
  width: 100%;
  padding-bottom: 3.5rem;
}

.jec-hero__title {
  margin-top: 1rem;
  max-width: 48rem;
  color: #ffffff;
}

.jec-hero__text {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.jec-hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.jec-page-banner {
  width: 100%;
  height: 46vh;
  min-height: 300px;
  object-fit: cover;
}

.jec-page-banner--project {
  height: 52vh;
  min-height: 320px;
}

/* --------------------------------------------------------------------------
   8. Grids & cards
   -------------------------------------------------------------------------- */

.jec-split {
  display: grid;
  gap: 3rem;
}

.jec-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.jec-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.jec-services {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.jec-service {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.jec-service__index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--primary);
}

.jec-service__title {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.jec-service__text {
  margin-top: 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.jec-service__link {
  margin-top: 1.5rem;
}

.jec-cards {
  display: grid;
  gap: 2rem;
}

.jec-cards--3 {
  margin-top: 3.5rem;
}

.jec-cards--wide {
  gap: 3rem;
}

.jec-card {
  display: block;
}

.jec-card__frame {
  overflow: hidden;
}

.jec-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.jec-card:hover .jec-card__image {
  transform: scale(1.03);
}

.jec-card__sector {
  margin-top: 1.25rem;
  color: color-mix(in srgb, var(--foreground) 55%, transparent);
}

.jec-card__title {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.jec-card__title--sm {
  font-size: 1.25rem;
}

.jec-card__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.jec-card__more {
  margin-top: 1rem;
}

/* Sector list */
.jec-sectors {
  display: grid;
  gap: 1rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jec-sectors li {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   9. Services page list
   -------------------------------------------------------------------------- */

.jec-service-list {
  border-top: 1px solid var(--border);
}

.jec-service-row {
  display: grid;
  gap: 1.5rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--border);
}

.jec-service-row__index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--primary);
}

.jec-service-row__title {
  font-size: 1.5rem;
  line-height: 1.2;
}

.jec-service-row__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.jec-callout {
  margin-top: 4rem;
  background-color: var(--sand);
  padding: 2.5rem;
}

.jec-callout h2 {
  font-size: 1.875rem;
}

.jec-callout p {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.jec-callout .jec-btn {
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   10. Project detail
   -------------------------------------------------------------------------- */

.jec-project-head {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.jec-project-head__title {
  margin-top: 0.75rem;
  max-width: 48rem;
}

.jec-project-head__summary {
  margin-top: 1.5rem;
  max-width: 42rem;
}

.jec-project-meta {
  display: grid;
  gap: 1.5rem;
  font-size: 0.875rem;
  margin: 0;
}

.jec-project-meta dt {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-foreground);
}

.jec-project-meta dd {
  margin: 0.25rem 0 0;
  color: var(--foreground);
}

.jec-project-gallery {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.jec-project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.jec-back-link {
  color: var(--muted-foreground);
}

.jec-back-link:hover {
  color: var(--foreground);
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */

.jec-form-field + .jec-form-field {
  margin-top: 1.5rem;
}

.jec-form-field label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-foreground);
}

.jec-input,
.jec-textarea {
  margin-top: 0.5rem;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--input);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--foreground);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.jec-input:focus,
.jec-textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.jec-textarea {
  resize: vertical;
  min-height: 7rem;
}

.jec-form__submit {
  margin-top: 2rem;
}

.jec-honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jec-notice {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border-left: 2px solid var(--primary);
  background-color: var(--sand);
  color: var(--foreground);
}

.jec-notice--error {
  border-left-color: var(--destructive);
}

.jec-contact-aside {
  background-color: var(--sand);
  padding: 2.5rem;
  font-size: 0.875rem;
}

.jec-contact-aside > * + * {
  margin-top: 2rem;
}

.jec-contact-aside__row {
  display: flex;
  gap: 0.75rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.jec-contact-aside__row svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}

.jec-contact-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.jec-contact-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jec-contact-links svg {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.jec-footer {
  background-color: var(--charcoal);
  color: var(--charcoal-foreground);
}

.jec-footer__inner {
  padding-block: 4rem;
}

.jec-footer__grid {
  display: grid;
  gap: 3rem;
}

.jec-footer__title {
  font-size: 1.5rem;
  line-height: 1.4;
}

.jec-subscribe {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  max-width: 24rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

.jec-subscribe input[type="email"] {
  width: 100%;
  background: transparent;
  border: 0;
  font-size: 0.875rem;
  color: #ffffff;
}

.jec-subscribe input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.jec-subscribe input[type="email"]:focus {
  outline: none;
}

.jec-subscribe button {
  margin-left: 1rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.jec-footer__block {
  font-size: 0.875rem;
  line-height: 1.75;
}

.jec-footer__links {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.jec-footer__links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jec-footer__links svg {
  color: var(--primary);
}

.jec-footer__cta {
  display: inline-block;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.jec-footer__address {
  color: rgba(255, 255, 255, 0.75);
}

.jec-footer__bottom {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.jec-footer__note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   13. Editorial / blog & WordPress core classes
   -------------------------------------------------------------------------- */

.jec-entry {
  padding-block: 5rem;
}

.jec-entry__meta {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.jec-entry__thumb {
  margin-top: 2.5rem;
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
}

.jec-entry__content {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.jec-entry__content > * + * {
  margin-top: 1.5rem;
}

.jec-entry__content h1,
.jec-entry__content h2,
.jec-entry__content h3,
.jec-entry__content h4 {
  color: var(--foreground);
  margin-top: 2.5rem;
}

.jec-entry__content h2 {
  font-size: 1.875rem;
}

.jec-entry__content h3 {
  font-size: 1.375rem;
}

.jec-entry__content a {
  color: var(--foreground);
  border-bottom: 1px solid var(--primary);
}

.jec-entry__content ul,
.jec-entry__content ol {
  padding-left: 1.25rem;
}

.jec-entry__content li + li {
  margin-top: 0.5rem;
}

.jec-entry__content blockquote {
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--foreground);
}

.jec-entry__content img,
.jec-entry__content figure {
  margin-inline: 0;
}

.jec-entry__content code,
.jec-entry__content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  background: var(--muted);
}

.jec-entry__content pre {
  padding: 1.25rem;
  overflow-x: auto;
}

.jec-entry__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.jec-entry__content th,
.jec-entry__content td {
  border: 1px solid var(--border);
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.jec-archive-list {
  display: grid;
  gap: 3rem;
  margin-top: 3.5rem;
}

.jec-archive-item {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.jec-archive-item h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.jec-pagination {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.jec-pagination .page-numbers {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
}

.jec-pagination .page-numbers.current {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.alignnone { margin: 1.5rem 0; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.alignwide { width: min(100%, 64rem); }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }

.jec-comments {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.jec-comments ol {
  list-style: none;
  padding: 0;
}

.jec-comments .comment-body {
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
  font-size: 0.875rem;
}

.jec-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--gutter);
}

.jec-404__code {
  font-size: 4.5rem;
  line-height: 1;
  font-family: var(--font-display);
}

/* --------------------------------------------------------------------------
   13b. Page heads, spacing utilities and odds and ends
   -------------------------------------------------------------------------- */

.jec-page-head {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.jec-page-head--contact {
  padding-bottom: 6rem;
}

.jec-page-head__title {
  margin-top: 1rem;
  max-width: 48rem;
}

.jec-about-body {
  max-width: 48rem;
  margin-inline: auto;
}

.jec-gallery-section {
  padding-bottom: 6rem;
}

.jec-contact-grid {
  margin-top: 4rem;
}

.jec-mt-sm {
  margin-top: 1.25rem;
}

.jec-mt-lg {
  margin-top: 2rem;
}

.jec-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.jec-searchform {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  max-width: 32rem;
}

.jec-searchform .jec-input {
  margin-top: 0;
}

.jec-footer__nav {
  margin-top: 3rem;
}

.jec-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.jec-post-nav {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  font-size: 0.9375rem;
}

.jec-post-nav .nav-links {
  display: grid;
  gap: 1rem;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  height: 2.5rem;
  width: auto;
}

.jec-service-list .jec-service-row:last-child {
  border-bottom: 0;
}

.dark .jec-btn--charcoal {
  border-color: var(--primary);
  color: var(--primary);
}

.dark .jec-btn--charcoal:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.dark .jec-btn--primary:hover {
  background-color: var(--foreground);
  color: var(--background);
}

.jec-card__frame {
  display: block;
}

.jec-project-body > * + * {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .jec-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jec-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jec-cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .jec-sectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .jec-split--about {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .jec-split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .jec-split--contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

  .jec-split--project {
    grid-template-columns: 0.6fr 1.4fr;
    gap: 3.5rem;
  }

  .jec-service-row {
    grid-template-columns: auto 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }

  .jec-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .jec-split--even .jec-split__media {
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .jec-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jec-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jec-cards--projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .jec-section {
    padding-block: 4rem;
  }

  .jec-section--tight {
    padding-block: 3.5rem;
  }

  .jec-page-head {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .jec-page-head--contact {
    padding-bottom: 4rem;
  }

  .jec-gallery-section {
    padding-bottom: 4rem;
  }

  .jec-contact-grid {
    margin-top: 2.5rem;
  }

  .jec-callout,
  .jec-contact-aside {
    padding: 1.75rem;
  }

  .jec-searchform {
    flex-direction: column;
    align-items: stretch;
  }
}

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

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */

@media print {
  .jec-header,
  .jec-footer,
  .jec-hero__overlay,
  .jec-theme-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
