/*
Theme Name: Hammer Time Build & Repair
Theme URI: https://hammertimepdx.com
Author: Hammer Time Build & Repair
Description: A native WordPress block theme for Hammer Time Build & Repair.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: hammer-time-blocks
*/

:root {
  --ht-blue: #1f87f6;
  --ht-blue-dark: #0f67c2;
  --ht-charcoal: #18222e;
  --ht-slate: #7e7d83;
  --ht-ink: #202832;
  --ht-muted: #5d6875;
  --ht-line: #dce3ea;
  --ht-mist: #f3f6f8;
  --ht-white: #ffffff;
  --ht-shadow: 0 18px 50px rgba(24, 34, 46, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ht-ink); background: var(--ht-white); text-rendering: optimizeLegibility; }
a { text-underline-offset: .18em; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease; }
img { height: auto; }

.ht-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(24,34,46,.08);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.admin-bar .ht-site-header { top: 32px; }
.ht-header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 24px;
}
.ht-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin: 0; }
.ht-mark {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0;
  place-items: center;
  background: var(--ht-blue);
  color: var(--ht-charcoal);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}
.ht-brand-copy { margin: 0; }
.ht-brand-copy .wp-block-site-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
}
.ht-brand-copy .wp-block-site-title a { color: var(--ht-charcoal); text-decoration: none; }
.ht-brand-copy .wp-block-site-tagline {
  margin: 5px 0 0;
  color: var(--ht-muted);
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
}
.ht-header-actions { display: flex; align-items: center; gap: 24px; margin: 0; }
.ht-nav .wp-block-navigation-item__content { color: var(--ht-charcoal); font-size: .88rem; font-weight: 700; text-decoration: none; }
.ht-nav .wp-block-navigation-item__content:hover,
.ht-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--ht-blue-dark); }
.ht-header-call .wp-block-button__link {
  border: 1px solid var(--ht-blue);
  border-radius: 2px;
  background: var(--ht-blue);
  color: var(--ht-white);
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.2;
  padding: 11px 18px;
}
.ht-header-call .wp-block-button__link:hover { border-color: var(--ht-blue-dark); background: var(--ht-blue-dark); color: var(--ht-white); }
.ht-main, .ht-main > .wp-block-post-content { margin-block-start: 0; }

.ht-hero { min-height: min(720px, calc(100vh - 82px)); }
.ht-hero .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(12,20,28,.88) 0%, rgba(12,20,28,.68) 35%, rgba(12,20,28,.18) 68%, rgba(12,20,28,.06) 100%) !important;
}
.ht-hero .wp-block-cover__image-background { object-position: center center; }
.ht-hero-inner { width: min(100% - 48px, 1180px); margin: 0 auto; padding: 80px 0 52px; }
.ht-hero-copy { max-width: 680px; margin: 0; }
.ht-eyebrow {
  margin: 0 0 20px;
  color: var(--ht-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.25;
  text-transform: uppercase;
}
.ht-display {
  max-width: 700px;
  margin: 0;
  color: var(--ht-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.ht-hero-lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.02rem, 1.5vw, 1.23rem);
  line-height: 1.55;
}
.ht-hero-actions { margin-top: 32px; }
.ht-primary-button .wp-block-button__link,
.ht-button .wp-block-button__link {
  border: 1px solid var(--ht-blue);
  border-radius: 0;
  background: var(--ht-blue);
  color: var(--ht-white);
  font-weight: 750;
  padding: 14px 22px;
  text-decoration: none;
}
.ht-primary-button .wp-block-button__link:hover,
.ht-button .wp-block-button__link:hover { border-color: var(--ht-blue-dark); background: var(--ht-blue-dark); }
.ht-text-button .wp-block-button__link {
  border-radius: 0;
  border-bottom: 2px solid var(--ht-blue);
  background: transparent;
  color: inherit;
  font-weight: 750;
  padding: 12px 0 9px;
}
.ht-text-button .wp-block-button__link:hover { color: var(--ht-blue); }
.ht-credentials {
  width: fit-content;
  margin: 70px 0 0 auto;
  border-left: 3px solid var(--ht-blue);
  color: var(--ht-white);
  font-size: .98rem;
  font-weight: 750;
  padding-left: 14px;
}

.ht-section { width: min(100% - 48px, 1180px); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 0; }
.ht-section-tight { width: min(100% - 48px, 940px); margin: 0 auto; padding: clamp(64px, 8vw, 104px) 0; }
.ht-section-gray { background: var(--ht-mist); }
.ht-section-dark { background: var(--ht-charcoal); color: var(--ht-white); }
.ht-section-dark .ht-section-title,
.ht-section-dark h2,
.ht-section-dark h3,
.ht-section-dark p { color: inherit; }
.ht-section-title, .ht-page-title {
  margin: 0;
  color: var(--ht-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.ht-page-title { max-width: 900px; }
.ht-section-lede, .ht-page-lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ht-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.62;
}
.ht-page-hero { border-bottom: 1px solid var(--ht-line); background: linear-gradient(135deg, #eef5fb 0%, #f8fafc 50%, #eef1f4 100%); }
.ht-page-hero .ht-section { padding-top: clamp(72px, 10vw, 132px); padding-bottom: clamp(72px, 10vw, 132px); }
.ht-split, .ht-service-grid, .ht-process-grid, .ht-contact-grid, .ht-gallery-grid { margin-top: 48px; }
.ht-split { align-items: center !important; gap: clamp(36px, 6vw, 80px); }
.ht-split > .wp-block-column { margin: 0; }
.ht-split-image img { width: 100%; min-height: 460px; object-fit: cover; box-shadow: var(--ht-shadow); }
.ht-headshot img { aspect-ratio: 4 / 5; object-position: center 22%; }
.ht-stat-line { margin-top: 30px; border-top: 1px solid var(--ht-line); color: var(--ht-muted); font-size: .92rem; font-weight: 700; padding-top: 20px; }

.ht-work-slider { position: relative; min-height: 520px; margin-top: 48px; overflow: hidden; background: #dfe6ec; }
.ht-work-slider .ht-slide { display: none; margin: 0; }
.ht-work-slider .ht-slide.is-active,
.ht-work-slider:not(.ht-ready) .ht-slide:first-child { display: block; }
.ht-work-slider .ht-slide img { display: block; width: 100%; height: 520px; object-fit: cover; }
.ht-slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.ht-slider-count { margin: 0; color: var(--ht-muted); font-size: .85rem; font-weight: 750; letter-spacing: .1em; }
.ht-slider-buttons { display: flex; gap: 8px; }
.ht-slider-buttons .wp-block-button__link {
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ht-charcoal);
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: var(--ht-charcoal);
  font-size: 1.2rem;
  padding: 0;
}
.ht-slider-buttons .wp-block-button__link:hover { background: var(--ht-charcoal); color: var(--ht-white); }

.ht-service-grid, .ht-process-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ht-line);
  border: 1px solid var(--ht-line);
}
.ht-service-card, .ht-process-card { height: 100%; margin: 0; background: var(--ht-white); padding: clamp(30px, 4vw, 52px); }
.ht-service-number, .ht-process-number {
  margin: 0 0 26px;
  color: var(--ht-blue);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .15em;
}
.ht-service-card h3, .ht-process-card h3 { margin: 0; color: var(--ht-charcoal); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.18; }
.ht-service-card p, .ht-process-card p { color: var(--ht-muted); line-height: 1.7; }
.ht-service-link a { color: var(--ht-charcoal); font-weight: 750; text-decoration-color: var(--ht-blue); }

.ht-testimonials { position: relative; min-height: 300px; margin-top: 42px; }
.ht-testimonials .ht-testimonial { display: none; max-width: 900px; margin: 0; }
.ht-testimonials .ht-testimonial.is-active,
.ht-testimonials:not(.ht-ready) .ht-testimonial:first-child { display: block; }
.ht-testimonial blockquote { margin: 0; border: 0; padding: 0; }
.ht-testimonial blockquote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.6vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.ht-testimonial cite {
  display: block;
  margin-top: 26px;
  color: var(--ht-blue);
  font-family: inherit;
  font-size: .88rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ht-testimonial-dots { display: flex; gap: 8px; margin-top: 30px; }
.ht-testimonial-dot { width: 9px; height: 9px; border: 0; border-radius: 50%; background: rgba(255,255,255,.28); cursor: pointer; padding: 0; }
.ht-testimonial-dot.is-active { background: var(--ht-blue); }

.ht-gallery-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ht-gallery-grid > .wp-block-image {
  position: relative;
  display: block;
  width: 100% !important;
  min-width: 0;
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--ht-mist);
}
.ht-gallery-grid > .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms ease; }
.ht-gallery-grid > .wp-block-image:hover img { transform: scale(1.025); }
.ht-lightbox { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; background: rgba(8,13,18,.94); padding: 54px 24px 24px; }
.ht-lightbox[hidden] { display: none; }
.ht-lightbox img { max-width: min(94vw, 1500px); max-height: 88vh; object-fit: contain; }
.ht-lightbox-close { position: absolute; top: 14px; right: 20px; border: 0; background: transparent; color: var(--ht-white); cursor: pointer; font-size: 2rem; line-height: 1; }

.ht-contact-band { background: var(--ht-blue); color: var(--ht-charcoal); }
.ht-contact-band .ht-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 54px; padding-bottom: 54px; }
.ht-contact-band h2 {
  margin: 0;
  color: var(--ht-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.ht-contact-band .wp-block-button__link { border: 1px solid var(--ht-charcoal); border-radius: 0; background: var(--ht-charcoal); color: var(--ht-white); font-weight: 750; }
.ht-contact-grid { align-items: stretch !important; gap: 24px; }
.ht-contact-card { height: 100%; margin: 0; border: 1px solid var(--ht-line); background: var(--ht-white); padding: 32px; }
.ht-contact-card h3 { margin-top: 0; }

.ht-site-footer { background: var(--ht-charcoal); color: rgba(255,255,255,.78); }
.ht-footer-inner {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);
  gap: 50px;
  padding: 64px 24px 42px;
}
.ht-footer-brand .wp-block-site-title { margin: 0; color: var(--ht-white); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
.ht-footer-brand .wp-block-site-title a { color: inherit; text-decoration: none; }
.ht-footer-heading { margin: 0 0 18px; color: var(--ht-white); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ht-footer-links { margin: 0; }
.ht-footer-links a { color: rgba(255,255,255,.82); text-decoration: none; }
.ht-footer-links a:hover { color: var(--ht-blue); }
.ht-footer-bottom { width: min(100% - 48px, 1180px); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0 32px; color: rgba(255,255,255,.56); font-size: .8rem; }

.ht-prose h2 {
  margin-top: 2.3em;
  color: var(--ht-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -.03em;
}
.ht-prose h3 { margin-top: 2em; color: var(--ht-charcoal); }
.ht-prose p, .ht-prose li { color: var(--ht-muted); line-height: 1.75; }
.ht-check-list { padding-left: 1.2em; }
.ht-check-list li::marker { color: var(--ht-blue); }

@media (max-width: 1040px) {
  .ht-header-inner { gap: 16px; }
  .ht-header-actions { gap: 12px; }
  .ht-nav .wp-block-navigation-item__content { font-size: .82rem; }
  .ht-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .ht-site-header { top: 46px; }
  .ht-header-inner { min-height: 72px; padding: 10px 18px; }
  .ht-brand-copy .wp-block-site-tagline, .ht-header-call { display: none; }
  .ht-header-actions { margin-left: auto; }
  .ht-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 28px; }
  .ht-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; }
  .ht-hero { min-height: 680px; }
  .ht-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(10,18,26,.9) 0%, rgba(10,18,26,.68) 70%, rgba(10,18,26,.42) 100%) !important; }
  .ht-hero-inner, .ht-section, .ht-section-tight { width: min(100% - 36px, 1180px); }
  .ht-hero-inner { padding-top: 64px; }
  .ht-display { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .ht-credentials { margin-top: 54px; margin-left: 0; }
  .ht-service-grid, .ht-process-grid { grid-template-columns: 1fr; }
  .ht-work-slider, .ht-work-slider .ht-slide img { min-height: 0; height: 390px; }
  .ht-split-image img { min-height: 360px; }
  .ht-contact-band .ht-section { align-items: flex-start; flex-direction: column; }
  .ht-footer-inner { grid-template-columns: 1fr; gap: 32px; padding-right: 18px; padding-left: 18px; }
  .ht-footer-bottom { width: min(100% - 36px, 1180px); }
}

@media (max-width: 540px) {
  .ht-brand-copy .wp-block-site-title { font-size: .75rem; letter-spacing: .11em; }
  .ht-mark { width: 36px; height: 36px; }
  .ht-hero-actions .wp-block-buttons { align-items: stretch; flex-direction: column; }
  .ht-hero-actions .wp-block-button,
  .ht-hero-actions .wp-block-button__link { width: 100%; }
  .ht-gallery-grid { grid-template-columns: 1fr; }
  .ht-work-slider, .ht-work-slider .ht-slide img { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
