/*
Theme Name:  BLK Glove Services
Theme URI:   https://blk-glove.com
Author:      BLK Glove Services, LLC
Author URI:  https://blk-glove.com
Description: A luxury dark-gold WordPress theme for BLK Glove Services — boutique marketing & operational excellence for real estate professionals.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blk-glove
Tags:        dark, luxury, business, one-page, custom-header, custom-menu, full-width-template
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* Colors */
  --obsidian:      #080808;
  --obsidian-2:    #111111;
  --charcoal:      #1a1a1a;
  --charcoal-2:    #242424;
  --slate:         #2e2e2e;
  --mid-gray:      #5a5a5a;
  --light-gray:    #8a8a8a;
  --rule-dark:     #2a2a2a;
  --rule-light:    #e0d8cc;
  --cream:         #f7f3ed;
  --cream-2:       #ede8e0;
  --cream-3:       #e4ddd2;
  --gold:          #c9a84c;
  --gold-light:    #e2c06e;
  --gold-pale:     #f0dea0;
  --gold-dark:     #8a6a1e;
  --white:         #ffffff;

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Jost', 'Helvetica Neue', sans-serif;

  /* Easing */
  --ease-luxury:   cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 10rem;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--obsidian);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9000;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-luxury);
}
a:hover { color: var(--gold-light); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ═══════════════════════════════════════════
   LAYOUT SYSTEM
═══════════════════════════════════════════ */
.blkg-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.blkg-container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.blkg-container--wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-pad       { padding: var(--space-xl) 0; }
.section-pad--lg   { padding: var(--space-2xl) 0; }
.section-pad--sm   { padding: var(--space-lg) 0; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY SYSTEM
═══════════════════════════════════════════ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.body-lg {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-gray);
}

.body-md {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--light-gray);
}

/* WordPress content typography */
.entry-content h1,
.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.entry-content h2,
.page-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
  margin-top: 3rem;
}

.entry-content h3,
.page-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.entry-content h4,
.page-content h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.entry-content p,
.page-content p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}

.entry-content strong,
.page-content strong {
  font-weight: 500;
  color: var(--cream);
}

.entry-content em,
.page-content em {
  font-style: italic;
  color: var(--gold-light);
}

.entry-content a,
.page-content a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: color 0.3s, border-color 0.3s;
}
.entry-content a:hover,
.page-content a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.entry-content ul,
.page-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.entry-content ul li,
.page-content ul li {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light-gray);
  padding-left: 1.5rem;
  position: relative;
}
.entry-content ul li::before,
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.entry-content ol,
.page-content ol {
  list-style: none;
  counter-reset: ol-counter;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.entry-content ol li,
.page-content ol li {
  counter-increment: ol-counter;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light-gray);
  padding-left: 2rem;
  position: relative;
}
.entry-content ol li::before,
.page-content ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
}

.entry-content blockquote,
.page-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(201,168,76,0.04);
}
.entry-content blockquote p,
.page-content blockquote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 0;
}

.entry-content hr,
.page-content hr {
  border: none;
  border-top: 1px solid var(--rule-dark);
  margin: 3rem 0;
}

/* ═══════════════════════════════════════════
   COMPONENT LIBRARY — BUTTONS
═══════════════════════════════════════════ */
.btn,
.wp-block-button__link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  transition: all 0.35s var(--ease-luxury);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--gold);
  color: var(--obsidian);
}
.btn-primary::before,
.wp-block-button:not(.is-style-outline) .wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::before {
  left: 100%;
}
.btn-primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--gold-light);
  color: var(--obsidian);
  transform: translateY(-2px);
}

.btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.07);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--rule-dark);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   COMPONENT LIBRARY — SECTION HEADERS
═══════════════════════════════════════════ */
.blkg-section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 5rem;
}

.blkg-section-header .eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
}

.blkg-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.blkg-section-header h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.blkg-section-header p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-gray);
}

/* Light section header variant */
.blkg-section-header--light h2 { color: var(--obsidian); }
.blkg-section-header--light p  { color: var(--mid-gray); }
.blkg-section-header--light .eyebrow { color: var(--gold-dark); }

/* ═══════════════════════════════════════════
   COMPONENT LIBRARY — GOLD RULE
═══════════════════════════════════════════ */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.gold-rule::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.gold-rule--center {
  justify-content: center;
}
.gold-rule--center::before,
.gold-rule--center::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* ═══════════════════════════════════════════
   COMPONENT LIBRARY — FORMS
═══════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 0.95rem 1.1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: var(--mid-gray);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 0.5rem;
}

/* WPForms / Gravity Forms overrides */
.wpforms-container .wpforms-field-label,
.gform_wrapper label {
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--light-gray) !important;
  font-family: var(--font-body) !important;
}
.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select,
.gform_wrapper input,
.gform_wrapper textarea,
.gform_wrapper select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--rule-dark) !important;
  color: var(--cream) !important;
  font-family: var(--font-body) !important;
  border-radius: 0 !important;
}
.wpforms-container .wpforms-submit,
.gform_wrapper .gform_submit_button {
  background: var(--gold) !important;
  color: var(--obsidian) !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  padding: 1.1rem 2.4rem !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background 0.35s !important;
}
.wpforms-container .wpforms-submit:hover,
.gform_wrapper .gform_submit_button:hover {
  background: var(--gold-light) !important;
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════ */
.blkg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-luxury), transform 0.85s var(--ease-luxury);
}
.blkg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.blkg-reveal-delay-1 { transition-delay: 0.1s; }
.blkg-reveal-delay-2 { transition-delay: 0.22s; }
.blkg-reveal-delay-3 { transition-delay: 0.38s; }
.blkg-reveal-delay-4 { transition-delay: 0.54s; }
.blkg-reveal-delay-5 { transition-delay: 0.70s; }

/* ═══════════════════════════════════════════
   SITE WRAPPER
═══════════════════════════════════════════ */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#primary,
.site-main {
  flex: 1;
}

/* ═══════════════════════════════════════════
   WORDPRESS CORE OVERRIDES
═══════════════════════════════════════════ */
/* Gutenberg block alignment */
.wp-block-image img {
  filter: brightness(0.85) contrast(1.05);
}
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--rule-dark);
  margin: 3rem auto;
}
.wp-block-quote {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  background: rgba(201,168,76,0.04);
  margin: 2.5rem 0;
}
.wp-block-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream);
}

/* ═══════════════════════════════════════════
   INTERIOR PAGE LAYOUT
═══════════════════════════════════════════ */
.interior-page-hero {
  background: var(--charcoal);
  border-bottom: 1px solid var(--rule-dark);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.interior-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 60% 50%, rgba(201,168,76,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.interior-page-hero .blkg-container { position: relative; z-index: 1; }
.interior-page-hero .eyebrow { display: block; margin-bottom: 1rem; }
.interior-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.interior-page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.interior-page-hero p.page-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-gray);
  max-width: 540px;
}

.interior-page-content {
  padding: var(--space-xl) 0;
}

/* ═══════════════════════════════════════════
   BLOG / ARCHIVE
═══════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
  background: var(--rule-dark);
  margin-top: 4rem;
}
.post-card {
  background: var(--obsidian-2);
  overflow: hidden;
  transition: background 0.4s;
}
.post-card:hover { background: var(--charcoal); }
.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.7s var(--ease-luxury), filter 0.4s;
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
  filter: brightness(0.85);
}
.post-card-body {
  padding: 2rem 2rem 2.5rem;
}
.post-card-category {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 0.85rem;
  transition: color 0.3s;
}
.post-card:hover .post-card-title { color: var(--gold-light); }
.post-card-excerpt {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.post-card-meta-divider {
  width: 1px;
  height: 14px;
  background: var(--rule-dark);
}

/* Pagination */
.blkg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 5rem;
}
.blkg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--light-gray);
  border: 1px solid var(--rule-dark);
  transition: all 0.3s;
}
.blkg-pagination .page-numbers:hover,
.blkg-pagination .page-numbers.current {
  border-color: var(--gold);
  color: var(--gold);
}
.blkg-pagination .page-numbers.dots {
  border-color: transparent;
  color: var(--mid-gray);
}

/* ═══════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════ */
.single-post-hero {
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--rule-dark);
  background: var(--charcoal);
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.post-category-badge {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.3rem 0.8rem;
}
.post-date {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.single-post-content {
  padding: var(--space-xl) 0;
}
.single-post-content .blkg-container--narrow {
  max-width: 720px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .blkg-container,
  .blkg-container--narrow,
  .blkg-container--wide { padding: 0 1.75rem; }
  .section-pad { padding: 5rem 0; }
  .section-pad--lg { padding: 6rem 0; }
}

@media (max-width: 640px) {
  .blkg-container,
  .blkg-container--narrow,
  .blkg-container--wide { padding: 0 1.25rem; }
  .section-pad { padding: 4rem 0; }
  .section-pad--lg { padding: 5rem 0; }
  .posts-grid { grid-template-columns: 1fr; }
}
