/*
Theme Name: Hello Elementor HFiles Child
Theme URI: https://example.com/
Description: Lightweight Hello Elementor child theme inspired by the inspected HFiles/Squarespace dark style tokens.
Author: WC Engraving
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-hfiles-child
*/

/* -------------------------------------------------------
   HFiles-inspired design tokens
   ------------------------------------------------------- */

:root {
  /* Core palette: edit these first if you want to tune the whole site */
  --hfc-black: #050505;
  --hfc-black-soft: #0b0b0b;
  --hfc-charcoal: #141414;
  --hfc-card: #ffffff;
  --hfc-white: #ffffff;

  /* Warm light accent pulled from the inspected "safeLightAccent" usage */
  --hfc-accent: #d9b46a;
  --hfc-accent-hover: #f0cf83;
  --hfc-accent-dark: #8b6b2f;

  --hfc-text: #ffffff;
  --hfc-muted: rgba(255, 255, 255, 0.74);
  --hfc-muted-2: rgba(255, 255, 255, 0.56);
  --hfc-dark-text: #111111;
  --hfc-dark-muted: #343434;

  --hfc-border: rgba(217, 180, 106, 0.42);
  --hfc-border-soft: rgba(255, 255, 255, 0.15);
  --hfc-overlay: rgba(0, 0, 0, 0.58);

  --hfc-radius-sm: 6px;
  --hfc-radius-md: 12px;
  --hfc-radius-lg: 22px;

  --hfc-shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.35);
  --hfc-shadow-card: 0 16px 44px rgba(0, 0, 0, 0.18);

  --hfc-site-width: 1180px;
}

/* Optional compatibility aliases for pasted Squarespace-ish variables */
:root {
  --black-hsl: 0, 0%, 2%;
  --white-hsl: 0, 0%, 100%;
  --accent-hsl: 39, 58%, 63%;
  --lightAccent-hsl: 39, 58%, 63%;
  --safeLightAccent-hsl: 39, 58%, 63%;
  --darkAccent-hsl: 0, 0%, 8%;
  --safeDarkAccent-hsl: 0, 0%, 8%;
  --safeInverseLightAccent-hsl: 0, 0%, 5%;
  --safeInverseDarkAccent-hsl: 0, 0%, 100%;
  --safeInverseAccent-hsl: 0, 0%, 5%;
}

/* -------------------------------------------------------
   Base / global
   ------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--hfc-black);
  color: var(--hfc-text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
.site,
#page,
.site-main,
.elementor,
.elementor-section,
.elementor-widget-wrap {
  background-color: var(--hfc-black);
}

::selection {
  background: var(--hfc-accent);
  color: var(--hfc-black);
}

a {
  color: var(--hfc-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, opacity 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

a:hover,
a:focus {
  color: var(--hfc-accent-hover);
}

img {
  border-radius: var(--hfc-radius-md);
}

hr {
  border: 0;
  border-top: 1px solid var(--hfc-border);
  margin: 2.5rem 0;
}

/* -------------------------------------------------------
   Typography
   ------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.site-title,
.elementor-heading-title {
  color: var(--hfc-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1,
.elementor-widget-heading h1.elementor-heading-title {
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2,
.elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(2.25rem, 4.7vw, 4.75rem);
}

h3,
.elementor-widget-heading h3.elementor-heading-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p,
li,
.elementor-widget-text-editor {
  color: var(--hfc-text);
}

p {
  margin-bottom: 1.15rem;
}

small,
figcaption,
.wp-caption-text {
  color: var(--hfc-muted-2);
}

.lede,
.hfc-lede,
.elementor-widget-text-editor .lede {
  color: var(--hfc-muted);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  line-height: 1.55;
}

/* -------------------------------------------------------
   Layout helpers
   ------------------------------------------------------- */

.site-main > .page-content,
.site-main > article,
.container,
.hfc-container {
  max-width: var(--hfc-site-width);
  margin-left: auto;
  margin-right: auto;
}

.hfc-section {
  padding: clamp(4rem, 8vw, 8rem) 1.25rem;
}

.hfc-narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hfc-kicker {
  color: var(--hfc-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hfc-divider {
  width: 84px;
  height: 1px;
  background: var(--hfc-accent);
  margin: 1.4rem 0 1.8rem;
}

/* -------------------------------------------------------
   Header / nav
   ------------------------------------------------------- */

.site-header,
#site-header,
.elementor-location-header {
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(217, 180, 106, 0.24);
  color: var(--hfc-text);
  backdrop-filter: blur(12px);
}

.site-header a,
#site-header a,
.elementor-location-header a,
.site-navigation a,
.elementor-nav-menu--main .elementor-item {
  color: var(--hfc-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header a:hover,
#site-header a:hover,
.elementor-location-header a:hover,
.site-navigation a:hover,
.elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu--main .elementor-item.elementor-item-active {
  color: var(--hfc-white);
}

.site-title a {
  color: var(--hfc-accent);
}

/* -------------------------------------------------------
   Hero treatment
   Add class "hfc-hero" to an Elementor section.
   ------------------------------------------------------- */

.hfc-hero {
  position: relative;
  min-height: clamp(520px, 82vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 30%, rgba(217, 180, 106, 0.20), transparent 28%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.35), var(--hfc-black) 94%),
    var(--hfc-black);
}

.hfc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.50) 48%, rgba(0,0,0,0.82) 100%),
    var(--hfc-hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 0;
}

.hfc-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, var(--hfc-black));
  z-index: 1;
}

.hfc-hero > .elementor-container,
.hfc-hero > .e-con-inner,
.hfc-hero .elementor-widget-wrap {
  position: relative;
  z-index: 2;
}

.hfc-hero h1,
.hfc-hero h2,
.hfc-hero .elementor-heading-title {
  text-shadow: 0 8px 34px rgba(0,0,0,0.65);
}

.hfc-hero p,
.hfc-hero .elementor-widget-text-editor {
  color: rgba(255,255,255,0.84);
  max-width: 760px;
}

/* -------------------------------------------------------
   Cards / portfolio / service buttons
   ------------------------------------------------------- */

.hfc-card,
.hfc-service-card,
.hfc-portfolio-card,
.elementor-widget-container:has(.hfc-card-inner) {
  background: var(--hfc-card);
  color: var(--hfc-dark-text);
  border: 1px solid rgba(217, 180, 106, 0.45);
  border-radius: var(--hfc-radius-lg);
  box-shadow: var(--hfc-shadow-card);
  overflow: hidden;
}

.hfc-card *,
.hfc-service-card *,
.hfc-portfolio-card * {
  color: inherit;
}

.hfc-card h1,
.hfc-card h2,
.hfc-card h3,
.hfc-card h4,
.hfc-service-card h1,
.hfc-service-card h2,
.hfc-service-card h3,
.hfc-service-card h4,
.hfc-portfolio-card h1,
.hfc-portfolio-card h2,
.hfc-portfolio-card h3,
.hfc-portfolio-card h4 {
  color: var(--hfc-black);
}

.hfc-card p,
.hfc-card li,
.hfc-service-card p,
.hfc-service-card li,
.hfc-portfolio-card p,
.hfc-portfolio-card li {
  color: var(--hfc-dark-muted);
}

.hfc-card a,
.hfc-service-card a,
.hfc-portfolio-card a {
  color: var(--hfc-accent-dark);
}

.hfc-service-card,
.hfc-portfolio-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hfc-service-card:hover,
.hfc-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 58px rgba(0,0,0,0.28);
  border-color: var(--hfc-accent);
}

.hfc-dark-card {
  background: var(--hfc-charcoal);
  border: 1px solid var(--hfc-border);
  border-radius: var(--hfc-radius-lg);
  box-shadow: var(--hfc-shadow-soft);
}

.hfc-dark-card h1,
.hfc-dark-card h2,
.hfc-dark-card h3,
.hfc-dark-card h4 {
  color: var(--hfc-accent);
}

.hfc-dark-card p,
.hfc-dark-card li {
  color: var(--hfc-muted);
}

/* Elementor post/portfolio grids */
.elementor-post,
.elementor-portfolio-item,
.elementor-loop-container .e-loop-item {
  border-radius: var(--hfc-radius-lg);
  overflow: hidden;
}

.elementor-post__card {
  background: var(--hfc-card) !important;
  border: 1px solid rgba(217, 180, 106, 0.35);
  border-radius: var(--hfc-radius-lg);
  box-shadow: var(--hfc-shadow-card);
}

.elementor-post__title a {
  color: var(--hfc-black);
}

.elementor-post__excerpt p,
.elementor-post__meta-data {
  color: var(--hfc-dark-muted);
}

/* -------------------------------------------------------
   Buttons
   ------------------------------------------------------- */

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-block-button__link,
.elementor-button,
.elementor-button:visited,
.hfc-button,
a.hfc-button {
  background: var(--hfc-accent);
  color: var(--hfc-black) !important;
  border: 1px solid var(--hfc-accent);
  border-radius: 999px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
.elementor-button:focus,
.hfc-button:hover,
a.hfc-button:hover {
  background: var(--hfc-accent-hover);
  border-color: var(--hfc-accent-hover);
  color: var(--hfc-black) !important;
  transform: translateY(-2px);
}

.hfc-button-outline,
.elementor-button.hfc-button-outline {
  background: transparent;
  color: var(--hfc-accent) !important;
  border-color: var(--hfc-accent);
}

.hfc-button-outline:hover,
.elementor-button.hfc-button-outline:hover {
  background: var(--hfc-accent);
  color: var(--hfc-black) !important;
}

/* -------------------------------------------------------
   Forms
   ------------------------------------------------------- */

input,
textarea,
select,
.elementor-field,
.elementor-field-textual {
  background: var(--hfc-charcoal) !important;
  border: 1px solid var(--hfc-border-soft) !important;
  border-radius: var(--hfc-radius-sm) !important;
  color: var(--hfc-white) !important;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus,
.elementor-field:focus,
.elementor-field-textual:focus {
  border-color: var(--hfc-accent) !important;
  box-shadow: 0 0 0 3px rgba(217,180,106,0.18) !important;
  outline: none;
}

label,
.elementor-field-label {
  color: var(--hfc-white) !important;
}

::placeholder {
  color: rgba(255,255,255,0.48) !important;
}

/* -------------------------------------------------------
   Footer
   ------------------------------------------------------- */

.site-footer,
#site-footer,
.elementor-location-footer {
  background: var(--hfc-black-soft);
  border-top: 1px solid rgba(217, 180, 106, 0.24);
  color: var(--hfc-muted);
}

.site-footer a,
#site-footer a,
.elementor-location-footer a {
  color: var(--hfc-accent);
}

/* -------------------------------------------------------
   Mobile tuning
   ------------------------------------------------------- */

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .hfc-section {
    padding: 3.5rem 1rem;
  }

  .hfc-hero {
    min-height: 620px;
  }

  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .wp-block-button__link,
  .elementor-button,
  .hfc-button,
  a.hfc-button {
    width: auto;
    max-width: 100%;
    padding: 0.88rem 1.1rem;
  }
}

/* -------------------------------------------------------
   Project Midnight / Archive components
   Migrated from Elementor Site Settings > Custom CSS
   ------------------------------------------------------- */

.pm-archive-footer {
  max-width: 1200px;
  margin: 40px auto;
  padding: 34px 42px;
  border: 1px solid rgba(232,199,92,0.35);
  background: rgba(0,0,0,0.68);
  box-shadow: 0 0 35px rgba(232,199,92,0.08);
}

.pm-archive-inner {
  display: flex;
  align-items: stretch;
  gap: 42px;
}

.pm-archive-icon {
  flex: 0 0 140px;
  width: 140px;
  height: auto;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-archive-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.pm-archive-content {
  flex: 1 1 auto;
}

.pm-archive-title {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #e8c75c;
  margin-bottom: 16px;
}

.pm-archive-copy {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: #d8c58a;
  margin-bottom: 18px;
}

.pm-step {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #f5f0df;
}

.pm-step-number {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8c75c;
  color: #050505;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.pm-archive-divider {
  width: 1px;
  background: rgba(232,199,92,0.35);
}

.pm-archive-cta {
  flex: 0 0 320px;
  text-align: center;
  align-self: center;
}

.pm-archive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ff6719;
  color: #ffffff !important;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px 30px;
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(255,103,25,0.25);
}

.pm-archive-member {
  margin-top: 18px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #d8c58a;
}

.pm-archive-footer a {
  color: #e8c75c;
  text-decoration: none;
  font-weight: 700;
}

.pm-status-table {
  margin-top: 8px;
  width: 100%;
  max-width: 620px;
  border-collapse: collapse;
}

.pm-status-row {
  display: flex;
  width: 100%;
}

.pm-status-icon-wrap {
  flex: 0 0 42px;
  border: 1px solid rgba(232,199,92,0.18);
  padding: 12px 0;
  text-align: center;
  background: rgba(232,199,92,0.06);
}

.pm-status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4fa36d;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  margin: 0 auto;
}

.pm-status-text {
  flex: 1 1 auto;
  border: 1px solid rgba(232,199,92,0.18);
  padding: 14px 18px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #f5f0df;
}

.pm-archive-button-gold {
  background: #e8c75c;
  color: #050505 !important;
  box-shadow: 0 0 18px rgba(232,199,92,0.20);
}

.pm-archive-button-blue {
  background:linear-gradient(90deg,#0c1320,#17345f,#24487a,#17345f,#0c1320);
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(232,199,92,0.20);
}

.pm-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.pm-card {
  flex: 1 1 calc(25% - 24px);
  max-width: calc(25% - 24px);
  min-width: 240px;
}

@media (max-width: 1024px) {
  .pm-card {
    flex-basis: calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}

@media (max-width: 900px) {
  .pm-archive-footer {
    padding: 30px 26px;
  }

  .pm-archive-inner {
    flex-direction: column;
    gap: 26px;
    text-align: center;
    align-items: center;
  }

  .pm-archive-content {
    width: 100%;
  }

  .pm-archive-title {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .pm-archive-copy {
    font-size: 17px;
  }

  .pm-step {
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .pm-archive-divider {
    width: 100%;
    height: 1px;
  }

  .pm-archive-cta {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 767px) {
  .pm-card {
    flex-basis: 100%;
    max-width: 420px;
  }
}

@media (max-width: 520px) {
  .pm-archive-footer {
    margin: 28px auto;
    padding: 26px 18px;
  }

  .pm-archive-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .pm-archive-copy {
    font-size: 16px;
    line-height: 1.6;
  }

  .pm-archive-button {
    width: 100%;
    max-width: 320px;
    padding: 16px 20px;
    font-size: 14px;
    box-sizing: border-box;
  }

  .pm-status-table {
    max-width: 100%;
  }

  .pm-status-text {
    padding: 13px 14px;
    font-size: 14px;
  }
}
.pm-inline-button {
    display:inline-block;
    padding:5px 10px;
    line-height:1.5;
    background:linear-gradient(90deg,#0c1320,#17345f,#24487a,#17345f,#0c1320);
    color:#ffffff;
    text-decoration:none;
    font-family:Arial,sans-serif;
    font-size:11px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    white-space:nowrap;
    transition:.2s ease;
}

.pm-inline-button:hover {
    color:#ffffff;
    text-decoration:none;
    box-shadow:0 0 10px rgba(36,72,122,.35);
}
a.pm-inline-button,
a.pm-inline-button:visited,
a.pm-inline-button:hover,
a.pm-inline-button:active {
    color:#ffffff !important;
}
/* ==================================================
   HF Substack CTAs
   ================================================== */

.hf-substack-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:12px 22px;

    background:#ff6719;
    color:#ffffff !important;

    font-family:Arial,sans-serif;
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;

    text-decoration:none !important;
    white-space:nowrap;

    border:none;
    border-radius:2px;

    transition:.2s ease;
}

.hf-substack-button:hover {
    background:#ff7a33;
    color:#ffffff !important;
    text-decoration:none !important;
}

.hf-substack-button svg {
    width:18px;
    height:18px;
    flex-shrink:0;
    fill:#ffffff;
}
/* ==================================================
   HF VIDEO EMBEDS
   Custom thumbnail → YouTube player on click
   ================================================== */

.hf-video {
    width:100%;
    max-width:100%;
}

.hf-video-thumb {
    position:relative;
    cursor:pointer;
    overflow:hidden;
    background:#000;
    line-height:0;
}

.hf-video-thumb img {
    display:block;
    width:100%;
    height:auto;
    transition:.25s ease;
}

.hf-video-thumb:hover img {
    transform:scale(1.02);
}

.hf-video-play {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    width:72px;
    height:72px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(0,0,0,.72);
    border:2px solid rgba(232,199,92,.75);

    color:#e8c75c;
    font-size:28px;
    line-height:1;

    transition:.2s ease;
}

.hf-video-thumb:hover .hf-video-play {
    transform:translate(-50%,-50%) scale(1.08);
}

.hf-video-embed {
    position:relative;
    width:100%;
    padding-bottom:56.25%; /* 16:9 */
    height:0;
}

.hf-video-embed iframe {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:none;
}
/* add padding above anchor links */
.hf-anchor {
    scroll-margin-top: 120px;
}

.elementor-location-header {
  position: relative;
  z-index: 9999;
}
/* fix - menu was dropping down behind pages */
.elementor-location-header .elementor-nav-menu--dropdown {
  position: relative;
  z-index: 10000;
}