/* Font Preview page – first section (home sign preview) */
.font-preview-section {
  padding: 60px 0 80px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.font-preview-section .auto-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}
.font-preview-section .font-preview-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-align: center;
}
.font-preview-section .font-preview-subtitle {
  font-size: 1rem;
  font-style: italic;
  color: #8a8f94;
  text-align: center;
  margin-bottom: 16px;
}
.font-preview-section .font-preview-desc {
  font-size: 0.95rem;
  color: #8a8f94;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.font-preview-section .font-preview-input-wrap {
  max-width: 480px;
  margin: 0 auto 48px;
}
.font-preview-section .font-preview-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-family: inherit;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}
.font-preview-section .font-preview-input::placeholder {
  color: #aaa;
}
.font-preview-section .font-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 20px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}
@media (min-width: 576px) {
  .font-preview-section .font-preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
  }
}
@media (min-width: 992px) {
  .font-preview-section .font-preview-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
  }
}
.font-preview-section .font-preview-item {
  display: flex;
  flex-direction: column;
  color: #000000;
  font-size: 0.9rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px 12px;
  min-height: 0;
  position: relative;
}
.font-preview-section .font-preview-zoom-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #000000;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  z-index: 2;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.font-preview-section .font-preview-zoom-btn:hover {
  color: #333;
  background: #d2a543;
  border-color: #d2a543;
}
.font-preview-section .font-preview-zoom-btn i {
  font-size: 12px;
}
.font-preview-section .font-preview-item.has-text .font-preview-zoom-btn {
  display: flex;
}
.font-preview-section .font-preview-item .font-preview-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.font-preview-section .font-preview-num {
  flex-shrink: 0;
  font-size: 16px;
  color: #000000;
}
.font-preview-section .font-preview-text {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  line-height: 1.8;
  border-bottom: 1px solid #b0b5b9;
  padding-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.font-preview-section .font-preview-text.empty {
  color: #000000;
}
.font-preview-section .font-preview-name {
  display: none;
}

/* Zoom window – 600px preview on hover */
.font-preview-zoom-window {
  position: fixed;
  width: 600px;
  max-width: 95vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 32px 40px;
  z-index: 9999;
  display: none;
  pointer-events: none;
  box-sizing: border-box;
}
.font-preview-zoom-window.is-visible {
  display: block;
  pointer-events: auto;
}
.font-preview-zoom-window .font-preview-zoom-inner {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.font-preview-zoom-window .font-preview-zoom-text {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: #333;
  word-break: break-word;
  max-width: 100%;
}
.font-preview-zoom-window::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  pointer-events: none;
  border: 1px solid #2c2c2c;
}
.font-preview-zoom-window.is-visible::before {
  pointer-events: auto;
}
.font-preview-zoom-window-home.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent;
  width: 100%;
  height: 100%;
  inset: 0;
  left: 0;
  top: 0;
  transform: none;
  pointer-events: auto;
}
.font-preview-zoom-window-home {
  width: 100%;
  height: 100%;
  inset: 0;
}
.font-preview-zoom-window-home .font-preview-zoom-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 32px 40px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
}
.font-preview-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  cursor: pointer;
}
.font-preview-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0; 
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  color: #333;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.font-preview-zoom-close:hover {
  background: #d2a543;
  color: #000;
}
.font-preview-zoom-timer {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 13px;
  color: #666;
  z-index: 2;
  font-family: inherit;
}
.font-preview-zoom-window-home .font-preview-zoom-timer {
  color: #8a8f94;
}

/* Home page Font Preview section (first 3 rows + View more) */
.font-preview-section-home {
  padding: 88px 0 80px;
  background: linear-gradient(180deg, #faf8f3 0%, #ffffff 42%, #ffffff 100%);
  position: relative;
}
.font-preview-section-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d2a543, #e8c86a, #d2a543, transparent);
  opacity: 0.85;
}
.font-preview-home-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 8px;
}
.font-preview-home-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d2a543;
}
.font-preview-home-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #121113;
  letter-spacing: -0.02em;
}
.font-preview-home-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5c5d62;
}
.font-preview-home-input-wrap {
  max-width: 720px;
  margin: 0 auto 40px;
}
.font-preview-home-input-wrap .font-preview-input {
  width: 100%;
  padding: 16px 22px;
  font-size: 1.05rem;
  color: #121113;
  border: 1px solid rgba(18, 17, 19, 0.12);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(18, 17, 19, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.font-preview-home-input-wrap .font-preview-input:focus {
  border-color: #d2a543;
  outline: none;
  box-shadow: 0 4px 28px rgba(210, 165, 67, 0.2);
}
.font-preview-grid-home {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}
/* Home: 4 cards per row on desktop (overrides default grid) */
.font-preview-section-home .font-preview-grid-home {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .font-preview-section-home .font-preview-grid-home {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .font-preview-section-home .font-preview-grid-home {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
  }
}
/* Home: elevated preview tiles */
.font-preview-section-home .font-preview-item {
  background: #fff;
  border: 1px solid rgba(18, 17, 19, 0.07);
  border-radius: 12px;
  padding: 16px 14px 14px;
  box-shadow: 0 6px 20px rgba(18, 17, 19, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.font-preview-section-home .font-preview-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d2a543, #e6c86a);
  opacity: 0.65;
  border-radius: 12px 12px 0 0;
}
.font-preview-section-home .font-preview-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(18, 17, 19, 0.1);
  border-color: rgba(210, 165, 67, 0.35);
}
.font-preview-section-home .font-preview-num {
  color: #000000;
  font-weight: 600;
  font-size: 16px;
}
.font-preview-section-home .font-preview-text {
  border-bottom-color: rgba(18, 17, 19, 0.12);
  padding-bottom: 6px;
}
.font-preview-section-home .font-preview-zoom-btn {
  border-radius: 8px;
  border-color: rgba(18, 17, 19, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.font-preview-footer-cta {
  margin-top: 18px;
}
.font-preview-footer-text {
  color: #8a8f94;
  margin: 16px 0 20px;
}
.font-preview-phone {
  margin: 20px 0 0 0;
  font-size: 1rem;
  color: #8a8f94;
}
.font-preview-phone i {
  color: #d2a543;
  margin-right: 8px;
}
.font-preview-phone a {
  color: #121113;
  font-weight: 600;
  text-decoration: none;
}
.font-preview-phone a:hover {
  color: #d2a543;
}
.font-preview-home-cta {
  margin-top: 0;
}
.font-preview-home-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #121113;
  background: #fff;
  border: 2px solid #121113;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.font-preview-home-btn:hover {
  color: #121113;
  background: #d2a543;
  border-color: #d2a543;
  transform: translateY(-1px);
}

/* Tablet/phone — must live in this file (loads after responsive.css) */
@media only screen and (max-width: 1199px) {
  .font-preview-section .font-preview-text,
  .font-preview-section-home .font-preview-text {
    font-size: 30px;
  }
}
