/**
 * One Creative Cove (1creativecove.com)
 * Components & Interactive Elements Stylesheet
 */

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-label .required-star {
  color: var(--c-sunset);
  margin-left: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.9375rem 1.25rem;
  background: rgba(5, 12, 19, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9375rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--c-gold);
  background: rgba(8, 20, 31, 0.9);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.form-control::placeholder {
  color: var(--text-faint);
  font-size: 0.875rem;
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-gold);
  margin-top: 0.15rem;
  cursor: pointer;
}

.form-check label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-check label a {
  color: var(--c-gold);
  text-decoration: underline;
}

/* Radio / Pill Selectors */
.pill-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pill-option {
  position: relative;
}

.pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-option label {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: rgba(10, 24, 35, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--text-body);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
}

.pill-option input[type="radio"]:checked + label {
  background: var(--c-gold);
  color: #1a1200;
  border-color: var(--c-gold-light);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.pill-option label:hover {
  border-color: var(--c-gold);
  color: #fff;
}

/* Multi-Step Form Navigation & Progress */
.step-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-50%);
  z-index: 1;
}

.step-progress-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}

.step-node {
  position: relative;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-night-ocean);
  border: 2px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-node.active {
  border-color: var(--c-gold);
  color: #1a1200;
  background: var(--gold-gradient);
  box-shadow: var(--glow-gold);
  font-weight: 700;
}

.step-node.completed {
  border-color: var(--c-teal-bright);
  background: var(--c-teal-deep);
  color: #fff;
}

.form-step-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

/* Portfolio Filters */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 24, 35, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-gradient);
  color: #1a1200;
  border-color: var(--c-gold);
  font-weight: 600;
  box-shadow: var(--glow-gold);
}

/* Portfolio Project Detail View */
.project-detail-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  background-color: var(--c-obsidian);
}

.project-detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
  z-index: 1;
}

.project-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,7,11,0.3) 0%, rgba(3,7,11,0.85) 70%, #03070b 100%);
  z-index: 2;
}

.project-detail-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.story-box {
  background: var(--c-cove-card);
  border: 1px solid var(--c-cove-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--c-gold);
}

.story-box-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--c-gold-light);
  margin-bottom: 1rem;
}

.story-box-text {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* Gallery Showcase */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3.5rem 0;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-cove-border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-cove-border-glow);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--c-gold);
  font-size: 2.25rem;
  cursor: pointer;
  z-index: 2001;
}

/* Team Section & Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  background: var(--c-cove-card);
  border: 1px solid var(--c-cove-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-card);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: #000;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.05);
}

.team-badge-placeholder {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(3, 7, 11, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--c-gold-light);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

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

.team-member-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-pure);
  margin-bottom: 0.35rem;
}

.team-member-role {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.team-member-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.team-member-quote {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--c-gold-light);
  border-left: 2px solid var(--c-teal-bright);
  padding-left: 0.75rem;
  margin-top: auto;
}

/* Alert Notifications */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #5eead4;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.alert-info {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #7dd3fc;
}

/* Accessibility Focus Outline */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

@media (max-width: 992px) {
  .project-story-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Portfolio Category Filter Grid Cards */
  .portfolio-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 2.5rem;
  }
  .portfolio-filter-bar .filter-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
  }
  .portfolio-filter-bar .filter-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Inquiry Form Selectors Transformed to Mobile Cards */
  .pill-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .pill-option {
    width: 100%;
  }
  .pill-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: rgba(10, 24, 35, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    text-align: left;
  }
  .pill-option label::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-left: 0.75rem;
  }
  .pill-option input[type="radio"]:checked + label {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--c-gold);
    color: #fff;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
  }
  .pill-option input[type="radio"]:checked + label::after {
    background: var(--c-gold);
    border-color: var(--c-gold);
    box-shadow: 0 0 8px var(--c-gold);
  }

  /* Form row 2 columns fallback */
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Step Progress Bar */
  .step-progress-bar {
    margin-bottom: 2rem;
  }
  .step-label {
    display: none;
  }
}
