/*
Theme Name: MS Park Construction
Theme URI: https://mspark.com/
Author: Geeks360
Author URI: https://geeks360.net/
Description: Custom WordPress theme for MS Park Construction (a division of PNK Group). The page is built from ACF Pro Flexible Content sections — each <section> maps to one ACF layout rendered from /layouts. Global content (logos, footer contacts) is managed on the ACF Options page; menus are output with wp_nav_menu().
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: mspark-pnk
*/

/* ==========================================================================
   Fonts — bundled locally in /assets/fonts (paths resolve relative to this
   file at the theme root, which is exactly where WordPress loads style.css).
   ========================================================================== */
@font-face {
  font-family: "PF DinText Pro";
  src: url("assets/fonts/PFDinTextPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PF DinText Pro";
  src: url("assets/fonts/PFDinTextPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PF_DinText_Pro";
  src: url("assets/fonts/PFDinTextPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PF_DinText_Pro";
  src: url("assets/fonts/PFDinTextPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter_Tight";
  src: url("assets/fonts/InterTight-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design tokens — single source of truth used throughout the stylesheet.
   ========================================================================== */
:root {
  /* Colour palette */
  --paper: #e2e1e0;
  --ink: #212121;
  --gray: #54565a;
  --gray-dark: #46484b;
  --gray-mid: #6c6c6e;
  --line: rgba(84, 86, 90, 0.18);
  --white: #fff;

  /* Surfaces */
  --header-bg: rgba(84, 86, 90, 0.82);
  --projects-bg: var(--gray);
  --progress-bg: var(--gray-mid);
  --contact-bg: #383b3d;
  --footer-bg: var(--gray);
  --footer-rule: rgba(255, 255, 255, 0.16);
  --footer-label: rgba(255, 255, 255, 0.42);

  /* Typography */
  --font-display: "PF_DinText_Pro", "PF DinText Pro", Arial, sans-serif;
  --font-body: "Inter_Tight", "Inter Tight", Arial, sans-serif;

  /* Layout */
  --canvas: 1920px;
  --content: 1818px;
  --pad: clamp(24px, 2.65vw, 51px);
  --header-h: 80px;

  /* Motion */
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  /* min-width: var(--canvas); */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.nav,
.button,
.eyebrow {
  font-family: var(--font-display);
}

/* ==========================================================================
   Header — flex layout so the menu can be driven by wp_nav_menu() with any
   number of items (replaces the original fixed nth-child positioning).
   ========================================================================== */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 51px;
  background: var(--header-bg);
  color: var(--white);
}

.nav {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.14;
  letter-spacing: -0.18px;
  text-transform: uppercase;
  font-synthesis: none;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-left ul {
  gap: 46px;
}

.nav-right ul {
  gap: 32px;
}

.nav a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  transition: opacity var(--ease), color var(--ease);
}

.nav a:hover {
  opacity: 0.68;
}

.menu-toggle {
  display: none;
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: 272px;
  height: 34px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.brand img {
  width: 272px;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* width: var(--canvas); */
  height: 980px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  height: 980px;
  background: #fff;
}

.hero-grid img {
  position: absolute;
  object-fit: cover;
  transition: filter 220ms ease;
}

.hero-grid img:nth-child(1) {
  left: -242px;
  top: 79px;
  width: 919px;
  height: 972px;
}

.hero-grid img:nth-child(2) {
  left: 317px;
  top: 79px;
  width: 842px;
  height: 1136px;
}

.hero-grid img:nth-child(3) {
  left: 862px;
  top: -3px;
  width: 712px;
  height: 1006px;
}

.hero-grid img:nth-child(4) {
  left: 1387px;
  top: -3px;
  width: 712px;
  height: 1006px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 38, 0.37);
}

.hero-actions {
  position: relative;
  z-index: 2;
  height: 980px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 73px;
  padding: 0 40px;
  font-size: 30px;
  line-height: 1.11;
  text-transform: capitalize;
  transition: background-color var(--ease), color var(--ease), transform var(--ease);
}

.button span:first-child {
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--white);
  color: var(--gray);
}

.button-light:hover {
  background: #f0f0f0;
}

.button-dark {
  background: var(--gray);
  color: var(--white);
}

.button-dark:hover {
  background: #3f4145;
}

.about-learn-button {
  position: relative;
  top: -3px;
  width: 239px;
  height: 77px;
  min-height: 77px;
  margin-top: 32px;
  padding: 0;
  gap: 10px;
}

.about-learn-button .arrow {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-size: 20px;
  line-height: 12px;
  transform: translateY(1px);
  transform: rotate(-45deg);
}

.button-outline {
  margin-top: 46px;
  min-height: 77px;
  border: 1px solid var(--gray);
  color: var(--gray);
}

.button-outline:hover {
  background: var(--gray);
  color: var(--white);
}

.arrow {
  font-family: var(--font-body);
  line-height: 1;
  transform: rotate(-45deg);
}

.hero-subcontractor {
  position: absolute;
  left: 51px;
  bottom: 119px;
  width: 408px;
  height: 77px;
}

.hero-project-card {
  position: absolute;
  right: 64px;
  bottom: 109px;
  width: 329px;
  height: 172px;
  color: var(--gray);
  background: var(--paper);
  clip-path: polygon(0 0, 281px 0, 100% 48px, 100% 100%, 0 100%);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.06;
  text-transform: capitalize;
  transition: transform var(--ease), opacity var(--ease);
}

.hero-project-card:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.hero-project-card img {
  position: absolute;
  left: 8px;
  top: 11px;
  width: 198px;
  height: 150px;
  object-fit: cover;
  z-index: 1;
}

.hero-project-card::before {
  content: none;
}

.hero-project-card span {
  position: absolute;
  z-index: 2;
}

.hero-project-card span:first-of-type {
  left: 220px;
  top: 111px;
  width: 94px;
}

.hero-project-card .arrow {
  left: 220px;
  top: 91px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-section {
  padding: 0;
  /* width: var(--canvas); */
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 655px;
}

.about-row-first {
  min-height: 637px;
}

.about-image {
  margin: 0;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, filter 220ms ease;
}

.about-image:hover img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
}

.about-copy-left {
  padding-left: 51px;
  padding-right: 61px;
}

.about-copy-right {
  padding-left: 57px;
  padding-right: 51px;
}

.about-copy h1,
.about-copy h2,
.projects-section h2,
.progress-section h2,
.contact-panel h2 {
  font-weight: 400;
  font-size: clamp(42px, 2.76vw, 53px);
  line-height: 1.11;
  text-transform: capitalize;
  letter-spacing: 0;
}

.about-copy h1 {
  max-width: 814px;
}

.about-copy p {
  max-width: 848px;
  margin-top: 20px;
  font-size: 22px;
  line-height: 1.5;
}

/* Allow WYSIWYG output (multiple paragraphs) inside the about column. */
.about-copy .about-text > * + * {
  margin-top: 20px;
}

/* ==========================================================================
   Partners
   ========================================================================== */
.partners-section {
  /* width: var(--canvas); */
  padding: 71px 0 136px;
  background: var(--white);
  text-align: center;
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 77px;
}

.photo-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 26px;
  padding: 0;
  margin-left: 0;
  will-change: transform;
  scrollbar-width: none;
}

.photo-track::-webkit-scrollbar,
.progress-track::-webkit-scrollbar {
  display: none;
}

.photo-track img {
  flex: 0 0 auto;
  width: 386px;
  height: 425px;
  object-fit: cover;
  transition: transform 350ms ease, filter 220ms ease;
}

.photo-track img:hover {
  transform: scale(1.018);
  filter: saturate(1.05);
}

.carousel-button {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  background: var(--gray);
  color: var(--white);
  font-size: 29px;
  line-height: 1;
  transition: background-color var(--ease), transform var(--ease);
}

.carousel-button:hover {
  background: #3f4145;
}

.carousel-prev {
  left: var(--pad);
}

.carousel-next {
  right: var(--pad);
}

.eyebrow {
  font-size: 23px;
  line-height: 1.05;
  text-transform: capitalize;
}

.partners-section h2 {
  margin-top: 19px;
  font-size: 53px;
  font-weight: 400;
  line-height: 1.11;
  text-transform: capitalize;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--content);
  margin: 52px auto 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.partner-grid div {
  display: grid;
  min-height: 218px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-grid img {
  position: relative;
  top: -11px;
  width: 140px;
  height: 67px;
  object-fit: contain;
  mix-blend-mode: darken;
  transition: transform var(--ease), opacity var(--ease);
}

.partner-grid div:hover img {
  transform: translateY(-2px);
  opacity: 0.86;
}

/* ==========================================================================
   Completed projects
   ========================================================================== */
.projects-section {
  position: relative;
  /* width: var(--canvas); */
  padding: 38px var(--pad) 76px;
  background: var(--projects-bg);
  color: var(--white);
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--content);
  margin: 0 auto 44px;
}

.projects-section .section-head {
  margin-bottom: 33px;
}

.progress-section .section-head {
  margin-bottom: 38px;
}

.section-head h2 {
  margin-top: 20px;
}

.section-head > p {
  margin-top: 63px;
  font-size: 22px;
  line-height: 1.5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 21px;
  max-width: var(--content);
  margin: 0 auto;
}

.project-card {
  position: relative;
  min-height: 461px;
  overflow: hidden;
  color: var(--white);
  background: #333;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 461px;
  object-fit: cover;
  transition: transform 450ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 142px;
  background: linear-gradient(to bottom, rgba(50, 50, 50, 0), rgba(50, 50, 50, 0.7));
}

.project-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.project-card h3 span {
  transition: transform var(--ease);
  transform: rotate(-45deg);
}

.project-card:hover h3 span {
  transform: translateX(7px);
}

.project-size {
  position: absolute;
  z-index: 2;
  top: 23px;
  right: 23px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.11;
  text-transform: capitalize;
}

.project-card > div {
  position: absolute;
  z-index: 2;
  left: 23px;
  right: 23px;
  bottom: 31px;
}

.project-card p {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.5;
}

.project-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 31px;
  line-height: 1.11;
  text-transform: capitalize;
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 237px;
  height: 77px;
  min-height: 77px;
  margin: 44px auto 0;
  padding: 0 0 0 44px;
  gap: 8px;
  font-size: 30px;
  white-space: nowrap;
}

.load-more .arrow {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-size: 20px;
  line-height: 12px;
}

/* The two "Load More" buttons sit centred under their grids. */
.projects-section .load-more,
.progress-section .load-more {
  display: flex;
}

/* ==========================================================================
   Projects in progress
   ========================================================================== */
.progress-section {
  position: relative;
  /* width: var(--canvas); */
  padding: 70px var(--pad) 91px;
  background: var(--progress-bg);
  color: var(--white);
  overflow: hidden;
}

.progress-carousel {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  overflow: visible;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}

.progress-track .project-card {
  width: 100%;
}

.progress-carousel .carousel-button {
  display: none;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 120px 52px;
  overflow: hidden;
  background: var(--contact-bg);
}

.contact-panel {
  width: 990px;
  padding: 42px;
  background: var(--white);
}

.contact-panel .eyebrow {
  color: var(--gray);
  margin-bottom: 12px;
}

.contact-panel h2 {
  max-width: 682px;
  margin-bottom: 12px;
}

.contact-intro {
  color: #8d8d8d;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
}

/* .contact-intro:nth-of-type(2) {
  top: 141px;
  width: 619px;
}

.contact-intro:nth-of-type(3) {
  top: 183px;
  width: 311px;
} */

.contact-panel h3 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  margin-top: 30px;
}

/* Container for the form shortcode output (CF7 / WPForms etc.). */
.contact-form {
  margin-top: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  /* width: var(--canvas); */
  min-height: 584px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 96px;
  padding: 52px 51px 42px;
  background: var(--footer-bg);
  color: var(--white);
}

.footer-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h2 {
  width: 100%;
  margin: 0 0 27px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--footer-rule);
  color: var(--footer-label);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: capitalize;
}

/* Footer nav columns are output by wp_nav_menu() as <ul><li><a>. */
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-footer p {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.11;
  text-transform: capitalize;
}

.site-footer p:not(:first-of-type) {
  margin-top: 34px;
}

.site-footer address,
.site-footer a {
  font-style: normal;
  font-size: 22px;
  line-height: 1.5;
}

.site-footer a {
  display: block;
  margin-bottom: 27px;
  transition: opacity var(--ease);
}

.site-footer a:hover {
  opacity: 0.72;
}

.footer-logo {
  margin-top: 40px;
  width: 374px;
  height: 54px;
  object-fit: contain;
}

/* ==========================================================================
   Form styles — Formidable multi-step contact form (native styling disabled).
   Markup reference: _assets/formidable-html/page1-7.html
   ========================================================================== */

/* Scroll long steps (file uploads etc.) inside the fixed contact panel. */
.contact-form {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

/* Reset Formidable wrappers to inherit the theme look. */
.contact-form .frm_forms,
.contact-form .frm_form_fields,
.contact-form fieldset,
.contact-form .frm_fields_container {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.contact-form fieldset {
  min-width: 0;
}

/* Visually-hidden helpers (screen-reader legend, honeypot, none-position labels). */
.contact-form .frm_screen_reader,
.contact-form #frm_field_46_container,
.contact-form .frm_verify,
.contact-form .frm_none_container:not(.vertical_radio) > .frm_primary_label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Two-column field grid (.frm6 = half width, others span the row). */
.contact-form .frm_fields_container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px 32px;
}

.contact-form .frm_form_field {
  width: 100%;
  margin: 0;
}

.contact-form .frm_form_field.frm6 {
  width: calc(50% - 16px);
}

/* Visible labels (top-positioned fields + radio/checkbox group titles). */
.contact-form .frm_top_container > .frm_primary_label,
.contact-form .vertical_radio > .frm_primary_label {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #4f4f4f;
}

.contact-form .frm_required {
  margin-left: 3px;
  color: #b23b3b;
}

/* Text-like inputs and single selects — underline style from the mockup. */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form input[type="password"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #c8c8c8;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  transition: border-color var(--ease);
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gray);
}

/* Multi-select renders as a list box — present it as a clean bordered field. */
.contact-form select[multiple] {
  min-height: 132px;
  padding: 6px 10px;
  border: 1px solid #c8c8c8;
}

.contact-form select[multiple] option {
  padding: 6px 4px;
}

/* Radio / checkbox groups. */
.contact-form .frm_opt_container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.contact-form .vertical_radio .frm_opt_container {
  flex-direction: column;
  gap: 12px;
}

.contact-form .frm_radio,
.contact-form .frm_checkbox {
  margin: 0;
}

.contact-form .frm_radio label,
.contact-form .frm_checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}

.contact-form .frm_radio input[type="radio"],
.contact-form .frm_checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gray);
}

/* File upload dropzones. */
.contact-form .frm_dropzone {
  display: block;
  padding: 24px;
  border: 1px dashed #c4c4c4;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}

.contact-form .frm_dropzone:hover {
  border-color: var(--gray);
  background: #f3f3f3;
}

.contact-form .dz-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #676767;
}

.contact-form .frm_dropzone .frm-svg-icon {
  width: 28px;
  height: 28px;
  fill: #9a9a9a;
}

.contact-form .frm_compact_text {
  display: none;
}

.contact-form .frm_upload_text button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}

.contact-form .frm_small_text p {
  margin: 0;
  font-size: 12px;
  color: #9a9a9a;
}

/* Uploaded-file preview row. */
.contact-form .dz-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.contact-form .dz-image img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
}

.contact-form .dz-filename a {
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
}

.contact-form .dz-filename a:hover {
  text-decoration: underline;
}

.contact-form .dz-size {
  font-size: 12px;
  color: #9a9a9a;
}

.contact-form .dz-remove {
  margin-left: auto;
  color: #9a9a9a;
}

/* Validation messages. */
.contact-form .frm_error {
  margin-top: 6px;
  color: #b23b3b;
  font-size: 13px;
}

.contact-form .frm_blank_field input,
.contact-form .frm_blank_field select,
.contact-form .frm_blank_field textarea {
  border-color: #b23b3b;
}

.contact-form .frm_error_style {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f0c4c4;
  border-radius: 6px;
  background: #fdecec;
  color: #a33;
  font-size: 14px;
}

/* Submit / navigation row. */
.contact-form .frm_submit {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.contact-form .frm_button_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 220px;
  height: 64px;
  padding: 0 30px;
  border: 0;
  background: var(--gray);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  text-transform: capitalize;
  cursor: pointer;
  transition: background-color var(--ease), transform var(--ease);
}

.contact-form .frm_button_submit:hover {
  background: #3f4145;
  transform: translateY(-2px);
}

.contact-form .frm_prev_page {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-display);
  font-size: 18px;
  cursor: pointer;
  transition: opacity var(--ease);
}

.contact-form .frm_prev_page:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Page counter injected by script.js (sits to the right of the buttons). */
.contact-form .frm-page-counter {
  margin-left: 2px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--gray);
  white-space: nowrap;
}

/* Progress bar (filled to N/7 by script.js). */
.contact-form .form-progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  margin-top: 28px;
  background: #e6e6e6;
  overflow: hidden;
}

.contact-form .form-progress-bar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gray);
  transition: width 300ms ease;
}

/* ==========================================================================
   Text section — ACF "text" layout (title h1 + WYSIWYG body).
   ========================================================================== */
.text-section {
  width: 100%;
  padding: 96px var(--pad);
  background: var(--paper);
  color: var(--ink);
}

.text-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.text-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 2.76vw, 53px);
  line-height: 1.11;
  text-transform: capitalize;
  color: var(--ink);
}

.text-body {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}

.text-body > * + * {
  margin-top: 20px;
}

.text-body h2 {
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 2vw, 40px);
  line-height: 1.15;
  text-transform: capitalize;
}

.text-body h3 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
}

.text-body a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--ease);
}

.text-body a:hover {
  opacity: 0.7;
}

.text-body ul,
.text-body ol {
  margin-top: 20px;
  padding-left: 1.2em;
}

.text-body li + li {
  margin-top: 8px;
}

.text-body strong {
  font-weight: 700;
}

