/* ============================================
   DOLCE - Arabic Cake Shop
   Premium RTL Website Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --gold: #D68C36;
  --gold-light: #e4a654;
  --gold-dark: #b8741f;
  --teal: #113239;
  --teal-light: #1a4a54;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE0;
  --white: #FFFFFF;
  --text-dark: #2D2D2D;
  --text-muted: #6B6B6B;
  --text-light: #F5F0E8;
  --shadow-sm: 0 2px 8px rgba(17, 50, 57, 0.06);
  --shadow-md: 0 4px 20px rgba(17, 50, 57, 0.08);
  --shadow-lg: 0 8px 40px rgba(17, 50, 57, 0.12);
  --shadow-gold: 0 4px 16px rgba(214, 140, 54, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Cairo', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  gap: 8px;
}

.btn--primary {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background-color: var(--white);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn--small {
  padding: 8px 22px;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
  background-color: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 700;
  transition: all var(--transition);
}

.btn--small:hover {
  background-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0 auto 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.section-header--light .section-title {
  color: var(--white);
}

.section-header--light .section-subtitle {
  color: var(--text-light);
  opacity: 0.85;
}

.section-divider--light {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar--scrolled {
  background: rgba(17, 50, 57, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo-img {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.navbar__logo-img:hover {
  transform: scale(1.05);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 16px;
  left: 16px;
  height: 2px;
  background-color: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  transform: scaleX(1);
}

.navbar__links a:hover {
  color: var(--gold);
}

/* Mobile toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, #0a2028 60%, #071a1f 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(214, 140, 54, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(214, 140, 54, 0.05) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, 2%); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero__logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 auto 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title .highlight {
  color: var(--gold);
  position: relative;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background-color: var(--cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.about__text strong {
  color: var(--gold);
}

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about__image-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.about__illustration {
  width: 100%;
  height: auto;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: 100px 0;
  background-color: var(--white);
}

/* Filters */
.products__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  border: 2px solid var(--cream-dark);
  background: var(--cream);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Product Grid */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(214, 140, 54, 0.15);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-card__image svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition);
}

.product-card:hover .product-card__image svg {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
}

.product-card__info {
  padding: 20px;
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}

/* ============================================
   SPECIAL ORDERS
   ============================================ */
.special-orders {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--teal) 0%, #0a2028 100%);
  color: var(--white);
}

.special-orders__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.special-orders__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.order-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.order-feature__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 140, 54, 0.15);
  border-radius: var(--radius-md);
  color: var(--gold);
}

.order-feature h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}

.order-feature p {
  font-size: 0.95rem;
  color: var(--text-light);
  opacity: 0.75;
  line-height: 1.7;
}

/* Order Form */
.special-orders__form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.order-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 28px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: all var(--transition);
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(214, 140, 54, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0A99D;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background-color: var(--cream);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 140, 54, 0.15);
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 140, 54, 0.1);
  border-radius: 50%;
  margin: 0 auto 20px;
  color: var(--gold);
}

.contact-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--teal);
  color: var(--text-light);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.8;
  max-width: 340px;
}

.footer__links h4,
.footer__social h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.95rem;
  opacity: 0.7;
  transition: all var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--gold);
  padding-right: 8px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer__bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.875rem;
  opacity: 0.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
  .hero__title {
    font-size: 2.25rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    order: -1;
  }

  .about__image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .special-orders__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--teal);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: 1.1rem;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    display: block;
  }

  .navbar__links a:hover {
    background: rgba(214, 140, 54, 0.1);
  }

  .navbar__links a::after {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .hero__title {
    font-size: 1.85rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__logo {
    width: 110px;
    height: 110px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .about,
  .products,
  .special-orders,
  .contact {
    padding: 72px 0;
  }

  .about__stats {
    gap: 20px;
  }

  .stat__number {
    font-size: 1.4rem;
  }

  .products__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .products__filters {
    gap: 8px;
    margin-bottom: 36px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
  }

  .special-orders__form-wrapper {
    padding: 28px 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__brand p {
    margin: 0 auto;
  }

  .footer__logo {
    margin: 0 auto 16px;
  }

  .social-links {
    justify-content: center;
  }

  .footer__links a:hover {
    padding-right: 0;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: rgba(214, 140, 54, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
}

.form-success h3 {
  color: var(--teal);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
