/* ==========================================================================
   HASSAN AL-NOUBANI FOR DECORATION AND ROOF TILES
   UI Components Stylesheet
   ========================================================================== */

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Service Card Component */
.service-card {
  background-color: var(--card-bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--copper);
  box-shadow: var(--shadow-lg);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark-brown);
}

.service-card-desc {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card:hover .service-card-link {
  color: var(--copper);
  gap: 0.85rem;
}

/* Materials & Craftsmanship Showcase */
.craft-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.craft-features {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.craft-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 133, 80, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.craft-feature-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--copper);
  transform: translateX(-6px);
}

.craft-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--terracotta), var(--copper));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.craft-feature-title {
  color: var(--pure-white);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.craft-feature-desc {
  color: rgba(247, 243, 238, 0.75);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Work Process Timeline (5 Stages) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step {
  background-color: var(--card-bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.process-step:hover {
  border-color: var(--copper);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-brown), var(--primary-dark-brown));
  border: 2px solid var(--copper);
  color: var(--copper-light);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(43, 26, 22, 0.2);
}

.process-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark-brown);
}

.process-desc {
  font-size: 0.88rem;
  color: var(--muted-text);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Why Choose Us Cards */
.strength-card {
  background-color: var(--card-bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.strength-card:hover {
  border-color: var(--copper);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.strength-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--warm-off-white);
  border: 1px solid var(--border-copper);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.strength-card:hover .strength-icon {
  background: linear-gradient(135deg, var(--terracotta), var(--copper));
  color: var(--pure-white);
}

/* Portfolio & Projects Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background-color: var(--card-bg-light);
  border: 1px solid var(--border-subtle);
  color: var(--dark-text);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-dark-brown);
  color: var(--pure-white);
  border-color: var(--primary-dark-brown);
  box-shadow: var(--shadow-sm);
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--deep-brown);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--copper);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-cinematic);
}

.project-card:hover .project-card-img {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(33, 19, 16, 0.92) 0%, rgba(43, 26, 22, 0.45) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--pure-white);
  transition: opacity var(--transition-fast);
}

.project-badge {
  font-size: 0.78rem;
  color: var(--copper-light);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 1.25rem;
  color: var(--pure-white);
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 0.88rem;
  color: rgba(247, 243, 238, 0.8);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Blog Article Cards */
.blog-card {
  background-color: var(--card-bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--copper);
  box-shadow: var(--shadow-lg);
}

.blog-card-img-wrap {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-color: var(--deep-brown);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-cinematic);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
}

.blog-category-tag {
  color: var(--terracotta);
  font-weight: 600;
  background-color: rgba(169, 79, 45, 0.08);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.blog-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--primary-dark-brown);
  line-height: 1.45;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: var(--terracotta);
  font-weight: 600;
}

/* Quote Request Form Component */
.quote-form-card {
  background-color: var(--pure-white);
  border: 1px solid var(--border-copper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark-brown);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--warm-off-white);
  color: var(--dark-text);
  font-size: 0.98rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--copper);
  background-color: var(--pure-white);
  box-shadow: 0 0 0 3px rgba(217, 133, 80, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-feedback {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #D32F2F;
  display: none;
}

.form-feedback.visible {
  display: block;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(20, 10, 8, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-copper);
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--pure-white);
  text-align: center;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  left: 0;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--copper-light);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(56, 35, 29, 0.8);
  border: 1px solid var(--border-copper);
  color: var(--pure-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background-color: var(--terracotta);
}

.lightbox-prev { right: -4rem; }
.lightbox-next { left: -4rem; }

@media (max-width: 1200px) {
  .lightbox-prev { right: 1rem; }
  .lightbox-next { left: 1rem; }
}

/* ==========================================================================
   MASTER PROMPT ADDITIONS: Milestones, Warranty, Photo Doc, YouTube Showcase
   ========================================================================== */

/* Timeline & Milestones */
.milestones-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 2.5rem;
}

@media (max-width: 860px) {
  .milestones-track {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.milestone-item {
  background: var(--pure-white);
  border: 1px solid var(--border-copper);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.milestone-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.milestone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--terracotta), var(--copper));
  color: var(--pure-white);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.milestone-title {
  font-size: 1.25rem;
  color: var(--primary-dark-brown);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.milestone-desc {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.75;
}

/* 5-Year Workmanship Warranty Trust Banner */
.warranty-banner {
  background: linear-gradient(135deg, var(--deep-brown) 0%, var(--primary-dark-brown) 100%);
  border: 1px solid var(--border-copper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--warm-off-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.warranty-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--terracotta), var(--copper-light));
}

.warranty-seal-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.warranty-seal-badge {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(217, 133, 80, 0.15);
  border: 2px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--copper-light);
}

/* Technical Expertise & Documentation Cards */
.tech-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.tech-spec-card {
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.tech-spec-card:hover {
  border-color: var(--copper);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tech-spec-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(169, 79, 45, 0.08);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.tech-spec-title {
  font-size: 1.18rem;
  color: var(--primary-dark-brown);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.tech-spec-desc {
  font-size: 0.92rem;
  color: var(--muted-text);
  line-height: 1.7;
}

.tech-note-box {
  background: rgba(217, 133, 80, 0.08);
  border-right: 4px solid var(--copper);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #55443D;
  margin-top: 1.25rem;
  line-height: 1.65;
}

/* YouTube Educational Section */
.yt-showcase-box {
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.yt-channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.yt-badge-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.yt-icon-svg {
  width: 48px;
  height: 48px;
  color: #FF0000;
  flex-shrink: 0;
}

.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.yt-video-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--warm-off-white);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.yt-video-card:hover {
  transform: translateY(-4px);
  border-color: var(--copper);
}

.yt-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--deep-brown);
  overflow: hidden;
}

.yt-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.yt-video-card:hover .yt-video-thumb img {
  transform: scale(1.05);
}

.yt-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 0, 0, 0.9);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.yt-video-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.yt-video-title {
  font-size: 1.05rem;
  color: var(--primary-dark-brown);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.45;
}

.yt-video-desc {
  font-size: 0.88rem;
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.yt-video-link {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.yt-video-link:hover {
  color: var(--terracotta-hover);
  text-decoration: underline;
}

/* ==========================================================================
   YOUTUBE WORKS PORTFOLIO & ARCHITECTURAL VIDEO GALLERY
   ========================================================================== */

/* Single Works Filter Badge: 'كافة أعمالنا' */
.works-single-filter-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.75rem;
}

.works-single-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--copper) 100%);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(169, 79, 45, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: -0.01em;
  user-select: none;
}

.works-single-tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #38A169;
  box-shadow: 0 0 10px #48BB78;
  animation: liveWorkDotPulse 2s infinite ease-in-out;
}

@keyframes liveWorkDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

/* YouTube Channel Hub Feature Banner */
.yt-channel-hub-banner {
  background: linear-gradient(135deg, #2B1A16 0%, #38231D 60%, #44261E 100%);
  border: 1px solid rgba(217, 133, 80, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--pure-white);
  margin-bottom: 3.5rem;
  box-shadow: 0 16px 36px rgba(43, 26, 22, 0.45);
  position: relative;
  overflow: hidden;
}

.yt-channel-hub-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(217, 133, 80, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.yt-hub-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.yt-hub-info {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 720px;
}

.yt-hub-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF0000 0%, #B30000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
  flex-shrink: 0;
}

.yt-hub-logo-wrap svg {
  width: 36px;
  height: 36px;
}

.yt-hub-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--copper-light);
  background: rgba(217, 133, 80, 0.18);
  border: 1px solid rgba(217, 133, 80, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.yt-hub-title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--pure-white);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.yt-hub-desc {
  font-size: 0.96rem;
  color: rgba(247, 243, 238, 0.88);
  line-height: 1.7;
  margin: 0;
}

.yt-hub-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.btn-yt-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #FF0000;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 1.85rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-yt-subscribe:hover {
  background: #D90000;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.6);
  color: #FFFFFF;
}

.yt-hub-subtext {
  font-size: 0.82rem;
  color: rgba(247, 243, 238, 0.7);
}

/* Projects Video Cards Grid */
.projects-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

@media (max-width: 640px) {
  .projects-video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.project-video-card {
  background: var(--pure-white);
  border: 1px solid rgba(56, 35, 29, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.project-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(56, 35, 29, 0.14);
  border-color: var(--copper);
}

.video-thumb-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1A0E0B;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.project-video-card:hover .video-thumb-img {
  transform: scale(1.08);
}

.video-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.video-yt-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(204, 0, 0, 0.92);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.video-yt-badge-icon {
  width: 14px;
  height: 14px;
}

.video-duration-chip {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.82);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.video-play-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF0000 0%, #D9230F 100%);
  color: #FFFFFF;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  z-index: 2;
}

.video-play-pulse svg {
  margin-right: -3px;
}

.project-video-card:hover .video-play-pulse {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.6), 0 0 0 12px rgba(255, 0, 0, 0.18);
}

.video-card-body {
  padding: 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #FFFFFF;
}

.video-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.video-topic-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(169, 79, 45, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(169, 79, 45, 0.18);
}

.video-location-tag {
  font-size: 0.82rem;
  color: var(--muted-text);
  font-weight: 600;
}

.video-card-title {
  font-size: 1.15rem;
  color: var(--primary-dark-brown);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 0.65rem;
  font-family: var(--font-heading);
}

.video-card-desc {
  font-size: 0.92rem;
  color: #55443D;
  line-height: 1.65;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.video-scope-box {
  background: var(--warm-off-white);
  border: 1px dashed rgba(217, 133, 80, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.84rem;
  color: #4A352F;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.video-scope-box strong {
  color: var(--terracotta);
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.btn-watch-modal {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--terracotta) 0%, #8D3A1B 100%);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-watch-modal:hover {
  background: linear-gradient(135deg, var(--terracotta-hover) 0%, #A94F2D 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(169, 79, 45, 0.35);
}

.btn-yt-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(204, 0, 0, 0.08);
  color: #CC0000;
  border: 1px solid rgba(204, 0, 0, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.68rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-yt-direct:hover {
  background: #CC0000;
  color: #FFFFFF;
  border-color: #CC0000;
}

/* Architectural Video Player Dialog (<dialog>) */
.architectural-video-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: #1F1310;
  color: var(--pure-white);
  max-width: 920px;
  width: 94vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  margin: auto;
}

.architectural-video-dialog::backdrop {
  background: rgba(18, 10, 8, 0.88);
  backdrop-filter: blur(8px);
}

.video-dialog-inner {
  display: flex;
  flex-direction: column;
}

.video-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: #2B1A16;
  border-bottom: 1px solid rgba(217, 133, 80, 0.25);
}

.video-dialog-badge {
  font-size: 0.75rem;
  color: var(--copper-light);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.video-dialog-title {
  font-size: 1.15rem;
  color: var(--pure-white);
  margin: 0;
  line-height: 1.45;
  font-family: var(--font-heading);
}

.video-dialog-location {
  font-size: 0.82rem;
  color: rgba(247, 243, 238, 0.7);
  display: block;
  margin-top: 0.25rem;
}

.video-dialog-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-dialog-close:hover {
  background: #CC0000;
  border-color: #CC0000;
  transform: scale(1.1);
}

.video-dialog-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000000;
}

.video-dialog-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog-footer {
  padding: 1.25rem 1.75rem 1.5rem;
  background: #251613;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-dialog-desc {
  font-size: 0.92rem;
  color: rgba(247, 243, 238, 0.85);
  line-height: 1.6;
  margin: 0;
}

.video-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

