/*
Theme Name: SinoLine Links
Theme URI: https://sinoline.sa/
Author: SinoLine Trading & Import
Author URI: https://sinoline.sa/
Description: صفحة روابط رسمية خفيفة ومتجاوبة لشركة سينولاين للتجارة والاستيراد.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sinoline-links
*/

:root {
  --sl-navy-950: #041025;
  --sl-navy-900: #07172f;
  --sl-navy-800: #0c2344;
  --sl-gold: #d9b45a;
  --sl-gold-soft: #f1d78f;
  --sl-cream: #fbf8f0;
  --sl-muted: #aebbd0;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--sl-navy-950);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--sl-cream);
  background: var(--sl-navy-950);
  font-family: Tahoma, Arial, sans-serif;
}

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

.sl-page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 34px 18px 42px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 50% -12%, #173d69 0, var(--sl-navy-950) 48%);
  background-size: 34px 34px, 34px 34px, auto;
}

.sl-ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.sl-ambient-one {
  top: 15%;
  right: -160px;
  width: 330px;
  height: 330px;
  background: rgba(217,180,90,.08);
}

.sl-ambient-two {
  bottom: 8%;
  left: -180px;
  width: 380px;
  height: 380px;
  background: rgba(55,111,171,.11);
}

.sl-link-hub {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(100%, 610px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(12,35,68,.94), rgba(4,16,37,.92));
  box-shadow: 0 30px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.sl-brand-header {
  margin: -28px -28px 26px;
  padding: 0 28px 28px;
  border-bottom: 1px solid rgba(217,180,90,.45);
  background: linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
  text-align: center;
}

.sl-brand-header::before {
  content: "";
  display: block;
  height: 10px;
  margin: 0 -28px 22px;
  background: linear-gradient(90deg, #041025 0%, #0c2b50 50%, #041025 100%);
  box-shadow: inset 0 -1px 0 rgba(217,180,90,.62);
}

.sl-logo-panel {
  width: min(100%, 310px);
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
}

.sl-logo-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.sl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(162,120,31,.24);
  border-radius: 999px;
  color: #89641f;
  background: rgba(217,180,90,.12);
  font-size: 12px;
  font-weight: 700;
}

.sl-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sl-gold);
  box-shadow: 0 0 12px rgba(217,180,90,.8);
}

.sl-brand-header h1 {
  margin: 16px 0 8px;
  color: var(--sl-navy-900);
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.sl-brand-header p {
  margin: 0;
  color: #5c6a7d;
  font-size: 14px;
  line-height: 1.8;
}

.sl-section-block {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sl-brand-header + .sl-section-block {
  padding-top: 0;
  border-top: 0;
}

.sl-section-block + .sl-section-block { margin-top: 24px; }

.sl-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.sl-section-heading h2,
.sl-social-section h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.sl-section-heading span { color: #7f91aa; font-size: 11px; }
.sl-link-stack { display: grid; gap: 11px; }

.sl-link-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 19px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sl-link-card:hover,
.sl-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217,180,90,.46);
  background: rgba(255,255,255,.085);
  outline: none;
}

.sl-link-card-featured {
  border-color: rgba(217,180,90,.45);
  background: linear-gradient(120deg, rgba(217,180,90,.18), rgba(255,255,255,.06));
}

.sl-link-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(217,180,90,.23);
  border-radius: 14px;
  color: var(--sl-gold-soft);
  background: rgba(217,180,90,.09);
  font-size: 19px;
}

.sl-link-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sl-link-copy strong { color: #fff; font-size: 14px; font-weight: 800; }

.sl-link-copy small {
  overflow: hidden;
  color: #9dacc0;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-link-arrow {
  color: #6f829d;
  font-size: 12px;
  transform: rotate(-90deg);
}

.sl-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.sl-contact-grid .sl-link-card {
  grid-template-columns: 40px minmax(0,1fr);
  min-height: 72px;
  gap: 10px;
}

.sl-contact-grid .sl-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 17px;
}

.sl-contact-grid .sl-link-arrow { display: none; }

.sl-social-section {
  margin-top: 25px;
  padding: 21px 0 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.sl-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.sl-social-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 17px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sl-social-icon:hover,
.sl-social-icon:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.28);
  outline: none;
}

.sl-social-instagram:hover { background: #c13584; }
.sl-social-snapchat:hover { color: #111; background: #fffc00; }
.sl-social-tiktok:hover { background: #111; box-shadow: -2px 0 #25f4ee, 2px 0 #fe2c55; }
.sl-social-x:hover { background: #0b0b0b; }
.sl-social-linkedin:hover { background: #0a66c2; }
.sl-social-facebook:hover { background: #1877f2; }
.sl-social-youtube:hover { background: #f00; }

.sl-page-footer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.sl-official-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.sl-national-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.sl-national-number > img {
  width: 112px;
  height: 50px;
  object-fit: contain;
}

.sl-national-number > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: right;
}

.sl-national-number small {
  color: #b3bfd0;
  font-size: 11px;
  white-space: nowrap;
}

.sl-national-number strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
}

.sl-business-badge {
  display: grid;
  place-items: center;
  min-height: 52px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.sl-business-badge:hover,
.sl-business-badge:focus-visible {
  transform: translateY(-2px);
  opacity: .84;
  outline: none;
}

.sl-business-badge img {
  display: block;
  width: min(100%,190px);
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sl-page-footer small { color: #657891; font-size: 10px; }

@media (max-width: 520px) {
  .sl-page-shell { padding: 0; }

  .sl-link-hub {
    width: 100%;
    min-height: 100svh;
    padding: 0 17px 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sl-brand-header {
    margin: 0 -17px 26px;
    padding: 0 17px 25px;
  }

  .sl-brand-header::before {
    height: 9px;
    margin: 0 -17px 20px;
  }

  .sl-logo-panel {
    width: min(100%,300px);
  }
  .sl-official-row { grid-template-columns: 1fr; gap: 14px; }
  .sl-contact-grid { grid-template-columns: 1fr; }
  .sl-contact-grid .sl-link-card { grid-template-columns: 42px 1fr 18px; }
  .sl-contact-grid .sl-link-arrow { display: block; }
  .sl-section-heading span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* SinoLine corporate directory — clean, flat and brand-led */
html,
body { background: #e9edf1; }

.sl-page-shell {
  padding: 32px 16px;
  background: #e9edf1;
}

.sl-ambient { display: none; }

.sl-link-hub {
  width: min(100%,560px);
  padding: 0 34px;
  border: 0;
  border-radius: 18px;
  background: #071a34;
  box-shadow: 0 18px 48px rgba(4,16,37,.18);
  backdrop-filter: none;
}

.sl-brand-header {
  margin: 0 -34px 30px;
  padding: 0 34px 27px;
  border-bottom: 1px solid #ded7c7;
  background: #fff;
}

.sl-brand-header::before {
  height: 12px;
  margin: 0 -34px 21px;
  background: #071a34;
  box-shadow: inset 0 -2px 0 #c99a3d;
}

.sl-logo-panel {
  width: min(100%,270px);
  margin-bottom: 14px;
}

.sl-logo-panel img { max-height: 66px; }

.sl-eyebrow {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #9a7228;
  background: none;
  font-size: 11px;
  letter-spacing: .08em;
}

.sl-eyebrow::before { display: none; }

.sl-brand-header h1 {
  margin: 10px 0 6px;
  font-size: clamp(21px,5vw,25px);
  letter-spacing: -.02em;
}

.sl-brand-header p {
  color: #667083;
  font-size: 13px;
  line-height: 1.6;
}

.sl-section-block { border-top-color: #1e3551; }
.sl-section-block + .sl-section-block { margin-top: 27px; }

.sl-section-heading {
  align-items: center;
  margin-bottom: 11px;
}

.sl-section-heading h2,
.sl-social-section h2 { font-size: 14px; }

.sl-section-heading span { color: #8795a8; font-size: 10px; }
.sl-link-stack { gap: 9px; }

.sl-link-card {
  grid-template-columns: 42px 1fr 16px;
  gap: 12px;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sl-link-card:hover,
.sl-link-card:focus-visible {
  transform: translateY(-1px);
  border-color: #c99a3d;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.sl-link-card-featured {
  border-color: #c99a3d;
  border-right-width: 4px;
  background: #fff;
}

.sl-link-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #8f6922;
  background: #f3efe6;
  font-size: 17px;
}

.sl-link-copy strong { color: #071a34; font-size: 14px; }
.sl-link-copy small { color: #6d7786; }
.sl-link-arrow { color: #a67b2c; }

.sl-contact-grid { gap: 9px; }

.sl-contact-grid .sl-link-card {
  min-height: 67px;
  border-color: #24405f;
  background: #0c2749;
}

.sl-contact-grid .sl-link-card:hover,
.sl-contact-grid .sl-link-card:focus-visible {
  border-color: #c99a3d;
  background: #0c2749;
}

.sl-contact-grid .sl-link-icon {
  border-radius: 8px;
  color: #e4c574;
  background: #16375e;
}

.sl-contact-grid .sl-link-copy strong { color: #fff; }
.sl-contact-grid .sl-link-copy small { color: #aab6c6; }

.sl-social-section {
  margin-top: 27px;
  padding: 22px 0 2px;
  border-top-color: #1e3551;
}

.sl-social-row { gap: 9px; margin-top: 14px; }

.sl-social-icon {
  width: 40px;
  height: 40px;
  border-color: #34506e;
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
}

.sl-social-icon:hover,
.sl-social-icon:focus-visible {
  transform: translateY(-2px);
  border-color: #e4c574;
}

.sl-page-footer {
  margin: 29px -34px 0;
  padding: 22px 34px 18px;
  border-top: 3px solid #c99a3d;
  background: #fff;
}

.sl-official-row { gap: 20px; margin-bottom: 15px; }

.sl-national-number > img {
  width: 100px;
  height: 44px;
}

.sl-national-number small { color: #677181; }
.sl-national-number strong { color: #071a34; }

.sl-business-badge img {
  width: min(100%,180px);
  height: 44px;
  filter: none;
}

.sl-page-footer > small { color: #8b919a; }

@media (max-width: 520px) {
  .sl-page-shell { padding: 0; }

  .sl-link-hub {
    padding: 0 18px;
    border-radius: 0;
    box-shadow: none;
  }

  .sl-brand-header {
    margin: 0 -18px 27px;
    padding: 0 18px 24px;
  }

  .sl-brand-header::before {
    height: 11px;
    margin: 0 -18px 18px;
  }

  .sl-logo-panel { width: min(100%,255px); }
  .sl-brand-header h1 { font-size: 21px; }

  .sl-contact-grid { grid-template-columns: 1fr; }
  .sl-contact-grid .sl-link-card { grid-template-columns: 40px 1fr 16px; }
  .sl-contact-grid .sl-link-arrow { display: block; }

  .sl-page-footer {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .sl-official-row { grid-template-columns: 1fr; gap: 12px; }
}
