/* ══════════════════════════════════════════════
   home.css — Styles specific to the homepage
   ══════════════════════════════════════════════ */

.home-page {
  --gold: #EDC580;
  --gold-dim: rgba(237, 197, 128, 0.16);
  --gold-glow: rgba(237, 197, 128, 0.08);
  --home-section-black: #050505;
  --home-section-grey: #323232;
  --home-section-grey-alt: #323232;
  --home-section-gold: #EDC580;
  --home-section-gold-deep: #b89253;
}

@media (max-width: 800px) {
  .home-page .nav-links {
    background: rgba(50, 50, 50, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.home-page .divider {
  box-shadow: 0 0 18px rgba(237, 197, 128, 0.18);
}

.home-page .btn-primary:hover {
  background: #f3d7a2;
  box-shadow: 0 8px 30px rgba(237, 197, 128, 0.24);
}

.home-page .btn-outline {
  border-color: rgba(237, 197, 128, 0.32);
}

.home-page .btn-outline:hover {
  background: rgba(237, 197, 128, 0.08);
}

.home-page .form-group input:focus,
.home-page .form-group textarea:focus {
  border-color: rgba(237, 197, 128, 0.45);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--home-section-black);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(237, 197, 128, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(237, 197, 128, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  z-index: 1;
}

.hero-greeting {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}

.hero-name {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease forwards;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  max-width: 460px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s ease forwards;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  width: min(100%, 420px);
  transform: translateX(-50%);
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  box-shadow: 0 0 18px rgba(237, 197, 128, 0.18);
  z-index: 2;
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 420px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: grayscale(0.15) contrast(1.05);
  margin: 0;
}

/* ── EasyEntry ── */
.easyentry-section {
  background: linear-gradient(180deg, var(--home-section-grey) 0%, var(--home-section-grey-alt) 50%, var(--home-section-grey) 100%);
}

.easyentry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.easyentry-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(237, 197, 128, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.feature-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-top: 8px;
}

.stats-row {
  display: flex;
  gap: 48px;
  margin: 36px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
}

.stat-caption {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Preview mockup */
.preview-card {
  background: var(--dark-elevated);
  border-radius: 12px;
  border: 1px solid rgba(237, 197, 128, 0.1);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.preview-bar {
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-content {
  padding: 20px;
}

.preview-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.preview-content th {
  text-align: left;
  padding: 8px 10px;
  color: var(--gold);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(237, 197, 128, 0.14);
  opacity: 0.6;
}

.preview-content td {
  padding: 10px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.preview-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

/* ── Emma ── */
.emma-section {
  background: var(--dark);
}

.emma-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.emma-img-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.emma-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(237, 197, 128, 0.14);
  pointer-events: none;
}

.emma-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
}

.emma-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.emma-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(237, 197, 128, 0.24);
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ── Projects ── */
.projects-section {
  background: linear-gradient(-45deg, var(--home-section-gold-deep) 0%, var(--home-section-gold) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--dark-elevated);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: block;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(237, 197, 128, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(237, 197, 128, 0.1);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.9);
  transition: filter 0.4s;
}

.project-card:hover .project-card-img {
  filter: grayscale(0) brightness(1);
}

.project-card-body {
  padding: 20px;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
}

.project-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.project-card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(237, 197, 128, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.35s;
}

.project-card:hover .project-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Contact ── */
.contact-section {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 100px;
    gap: 40px;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-image-wrap img {
    max-width: 280px;
    margin: 0 auto;
  }

  .easyentry-grid,
  .emma-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .emma-img-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .stats-row {
    gap: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}