/* ------------------------------------------------------------------
   Additions for the server-rendered site: PDF link, company stamp.
   Loaded after styles.css.
   ------------------------------------------------------------------ */

.header-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid rgba(247, 242, 232, .28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(247, 242, 232, .92);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.header-pdf svg { width: 15px; height: 15px; }
.header-pdf:hover { border-color: var(--brass); color: var(--brass-light); }

/* the company's rectangular wordmark carries the name and the descriptor */
img.brand__logo {
  height: 56px;
  width: auto;
  display: block;
  flex: none;
}
.site-footer img.brand__logo { height: 54px; }
.side img.brand__logo { height: 34px; }
@media (max-width: 640px) {
  img.brand__logo { height: 42px; }
}

.stamp-figure {
  margin: 0 0 18px;
  text-align: center;
}
.stamp-figure img {
  width: min(330px, 80%);
  height: auto;
  margin: 0 auto;
}
.stamp-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* compact language + PDF cluster on small screens */
@media (max-width: 1120px) {
  .header-pdf { display: none; }
}
@media (max-width: 640px) {
  .mobile-nav .btn-outline[href$=".pdf"] { display: inline-flex; }
}

/* ------------------------------------------------------------------
   Inside the factory: production stages + video gallery
   ------------------------------------------------------------------ */
.stage-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.stage-card {
  background: #fffdf8;
  border: 1px solid rgba(36, 26, 20, .1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stage-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #0b282d;
}
.stage-card figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-card__num {
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(14, 46, 51, .82);
  color: #f0d3a3;
  font-weight: 700;
  font-size: 15px;
}
.stage-card__body { padding: 20px 22px 24px; }
.stage-card__body h3 { margin: 0 0 8px; font-size: 18px; color: #241a14; }
.stage-card__body p { margin: 0; color: #7a6a57; line-height: 1.9; }

.stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stage-strip__item { margin: 0; }
.stage-strip__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.stage-strip__item figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: #4a3c2e;
  line-height: 1.7;
}
.stage-strip__item figcaption span {
  display: inline-block;
  margin-inline-end: 8px;
  color: #c08a3e;
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.video-card { margin: 0; }
.video-card video {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-card figcaption {
  margin-top: 12px;
  color: #e8dcc9;
  font-size: 15px;
}

@media (max-width: 900px) {
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stage-grid { grid-template-columns: 1fr; }
}

/* رقم الهاتف في الهيدر */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: rgba(247, 242, 232, .9);
  padding: 6px 10px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background .18s;
}
.header-phone:hover { background: rgba(247, 242, 232, .08); }
.header-phone svg { width: 18px; height: 18px; flex: none; color: var(--brass-light, #dcaa68); }

/* the mobile menu lives on the dark panel too */
.mobile-nav .btn-outline { color: var(--cream, #f7f2e8); }

/* إدارة الشركة في صفحة التواصل */
.mgmt-card {
  margin-top: 26px;
  background: #fffdf8;
  border: 1px solid rgba(36, 26, 20, .1);
  border-inline-start: 3px solid var(--brass, #c08a3e);
  border-radius: 12px;
  padding: 20px 22px;
}
.mgmt-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.mgmt-list { list-style: none; margin: 0; padding: 0; }
.mgmt-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(36, 26, 20, .12);
}
.mgmt-list li:last-child { border-bottom: 0; }
.mgmt-list span { color: #9d6c25; font-size: 13px; }
.mgmt-list b { color: #241a14; font-weight: 700; }
.mgmt-contact {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.mgmt-contact__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mgmt-contact__row b { font-size: 12.5px; font-weight: 600; color: #6d5a44; }
.mgmt-contact a { color: var(--teal, #0e2e33); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
}

/* فريق الإدارة */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.team-card {
  background: #fffdf8;
  border: 1px solid rgba(36, 26, 20, .1);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
}
.team-card__role {
  display: block;
  font-size: 13px;
  letter-spacing: .02em;
  color: #9d6c25;
  margin-bottom: 8px;
}
.team-card b {
  display: block;
  font-family: var(--font-head, "Almarai", sans-serif);
  font-size: 18px;
  color: #241a14;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* معرض المصنع */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #efe8dc;
}
.gallery-item:first-child {
  grid-column: span 2;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 34px 18px 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  background: linear-gradient(to top, rgba(12, 26, 30, .88), rgba(12, 26, 30, 0));
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item img { height: 200px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }
  .gallery-item img { height: 210px; }
}
