/* =========================================================
   TONIC INDUSTRIE — الموقع الرسمي
   خلفيات بيضاء محايدة، تصميم عربي RTL، تنظيم بسيط ومهني
   ========================================================= */

:root {
  --green-900: #0b3d1a;
  --green-800: #0d5f2c;
  --green-700: #1a7a3d;
  --green-500: #2ea56f;
  --white:     #ffffff;
  --gray-50:   #fafafa;
  --gray-100:  #f4f4f4;
  --gray-200:  #ebebeb;
  --gray-300:  #d4d4d4;
  --gray-500:  #737373;
  --gray-700:  #404040;
  --gray-900:  #171717;
  --ink:       #14201a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ============ TOP BAR ============ */
.topbar {
  background: var(--green-900);
  color: #d8e5db;
  font-size: 13px;
  padding: 8px 0;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 12px; align-items: center; }
.topbar__social a {
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  transition: background .2s;
}
.topbar__social a:hover { background: var(--green-700); border-color: var(--green-700); }
.topbar__social .lang { margin-right: 8px; }
.topbar__social .lang a { border: none; width: auto; height: auto; }

/* ============ HEADER ============ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 40px;
}
.brand__logo { height: 62px; width: auto; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav__link {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  transition: color .2s;
  position: relative;
}
.nav__link:hover { color: var(--green-800); }
.nav__link.is-active { color: var(--green-800); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 16px; left: 16px; height: 2px;
  background: var(--green-800);
}
.nav__link--cta {
  background: var(--green-800);
  color: var(--white) !important;
  margin-right: 8px;
  padding: 10px 22px;
}
.nav__link--cta:hover { background: var(--green-900); }
.nav__link--cta::after { display: none; }

.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.burger span {
  width: 24px; height: 2px; background: var(--ink); display: block;
}

/* ============ HERO ============ */
.hero {
  background: var(--white);
  padding: 80px 0 90px;
  border-bottom: 1px solid var(--gray-200);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero__lede {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.9;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn--primary {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.btn--primary:hover { background: var(--green-900); border-color: var(--green-900); }
.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn--ghost:hover { background: var(--green-800); color: var(--white); }

/* ============ STATS ============ */
.stats {
  background: var(--green-800);
  color: var(--white);
  padding: 50px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 10px 20px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.stat:last-child { border-left: none; }
.stat__num {
  font-family: 'Tajawal', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat__num span {
  font-size: 0.85rem;
  font-weight: 400;
  margin-right: 6px;
  opacity: 0.75;
  vertical-align: middle;
}
.stat__label {
  font-size: 14px;
  opacity: 0.85;
}

/* ============ SECTION COMMON ============ */
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 16px;
  letter-spacing: 0;
}
.section__title {
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}
.section__title--light { color: var(--white); }
.section__lede {
  font-size: 17px;
  color: var(--gray-700);
  max-width: 700px;
  line-height: 1.9;
}
.section__head { margin-bottom: 50px; }
.units .section__lede { color: rgba(255,255,255,0.75); }
.units .section__eyebrow { color: var(--green-500); }

/* ============ ABOUT ============ */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about__media img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.about__text {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 18px;
  line-height: 1.9;
}
.about__list {
  margin-top: 30px;
  border-top: 1px solid var(--gray-200);
}
.about__list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 15px;
}
.about__list li span {
  display: inline-block;
  font-weight: 700;
  color: var(--green-800);
  min-width: 200px;
}

/* ============ UNITS ============ */
.units {
  background: var(--ink);
  padding: 100px 0;
  color: var(--white);
}
.units__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.unit {
  background: var(--ink);
  padding: 32px 26px;
  transition: background .3s;
}
.unit:hover { background: #1c2a23; }
.unit h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--white);
}
.unit p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.unit--accent {
  background: var(--green-800);
}
.unit--accent:hover { background: var(--green-700); }
.unit--accent h3 { color: var(--white); }
.unit--accent p { color: rgba(255,255,255,0.85); }

/* ============ PRODUCTS ============ */
.products {
  padding: 100px 0;
  background: var(--white);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product {
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: border-color .3s;
  display: flex;
  flex-direction: column;
}
.product:hover { border-color: var(--green-700); }
.product--large {
  grid-column: span 2;
  flex-direction: row;
}
.product--large .product__img {
  flex: 1;
  min-height: 320px;
}
.product--large .product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product--txt {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
.product--txt .product__body { padding: 40px 32px; }
.product__img {
  background: var(--gray-50);
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s;
}
.product:hover .product__img img { transform: scale(1.03); }
.product__body {
  padding: 26px 28px 30px;
}
.product__body h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.product__body p {
  font-size: 14.5px;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.8;
}
.product__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-800);
  border-bottom: 1px solid var(--green-800);
  padding-bottom: 2px;
  transition: color .2s;
}
.product__link:hover { color: var(--green-900); }

/* ============ SITES ============ */
.sites {
  background: var(--white);
  padding: 100px 0;
  border-top: 1px solid var(--gray-200);
}
.sites__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.site-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-right: 3px solid var(--green-800);
  padding: 32px 28px;
  transition: border-color .3s;
}
.site-card:hover { border-right-color: var(--green-500); }
.site-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.site-card__addr {
  font-size: 14px;
  color: var(--green-800);
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.site-card__desc {
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ============ NEWS ============ */
.news {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: border-color .3s;
}
.news-card:hover { border-color: var(--green-700); }
.news-card__date {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.news-card__date span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-800);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.news-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.4;
}
.news-card p {
  font-size: 14.5px;
  color: var(--gray-700);
  margin-bottom: 18px;
  line-height: 1.8;
}
.news-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-800);
  border-bottom: 1px solid var(--green-800);
  padding-bottom: 2px;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--green-800);
  color: var(--white);
  padding: 70px 0;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.contact h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.35;
  margin-bottom: 10px;
}
.contact__text p { opacity: 0.85; font-size: 16px; }
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}
.contact__form input {
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
}
.contact__form input::placeholder { color: rgba(255,255,255,0.6); }
.contact__form input:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255,255,255,0.15);
}
.contact__form .btn--primary {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
}
.contact__form .btn--primary:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer__logo {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer__col--brand p { font-size: 14px; max-width: 320px; line-height: 1.8; }
.footer__col h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer__col p {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.8;
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul a {
  font-size: 14px;
  transition: color .2s;
}
.footer__col ul a:hover { color: var(--green-500); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  font-size: 13px;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 70px; }
  .about__grid { grid-template-columns: 1fr; gap: 50px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-left: none; }
  .units__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid, .news__grid, .sites__list { grid-template-columns: repeat(2, 1fr); }
  .product--large { grid-column: span 2; flex-direction: column; }
  .product--large .product__img { min-height: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar__contact { font-size: 12px; gap: 12px; }
  .topbar__contact span:nth-child(3) { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 1px solid var(--gray-200);
  }
  .nav.is-open { display: flex; }
  .nav__link { width: 100%; padding: 14px; }
  .nav__link--cta { margin: 8px 0 0; }
  .burger { display: flex; }
  .header__inner { padding: 12px 20px; }
  .brand__logo { height: 50px; }

  .products__grid, .news__grid, .stats__grid, .sites__list { grid-template-columns: 1fr; }
  .units__grid { grid-template-columns: 1fr; }
  .product--large { grid-column: span 1; }
  .stat { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__list li span { display: block; margin-bottom: 4px; }
}
