/* ==========================================================================
   HWD Additional CSS
   Hardt Web Development — site-specific styles for the Kadence build.
   Edit this file, then re-upload. Do not duplicate these rules in
   Customizer > Additional CSS.

   Contents
   1. Header: logo
   2. Buttons: CTA hover
   3. Components: pills, cards
   4. Homepage: phase timeline
   5. Homepage: phase cards
   6. Footer
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   1. HEADER: LOGO
   ========================================================================== */

/* Logo: "Hardt" bold white + "Web Development" dimmer italic */

.site-header a.hwd-logo {
  color: var(--global-palette9);
}

.site-header a.hwd-logo em {
  font-style: italic;
  color: var(--global-palette6);
}

/* ==========================================================================
   2. BUTTONS: CTA HOVER
   ========================================================================== */

/* CTA button click effect  */

.cta-btn .kb-button {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.cta-btn .kb-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 35, 84, 0.3);
}

/* ==========================================================================
   3. COMPONENTS: EYEBROWS, PILLS, CARDS
   ========================================================================== */

/* Clickable cards  */

.card-link {
  position: relative;
  cursor: pointer;
}
.card-link a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-link:hover {
  box-shadow: 0 8px 24px rgba(15, 35, 84, 0.12);
  transform: translateY(-2px);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
html {
  scroll-behavior: smooth !important;
}

/* Eyebrows  */

.hwd-eyebrow {
  font-family: var(--global-body-font-family, "Raleway", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f2354;
  opacity: 0.55;
  margin: 0;
  margin-block-start: 48px !important;
  margin-block-end: 0 !important;
  line-height: 1.2;
}
.hwd-eyebrow:first-child {
  /* margin-block-start: 0 !important; */
}
.hwd-eyebrow + h2,
.hwd-eyebrow + .wp-block-heading {
  margin-block-start: 10px !important;
  padding-block-start: 0 !important;
}
/* Eyebrow with a trailing rule: "SEND A MESSAGE ————" */
.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 36px !important; /* space before the form */
}
.eyebrow--rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.15;
}

/* Skip if you already added it: no top margin (for eyebrows at the top of a column) */
.eyebrow--flush {
  margin-block-start: 0 !important;
}

/* Pills */

.hwd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hwd-pills span {
  border: 1px solid #d9deea;
  border-radius: 999px;
  background: #f4f6fb;
  color: var(--global-palette1);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
}
.hwd-pills--caps {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.hwd-pills--caps span {
  background: var(--global-palette9);
  color: var(--global-palette2);
}

/* Cards */

.services-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.services-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 35, 84, 0.12);
}

/* Additional rules for different backgrounds */

/* Eyebrow spacing: heading below can be h1 too */
.hwd-eyebrow + h1 {
  margin-block-start: 10px !important;
  padding-block-start: 0 !important;
}

/* No top margin (use on a hero's eyebrow; replaces the commented :first-child rule) */
.hwd-eyebrow--flush {
  margin-block-start: 0 !important;
}

/* Dark backgrounds, plain text style */
.hwd-eyebrow--on-dark {
  color: #fff;
  opacity: 0.6;
}

/* Pill style (hero) */
.hwd-eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  opacity: 1; /* opacity would fade the box too */
  color: rgba(15, 35, 84, 0.75);
  background: rgba(15, 35, 84, 0.07);
  border: 1px solid rgba(15, 35, 84, 0.18);
}
.hwd-eyebrow--pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.hwd-eyebrow--pill.hwd-eyebrow--on-dark {
  opacity: 1;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.hwd-eyebrow--pill + h1 {
  margin-block-start: 24px !important;
}

/* ==========================================================================
   4. HOMEPAGE: Split Headings
   ========================================================================== */

/* Split headings: bold part and italic part */
/* italic part on its own line */
/* Split heading: bold line + italic muted line (h1 or h2) */
.split-heading {
  --split-1: var(--global-palette1); /* confirm this is #0f2354 */
  --split-2: #64748b; /* template --t3 */
  color: var(--split-1);
}
.split-heading em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--split-2);
}
/* Dark backgrounds: either on the heading, or on the row that holds it */
.split-heading--on-dark,
.on-dark .split-heading {
  --split-1: #ffffff;
  --split-2: rgba(255, 255, 255, 0.45);
}
h1.split-heading {
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h2.split-heading {
  line-height: 1.15;
  letter-spacing: -0.02em;
}
/* Split heading adjustments for Mobile */
@media (max-width: 767px) {
  .split-heading {
    margin-bottom: 14px;
    text-wrap: balance;
  }
}
/* Keep Kadence's page editor from overriding text color */
.editor-styles-wrapper .split-heading h1,
.editor-styles-wrapper .split-heading h2 {
  color: var(--split-1);
}

/* ==========================================================================
   4. HOMEPAGE: PHASE TIMELINE
   ========================================================================== */

/* Home page process timeline rules */
.process-timeline .kt-row-column-wrap > .wp-block-kadence-column {
  position: relative;
}

/* line from this dot to the next */
.process-timeline
  .kt-row-column-wrap
  > .wp-block-kadence-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px; /* dot level */
  left: calc(50% + 24px); /* start just right of the dot */
  width: calc(100% - 48px); /* stop just left of the next dot */
  height: 1px;
  background: #dfe3ee;
}

/* mobile: stack vertically, hide lines */
@media (max-width: 767px) {
  .process-timeline .kt-row-column-wrap > .wp-block-kadence-column::after {
    display: none;
  }
}

/* ==========================================================================
   5. HOMEPAGE: PHASE CARDS
   ========================================================================== */

/* Phase card number watermarks */
.phase-card > .kt-inside-inner-col {
  position: relative;
  overflow: hidden;
}

.phase-card > .kt-inside-inner-col::after {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 90px;
  line-height: 1;
  color: #0f2354;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.phase-card > .kt-inside-inner-col > * {
  position: relative;
  z-index: 1;
}

.phase-01 > .kt-inside-inner-col::after {
  content: "01";
}
.phase-02 > .kt-inside-inner-col::after {
  content: "02";
}
.phase-03 > .kt-inside-inner-col::after {
  content: "03";
}
.phase-04 > .kt-inside-inner-col::after {
  content: "04";
}
.phase-05 > .kt-inside-inner-col::after {
  content: "05";
}
.phase-06 > .kt-inside-inner-col::after {
  content: "06";
}

@media (max-width: 767px) {
  .phase-card > .kt-inside-inner-col::after {
    font-size: 80px;
  }
}

/* Phase card hover effect */

.phase-card > .kt-inside-inner-col {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.phase-card:hover > .kt-inside-inner-col {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 35, 84, 0.14);
}
.phase-card:hover > .kt-inside-inner-col::after {
  opacity: 0.1; /* watermark number strengthens */
}

/* ==========================================================================
   6. FOOTER
   Footer background is set in Customizer > Footer > Design, not here.
   ========================================================================== */

:root {
  --ft-title: color-mix(in srgb, var(--global-palette9) 55%, transparent);
  --ft-link: color-mix(in srgb, var(--global-palette9) 70%, transparent);
  --ft-link-hover: var(--global-palette9);
  --ft-border: color-mix(in srgb, var(--global-palette9) 10%, transparent);
}

/* Column headings: small, uppercase, muted */
#colophon .footer-widget-area .widget-title {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ft-title);
  margin: 0 0 1.25rem;
}

/* Menu lists */
#colophon .widget_nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#colophon .widget_nav_menu li {
  margin: 0 0 0.75rem;
}
#colophon .widget_nav_menu a {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ft-link);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
#colophon .widget_nav_menu a:hover,
#colophon .widget_nav_menu a:focus-visible {
  color: var(--ft-link-hover);
}
/* Keep the current page's link from changing color */
#colophon .widget_nav_menu .current-menu-item > a {
  color: var(--ft-link);
}

/* Brand column */
#colophon .footer-brand {
  font-family: "Lora", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--global-palette9);
  margin: 0 0 0.5rem;
}
#colophon .footer-brand em {
  font-weight: 400;
}
#colophon .footer-meta {
  font-size: 15px;
  color: var(--ft-title);
  margin: 0 0 0.4rem;
}
#colophon .footer-meta a {
  color: var(--ft-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
#colophon .footer-meta a:hover {
  color: var(--ft-link-hover);
}

/* Bottom bar */
#colophon .site-bottom-footer-wrap {
  border-top: 1px solid var(--ft-border);
}
#colophon .footer-html,
#colophon .footer-html a {
  font-size: 13px;
  color: var(--ft-title);
}

/* ==========================================================================
   7. CONTACT PAGE
   HWD forms plugin is by default Fluent Forms
   ========================================================================== */

/* Fluent Forms */

.frm-fluent-form .ff-el-input--label label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.frm-fluent-form .ff-el-form-control {
  font-family: inherit;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e3e8f0;
  border-radius: 10px;
  padding: 13px 16px;
}
.frm-fluent-form .ff-el-form-control:focus {
  border-color: #0f2354;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 35, 84, 0.1);
}
.frm-fluent-form .ff-btn-submit {
  background: #0f2354;
  color: #fff;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 10px;
  border: 0;
}
.frm-fluent-form .ff-btn-submit:hover {
  opacity: 0.88;
}
.frm-fluent-form .ff-el-help-message {
  font-size: 12px;
  color: #94a3b8;
}

/* Form privacy note (Custom HTML field above the submit button) */
.frm-fluent-form .form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--global-palette5, #5a6a80);
}
.frm-fluent-form .form-note a {
  color: var(--global-palette1, #0f2354);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Audit checkbox label: match the rest of the form */
.frm-fluent-form .ff-el-form-check-label {
  font-size: 14px;
  color: var(--global-palette4, #334155);
}

/* Contact Page Response strip */

.response-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.rs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--global-palette5, #5a6a80); /* medium text */
}
.rs-label {
  font-weight: 600;
  color: var(--global-palette4, #334155); /* strong text */
}
.rs-sep {
  color: var(--global-palette6, #94a3b8); /* subtle text */
}
.rs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--status-online, #22c55e);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--status-online, #22c55e) 20%, transparent);
}

@media (max-width: 767px) {
  .response-strip {
    flex-direction: column;
    gap: 8px;
  }
  .rs-sep {
    display: none;
  }
}

/* ==========================================================================
   7b. CONTACT PAGE: SIDEBAR CARDS
   Right column of the contact page: call card, direct contact, what's next.
   ========================================================================== */
