/* ==========================================================================
   iCity Solution - Extras (additions only; loaded after style.css / style1.css)
   Uses the theme variables defined by BOTH styles, so new blocks follow the active style.
   ========================================================================== */

/* Style switcher button: same look as the language button */
.style-toggle-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .style-toggle-btn #styleBtnLabel { display: none; }
}

/* Why Us - extra text block */
.why-extra {
  margin-top: 2.5rem;
  padding: 2rem 2.25rem;
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.why-extra p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.95; }
.why-extra p + p { margin-top: 1rem; }
.why-extra p:first-child { color: var(--text-primary); font-weight: 700; }

/* Services - long text cards keep the original card size (full text lives in the detail modal) */
.service-card--long p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-modal-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}
.service-list-title {
  color: var(--accent-primary);
  font-size: 1.05rem;
  margin: 0.25rem 0 0.75rem;
}

/* Text-only works (no photos) */
.works-block { margin-top: 3.5rem; }
.works-heading { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1.5rem; align-items: start; }
.work-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.work-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.work-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.work-head h3 { font-size: 1.3rem; color: var(--text-primary); }
.work-logo { background: #fff; border-radius: var(--radius-sm); padding: 0.4rem 0.7rem; height: 56px; display: flex; align-items: center; }
.work-logo img { height: 100%; width: auto; object-fit: contain; }
.work-list { display: flex; flex-direction: column; gap: 0.6rem; }
.work-list li { display: flex; gap: 0.65rem; color: var(--text-secondary); line-height: 1.7; }
.work-check { color: var(--accent-primary); font-weight: 900; }
.work-card:last-child:nth-child(odd) .work-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0.6rem 1.5rem; }
@media (max-width: 640px) { .works-grid { grid-template-columns: 1fr; } }

/* Alternate style: modal contents use inline dark-theme colors, so re-map them */
html[data-style="style2"] .modal-content h2 { color: var(--text-primary) !important; }
html[data-style="style2"] .modal-content li { color: var(--text-primary) !important; background: var(--accent-glow) !important; }

/* Small phones: keep the header on one line now that the style button was added */
@media (max-width: 600px) {
  .nav-actions { gap: 0.4rem; }
  .style-toggle-btn { padding-inline: 0.55rem; }
  .nav-actions .lang-toggle-btn { padding-inline: 0.6rem; }
}
@media (max-width: 440px) {
  .brand-text .brand-title-en { display: none; }
  .brand-link { gap: 0.5rem; min-width: 0; }
  .brand-text .brand-title-ar { font-size: 0.9rem; white-space: nowrap; }
  .brand-logo-wrap { width: 44px; height: 44px; }
  .nav-actions { gap: 0.3rem; }
  .nav-actions .lang-toggle-btn { padding-inline: 0.5rem; gap: 0.3rem; }
}
