﻿/* ==========================================================================
   SEASONS FIND 837 CC â€” COMPONENT STYLES
   Specialized UI Modules: Hero, Estimator, Portfolio, Modals, Forms & Timeline
   Supporting default clean Architectural Light Theme and Dark Theme
   ========================================================================== */

/* ==========================================================================
   HERO BANNER COMPONENT
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(88vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter var(--transition-normal);
}

:root .hero-bg-img, [data-theme="light"] .hero-bg-img {
  filter: brightness(0.7) contrast(1.05);
}

[data-theme="dark"] .hero-bg-img {
  filter: brightness(0.28) contrast(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: background var(--transition-normal);
}

:root .hero-overlay, [data-theme="light"] .hero-overlay {
  background: radial-gradient(circle at 75% 30%, rgba(16, 185, 129, 0.08), transparent 50%),
              linear-gradient(to right, rgba(248, 250, 252, 0.98) 42%, rgba(248, 250, 252, 0.85) 100%),
              linear-gradient(to top, var(--bg-deep) 0%, transparent 40%);
}

[data-theme="dark"] .hero-overlay {
  background: radial-gradient(circle at 75% 30%, rgba(16, 185, 129, 0.15), transparent 50%),
              linear-gradient(to right, rgba(5, 10, 20, 0.98) 35%, rgba(5, 10, 20, 0.75) 100%),
              linear-gradient(to top, var(--bg-deep) 0%, transparent 40%);
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 760px;
}

.hero-title {
  margin-block: 1rem 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
}

.hero-mini-stat strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-main);
  line-height: 1;
}

.hero-mini-stat span {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* ==========================================================================
   PAGE BANNER (INTERNAL PAGES)
   ========================================================================== */

.page-banner {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

:root .page-banner, [data-theme="light"] .page-banner {
  background: radial-gradient(ellipse at top right, rgba(16, 185, 129, 0.06), transparent 70%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-deep) 100%);
}

[data-theme="dark"] .page-banner {
  background: radial-gradient(ellipse at top right, rgba(16, 185, 129, 0.12), transparent 70%),
              linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}

.page-banner-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-block: 0.5rem 1rem;
  color: var(--text-main);
}

.page-banner-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--text-subtle);
}

/* ==========================================================================
   SERVICES SHOWCASE
   ========================================================================== */

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card-top {
  margin-bottom: 1.5rem;
}

.service-card-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  color: var(--text-main);
}

.service-card-text {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.service-tag {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.service-link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  gap: 0.7rem;
}

/* ==========================================================================
   PROJECTS / PORTFOLIO FILTER & GRID
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   TURNKEY PROCESS TIMELINE
   ========================================================================== */

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(16, 185, 129, 0.1) 100%);
  z-index: 1;
}

.process-step {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.process-step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.process-step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  flex-grow: 1;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.process-step:hover .process-step-content {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.process-step-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-main);
}

.process-step-duration {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-gold);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE ESTIMATOR / QUOTE TOOL
   ========================================================================== */

.estimator-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.estimator-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.estimator-summary-card {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  box-shadow: var(--shadow-lg);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.step-header h3 {
  color: var(--text-main);
}

.step-pill {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.chip-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chip-option {
  position: relative;
}

.chip-option input[type="radio"],
.chip-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.chip-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-label svg {
  color: var(--color-primary);
}

.chip-label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chip-option input:checked + .chip-label {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.chip-option input:checked + .chip-label span {
  color: var(--color-primary);
  font-weight: 700;
}

.range-slider-wrapper {
  margin-bottom: 2rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.range-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-medium);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  border: 2px solid #ffffff;
}

.summary-price-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-block: 1.5rem;
}

.summary-price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.summary-price-amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-block: 0.4rem 0.2rem;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.summary-row span:first-child {
  color: #94a3b8;
}

.summary-row span:last-child {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-control::placeholder {
  color: var(--text-subtle);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ==========================================================================
   TOAST NOTIFICATION & MODALS
   ========================================================================== */

.toast-box {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--bg-surface);
  border: 1px solid var(--color-primary);
  color: var(--text-main);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 2000;
  transition: transform var(--transition-normal);
  font-weight: 600;
  max-width: 90vw;
}

.toast-box.show {
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  color: var(--text-main);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.modal-body {
  padding: 2.5rem;
}

/* ==========================================================================
   ACCORDION FAQ
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal), background var(--transition-normal);
  color: var(--text-main);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding-inline: 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE COMPONENT ADJUSTMENTS
   ========================================================================== */

@media (max-width: 900px) {
  .estimator-container {
    grid-template-columns: 1fr;
  }
  .estimator-summary-card {
    position: static;
  }
  .process-timeline::before {
    left: 23px;
  }
  .process-step-num {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .modal-body {
    padding: 1.5rem;
  }
}

