/* =========================================================
   Tiandy - شركة الريادة المتفوقة
   ملف الأنماط الرئيسي
   ========================================================= */

:root{
  --color-primary: #22b14c;
  --color-primary-dark: #1a8f3c;
  --color-dark: #1c1f26;
  --color-dark-2: #14171d;
  --color-text: #2b2f36;
  --color-text-light: #6b7280;
  --color-border: #e6e8eb;
  --color-bg-light: #f7f8f9;
  --color-white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);

  --container: 1280px;
  --header-h: 78px;

  --font-main: "Tajawal","Cairo",Arial,sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-main);
  color:var(--color-text);
  background:var(--color-white);
  direction:rtl;
  text-align:right;
  overflow-x:hidden;
}

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

a{ color:inherit; text-decoration:none; }

ul{ list-style:none; margin:0; padding:0; }

button{ font-family:inherit; cursor:pointer; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.section-title{
  font-size:28px;
  font-weight:800;
  margin:0 0 28px;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
  flex-wrap:wrap;
}
.section-head .section-title{ margin:0; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--color-primary);
  color:#fff;
  border:none;
  padding:12px 26px;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  transition:background .2s ease, transform .2s ease;
}
.btn:hover{ background:var(--color-primary-dark); transform:translateY(-1px); }
.btn-outline{
  background:transparent;
  border:1.5px solid var(--color-primary);
  color:var(--color-primary);
}
.btn-outline:hover{ background:var(--color-primary); color:#fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  height:var(--header-h);
  display:flex;
  align-items:center;
  background:#fff;
  box-shadow:var(--shadow-sm);
  position:sticky;
  top:0;
  z-index:1000;
}

.header-inner{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.header-logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.header-logo img{ height:30px; width:auto; }
.header-logo .logo-alryada{ height:34px; }
.header-logo .logo-divider{ width:1px; height:26px; background:var(--color-border,#dcdfe4); display:inline-block; }
.header-logo span{
  font-size:24px;
  font-weight:800;
  color:var(--color-primary);
  line-height:1;
}

.main-nav{ flex:1; display:flex; justify-content:center; }
.main-nav ul{ display:flex; align-items:center; gap:30px; }
.main-nav a{
  font-size:15px;
  font-weight:600;
  color:var(--color-text);
  position:relative;
  padding:6px 0;
  white-space:nowrap;
}
.main-nav a:hover, .main-nav a.active{ color:var(--color-primary); }

.header-side{ display:flex; align-items:center; gap:18px; flex-shrink:0; }

.header-social{ display:flex; align-items:center; gap:10px; }
.header-social a{
  width:34px; height:34px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  font-size:15px;
  transition:opacity .2s;
}
.header-social a:hover{ opacity:.85; }
.social-facebook{ background:#3b5998; }
.social-instagram{ background:radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-whatsapp{ background:#25d366; }

.header-phone{
  display:flex; align-items:center; gap:8px;
  font-weight:700;
  font-size:15px;
  white-space:nowrap;
}
.header-phone .icon-circle{
  width:34px; height:34px;
  border-radius:50%;
  background:var(--color-primary);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:14px;
}

.hamburger{
  display:none;
  width:38px; height:38px;
  border:none;
  background:transparent;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
}
.hamburger span{
  width:24px; height:2.5px;
  background:var(--color-dark);
  border-radius:2px;
  transition:.25s;
}
.hamburger.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   Breadcrumb (inner pages)
   ========================================================= */
.page-hero{
  background:linear-gradient(180deg,#1c1f26 0%, #14171d 100%);
  color:#fff;
  padding:46px 0;
  text-align:center;
}
.page-hero h1{ font-size:30px; font-weight:800; margin:0 0 10px; }
.page-hero .breadcrumb{ font-size:14px; color:#c9cdd3; }
.page-hero .breadcrumb a{ color:var(--color-primary); }

/* =========================================================
   Cover banner (top of hero)
   ========================================================= */
.cover-banner{
  width:100%;
  overflow:hidden;
  position:relative;
  background:#0e1f13;
}
.cover-banner img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}
.cover-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(20,23,29,0) 70%, rgba(20,23,29,.35) 100%);
  pointer-events:none;
}
@media (max-width:768px){
  .cover-banner{ height:auto; }
}
@media (max-width:480px){
  .cover-banner{ height:auto; }
}

/* =========================================================
   Hero (home)
   ========================================================= */
.hero{
  background:linear-gradient(180deg,#ffffff 0%, #f2f3f5 100%);
  padding:64px 0 0;
  position:relative;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:40px;
}
.hero-text .brand{
  font-size:44px;
  font-weight:800;
  color:var(--color-primary);
  margin:0 0 8px;
}
.hero-text .brand-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:0 auto 16px;
  width:100%;
}
.hero-text .brand-logo img{ height:80px; width:auto; }
.hero-text .brand-logo .logo-divider{
  width:1px;
  height:32px;
  background:var(--color-border,#dcdfe4);
  display:inline-block;
}
.hero-text h1{
  font-size:34px;
  line-height:1.4;
  font-weight:800;
  margin:0 0 18px;
  color:var(--color-dark);
}
.hero-text p{
  font-size:16px;
  color:var(--color-text-light);
  line-height:1.9;
  margin:0 0 26px;
  max-width:520px;
}
.hero-image img{
  width:100%;
  height:auto;
  object-fit:contain;
}

/* Stats bar */
.stats-bar{
  margin-top:40px;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:34px 10px;
  transform:translateY(40px);
}
.stat-item{
  text-align:center;
  border-left:1px solid var(--color-border);
  padding:0 12px;
}
.stat-item:last-child{ border-left:none; }
.stat-item .stat-icon{
  width:44px; height:44px;
  margin:0 auto 10px;
  color:var(--color-primary);
  font-size:26px;
  display:flex; align-items:center; justify-content:center;
}
.stat-item .stat-label{ font-size:14px; color:var(--color-text-light); margin-bottom:6px; }
.stat-item .stat-number{ font-size:24px; font-weight:800; color:var(--color-dark); }

.hero-spacer{ height:60px; }

/* =========================================================
   About section
   ========================================================= */
.about-section{
  background:var(--color-dark);
  color:#fff;
  padding:60px 0;
}
.about-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}
.about-text h2{ font-size:28px; font-weight:800; margin:0 0 18px; }
.about-text p{ font-size:15px; line-height:2; color:#c9cdd3; margin:0 0 26px; }
.about-image img{
  width:100%;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
}

/* Features row */
.features-row{
  background:var(--color-dark-2);
  padding:40px 0 60px;
}
.features-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
.feature-item{ display:flex; align-items:flex-start; gap:14px; }
.feature-item .f-icon{
  width:46px; height:46px;
  border-radius:12px;
  background:rgba(34,177,76,.15);
  color:var(--color-primary);
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  flex-shrink:0;
}
.feature-item h4{ font-size:16px; font-weight:700; margin:0 0 4px; color:#fff; }
.feature-item p{ font-size:13px; color:#9ca3af; margin:0; }

/* =========================================================
   Products
   ========================================================= */
.products-section{ padding:60px 0; background:var(--color-bg-light); }

.product-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:30px;
}
.filter-btn{
  border:1px solid var(--color-border);
  background:#fff;
  color:var(--color-text);
  padding:9px 20px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  transition:.2s;
}
.filter-btn:hover{ border-color:var(--color-primary); color:var(--color-primary); }
.filter-btn.active{ background:var(--color-primary); border-color:var(--color-primary); color:#fff; }

.products-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.product-card{
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.product-card .product-image{
  aspect-ratio:1/1;
  background:#f2f3f5;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.product-card .product-image img{ width:100%; height:100%; object-fit:cover; }
.product-card .product-body{ padding:14px 16px 18px; text-align:center; }
.product-card .product-name{ font-size:15px; font-weight:700; margin:0 0 4px; }
.product-card .product-category{ font-size:12px; color:var(--color-primary); font-weight:600; }
.product-card.hidden{ display:none; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-section{ padding:60px 0; }
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
}
.gallery-item{
  aspect-ratio:1/1;
  border-radius:var(--radius-sm);
  overflow:hidden;
  cursor:pointer;
  background:#eee;
  position:relative;
}
.gallery-item img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}
.gallery-item:hover img{ transform:scale(1.06); }

/* Lightbox */
.lightbox{
  position:fixed; inset:0;
  background:rgba(10,10,12,.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:20px;
}
.lightbox.open{ display:flex; }
.lightbox-content{
  max-width:900px;
  width:100%;
  text-align:center;
}
.lightbox-content img{
  max-width:100%;
  max-height:80vh;
  margin:0 auto;
  border-radius:var(--radius-sm);
  box-shadow:0 10px 40px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:absolute;
  background:rgba(255,255,255,.12);
  border:none;
  color:#fff;
  width:46px; height:46px;
  border-radius:50%;
  font-size:20px;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background:rgba(255,255,255,.25); }
.lightbox-close{ top:24px; left:24px; }
.lightbox-prev{ top:50%; right:24px; transform:translateY(-50%); }
.lightbox-next{ top:50%; left:24px; transform:translateY(-50%); }
.lightbox-counter{ color:#c9cdd3; margin-top:14px; font-size:14px; }

/* =========================================================
   Our Journey / Timeline section
   ========================================================= */
.journey-section{
  padding:60px 0;
  background:var(--color-dark-2);
  color:#fff;
}
.journey-section .section-title{ color:#fff; }
.journey-intro{
  color:#c9cdd3;
  font-size:15px;
  line-height:2;
  margin:0 0 36px;
  max-width:900px;
}
.journey-intro p{ margin:0 0 16px; }

.timeline{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.timeline-item{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-md);
  padding:22px;
  position:relative;
}
.timeline-year{
  display:inline-block;
  background:var(--color-primary);
  color:#0e1f13;
  font-weight:800;
  font-size:14px;
  padding:4px 14px;
  border-radius:999px;
  margin-bottom:14px;
}
.timeline-item h4{
  font-size:16px;
  font-weight:700;
  margin:0 0 8px;
  color:#fff;
}
.timeline-item p{
  font-size:13.5px;
  color:#9ca3af;
  line-height:1.9;
  margin:0;
}

@media (max-width:900px){
  .timeline{ grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .timeline{ grid-template-columns:1fr; }
}

/* =========================================================
   Partner brand badges (footer)
   ========================================================= */
.partners-row{
  padding:32px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.partners-row .partners-label{
  font-size:14px;
  color:#9ca3af;
  margin:0 0 20px;
}
.partners-row .partners-label strong{ color:var(--color-primary); font-weight:700; }
.partners-list{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  flex-wrap:wrap;
}
.partner-badge{
  width:92px;
  height:92px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:transform .2s ease;
}
.partner-badge:hover{ transform:translateY(-4px); }
.partner-badge img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
@media (max-width:480px){
  .partner-badge{ width:74px; height:74px; padding:10px; }
  .partners-list{ gap:18px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background:var(--color-dark);
  color:#c9cdd3;
  padding:56px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1.2fr 1fr;
  gap:36px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-logo{ display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:14px; }
.footer-logo img{ height:26px; }
.footer-logo .logo-alryada{ height:30px; }
.footer-logo .logo-divider{ width:1px; height:22px; background:#3a3f4a; display:inline-block; }
.footer-logo span{ font-size:22px; font-weight:800; color:var(--color-primary); }
.footer-col p{ font-size:14px; line-height:1.9; color:#9ca3af; margin:0; }
.footer-col h4{ font-size:16px; font-weight:700; color:#fff; margin:0 0 18px; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul li a{
  font-size:14px; color:#9ca3af;
  display:flex; align-items:center; gap:6px;
  transition:color .2s;
}
.footer-col ul li a:hover{ color:var(--color-primary); }
.footer-contact li{
  display:flex; align-items:center; gap:10px;
  font-size:14px; color:#9ca3af;
  margin-bottom:14px;
}
.footer-contact li .ic{ color:var(--color-primary); }
.footer-social{ display:flex; gap:12px; }
.footer-social a{
  width:40px; height:40px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:16px;
}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  font-size:13px;
  color:#8b8f97;
  flex-wrap:wrap;
  gap:10px;
}

/* Branches */
.branches-row{
  padding:30px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.branches-row h4{
  font-size:16px;
  font-weight:700;
  color:#fff;
  margin:0 0 16px;
  text-align:center;
}
.branches-list{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.branch-card{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  padding:10px 20px;
  color:#c9cdd3;
  font-size:14px;
  font-weight:600;
  transition:background .2s, color .2s;
}
.branch-card i{ color:var(--color-primary); }
.branch-card:hover{ background:rgba(34,177,76,.12); color:#fff; }
.branch-card-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.branch-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.branch-action-btn{
  display:flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 16px;
  font-size:13px;
  font-weight:600;
  color:#fff;
  transition:opacity .2s;
}
.branch-action-btn:hover{ opacity:.85; }
.branch-action-btn.call-btn{ background:var(--color-primary); }
.branch-action-btn.whatsapp-btn{ background:#25d366; }

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.whatsapp-float{
  position:fixed;
  bottom:24px;
  left:24px;
  width:58px;
  height:58px;
  background:#25d366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:28px;
  box-shadow:0 6px 20px rgba(37,211,102,.45);
  z-index:1500;
  transition:transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 10px 26px rgba(37,211,102,.55);
  color:#fff;
}
.whatsapp-float::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid rgba(37,211,102,.5);
  animation:whatsapp-pulse 2s infinite;
}
@keyframes whatsapp-pulse{
  0%{ transform:scale(1); opacity:.7; }
  100%{ transform:scale(1.6); opacity:0; }
}
@media (max-width:480px){
  .whatsapp-float{
    width:50px; height:50px; font-size:24px;
    bottom:16px; left:16px;
  }
}

/* =========================================================
   Mobile menu overlay
   ========================================================= */
.mobile-nav{
  position:fixed;
  top:var(--header-h);
  right:0;
  width:78%;
  max-width:320px;
  height:calc(100vh - var(--header-h));
  background:#fff;
  box-shadow:-4px 0 24px rgba(0,0,0,.12);
  transform:translateX(100%);
  transition:transform .3s ease;
  z-index:999;
  overflow-y:auto;
  padding:24px;
}
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav ul li{ margin-bottom:6px; }
.mobile-nav ul li a{
  display:block;
  padding:12px 8px;
  font-size:16px;
  font-weight:600;
  border-bottom:1px solid var(--color-border);
}
.mobile-nav .mobile-social{ display:flex; gap:10px; margin-top:20px; }
.overlay-bg{
  position:fixed; inset:0;
  background:rgba(0,0,0,.4);
  z-index:998;
  display:none;
}
.overlay-bg.show{ display:block; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1024px){
  .products-grid{ grid-template-columns:repeat(3,1fr); }
  .gallery-grid{ grid-template-columns:repeat(4,1fr); }
  .hero-inner{ gap:24px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:900px){
  .main-nav, .header-side .header-phone span, .header-social{ display:none; }
  .hamburger{ display:flex; }
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-text p{ margin-inline:auto; }
  .about-inner{ grid-template-columns:1fr; }
  .about-image{ order:-1; }
  .features-grid{ grid-template-columns:1fr 1fr; }
  .stats-bar{ grid-template-columns:1fr 1fr; row-gap:24px; }
  .stat-item{ border-left:none; }
}

@media (max-width:768px){
  .products-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
}

@media (max-width:480px){
  .hero-text .brand{ font-size:34px; }
  .hero-text .brand-logo img{ height:60px; }
  .hero-text h1{ font-size:24px; }
  .products-grid{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .features-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; text-align:center; }
  .footer-social{ justify-content:center; }
  .footer-contact li{ justify-content:center; }
  .footer-bottom{ justify-content:center; text-align:center; }
  .header-logo span{ font-size:20px; }
  .section-title{ font-size:22px; }
  .lightbox-prev, .lightbox-next{ width:38px; height:38px; font-size:16px; }
}

/* ---------- Language toggle ---------- */
.lang-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  background:transparent;
  border:1.5px solid var(--color-primary);
  color:var(--color-primary);
  font-family:inherit;
  font-weight:700;
  font-size:13px;
  padding:7px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:background .2s ease, color .2s ease;
  line-height:1;
}
.lang-toggle:hover{
  background:var(--color-primary);
  color:#fff;
}
.lang-toggle i{ font-size:13px; }
.mobile-nav .lang-toggle{
  margin:18px auto 0;
  width:fit-content;
}
body.lang-en{ direction:ltr; }
body.lang-en .site-header,
body.lang-en .footer-bottom,
body.lang-en .partners-label{ direction:ltr; }

@media (max-width:900px){
  .header-side .lang-toggle{ display:none; }
}
