/*
Theme Name: RefCore
Theme URI: https://refcoreservices.com
Author: RefCore Services LLC
Author URI: https://refcoreservices.com
Description: Custom WordPress theme for RefCore Services LLC. Residential HVAC, commercial HVAC, and commercial refrigeration service.
Version: 1.0.6
Text Domain: refcore
*/

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #121820;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */

.refcore-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(13, 17, 23, 0.94);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.refcore-header-inner {
  width: 92%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.refcore-site-logo {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.refcore-site-logo:hover {
  color: #ffffff;
}

/* Main Nav */

.refcore-site-nav {
  margin-left: auto;
}

.refcore-site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.refcore-site-nav li {
  margin-left: 0;
}

.refcore-site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.18s ease;
}

.refcore-site-nav a:hover {
  color: #ffffff;
}

/* Header Login */

.refcore-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(232, 120, 23, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 120, 23, 0.22), rgba(232, 120, 23, 0.12));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.refcore-login-button:hover,
.refcore-login-button:focus {
  background: linear-gradient(180deg, rgba(232, 120, 23, 0.34), rgba(232, 120, 23, 0.18));
  border-color: #e87817;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(232, 120, 23, 0.14), 0 10px 24px rgba(232, 120, 23, 0.22);
  transform: translateY(-1px);
}

.refcore-login-button:focus-visible {
  outline: 2px solid #e87817;
  outline-offset: 3px;
}

/* Homepage */

.refcore-home {
  --refcore-home-orange: #e87817;
  --refcore-home-slate: #0b1118;
  --refcore-home-slate-2: #111923;
  --refcore-home-ink: #f8fbff;
  --refcore-home-muted: #9fb0c1;
  --refcore-home-line: rgba(255, 255, 255, 0.12);
  --refcore-home-panel: rgba(255, 255, 255, 0.065);
  --refcore-home-max: 1180px;
  overflow-x: hidden;
  background: var(--refcore-home-slate);
  color: var(--refcore-home-ink);
}

.refcore-home * {
  box-sizing: border-box;
}

.refcore-home-wrap {
  width: min(var(--refcore-home-max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.refcore-home-section {
  padding: 72px 0;
}

.refcore-home-eyebrow {
  margin: 0 0 12px;
  color: var(--refcore-home-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.refcore-home h1,
.refcore-home h2,
.refcore-home h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.refcore-home p {
  margin: 0;
}

.refcore-home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  padding: 76px 0 72px;
  background:
    radial-gradient(circle at 18% 18%, rgba(232, 120, 23, 0.24), transparent 25rem),
    radial-gradient(circle at 84% 10%, rgba(56, 189, 248, 0.12), transparent 28rem),
    linear-gradient(135deg, #070c12 0%, #111923 54%, #0a0f15 100%);
}

.refcore-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.048) 42%, transparent 66%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 112px);
  opacity: 0.62;
  pointer-events: none;
  animation: refcore-home-glow-drift 14s ease-in-out infinite alternate;
}

.refcore-home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: 44px;
  align-items: center;
}

.refcore-home-logo {
  display: block;
  width: min(430px, 84vw);
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.refcore-home-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.99;
}

.refcore-home-lead {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(234, 242, 250, 0.8);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
}

.refcore-home-actions,
.refcore-home-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.refcore-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.refcore-home-button:hover,
.refcore-home-button:focus {
  transform: translateY(-2px);
}

.refcore-home-button-primary {
  background: linear-gradient(180deg, #f7a64a, var(--refcore-home-orange));
  color: #140f0a;
  box-shadow: 0 16px 38px rgba(232, 120, 23, 0.28);
}

.refcore-home-button-primary:hover,
.refcore-home-button-primary:focus {
  box-shadow: 0 20px 48px rgba(232, 120, 23, 0.38);
}

.refcore-home-button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

.refcore-home-button-secondary:hover,
.refcore-home-button-secondary:focus {
  border-color: rgba(232, 120, 23, 0.72);
  background: rgba(232, 120, 23, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.refcore-home-hero-panel,
.refcore-home-service-card,
.refcore-home-cta-box,
.refcore-home-portal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--refcore-home-line);
  background: var(--refcore-home-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.refcore-home-hero-panel {
  padding: 26px;
  border-radius: 22px;
}

.refcore-home-hero-panel::before,
.refcore-home-cta-box::before,
.refcore-home-portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--refcore-home-orange), transparent);
  background-size: 180% 100%;
  animation: refcore-home-accent-slide 8s ease-in-out infinite;
}

.refcore-home-hero-panel span {
  display: block;
  color: #fed7aa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.refcore-home-hero-panel p {
  margin-top: 12px;
  color: rgba(237, 244, 250, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.refcore-home-services {
  background: linear-gradient(180deg, #0a0f15 0%, #111923 100%);
}

.refcore-home-section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.refcore-home-section-heading h2,
.refcore-home-diagnostics h2,
.refcore-home-cta h2,
.refcore-home-contact h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.04;
}

.refcore-home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.refcore-home-service-card {
  min-height: 100%;
  padding: 24px;
  border-radius: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.refcore-home-service-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -50px;
  width: 126px;
  height: 126px;
  border: 24px solid rgba(232, 120, 23, 0.075);
  border-radius: 50%;
}

.refcore-home-service-card:hover,
.refcore-home-service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(232, 120, 23, 0.48);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

.refcore-home-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(232, 120, 23, 0.15);
  color: #fed7aa;
  font-weight: 950;
}

.refcore-home-service-card h3 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.16;
}

.refcore-home-service-card p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--refcore-home-muted);
  font-size: 15px;
  line-height: 1.55;
}

.refcore-home-diagnostics {
  background:
    radial-gradient(circle at 14% 20%, rgba(232, 120, 23, 0.14), transparent 24rem),
    linear-gradient(135deg, #111923, #090e14);
}

.refcore-home-diagnostics-grid,
.refcore-home-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.refcore-home-diagnostics p,
.refcore-home-cta p,
.refcore-home-contact p,
.refcore-home-portal-card p {
  max-width: 650px;
  margin-top: 16px;
  color: var(--refcore-home-muted);
  font-size: 16px;
  line-height: 1.58;
}

.refcore-home-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.refcore-home-points span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.refcore-home-cta {
  background: linear-gradient(180deg, #090e14, #111923);
}

.refcore-home-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
}

.refcore-home-contact {
  background:
    radial-gradient(circle at 84% 18%, rgba(232, 120, 23, 0.12), transparent 24rem),
    linear-gradient(180deg, #111923 0%, #080d13 100%);
}

.refcore-home-contact-grid {
  align-items: start;
}

.refcore-home-portal-card {
  padding: 26px;
  border-radius: 22px;
}

.refcore-home-portal-card h3 {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.12;
}

.refcore-home-portal-card .refcore-home-button {
  margin-top: 20px;
}

@keyframes refcore-home-glow-drift {
  from {
    transform: translateX(-12%);
  }

  to {
    transform: translateX(8%);
  }
}

@keyframes refcore-home-accent-slide {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refcore-home-hero::before,
  .refcore-home-hero-panel::before,
  .refcore-home-cta-box::before,
  .refcore-home-portal-card::before,
  .refcore-home-button,
  .refcore-home-service-card {
    animation: none;
    transition: none;
  }
}

@media screen and (max-width: 920px) {
  .refcore-home-hero-grid,
  .refcore-home-service-grid,
  .refcore-home-diagnostics-grid,
  .refcore-home-cta-box,
  .refcore-home-contact-grid {
    grid-template-columns: 1fr;
  }

  .refcore-home-cta-box {
    justify-items: start;
  }
}

@media screen and (max-width: 640px) {
  .refcore-home-wrap {
    width: min(100% - 22px, var(--refcore-home-max));
  }

  .refcore-home-section,
  .refcore-home-hero {
    padding: 50px 0;
  }

  .refcore-home-hero {
    min-height: auto;
  }

  .refcore-home-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .refcore-home-actions,
  .refcore-home-contact-actions {
    display: grid;
    width: 100%;
  }

  .refcore-home-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .refcore-home-hero-panel,
  .refcore-home-cta-box,
  .refcore-home-portal-card {
    border-radius: 20px;
    padding: 22px;
  }
}
/* Default Page */

.refcore-default-page {
  background: #ffffff;
}

.refcore-default-hero {
  width: 92%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 80px;
  padding-bottom: 80px;
}

.refcore-default-hero h1 {
  margin: 0;
  color: #121820;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* Service Divider */

.refcore-service-divider {
  margin-top: 24px;
  margin-bottom: 34px;
  padding: 10px;
  border: 1px solid #d9e0e8;
  border-radius: 22px;
  background: #eef7fb;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.refcore-service-pill {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 32.6%;
  min-height: 64px;
  padding-top: 18px;
  padding-bottom: 18px;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  color: #121820;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.refcore-service-pill + .refcore-service-pill {
  margin-left: 0.7%;
}

.refcore-service-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 10px;
  background: #fff3e8;
  color: #e87817;
  line-height: 28px;
  text-align: center;
  font-weight: 900;
}

/* Footer */

.refcore-site-footer {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
}

.refcore-footer-inner {
  width: 92%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.refcore-footer-inner p {
  margin: 0;
}

/* Mobile */

@media screen and (max-width: 760px) {
  .refcore-default-hero {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .refcore-default-hero h1 {
    font-size: 36px;
  }

  .refcore-service-pill {
    display: block;
    width: auto;
    margin-left: 0;
    margin-bottom: 8px;
  }

  .refcore-service-pill + .refcore-service-pill {
    margin-left: 0;
  }

  .refcore-service-pill:last-child {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 700px) {
  .refcore-header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .refcore-site-logo {
    font-size: 15px;
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .refcore-site-nav {
    display: none;
  }

  .refcore-login-button {
    height: 36px;
    padding: 0 15px;
    font-size: 13px;
  }
}
/* =========================================================
   DG Tracker Full App Page Theme
   Page ID: 56
========================================================= */

body.page-id-56 {
  background:
    radial-gradient(circle at top left, rgba(232, 120, 23, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 30rem),
    linear-gradient(180deg, #0a0f15 0%, #0d1117 42%, #090d12 100%) !important;
  color: #e7edf5;
}

/* Kill white theme wrappers on tracker page */
body.page-id-56 .refcore-default-page,
body.page-id-56 .refcore-default-hero,
body.page-id-56 .entry-content,
body.page-id-56 .site,
body.page-id-56 .site-main,
body.page-id-56 main,
body.page-id-56 article,
body.page-id-56 .page,
body.page-id-56 .content-area {
  background: transparent !important;
}

/* Remove residential/commercial/refrigeration service bar */
body.page-id-56 .refcore-service-divider,
body.page-id-56 .refcore-service-pill {
  display: none !important;
}

/* Tighten/remove default page hero/title area */
body.page-id-56 .refcore-default-hero {
  width: min(1180px, calc(100% - 28px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 0 46px !important;
}

/* Hide duplicate theme page title */
body.page-id-56 .refcore-default-hero > h1 {
  display: none !important;
}

/* App-style page title */
body.page-id-56 .refcore-default-hero::before {
  content: "DG Unit Tracker";
  display: block;
  margin: 0 0 18px;
  color: #f8fbff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

body.page-id-56 .refcore-default-hero::after {
  content: "Refcore Services internal operations dashboard";
  display: block;
  margin: -10px 0 26px;
  color: #93a4b7;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Make shortcode/plugin area full-width and clean */
body.page-id-56 .entry-content > *,
body.page-id-56 .refcore-default-hero > * {
  max-width: none;
}

/* Plugin frame blending */
body.page-id-56 .refcore-dg-tracker,
body.page-id-56 .refcore-dg-wrap,
body.page-id-56 .refcore-dg-unit-tracker,
body.page-id-56 [class*="refcore-dg"] {
  box-sizing: border-box;
}

/* Smooth plugin outer container */
body.page-id-56 .refcore-dg-tracker,
body.page-id-56 .refcore-dg-container,
body.page-id-56 .refcore-dg-dashboard {
  border-radius: 24px;
}

/* Header refinement on tracker page */
body.page-id-56 .refcore-site-header {
  background: rgba(10, 15, 21, 0.88) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

/* Login button refinement */
body.page-id-56 .refcore-login-button {
  border-color: rgba(232, 120, 23, 0.75);
  background: linear-gradient(180deg, rgba(232, 120, 23, 0.24), rgba(232, 120, 23, 0.13));
  box-shadow: 0 0 0 0 rgba(232, 120, 23, 0);
}

body.page-id-56 .refcore-login-button:hover,
body.page-id-56 .refcore-login-button:focus {
  background: linear-gradient(180deg, rgba(232, 120, 23, 0.36), rgba(232, 120, 23, 0.2));
  box-shadow: 0 0 0 4px rgba(232, 120, 23, 0.12);
}

/* DG App Page Shell */

body.rdgut-has-dg-login,
body.rdgut-has-unit-tracker,
body.rdgut-has-customer-portal {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(232, 120, 23, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 32rem),
    linear-gradient(180deg, #080d13 0%, #0d1117 44%, #070b10 100%) !important;
  color: #e7edf5;
}

body.rdgut-has-dg-login .refcore-site-header,
body.rdgut-has-unit-tracker .refcore-site-header,
body.rdgut-has-customer-portal .refcore-site-header {
  display: none !important;
}

body.rdgut-has-dg-login .refcore-default-page,
body.rdgut-has-unit-tracker .refcore-default-page,
body.rdgut-has-customer-portal .refcore-default-page,
body.rdgut-has-dg-login .refcore-default-hero,
body.rdgut-has-unit-tracker .refcore-default-hero,
body.rdgut-has-customer-portal .refcore-default-hero {
  background: transparent !important;
}

body.rdgut-has-dg-login .refcore-default-hero,
body.rdgut-has-unit-tracker .refcore-default-hero,
body.rdgut-has-customer-portal .refcore-default-hero {
  width: min(1180px, calc(100% - 28px));
  max-width: 1180px;
  padding: 28px 0 46px !important;
}

body.rdgut-has-dg-login .refcore-default-hero {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 0 !important;
}

body.rdgut-has-dg-login .refcore-default-hero > h1,
body.rdgut-has-unit-tracker .refcore-default-hero > h1,
body.rdgut-has-customer-portal .refcore-default-hero > h1,
body.rdgut-has-dg-login .refcore-service-divider,
body.rdgut-has-unit-tracker .refcore-service-divider,
body.rdgut-has-customer-portal .refcore-service-divider {
  display: none !important;
}

body.rdgut-has-dg-login .refcore-default-hero::before,
body.rdgut-has-dg-login .refcore-default-hero::after,
body.rdgut-has-unit-tracker .refcore-default-hero::before,
body.rdgut-has-unit-tracker .refcore-default-hero::after,
body.rdgut-has-customer-portal .refcore-default-hero::before,
body.rdgut-has-customer-portal .refcore-default-hero::after {
  content: none !important;
  display: none !important;
}

body.rdgut-has-dg-login .refcore-default-hero > *,
body.rdgut-has-unit-tracker .refcore-default-hero > *,
body.rdgut-has-customer-portal .refcore-default-hero > * {
  max-width: none;
}

body.rdgut-has-dg-login .refcore-site-footer,
body.rdgut-has-unit-tracker .refcore-site-footer,
body.rdgut-has-customer-portal .refcore-site-footer {
  display: none;
}

@media screen and (max-width: 760px) {
  body.rdgut-has-dg-login .refcore-default-hero,
  body.rdgut-has-unit-tracker .refcore-default-hero,
  body.rdgut-has-customer-portal .refcore-default-hero {
    width: min(100% - 18px, 1180px);
    padding: 18px 0 34px !important;
  }

  body.rdgut-has-dg-login .refcore-default-hero {
    min-height: 100vh;
    padding: 18px 0 !important;
  }
}

/* Mobile spacing */
@media screen and (max-width: 760px) {
  body.page-id-56 .refcore-default-hero {
    width: min(100% - 18px, 1180px);
    padding: 22px 0 34px !important;
  }

  body.page-id-56 .refcore-default-hero::before {
    font-size: 30px;
  }

  body.page-id-56 .refcore-default-hero::after {
    font-size: 13px;
    margin-bottom: 18px;
  }
}
