/* ADIGEBAU - Styles Part 2 */

/* Section Headers */
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 500; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.section-title { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; }
.section-title em { display: block; font-style: italic; color: var(--gold); }
.section-desc { font-size: 1.1rem; color: var(--gray-400); max-width: 600px; }

/* About */
.about { padding: clamp(5rem, 12vw, 10rem) 0; background: var(--black-light); position: relative; overflow: hidden; }
.about::before { content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,169,98,0.08) 0%, transparent 70%); pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual { position: relative; }
.visual-frame { position: relative; aspect-ratio: 4/5; padding: 1.5rem; }
.visual-frame::before, .visual-frame::after, .visual-frame .corner-br, .visual-frame .corner-bl {
    content: ''; position: absolute; width: 60px; height: 60px; border: 1px solid var(--gold); border-width: 0;
}
.visual-frame::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.visual-frame::after { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.visual-frame .corner-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.visual-frame .corner-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.visual-img { width: 100%; height: 100%; position: relative; overflow: hidden; }
.visual-img video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) contrast(1.1); }
.visual-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.1); pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E"); }
.visual-img svg { width: 100px; height: 100px; color: var(--gray-400); opacity: 0.3; }
.visual-badge { position: absolute; bottom: -20px; right: -20px; background: var(--black); border: 1px solid var(--gold); padding: 1.5rem 2rem; text-align: center; }
.visual-badge small { display: block; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; }
.visual-badge strong { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: var(--white); }
.about-text { margin-bottom: 2.5rem; }
.about-text .lead { font-size: 1.25rem; color: var(--white); margin-bottom: 1.5rem; }
.about-features { display: flex; flex-direction: column; gap: 1rem; }
.feature { display: flex; gap: 1rem; padding: 1.25rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
.feature:hover { border-color: rgba(201,169,98,0.3); }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.feature p { font-size: 0.9rem; color: var(--gray-400); margin: 0; }

/* Services */
.services { padding: clamp(5rem, 12vw, 10rem) 0; background: var(--black); }
.services .section-header { text-align: center; margin-bottom: 4rem; }
.services .section-desc { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card { position: relative; padding: 2.5rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); overflow: hidden; transition: all 0.4s; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform 0.4s; }
.service-card:hover { border-color: rgba(201,169,98,0.3); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { font-family: var(--font-display); font-size: 0.9rem; color: var(--gold-dark); letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.service-icon { width: 64px; height: 64px; color: var(--gold); margin-bottom: 1.5rem; transition: transform 0.4s; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.service-card > p { color: var(--gray-400); margin-bottom: 1.5rem; }
.service-list li { position: relative; padding-left: 1.25rem; font-size: 0.9rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.service-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--gold); }

/* Flagship */
.flagship { padding: clamp(5rem, 12vw, 10rem) 0; background: var(--black-light); position: relative; }
.flagship::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 50% 0%, rgba(201,169,98,0.1) 0%, transparent 60%); pointer-events: none; }
.flagship .section-header { position: relative; z-index: 1; }
.flagship-showcase { position: relative; z-index: 1; margin-bottom: 3rem; }
.showcase-main { position: relative; margin-bottom: 1.5rem; }
.showcase-img { aspect-ratio: 16/9; background: var(--charcoal); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-img svg { width: 120px; height: 120px; color: var(--gray-400); opacity: 0.2; }
.showcase-nav { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 1.5rem; background: rgba(10,10,10,0.9); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; }
.showcase-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--white); border-radius: 50%; transition: all 0.3s; cursor: pointer; }
.showcase-btn:hover { color: var(--gold); background: rgba(201,169,98,0.1); }
.showcase-btn svg { width: 20px; height: 20px; }
.showcase-counter { font-family: var(--font-display); }
.showcase-counter .current { font-size: 1.25rem; color: var(--white); }
.showcase-counter .divider { color: var(--gray-400); margin: 0 0.25rem; }
.showcase-counter .total { font-size: 0.9rem; color: var(--gray-400); }
.showcase-thumbs { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
.showcase-thumbs::-webkit-scrollbar { display: none; }
.thumb { flex-shrink: 0; width: 100px; height: 70px; background: var(--charcoal); border: 2px solid transparent; opacity: 0.5; cursor: pointer; transition: all 0.3s; overflow: hidden; }
.thumb:hover { opacity: 0.8; }
.thumb.active { opacity: 1; border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.flagship-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.detail-card { padding: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); text-align: center; }
.detail-card small { display: block; font-size: 0.7rem; color: var(--gray-400); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; }
.detail-card span { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.detail-card .accent { color: var(--gold); }
.flagship-cta { text-align: center; position: relative; z-index: 1; }

/* Gallery */
.gallery { padding: clamp(5rem, 12vw, 10rem) 0; background: var(--black); }
.gallery .section-header { text-align: center; margin-bottom: 4rem; }
.gallery .section-desc { margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img, .gallery-placeholder { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { background: var(--charcoal); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--gray-400); letter-spacing: 0.1em; text-transform: uppercase; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.gallery-overlay span { font-size: 0.8rem; color: var(--gold); }
/* Transformation */
.transformation { margin-bottom: 3rem; }
.transform-label { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.before-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.before-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.before-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%) brightness(0.9); transition: all 0.5s ease; }
.before-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.1); pointer-events: none; }
.before-img:hover img { filter: grayscale(50%) brightness(0.8); }
.transform-divider { display: flex; align-items: center; gap: 2rem; margin: 3rem 0; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider-text { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--gold); white-space: nowrap; }
/* --- AFTER GRID (REPLACE YOUR CURRENT AFTER GRID CSS WITH THIS) --- */

.after-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  grid-auto-rows: 280px;     /* instead of grid-template-rows + fixed height */
  gap: 0.75rem;
}

/* tiles */
.after-img{
  overflow: hidden;
  position: relative;
  border-radius: 10px;       /* optional but usually helps */
}

.after-img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.9);
}

.after-img::before{
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,169,98,0);
  z-index: 1;
  transition: all 0.4s ease;
}

.after-img:hover::before{ border-color: rgba(201,169,98,0.6); }
.after-img:hover img{ transform: scale(1.08); filter: brightness(1); }

/* Desktop placement (same idea as you already had) */
.after-img-hero{ grid-column: 1; grid-row: 1 / span 2; }
.after-img:nth-child(2){ grid-column: 2; grid-row: 1; }
.after-img:nth-child(3){ grid-column: 3; grid-row: 1; }
.after-img:nth-child(4){ grid-column: 2; grid-row: 2; }
.after-img:nth-child(5){ grid-column: 3; grid-row: 2; }

/* Mobile */
@media (max-width: 768px){
  .after-grid{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;      /* let content decide */
  }

  /* Hero full width, stable height */
  .after-img-hero{
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 11;
  }

  /* All non-hero tiles become consistent squares */
  .after-img{
    aspect-ratio: 1 / 1;
  }

  /* IMPORTANT: remove forced nth-child placement on mobile */
  .after-img:nth-child(2),
  .after-img:nth-child(3),
  .after-img:nth-child(4),
  .after-img:nth-child(5){
    grid-column: auto;
    grid-row: auto;
  }
}
