/* css/home.css - Layout & Styles for Xian Home Page */

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 140px 0 80px 0;
  background-color: var(--brand-white);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(210, 20, 20, 0.05);
  color: var(--brand-red);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

html[lang="ar"] .hero-badge {
  font-weight: 600;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand-black);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 1rem;
  color: var(--brand-charcoal);
  line-height: 1.7;
  margin: 16px 0 32px 0;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Right Column: Plate Showcase */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.10));
  /* No rotation or spin animations */
}

.hero-sub-img-wrapper {
  position: absolute;
  border: 4px solid var(--brand-white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border-radius: 50%;
  transition: var(--transition-smooth);
  /* No float animations */
}

.hero-sub-img-wrapper:hover {
  transform: scale(1.05);
  z-index: 10;
}

.hero-sub-img-wrapper.sub-1 {
  width: 150px;
  height: 150px;
  bottom: -15px;
  left: -20px;
}

.hero-sub-img-wrapper.sub-2 {
  width: 140px;
  height: 140px;
  top: -10px;
  right: -20px;
}

.hero-sub-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
}

/* Floating Badge */
.floating-badge {
  position: absolute;
  bottom: 40px;
  right: -10px;
  background-color: var(--brand-black);
  color: var(--brand-white);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md) !important;
  z-index: 5;
}

html[lang="ar"] .floating-badge {
  right: auto;
  left: -10px;
}

.badge-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 2px;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Responsive Hero --- */
@media (max-width: 991px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px 24px;
    text-align: center;
    gap: 48px;
    min-height: auto;
  }
  .hero-content {
    align-items: center;
    order: 1;
  }
  html[lang="ar"] .hero-content {
    align-items: center;
  }
  .hero-visual {
    order: 2;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    margin: 16px auto 32px auto;
    max-width: 500px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-image-wrapper {
    max-width: 340px;
    margin: 0 auto;
    /* Add padding so sub-images don't clip viewport */
    padding: 20px;
    box-sizing: content-box;
  }
  .hero-sub-img-wrapper.sub-1 {
    width: 100px;
    height: 100px;
    left: 0;
    bottom: 0;
  }
  .hero-sub-img-wrapper.sub-2 {
    width: 95px;
    height: 95px;
    right: 0;
    top: 0;
  }
  html[lang="ar"] .hero-sub-img-wrapper.sub-1 {
    left: auto;
    right: 0;
  }
  html[lang="ar"] .hero-sub-img-wrapper.sub-2 {
    right: auto;
    left: 0;
  }
  .floating-badge {
    bottom: 10px;
    right: 0;
  }
  html[lang="ar"] .floating-badge {
    right: auto;
    left: 0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 100px 16px 50px 16px;
    gap: 36px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-image-wrapper {
    max-width: 260px;
    padding: 16px;
  }
  .hero-sub-img-wrapper.sub-1,
  .hero-sub-img-wrapper.sub-2 {
    width: 80px;
    height: 80px;
    border-width: 3px;
  }
  .floating-badge {
    padding: 8px 14px;
    bottom: 5px;
    right: 0;
  }
}

/* --- Featured Specials Section --- */
.specials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .specials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.special-card {
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg) !important;
  transition: var(--transition-smooth);
}

.special-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-md);
}

.special-card.bento-large {
  grid-row: span 2;
}

.special-card.bento-wide {
  flex-direction: row;
}

.special-card.bento-reverse {
  flex-direction: row-reverse;
}

@media (max-width: 991px) {
  .special-card.bento-wide,
  .special-card.bento-reverse {
    flex-direction: column;
  }
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.special-card.bento-wide .card-img-wrapper,
.special-card.bento-reverse .card-img-wrapper {
  max-width: 50%;
}

@media (max-width: 991px) {
  .special-card.bento-wide .card-img-wrapper,
  .special-card.bento-reverse .card-img-wrapper {
    max-width: 100%;
    aspect-ratio: 16/10;
  }
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.special-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--brand-black);
  color: var(--brand-white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm) !important;
  z-index: 5;
}

html[lang="ar"] .card-tag {
  left: auto;
  right: 16px;
}

.card-tag.highlight {
  background-color: var(--brand-red);
}

.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--brand-charcoal);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-card-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-card-action:hover {
  color: var(--brand-red-hover);
}

/* --- The Craft Section (Editorial Split) --- */
.craft-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background-color: var(--brand-cream);
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}

@media (max-width: 991px) {
  .craft-section {
    grid-template-columns: 1fr;
  }
}

.craft-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

@media (max-width: 991px) {
  .craft-visual {
    aspect-ratio: 16/10;
  }
}

.craft-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.craft-section:hover .craft-visual img {
  transform: scale(1.08);
}

.craft-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 30px;
  color: var(--brand-white);
}

.craft-overlay h3 {
  color: var(--brand-white);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.craft-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
}

.craft-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991px) {
  .craft-content {
    padding: 40px 24px;
  }
}

.craft-desc-large {
  font-size: 1.15rem;
  color: var(--brand-black);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
}

.craft-desc {
  font-size: 0.95rem;
  color: var(--brand-charcoal);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md) !important;
  transition: var(--transition-smooth);
}

.stat-item:hover {
  border-color: var(--brand-red);
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  background-color: rgba(210, 20, 20, 0.06);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: var(--radius-full) !important;
}

.stat-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--brand-charcoal);
  opacity: 0.85;
  line-height: 1.4;
}

/* --- Testimonials Slider Section --- */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 280px;
}

.testimonials-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.testimonial-slide {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  width: 100%;
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  padding: 40px;
  border-radius: var(--radius-lg) !important;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .testimonial-slide {
    padding: 30px 20px;
  }
}

.quote-icon {
  font-size: 3rem;
  color: var(--brand-border);
  line-height: 1;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 1.2rem;
  color: var(--brand-black);
  line-height: 1.65;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .testimonial-text {
    font-size: 1.05rem;
  }
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full) !important;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html[lang="ar"] .testimonial-info {
  align-items: flex-start;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-black);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--brand-charcoal);
  opacity: 0.8;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.slider-btn {
  width: 38px;
  height: 38px;
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  color: var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full) !important;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--brand-white);
}

/* --- Catering Teaser Section --- */
.catering-teaser-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 991px) {
  .catering-teaser-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.catering-teaser-visual {
  position: relative;
}

.catering-teaser-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md);
}

.catering-badge {
  position: absolute;
  bottom: 30px;
  right: -10px;
  background-color: var(--brand-black);
  color: var(--brand-white);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md) !important;
  border-inline-start: 3px solid var(--brand-red);
  z-index: 5;
}

html[lang="ar"] .catering-badge {
  right: auto;
  left: -10px;
  border-inline-start: none;
  border-inline-end: 3px solid var(--brand-red);
}

.catering-badge-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 2px;
}

.catering-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.catering-teaser-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .catering-teaser-info {
    align-items: center;
    text-align: center;
  }
}

.catering-teaser-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.catering-teaser-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-black);
  line-height: 1.25;
  margin-bottom: 16px;
}

.catering-teaser-desc {
  font-size: 0.95rem;
  color: var(--brand-charcoal);
  opacity: 0.85;
  line-height: 1.65;
  margin-bottom: 16px;
}

.catering-teaser-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 32px 0;
  width: 100%;
}

@media (max-width: 576px) {
  .catering-teaser-features {
    grid-template-columns: 1fr;
  }
}

.catering-teaser-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-black);
}

@media (max-width: 991px) {
  .catering-teaser-feat {
    justify-content: center;
  }
}

.catering-teaser-feat svg {
  color: var(--brand-red);
  flex-shrink: 0;
}

/* --- Banner Online Ordering CTA --- */
.banner-section {
  background-color: var(--brand-light);
  border-top: 1px solid var(--brand-border);
  padding: 80px 24px;
  text-align: center;
  border-radius: var(--radius-lg) !important;
  margin: 0 24px;
}

@media (max-width: 768px) {
  .banner-section {
    margin: 0 16px;
    padding: 60px 16px;
  }
}

.banner-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: start;
}

html[lang="ar"] .banner-container {
  text-align: start;
}

@media (max-width: 991px) {
  .banner-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  html[lang="ar"] .banner-container {
    text-align: center;
  }
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .banner-content {
    align-items: center;
  }
}

.banner-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 8px;
}

.banner-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 16px;
  line-height: 1.25;
}

.banner-desc {
  font-size: 0.95rem;
  color: var(--brand-charcoal);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 600px;
}

.banner-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 991px) {
  .banner-features {
    justify-content: center;
  }
}

.b-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-black);
}

.b-feat svg {
  color: var(--brand-red);
}

.banner-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image img {
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.05));
}

/* --- Mobile overflow safety --- */
@media (max-width: 576px) {
  html, body {
    overflow-x: hidden;
  }
}
