/* ARUDRAH INTERIORS - PAGE SPECIFIC STYLES */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100svh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero img,
.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.82),
        rgba(0,0,0,.35),
        rgba(0,0,0,.15)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 24px;
    padding-bottom: 36px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.8rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}

.hero p.lead {
  font-size: clamp(1.05rem, 0.5vw + 0.85rem, 1.25rem);
  color: #E2E2E8;
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  flex: 0 0 auto;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-item p {
  font-size: 0.78rem;
  color: #A1A1A6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Signature EQC Calculator Section */
.eqc-teaser-card {
  background: var(--color-surface-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-luxury);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eqc-teaser-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.eqc-teaser-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(200, 16, 46, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

.eqc-teaser-title {
  font-family: 'monospace';
  font-size: 0.85rem;
  color: #A1A1A6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eqc-teaser-metric {
  display: flex;
  flex-direction: column;
}

.eqc-teaser-label {
  font-size: 0.9rem;
  color: #A1A1A6;
  margin-bottom: 0.5rem;
}

.eqc-teaser-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.eqc-teaser-match {
  font-size: 0.8rem;
  color: #2A9D8F;
  margin-top: 0.35rem;
  font-weight: 700;
}

.eqc-teaser-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eqc-teaser-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.eqc-teaser-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #A1A1A6;
}

.eqc-teaser-progress-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.eqc-teaser-progress-bar {
  height: 100%;
  border-radius: 3px;
}

.eqc-teaser-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

.eqc-teaser-meta-item {
  display: flex;
  flex-direction: column;
}

.eqc-teaser-meta-label {
  font-size: 0.75rem;
  color: #A1A1A6;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.eqc-teaser-meta-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

/* Before / After Comparison Slider */
.before-after-container {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  user-select: none;
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.before-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #FFFFFF;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-red-glow);
}

/* Interactive 6-Step Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}

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

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

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

.process-step:hover {
  background: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.process-step-num {
  width: 42px;
  height: 42px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

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

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

.filter-btn.active, .filter-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-red-glow);
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #FFFFFF;
  transform: translateY(15px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.project-card:hover .project-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Material Quality Explorer */
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.material-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 2rem;
  transition: all var(--transition-smooth);
}

.material-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-luxury);
}

.material-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Comparison Section (Designer vs Carpenter) */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .comparison-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-smooth);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.comparison-card.designer {
  background: var(--color-surface-dark);
  color: #FFFFFF;
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: var(--shadow-luxury);
}

.comparison-card.designer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.comparison-card.carpenter {
  background: var(--color-bg-alt);
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.comparison-header {
  margin-bottom: 2rem;
}

.comparison-header h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.comparison-card.designer .comparison-header h3 {
  color: #FFFFFF;
}

.comparison-card.designer .comparison-header p {
  color: var(--color-text-muted);
}

.comparison-card.carpenter .comparison-header p {
  color: var(--color-text-secondary);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.comparison-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.comparison-card.designer .comparison-icon {
  background: rgba(0, 194, 111, 0.15);
  color: #00C26F;
}

.comparison-card.carpenter .comparison-icon {
  background: rgba(200, 16, 46, 0.1);
  color: #C8102E;
}

.comparison-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.comparison-item-content strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.comparison-card.designer .comparison-item-content p {
  color: #A1A1A6;
  font-size: 0.92rem;
  line-height: 1.5;
}

.comparison-card.carpenter .comparison-item-content p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.comparison-footer-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.comparison-card.designer .comparison-footer-badge {
  background: var(--color-primary);
  color: #FFFFFF;
}

.comparison-card.carpenter .comparison-footer-badge {
  background: #E5E5EA;
  color: #555;
}

/* =============================================
   PAGES.CSS — MOBILE RESPONSIVE BREAKPOINTS
============================================= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .hero {
    padding-bottom: 3.5rem;
    align-items: flex-end;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 3.5vw + 0.5rem, 2.1rem);
  }

  .before-after-container {
    height: 380px;
  }

  .eqc-teaser-price {
    font-size: 2.25rem;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {

  /* Hero Sizing and Padding Overrides */
  .hero {
    height: auto !important;
    min-height: 100svh !important;
    padding-top: calc(var(--header-height) + 2.5rem) !important;
    padding-bottom: 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
  }

  .hero-content {
    max-width: 100% !important;
    padding: 18px !important;
    padding-bottom: 28px !important;
  }

  .hero h1 {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }

  .hero p, .hero p.lead {
    font-size: 16px !important;
  }

  .hero-buttons, .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero-buttons a, .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 0.9rem !important;
    padding: 0 1.25rem !important;
  }

  .stats, .hero-stats {
    margin-top: 30px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .stat-item h3 {
    font-size: 1.25rem;
  }

  .stat-item p {
    font-size: 0.72rem;
  }

  /* Before / After Slider */
  .before-after-container {
    height: 260px;
    border-radius: var(--radius-sm);
  }

  /* Process Timeline */
  .process-step {
    padding: 1.25rem 1rem;
  }

  .process-step-num {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
  }

  /* EQC Teaser Card */
  .eqc-teaser-card {
    padding: 1.5rem;
  }

  .eqc-teaser-price {
    font-size: 2rem;
  }

  /* Filter tabs — scroll horizontally on small screens */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
  }

  /* Comparison cards */
  .comparison-card {
    padding: 1.5rem;
  }

  .comparison-header h3 {
    font-size: 1.2rem;
  }

  /* Material grid */
  .material-card {
    padding: 1.5rem;
  }

  /* Footer bottom bar fix */
  footer .grid-4 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Very small phones (≤420px) */
@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  footer .grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Contact Page Layout overrides (Parallel on tablet and desktop, stack only on mobile) */
@media (min-width: 768px) {
  .contact-page-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }
}

@media (max-width: 992px) {
  .contact-page-grid .card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .contact-page-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* Lightbox Modal Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #FFF;
  font-size: 3.5rem;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Milestone Steps in Guarantee Page */
.milestone-node {
  border: 1px solid var(--color-border-dark);
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.milestone-node.active {
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(214, 40, 40, 0.25);
}

.milestone-node:hover {
  border-color: rgba(214, 40, 40, 0.5);
}

/* =============================================
   MOBILE RESPONSIVENESS AND PERFORMANCE FIXES
============================================= */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  /* Prevent horizontal scroll from elements with large padding or margin */
  .section, main, header, footer {
    overflow-x: hidden !important;
  }
  
  /* Scale down massive headings */
  h1 {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
  }
  
  /* Prevent inline padding/margin from overflowing on small devices */
  div[style*="padding: 3rem"], 
  div[style*="padding: 2.5rem"], 
  div[style*="padding: 2rem"],
  section[style*="padding"] {
    padding: 1.5rem !important;
  }
  
  /* Adjust milestone nodes layout for mobile viewports */
  .milestone-node {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    text-align: center;
    box-sizing: border-box;
  }
  
  /* Prevent buttons from overflowing on extremely narrow viewports */
  .btn {
    white-space: normal !important;
    height: auto !important;
    min-height: var(--btn-height);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    text-align: center;
  }
  
  /* Optimize comparison cards on small screens */
  .comparison-card {
    padding: 1.5rem !important;
  }
  
  /* Stack 6-step process timeline on narrow phones */
  .process-timeline {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
}

@media (max-width: 400px) {
  /* Keep logo text visible on small screens since centered menu is shifted right */
  .logo-text {
    display: flex !important;
  }
}

