/* ==========================================================================
   5 STAR CONSTRUCTION COMPANY — COMPONENTS STYLES
   Brown & White Luxury Architecture Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: all var(--timing-micro);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.btn-lg {
  padding: 15px 28px;
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

/* Primary Brand Bronze CTA */
.btn-primary {
  background-color: var(--color-brand-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(166, 101, 44, 0.35);
  border: 1px solid var(--color-brand-accent);
}

.btn-primary:hover {
  background-color: var(--color-brand-accent-hover);
  border-color: var(--color-brand-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 101, 44, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Deep Chocolate Brown Button */
.btn-secondary {
  background-color: var(--color-primary-brown);
  color: var(--color-white);
  border: 1px solid var(--color-primary-brown);
}

.btn-secondary:hover {
  background-color: var(--color-deep-brown);
  border-color: var(--color-deep-brown);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline Buttons */
.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-deep-brown);
  border: 1.5px solid var(--color-deep-brown);
}

.btn-outline-dark:hover {
  background-color: var(--color-deep-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* WhatsApp Conversion Button */
.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  border: 1px solid #20BA5C;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20BA5C;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   FLOATING WHATSAPP BUTTON WIDGET
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-floating);
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform var(--timing-micro), box-shadow var(--timing-micro);
  position: relative;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.6);
  color: var(--color-white);
}

.floating-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: pulseRing 2.4s infinite;
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-whatsapp-tooltip {
  display: none;
  background-color: var(--color-deep-brown);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-dark);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .floating-whatsapp:hover .floating-whatsapp-tooltip {
    display: block;
    animation: fadeInTooltip 0.2s ease forwards;
  }
}

/* --------------------------------------------------------------------------
   SERVICE CARDS
   -------------------------------------------------------------------------- */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--timing-interface), box-shadow var(--timing-interface), border-color var(--timing-interface);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(166, 101, 44, 0.45);
}

.service-card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 58%;
  overflow: hidden;
  background-color: #241208;
}

.service-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--timing-section);
}

.service-card:hover .service-card-image {
  transform: scale(1.06);
}

.service-card-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(36, 18, 8, 0.88);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--color-brand-accent);
}

.service-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-deep-brown);
  margin-bottom: var(--space-xs);
  transition: color var(--timing-micro);
}

.service-card:hover .service-card-title {
  color: var(--color-brand-accent);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.service-card-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card-highlights.service-card-highlights--multi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 6px;
}

.service-card-highlights li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}

.service-card-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.service-card-footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-deep-brown);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--timing-micro);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--timing-micro);
}

.service-card:hover .service-card-link {
  color: var(--color-brand-accent);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   PROJECT PORTFOLIO CARDS & LIGHTBOX
   -------------------------------------------------------------------------- */
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #241208;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--timing-interface), box-shadow var(--timing-interface);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-card-image-wrap {
  width: 100%;
  padding-top: 66%;
  position: relative;
  overflow: hidden;
}

.project-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--timing-section);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 18, 8, 0.1) 0%, rgba(26, 12, 5, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--color-white);
  transition: background var(--timing-interface);
}

.project-card-tag {
  display: inline-block;
  background-color: var(--color-brand-accent);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
  align-self: flex-start;
}

.project-card-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 4px;
}

.project-card-location {
  font-size: var(--text-xs);
  color: var(--color-brand-gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 9, 3, 0.96);
  backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--timing-interface);
}

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

.lightbox-content-box {
  background-color: #241208;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  max-width: 1040px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .lightbox-content-box {
    grid-template-columns: 1.4fr 1fr;
  }
}

.lightbox-image-wrap {
  background-color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-details {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--timing-micro);
}

.lightbox-close-btn:hover {
  background-color: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(36, 18, 8, 0.8);
  border: 1px solid var(--color-border-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--timing-micro);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background-color: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
}

.lightbox-prev-btn { left: 16px; }
.lightbox-next-btn { right: 16px; }

/* --------------------------------------------------------------------------
   FAQ ACCORDIONS
   -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--timing-micro), box-shadow var(--timing-micro);
}

.faq-item.active {
  border-color: var(--color-brand-accent);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-deep-brown);
  background: none;
  border: none;
  cursor: pointer;
  gap: var(--space-md);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--color-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--timing-micro), background-color var(--timing-micro), color var(--timing-micro);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--color-brand-accent);
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--timing-interface);
}

.faq-answer-inner {
  padding: 0 22px 20px 22px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-deep-brown);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-main);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--timing-micro);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-accent);
  box-shadow: 0 0 0 3px rgba(166, 101, 44, 0.15);
}

.form-control.is-invalid {
  border-color: #B91C1C;
  background-color: #FFF5F5;
}

.invalid-feedback {
  display: none;
  font-size: var(--text-xs);
  color: #B91C1C;
  margin-top: 4px;
  font-weight: 600;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Radio Selection Tiles */
.radio-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 115px), 1fr));
  gap: 10px;
}

.radio-tile-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  cursor: pointer;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-deep-brown);
  transition: all var(--timing-micro);
}

.radio-tile-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-tile-input:checked + .radio-tile-label {
  border-color: var(--color-brand-accent);
  background-color: rgba(166, 101, 44, 0.08);
  color: var(--color-brand-accent);
  box-shadow: 0 2px 10px rgba(166, 101, 44, 0.18);
}

/* --------------------------------------------------------------------------
   PROCESS TIMELINE STEPS
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.process-step-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: transform var(--timing-micro), box-shadow var(--timing-micro);
}

.process-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(166, 101, 44, 0.35);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: rgba(56, 29, 14, 0.12);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.process-step-card:hover .process-step-num {
  color: rgba(166, 101, 44, 0.3);
}

.process-step-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-deep-brown);
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* --------------------------------------------------------------------------
   CINEMATIC SCROLL-SYNCHRONIZED HERO VIDEO SHOWCASE
   -------------------------------------------------------------------------- */
.hero-video-card {
  background-color: rgba(26, 12, 5, 0.94);
  border: 1px solid rgba(198, 134, 66, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(166, 101, 44, 0.15);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color var(--timing-micro), box-shadow var(--timing-micro);
}

.hero-video-card:hover {
  border-color: rgba(198, 134, 66, 0.55);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(166, 101, 44, 0.25);
}

.hero-video-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(166, 101, 44, 0.18);
  border: 1px solid rgba(198, 134, 66, 0.4);
  color: #E8B98A;
}

.hero-video-mode-pill .mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38A169;
  box-shadow: 0 0 6px rgba(56, 161, 105, 0.9);
  transition: background-color var(--timing-micro);
}

.hero-video-mode-pill.is-autoplay .mode-dot {
  background-color: var(--color-brand-gold);
  box-shadow: 0 0 8px rgba(198, 134, 66, 0.9);
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #0D0603;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
  cursor: grab;
}

.hero-video-wrapper:active {
  cursor: grabbing;
}

.hero-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0D0603;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

.video-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(26, 12, 5, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(198, 134, 66, 0.4);
  border-radius: var(--radius-xs);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-timeline-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  z-index: 3;
  transition: height 0.15s ease, background-color 0.15s ease;
}

.video-timeline-track:hover {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.25);
}

.video-timeline-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #A6652C 0%, #C68642 60%, #E8B98A 100%);
  box-shadow: 0 0 10px rgba(232, 185, 138, 0.85);
  transition: width 0.04s linear;
}

.hero-video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: 6px;
  flex-wrap: wrap;
}

.video-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-time-display {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.05em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.video-hint-text {
  font-size: 11px;
  color: #D4C8BE;
}

.video-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-ctrl-btn {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #E8DFD5;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(198, 134, 66, 0.35);
  border-radius: var(--radius-xs);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--timing-micro);
}

.video-ctrl-btn:hover {
  background-color: rgba(166, 101, 44, 0.35);
  border-color: var(--color-brand-gold);
  color: var(--color-white);
  transform: translateY(-1px);
}

.video-ctrl-btn.active {
  background-color: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
  color: var(--color-white);
}
