/* ==============================
   RESIDENTIAL INTERIOR PAGE
   ============================== */

.residential-page {
  background: var(--color-bg);
  color: var(--color-text);
}

/* HERO */
.res-hero {
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("Images/icons/residential_interior.jpg");
  background-size: cover;
  background-position: center;
  height: 85vh;
  min-height: 550px;
  padding: 6rem 0;
  color: #fff;
}

/* Commercial hero uses same base but different image */
.commercial-hero {
  background:
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
    url("Images/commercial/corporate-office1.jpg");
  background-size: cover;
  background-position: center;
}


.hero-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-top: 8rem;
  margin-bottom: 1rem;
}

.hero-inner p {
  max-width: 640px;
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}


/* CUSTOM FURNITURE PAGE
   Inherits Residential Interior styles
*/

.custom-hero {
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("Images/furniture/sofa_1.png");
  background-size: cover;
  background-position: center;    
}


/* WHAT WE DESIGN */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.4rem;
}

.res-card {
  background: #fff;
  padding: 1.6rem;
  border-radius: .9rem;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  text-align: center;
}

/* WHY CHOOSE */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.4rem;
}

.why-item {
  background: #fff;
  padding: 1.6rem;
  border-radius: .9rem;
  box-shadow: var(--shadow-soft);
}


/* ==============================
   WHY ELANCRAFT SECTION
   ============================== */

.why-elancraft {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #fafafa, #ffffff);
  
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

/* Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

/* Card */
.why-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 14px 32px rgba(0,0,0,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Icon */
.why-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 0.8rem;
}

/* Title */
.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

/* Text */
.why-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Hover effect */
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================
   RESIDENTIAL PROCESS SECTION
   ============================== */

.residential-process {
  padding: 5rem 0;
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
}

/* Header */
.section-header {
  max-width: 760px;
  margin-bottom: 3.5rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Timeline */
.process-timeline {
  position: relative;  
  display: grid;
  gap: 1.6rem;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 170, 114, 0.4),
    transparent
  );
}

/* Step Card */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1.4rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

.process-step{
    position: relative;
}


.process-step:nth-child(even) {
  direction: rtl;
}

.process-step:nth-child(even) .step-content {
  direction: ltr;
}


/* Number */
.step-number {
  background: radial-gradient(circle at top left, #f7efe0, #ffffff);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Content */
.step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Hover */
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.14);
}

/* Responsive */
@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .step-number {
    font-size: 1.6rem;
  }
}

.reveal {
   opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}



/* ==============================
   FEATURED RESIDENTIAL STORIES
   ============================== */

.featured-residential {
  padding: 6rem 0;
  background: #ffffff;
}


/* Story Layout */
.story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.story.reverse {
  grid-template-columns: 1fr 1.2fr;
}

/* Image */
.story-image {
  overflow: hidden;
  border-radius: 1.6rem;
}

.story-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story:hover img {
  transform: scale(1.05);
}

/* Content */
.story-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.story-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.story-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* CTA */
.featured-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 980px) {
  .story,
  .story.reverse {
    grid-template-columns: 1fr;
  }

  /* .story-image img {
    height: 420px;
  } */
}


/* ==============================
   FEATURED CUSTOM FURNITURE
================================ */

.featured-projects {
  padding: 6rem 0;
}

.featured-projects .section-header {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.featured-projects .section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.featured-projects h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.featured-projects p {
  font-size: 1rem;
  color: var(--color-text-muted);
}


/* Grid same as portfolio */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Card */
.portfolio-card {
  background: none;
  border: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

/* Image */
.portfolio-image {
  position: relative;
  height: 420px;
  border-radius: var(--radius-base);
  overflow: hidden;
  background: #eaeaea;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 0.6;
}

/* Title on image */
.portfolio-title-overlay {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Description */
.portfolio-description {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}





/* BEFORE AFTER */
/* ===============================
   TRANSFORMATION STORIES
   =============================== */

.transformations {
  background: #ffffff;
  padding: 5rem 0;
}

.transformation-story {
  margin-top: 4rem;
}

/* Meta */
.story-meta {
  margin-bottom: 1.2rem;
}

.story-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.story-meta span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Compare layout */
.story-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.4rem;
}

/* Images */
.story-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-base);
}

.story-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* BEFORE styling */
.story-image.before img {
  filter: grayscale(100%) contrast(0.9) brightness(0.95);
}

/* AFTER styling */
.story-image.after img {
  filter: none;
}

/* Caption */
.story-image figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Divider */
.story-divider {
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent),
    transparent
  );
}

.section-divider {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-accent),
    transparent
  );
}

/* Description */
.story-note {
  max-width: 760px;
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 900px) {
  .story-compare {
    grid-template-columns: 1fr;
  }

  .story-divider {
    display: none;
  }

  .story-image img {
    height: 320px;
  }
}


/* ==============================
   TRANSFORMATION STORIES CUSTOM FURNITURE
================================ */

.transformations {
  padding: 6rem 0;
  background: linear-gradient(180deg, #ffffff, #f7f6f4);
}

.transformations .section-header {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.transformations .section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.transformations h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.transformations p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Grid */
.transformation-grid {
  display: grid;
  gap: 2.5rem;
}

/* Card */
.transformation-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  /* align-items: center; */
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 2.4rem;
  box-shadow: 0 22px 50px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
   min-height: 420px;
  align-items: stretch;
}

.transformation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 65px rgba(0,0,0,0.14);
}

/* Image */
.transformation-image {
  border-radius: 1.1rem;
  overflow: hidden;
  height: 360px;            /* 🔒 Fixed image height */
  border-radius: 1.1rem;
  overflow: hidden;
  background: #e6e6e6;
}

.transformation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */

.transformation-content {

  display: flex;
  flex-direction: column;
  justify-content: center;

}
.transformation-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.transformation-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .transformation-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}


/* ==============================
   LIGHTBOX
   ============================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox-view img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: none;
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .res-gallery {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 520px) {
  .res-gallery {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   PORTFOLIO STYLE SERVICE CARDS
   =============================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.portfolio-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  padding: 1.6rem 1.8rem;
}

/* Image container (THIS WAS MISSING) */
.portfolio-image {
  position: relative;
  width: 100%;
  height: 360px; /* SAME HEIGHT AS PORTFOLIO */
  overflow: hidden;
  background: #e6e6e6;
}

/* Image */
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Content */
.portfolio-content {
  padding: 1rem 1rem 1.2rem;
}

.portfolio-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Hover */
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.16);
}

.portfolio-card:hover img {
  transform: scale(1.08);
}
