/* Hero Component Styles - Finewoods Luxury Furniture */

/* ─── Luxury Accent Variables ─────────────────────────── */
:root {
  --gold:       #C9A96E;
  --gold-light: #D8BC86;
  --ivory:      #F7F3EC;
}

/* ─── Hero Section Base ───────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111111;
}

/* Gradient overlay for hero background to elevate top-left text contrast */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.55) 0%,
    rgba(17, 17, 17, 0.25) 45%,
    rgba(17, 17, 17, 0.1) 70%,
    rgba(17, 17, 17, 0.45) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ─── Responsive Background Image ────────────────────── */
.hero-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── Hero Content Container ──────────────────────────── */
.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8rem 4rem 4rem 4rem;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 620px;
  text-align: left;
}

/* ─── Typography ──────────────────────────────────────── */
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin: 0 0 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-description {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(247, 243, 236, 0.88);
  margin: 0 0 2.5rem 0;
  max-width: 540px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

/* ─── Action Buttons ──────────────────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

/* Mobile-only text link (hidden on desktop) */
.hero-mobile-link {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.35s ease,
              border-color 0.35s ease,
              color 0.35s ease,
              transform 0.35s ease,
              box-shadow 0.35s ease;
}

/* Primary Button — Ivory solid */
.btn-primary {
  background-color: var(--ivory);
  color: #111111;
  border: 1px solid var(--ivory);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* Subtle shine pseudo-element */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.32);
}

.btn-primary:hover::before {
  left: 130%;
}

/* Secondary Button — Outlined gold */
.btn-secondary {
  background-color: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(201, 169, 110, 0) 0%,
    rgba(201, 169, 110, 0.14) 50%,
    rgba(201, 169, 110, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-secondary:hover {
  background-color: rgba(201, 169, 110, 0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary:hover::before {
  left: 130%;
}

/* ─── Keyframe Animations ─────────────────────────────── */
@keyframes heroFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive Breakpoints ──────────────────────────── */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.25rem;
  }
  .hero-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .hero-description {
    font-size: 1.05rem;
  }
}

/* ─── Mobile Responsive Hero Layout Optimization ──────── */
@media (max-width: 768px) {
  .hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    overflow: hidden;
    background-color: #111111;
  }

  .hero-section::after {
    background: linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.72) 0%,
      rgba(17, 17, 17, 0.48) 38%,
      rgba(17, 17, 17, 0.15) 68%,
      rgba(17, 17, 17, 0.55) 100%
    );
  }

  .hero-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0;
    padding-top: calc(70px + 1.25rem); /* Below navbar logo safe area */
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    text-align: left;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.18;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.01em;
  }

  .hero-description {
    font-size: 0.925rem;
    line-height: 1.55;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
    color: rgba(247, 243, 236, 0.92);
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin-top: 0.25rem;
  }

  /* Completely hide both CTA buttons on mobile */
  .hero-actions .btn {
    display: none !important;
  }

  /* Compact minimal text link for mobile hero */
  .hero-mobile-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    margin-top: 0.25rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .hero-mobile-link:hover,
  .hero-mobile-link:focus {
    color: var(--gold-light);
    transform: translateX(4px);
  }
}

@media (max-width: 380px) {
  .hero-container {
    padding-top: calc(65px + 1rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }
}

/* ─── Arabic RTL State ───────────────────────────────── */
.hero-section.is-ar {
  direction: rtl;
}

.hero-section.is-ar .hero-container {
  direction: rtl;
  justify-content: flex-start;
}

.hero-section.is-ar .hero-content {
  direction: rtl;
  text-align: right;
  margin-right: 0;
}

.hero-section.is-ar .hero-title {
  font-family: 'Cormorant Garamond', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

.hero-section.is-ar .hero-description {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

.hero-section.is-ar .hero-actions {
  justify-content: flex-start;
}

.hero-section.is-ar .btn {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
}

.hero-section.is-ar .hero-mobile-link {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
}

.hero-section.is-ar .hero-mobile-link:hover,
.hero-section.is-ar .hero-mobile-link:focus {
  transform: translateX(-4px);
}


