/* =========================================================================
   stylesnew.css — مجمع/عيادات الأقصى الطبي
   Advertising-mode landing page skin — booking-conversion focused
   
   ========================================================================= */
/* ===== Standalone foundation ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  text-align: right;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -10px;
}

.row > * {
  width: 100%;
  padding-inline: 10px;
}

.col-lg-12 {
  width: 100%;
}

.text-center {
  text-align: center !important;
}

.w-100 {
  width: 100% !important;
}

.overflow-hidden {
  overflow: hidden;
}

.form-control,
.custom-select {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
  outline: none;
}

.st-site-header {
  width: 100%;
  position: relative;
  z-index: 100;
}

.st-sticky-header {
  position: sticky;
  top: 0;
}

.st-main-header-in {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.st-main-header-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.st-content {
  width: 100%;
}

.st-hero {
  width: 100%;
  position: relative;
}

.st-hero-wrap,
.st-hero-in {
  width: 100%;
}

.st-appointment-form {
  width: min(850px, calc(100% - 30px));
  margin-inline: auto;
}

.st-form-field {
  width: 100%;
}

.st-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  border: 0;
  cursor: pointer;
}

section {
  width: 100%;
}

@media (min-width: 992px) {
  .col-lg-6 {
    width: 50%;
  }

  .col-lg-12 {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .container {
    padding-inline: 15px;
  }

  .col-lg-6,
  .col-lg-12 {
    width: 100%;
  }

  .st-main-header {
    height: 80px !important;
  }

  .st-appointment-form {
    width: calc(100% - 20px);
  }
}

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800;900&family=Tajawal:wght@400;500;700;900&display=swap");

/* -------------------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------------- */
:root {
  /* Tooth Smile brand colors */
  --clr-primary: #08bce8; /* logo cyan */
  --clr-primary-dark: #123f70; /* deep brand navy */
  --clr-primary-light: #75ddf4; /* light cyan */

  --clr-accent: #e50072; /* logo pink — CTA */
  --clr-accent-dark: #b8005b; /* dark pink */

  --clr-whatsapp: #25d366;
  --clr-gold: #d8a13a;

  /* Backgrounds */
  --clr-bg: #f2fbfe;
  --clr-bg-alt: #ffffff;

  /* Text */
  --clr-text: #102f50;
  --clr-text-muted: #637986;
  --clr-border: #d9eef4;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(18, 63, 112, 0.07);
  --shadow-md: 0 12px 32px rgba(18, 63, 112, 0.14);
  --shadow-lg: 0 24px 64px rgba(18, 63, 112, 0.22);

  /* Corners */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  /* Typography */
  --font-display: "Cairo", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Cairo", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 0.3s;
}

/* -------------------------------------------------------------------------
   2. Base / typography
   ---------------------------------------------------------------------- */
body.rtl {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.st-hero-title,
.st-text-block-title,
.st-section-heading-title,
.st-appointment-form-title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

a {
  transition:
    color var(--speed) var(--ease),
    background var(--speed) var(--ease);
}

::selection {
  background: var(--clr-accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   3. Header
   ---------------------------------------------------------------------- */
.st-site-header.st-sticky-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.st-main-header {
  height: 96px !important;
}

.st-main-header-center img {
  max-height: 76px !important;
  filter: drop-shadow(0 4px 10px rgba(11, 61, 99, 0.12));
  transition: transform var(--speed) var(--ease);
}
.st-main-header-center img:hover {
  transform: scale(1.03);
}

/* -------------------------------------------------------------------------
   4. Hero + Booking form — the money section
   ---------------------------------------------------------------------- */
.st-hero.st-style1.st-type2 {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.1) 0,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 255, 255, 0.08) 0,
      transparent 45%
    ),
    linear-gradient(
      135deg,
      var(--clr-primary-dark) 0%,
      var(--clr-primary) 55%,
      var(--clr-primary-light) 100%
    ) !important;
  position: relative;
  padding-bottom: 40px !important;
}

.st-hero.st-style1.st-type2 > .container {
  background: transparent !important; /* replaces the old flat inline bg */
}

/* Trust / urgency eyebrow above the title */
.st-hero-text.text-center::before {
  content: "✔ عروض خاصة — لفترة محدودة";
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  animation: fadeInDown 0.8s var(--ease) both;
}

.st-hero-title {
  color: #fff !important;
  font-size: clamp(32px, 5vw, 56px) !important;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.st-hero-mini-title {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500 !important;
  animation: fadeInUp 0.8s var(--ease) 0.25s both;
}

/* --- Booking card: glass + elevation, the primary conversion object --- */
.st-appointment-form {
  background: var(--clr-bg-alt) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 44px 38px 34px !important;
  border: 1px solid var(--clr-border);
  position: relative;
  animation: fadeInUp 0.9s var(--ease) 0.35s both;
}

.st-appointment-form-title {
  color: var(--clr-primary-dark) !important;
  font-size: clamp(22px, 3vw, 30px) !important;
}
.st-appointment-form p.st-appointment-form-title {
  color: var(--clr-accent) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

/* Little reassurance strip — reduces booking friction/anxiety */
#st-alert1:empty::before {
  content: "بياناتك بتظل محفوظة وسرية 100٪ • هنتواصل معاك خلال دقايق";
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-bottom: 14px;
}

.st-form-field.st-style1 {
  margin-bottom: 6px;
}

.st-form-field.st-style1 .form-control,
.st-custom-select-wrap select.custom-select {
  height: 54px !important;
  border: 2px solid var(--clr-border) !important;
  border-radius: var(--radius-sm) !important;
  background: #fbfdfc !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  padding: 0 18px !important;
  transition:
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    background var(--speed) var(--ease);
}

.st-form-field.st-style1 .form-control:focus,
.st-custom-select-wrap select.custom-select:focus {
  border-color: var(--clr-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12) !important;
}

.st-form-field.st-style1 .form-control::placeholder {
  color: #93a3a6;
}

/* Primary CTA — pulsing to draw the eye, high-contrast accent color */
#appointment-submit,
button#appointment-submit.st-btn {
  background: linear-gradient(
    135deg,
    var(--clr-accent) 0%,
    var(--clr-accent-dark) 100%
  ) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  letter-spacing: 0.3px;
  padding: 18px 20px !important;
  box-shadow: 0 14px 30px rgba(255, 107, 53, 0.38);
  animation: pulseCta 2.6s ease-in-out infinite;
  margin-top: 8px;
}
#appointment-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 107, 53, 0.48);
}
#appointment-submit:active {
  transform: translateY(0);
}

/* Hero image */
.st-hero-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------------------
   5. About section
   ---------------------------------------------------------------------- */
#about .st-left-full-width img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

#about .st-text-block-title {
  color: var(--clr-primary-dark) !important;
  font-size: clamp(24px, 3.4vw, 34px) !important;
  position: relative;
  padding-inline-start: 18px;
}
#about .st-text-block-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--clr-accent), var(--clr-primary));
}

#about .st-text-block-text p {
  color: var(--clr-text-muted);
  font-size: 16px;
  line-height: 1.9;
}

#about .st-hero-btn-group .st-btn {
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  padding: 14px 36px !important;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
#about .st-hero-btn-group .st-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------------------
   6. Pricing / installment ("قسط الان") — scarcity + trust ribbon
   ---------------------------------------------------------------------- */
#blog .st-section-heading-title {
  color: var(--clr-primary-dark) !important;
  text-align: center;
  font-size: clamp(24px, 3.2vw, 32px) !important;
}

#blog .st-post.st-style3 {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
#blog .st-post.st-style3:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

#blog .st-post-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
#blog .st-post-thumb img.st-zoom-in {
  transition: transform 0.6s var(--ease);
}
#blog .st-post-thumb:hover img.st-zoom-in {
  transform: scale(1.08);
}

/* Discount ribbon badge, echoes the real "up to 50%" claim from the page copy */
#blog .st-post-thumb::before {
  content: "خصم يصل إلى 50٪";
  position: absolute;
  top: 18px;
  inset-inline-start: -8px;
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.35);
  z-index: 2;
}

#blog .st-link-hover {
  background: var(--clr-primary-dark);
}

#blog .st-hero-btn-group .st-btn {
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  margin-top: 18px;
}

/* -------------------------------------------------------------------------
   7. Services / department section
   ---------------------------------------------------------------------- */
#department .st-tab-links .st-orange-box {
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 14px 34px !important;
  box-shadow: var(--shadow-md);
}

#department .st-imagebox.st-style2 {
  background: var(--clr-bg-alt);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

#department .st-imagebox-img img {
  border-radius: var(--radius-md);
}

#department .st-imagebox-subtitle {
  color: var(--clr-primary-dark);
  font-size: 19px;
  line-height: 1.8;
  font-weight: 700;
}

/* Service list becomes a checklist — clearer scanning, feels premium */
#department table {
  width: 100%;
  border-collapse: collapse;
}
#department table td {
  vertical-align: top;
  padding-inline-end: 24px;
}

#department .st-imagebox-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#department .st-imagebox-text ul li {
  position: relative;
  padding: 10px 0 10px 0;
  padding-inline-start: 30px;
  font-size: 15.5px;
  color: var(--clr-text);
  border-bottom: 1px dashed var(--clr-border);
}
#department .st-imagebox-text ul li:last-child {
  border-bottom: none;
}

#department .st-imagebox-text ul li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

#department .st-hero-btn-group .st-btn {
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
}

/* -------------------------------------------------------------------------
   8. Footer
   ---------------------------------------------------------------------- */
.st-site-footer.st-color2 {
  background: var(--clr-primary-dark) !important;
}
.st-copyright-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

#st-backtotop {
  background: var(--clr-accent) !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) var(--ease);
}
#st-backtotop:hover {
  transform: translateY(-4px);
}

/* -------------------------------------------------------------------------
   9. Floating sticky booking button (defensive styling)
   Referenced by hidebutton() in the page's inline script — if #stickybutton
   exists anywhere in the markup, it becomes a persistent mobile CTA.
   ---------------------------------------------------------------------- */
#stickybutton {
  position: fixed;
  z-index: 999;
  bottom: 18px;
  inset-inline-end: 18px;
  background: linear-gradient(135deg, var(--clr-whatsapp), #1fb355);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  animation: pulseCta 2.6s ease-in-out infinite;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* -------------------------------------------------------------------------
   10. Animations
   ---------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulseCta {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(255, 107, 53, 0.38);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 18px 40px rgba(255, 107, 53, 0.55);
    transform: scale(1.025);
  }
}

/* -------------------------------------------------------------------------
   11. Responsive — mobile-first booking priority
   ---------------------------------------------------------------------- */
@media (max-width: 991px) {
  .st-appointment-form {
    padding: 34px 22px 26px !important;
  }
  #department .st-imagebox.st-style2 {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .st-main-header {
    height: 76px !important;
  }
  .st-main-header-center img {
    max-height: 54px !important;
  }

  .st-hero.st-style1.st-type2 {
    padding-top: 26px !important;
  }
  .st-hero-title {
    font-size: 28px !important;
  }
  .st-hero-text.text-center::before {
    font-size: 12.5px;
    padding: 6px 16px;
  }

  .st-appointment-form {
    border-radius: var(--radius-md) !important;
  }
  .st-form-field.st-style1 .form-control,
  .st-custom-select-wrap select.custom-select {
    height: 50px !important;
    font-size: 14px !important;
  }

  #appointment-submit {
    font-size: 16px !important;
    padding: 16px !important;
  }

  #about .st-text-block-title {
    font-size: 22px !important;
    text-align: center;
    padding-inline-start: 0;
  }
  #about .st-text-block-title::before {
    display: none;
  }
  #about .st-text-block-text p {
    text-align: center;
    font-size: 15px;
  }
  #about .st-hero-btn-group {
    text-align: center;
  }

  #department table,
  #department tbody,
  #department tr,
  #department td {
    display: block;
    width: 100%;
  }
  #department table td {
    padding-inline-end: 0;
  }

  #stickybutton {
    inset-inline-end: 12px;
    bottom: 14px;
    font-size: 13.5px;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .st-hero-title {
    font-size: 24px !important;
  }
  .st-appointment-form-title {
    font-size: 20px !important;
  }
  #blog .st-post-thumb::before {
    font-size: 11.5px;
    padding: 6px 14px;
  }
}
