/*
Theme Name: ENC Custom Homes
Theme URI: https://www.enccustomhomes.com
Author: ENC Custom Homes
Description: Custom theme for ENC Custom Homes — quality-built, attainable custom homes, barndominiums, rehabs and remodels in Eastern North Carolina.
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: enc-custom-homes
*/

/* ==========================================================
   1. Design tokens
   ========================================================== */
:root {
  --ink: #14161a;          /* near-black charcoal (logo dark) */
  --ink-soft: #1e2127;
  --gold: #c99a45;         /* logo gold */
  --gold-light: #e0b96b;
  --gold-pale: #f3e7cd;
  --cream: #f7f4ee;        /* warm section background */
  --white: #ffffff;
  --text: #2a2c31;
  --text-muted: #63666e;
  --line: #e6e1d6;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.10);
  --font-head: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

/* ==========================================================
   2. Reset / base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section rhythm */
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: #d8d9dd; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.kicker::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin-left: 12px;
  vertical-align: middle;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin-right: 12px;
  vertical-align: middle;
}

/* ==========================================================
   3. Buttons
   ========================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 15px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-transform: uppercase;
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover { background: var(--ink-soft); color: var(--gold-light); }

/* ==========================================================
   4. Top bar + header
   ========================================================== */
.topbar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .88rem;
  color: #b9bbc2;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  flex-wrap: wrap;
}
.topbar a { color: #d8d9dd; }
.topbar a:hover { color: var(--gold-light); }
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--gold); flex: none; }

.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
}
.site-brand { display: flex; align-items: center; gap: 14px; }
.site-brand img { max-height: 62px; width: auto; }
.site-brand__text { line-height: 1.1; }
.site-brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-brand__tag {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #b9bbc2;
}
.site-brand:hover .site-brand__name { color: var(--gold-light); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: #e8e9ec;
  padding: 10px 14px;
  border-radius: 4px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--gold-light); }

/* dropdowns */
.main-nav li { position: relative; }
.main-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ink-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { display: flex; }
.main-nav li ul a { padding: 10px 18px; }

.header-cta { flex: none; }

/* mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-soft);
    display: none;
    box-shadow: 0 14px 24px rgba(0,0,0,.35);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 0; }
  .main-nav li ul {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: 18px;
  }
}

/* ==========================================================
   5. Hero
   ========================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .38;
}
.hero__bg--pattern {
  background-image:
    linear-gradient(120deg, rgba(201,154,69,.16) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(201,154,69,.10), transparent 60%);
  opacity: 1;
}
.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 130px 24px 140px;
}
.hero__content { max-width: 640px; }
.hero .kicker { color: var(--gold-light); }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p {
  font-size: 1.16rem;
  color: #c9cbd1;
  max-width: 540px;
  margin-bottom: 2em;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* trust bar */
.trustbar { background: var(--gold); }
.trustbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.trustbar__item { text-align: center; }
.trustbar__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1.1;
}
.trustbar__label {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(20,22,26,.75);
  font-weight: 600;
}

/* ==========================================================
   6. Services grid
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { color: var(--text-muted); font-size: 1rem; flex: 1; }
.service-card__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-card__link::after { content: " \2192"; color: var(--gold); }
.service-card__link:hover { color: var(--gold); }
.service-card--featured { background: var(--ink); border-color: var(--ink); }
.service-card--featured h3 { color: var(--white); }
.service-card--featured p { color: #b9bbc2; }
.service-card--featured .service-card__link { color: var(--gold-light); }
.service-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}

/* ==========================================================
   7. Why choose us / process
   ========================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(201,154,69,.5);
  border-radius: 4px;
  pointer-events: none;
}
.split__media img { width: 100%; object-fit: cover; }

.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list__check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  margin-top: 3px;
}
.feature-list strong { display: block; font-family: var(--font-head); color: var(--ink); }
.feature-list span.desc { color: var(--text-muted); font-size: .98rem; }
.section--dark .feature-list strong { color: var(--white); }
.section--dark .feature-list span.desc { color: #b9bbc2; }

/* process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--gold-pale);
  -webkit-text-stroke: 1px var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: .98rem; margin: 0; }

/* ==========================================================
   8. CTA band
   ========================================================== */
.cta-band {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink-soft) 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 30%, rgba(201,154,69,.18), transparent 55%);
}
.cta-band__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 76px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { color: #c9cbd1; margin: 0; max-width: 520px; }

/* ==========================================================
   9. Blog cards / archive
   ========================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__thumb { aspect-ratio: 16/9; background: var(--cream); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 26px; }
.post-card__meta {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--text-muted); font-size: .97rem; margin: 0; }

/* ==========================================================
   10. Page / single content
   ========================================================== */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 10%, rgba(201,154,69,.15), transparent 55%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .crumbs { color: #b9bbc2; font-size: .9rem; margin-top: 10px; }
.page-hero .crumbs a { color: var(--gold-light); }

.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0;
  padding: .4em 0 .4em 1.4em;
  color: var(--text-muted);
  font-style: italic;
}
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }

.entry-meta {
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* forms (Contact Form 7 / WPForms friendly) */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea,
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.entry-content input:focus, .entry-content textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.entry-content input[type="submit"],
.wpforms-container button[type="submit"] {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 15px 34px;
  cursor: pointer;
  transition: background .2s ease;
}
.entry-content input[type="submit"]:hover { background: var(--gold-light); }

/* ==========================================================
   11. Footer
   ========================================================== */
.site-footer {
  background: var(--ink);
  color: #b9bbc2;
  padding: 72px 0 0;
  font-size: .97rem;
}
.site-footer a { color: #d8d9dd; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: var(--white);
  font-size: 1.02rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col h4::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand__name {
  font-family: var(--font-head);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.footer-contact { display: grid; gap: 12px; }
.footer-contact__item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact__item svg { width: 16px; height: 16px; fill: var(--gold); flex: none; margin-top: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { border-color: var(--gold); background: rgba(201,154,69,.12); }
.footer-social svg { width: 16px; height: 16px; fill: #d8d9dd; }
.footer-social a:hover svg { fill: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 24px;
  text-align: center;
  font-size: .85rem;
  color: #85888f;
}

/* back to top */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); background: var(--gold-light); }

/* utility */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute;
}
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1000px; }

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero__inner { padding: 84px 24px 92px; }
  .topbar__group--right { display: none; }
}
