/* ================================================
   INDEX PAGE CSS
   ================================================ */

/* ── HERO ─────────────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--green);
}
#hero-bg {
  position: absolute; inset: 0;
  background: url('../images/ipari-csarnokok-generalkivitelezes.jpg') center/cover no-repeat;
}
#hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(8,51,37,.87) 0%, rgba(8,51,37,.55) 60%, rgba(8,51,37,.75) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: var(--nav-h) 2rem 2rem; max-width: 860px; width: 100%;
}
.hero-eyebrow { font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--light); margin-bottom: 1.2rem; }
.hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 900;
  color: var(--cream); line-height: 1.3; margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.15rem); color: rgba(245,245,220,.72);
  font-weight: 300; max-width: 540px; margin: 0 auto 2rem; line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(245,245,220,.38); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero-scroll-line { width: 1px; height: 32px; background: linear-gradient(to bottom, rgba(245,245,220,.4), transparent); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center;
}
.hstat {
  flex: 1; max-width: 180px; padding: 1.2rem 1rem;
  background: rgba(8,51,37,.95); border-top: 2px solid var(--copper); text-align: center;
}
.hstat + .hstat { border-left: 1px solid rgba(168,213,186,.1); }
.hstat-n { font-family: 'Merriweather', serif; font-size: 1.8rem; font-weight: 700; color: var(--copper); line-height: 1; }
.hstat-l { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(168,213,186,.6); margin-top: .2rem; }

/* ── ABOUT ────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-imgs { position: relative; }
.about-img-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; box-shadow: 0 20px 60px rgba(8,51,37,.18); }
.about-img-secondary { position: absolute; bottom: -2rem; right: -1.5rem; width: 50%; aspect-ratio: 1.1; object-fit: cover; border-radius: 6px; border: 5px solid var(--cream); box-shadow: 0 8px 30px rgba(8,51,37,.12); }
.about-badge { position: absolute; top: 2rem; left: -1.5rem; width: 90px; height: 90px; background: var(--green); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(8,51,37,.2); }
.about-badge-n { font-family: 'Merriweather', serif; font-size: 1.7rem; font-weight: 700; color: var(--copper); line-height: 1; }
.about-badge-l { font-size: .52rem; letter-spacing: .06em; color: var(--light); text-transform: uppercase; text-align: center; line-height: 1.4; }
.about-text p { font-size: .95rem; line-height: 1.82; color: var(--mid); margin-top: .9rem; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.8rem; }
.feat-card { display: flex; align-items: flex-start; gap: .7rem; padding: .9rem; background: #fff; border-radius: 4px; border-left: 3px solid var(--light); box-shadow: 0 2px 10px rgba(8,51,37,.06); transition: border-color .2s; }
.feat-card:hover { border-left-color: var(--copper); }
.feat-card i { color: var(--green2); margin-top: 2px; flex-shrink: 0; }
.feat-card h4 { font-size: .82rem; font-weight: 700; color: var(--green); }
.feat-card p  { font-size: .75rem; color: var(--muted); line-height: 1.5; margin-top: .1rem; }
.divider { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; }
.divider-line { flex: 1; height: 1px; background: #e0dcc8; }
.divider-dot  { width: 7px; height: 7px; background: var(--copper); transform: rotate(45deg); }

/* ── SERVICES ─────────────────────────────────── */
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.srv-card { padding: 2rem 1.8rem; position: relative; overflow: hidden; }
.srv-num  { font-family: 'Merriweather', serif; font-size: 3rem; font-weight: 700; color: rgba(168,213,186,.08); position: absolute; top: .5rem; right: 1rem; line-height: 1; }
.srv-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--green2), var(--green)); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; transition: background .25s; }
.srv-card:hover .srv-icon { background: linear-gradient(135deg, var(--copper), #8a4030); }
.srv-icon i { color: var(--light); font-size: 1.1rem; }
.srv-card h3 { font-family: 'Merriweather', serif; font-size: 1.1rem; font-weight: 700; color: var(--cream); margin-bottom: .6rem; }
.srv-card p  { font-size: .85rem; line-height: 1.7; color: rgba(245,245,220,.5); }
.srv-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-size: .75rem; color: var(--light); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; transition: color .2s, gap .2s; }
.srv-link:hover { color: var(--copper); gap: .7rem; }

/* ── PROJECTS ─────────────────────────────────── */
.proj-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.proj-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem;
}
.proj-card { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 4px 20px rgba(8,51,37,.1); }
.proj-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; transition: transform .7s; }
.proj-card:hover img { transform: scale(1.06); }
.proj-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.proj-card:nth-child(1) img { min-height: 450px; }
.proj-card:nth-child(2), .proj-card:nth-child(3) { grid-column: span 5; }
.proj-card:nth-child(4), .proj-card:nth-child(5), .proj-card:nth-child(6) { grid-column: span 4; }
.proj-overlay {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to top, rgba(8,51,37,.9) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-cat  { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--copper); margin-bottom: .2rem; }
.proj-name { font-family: 'Merriweather', serif; font-size: 1.1rem; font-weight: 700; color: var(--cream); }
.proj-desc { font-size: .8rem; color: rgba(245,245,220,.7); margin-top: .3rem; }

/* ── TESTIMONIALS ─────────────────────────────── */
.testi-wrap { overflow: hidden; }
#testi-track { display: flex; gap: 1.5rem; }
.tcard { flex: 0 0 calc(33.333% - 1rem); padding: 2rem; }
.tcard-stars { color: var(--copper); font-size: .77rem; margin-bottom: .8rem; }
.tcard-quote { font-family: 'Merriweather', serif; font-size: 1rem; line-height: 1.8; color: rgba(245,245,220,.78); margin-bottom: 1.2rem; }
.tcard-author { display: flex; align-items: center; gap: .8rem; }
.tcard-av { width: 40px; height: 40px; border-radius: 50%; background: var(--green2); display: flex; align-items: center; justify-content: center; font-family: 'Merriweather', serif; font-size: .9rem; font-weight: 700; color: var(--copper); flex-shrink: 0; }
.tcard-name { font-weight: 700; color: var(--cream); font-size: .87rem; }
.tcard-role { font-size: .74rem; color: var(--light); margin-top: .1rem; }
.testi-nav  { display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.testi-btn  {
  width: 44px; height: 44px; border: 1px solid rgba(168,213,186,.2);
  background: transparent; border-radius: 50%; color: var(--light);
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.testi-btn:hover { background: var(--copper); border-color: var(--copper); color: #fff; }

/* ── CONTACT ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.contact-map { width: 100%; height: 220px; border-radius: 4px; border: none; margin-top: 1.2rem; }

/* ── RESPONSIVE: INDEX ────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { gap: 3rem; }
  .proj-grid  { grid-template-columns: 1fr 1fr; }
  .proj-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .proj-card:nth-child(1) { grid-column: span 2; }
  .proj-card:nth-child(1) img { min-height: 280px; }
  .proj-card img { min-height: 200px; }
}
@media (max-width: 768px) {
  #hero         { height: 100svh; min-height: 500px; }
  .hero-content { padding: var(--nav-h) 1.2rem 6rem; }
  .hero-title   { font-size: clamp(2rem, 8vw, 3.2rem); }
  .hero-sub     { font-size: .92rem; }
  .hero-btns    { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats   { display: none; }
  .hero-scroll  { display: none; }
  .about-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-secondary { display: none; }
  .about-badge  { left: .5rem; width: 78px; height: 78px; }
  .about-badge-n{ font-size: 1.5rem; }
  .about-feats  { grid-template-columns: 1fr; }
  .srv-grid     { grid-template-columns: 1fr; gap: 1rem; }
  .proj-grid    { grid-template-columns: 1fr; }
  .proj-card:nth-child(n) { grid-column: span 1; }
  .proj-card:nth-child(1) { grid-column: span 1; }
  .proj-overlay { opacity: 1; }
  .tcard        { flex: 0 0 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
  .hero-eyebrow { display: none; }
  .hero-title   { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .srv-card     { padding: 1.5rem 1.2rem; }
}
