/* =========================================================
   Donuts Master — Main Stylesheet (v3)
   ========================================================= */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #23a6f0;
  --brand-dark: #0e6ba8;
  --text: #0b2239;
  --muted: #5c6b7a;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .14);
  --heart: #ff3d71;
}

html, body { min-height: 100%; }

body {
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(1200px 900px at 10% 10%, rgba(35, 166, 240, .15), transparent 60%),
    radial-gradient(1200px 900px at 90% 20%, rgba(255, 180, 160, .16), transparent 60%),
    linear-gradient(135deg, #dff3ff, #fff3ec);
  background-attachment: fixed;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== Sprinkles ===== */
.sprinkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .5;
  z-index: 0;
}
.sprinkle {
  position: absolute;
  width: 8px;
  height: 24px;
  border-radius: 6px;
  transform: rotate(25deg);
  animation: float 18s linear infinite;
}
@keyframes float {
  0%   { transform: translateY(110vh) rotate(25deg); }
  100% { transform: translateY(-120vh) rotate(25deg); }
}

/* ===== Main Wrapper ===== */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "text     logo"
    "sections sections";
  gap: 30px 40px;
  align-items: center;
  padding: 40px;
}
.hero-text { grid-area: text; }
.hero .logo { grid-area: logo; }
.sections { grid-area: sections; padding-top: 10px; }

/* ===== Logo ===== */
.logo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease-in-out;
}
.logo:hover img { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.08); }
}

/* ===== Typography ===== */
h1 {
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: .2px;
  margin: 0 0 12px;
}
.subtitle {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0;
}
.sections h2 {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--brand-dark);
  font-weight: 800;
  margin: 20px 0 10px;
  text-align: right;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(35, 166, 240, .10);
  color: var(--brand-dark);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 18px;
}

/* ===== Buttons ===== */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: 0 10px 24px rgba(35, 166, 240, .25);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(35, 166, 240, .30);
}
.btn.secondary {
  --btn-bg: #fff;
  --btn-fg: var(--brand-dark);
  border: 2px solid rgba(35, 166, 240, .18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

/* Main buttons (4) */
.main-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  width: 100%;
}
.main-buttons .btn {
  min-height: 55px;
  padding: 12px 8px;
  font-size: 14px;
  line-height: 1.25;
  border-radius: 12px;
}

/* Branch buttons (2) */
.cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.cta-row .branch {
  flex-direction: column;
  gap: 5px;
  min-height: 80px;
  padding: 15px;
}
.branch-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.branch-sub {
  font-size: 13px;
  opacity: .85;
}

/* ===== Social Icons ===== */
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 25px 40px;
}
.sicon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  transition: transform .2s, box-shadow .2s;
}
.sicon:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .12);
}
.sicon svg { width: 32px; height: 32px; }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.heart { color: var(--heart); }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "text"
      "sections";
    padding: 30px 25px;
    gap: 20px;
    text-align: center;
  }
  .logo { max-width: 220px; }
  .badge { margin: 0 auto 16px; }
  h1 { text-align: center; }
  .sections h2 { text-align: center; }
  .social { padding: 20px 25px; }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  .wrap { padding: 10px; }
  .card { border-radius: 18px; }

  .hero { padding: 20px 15px; gap: 15px; }
  .logo { max-width: 180px; }
  h1 { font-size: 26px; }
  .subtitle { font-size: 14px; line-height: 1.7; }
  .sections h2 { font-size: 17px; }

  /* 4 main buttons → vertical */
  .main-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 15px 0;
  }
  .main-buttons .btn {
    min-height: 52px;
    font-size: 14px;
  }

  /* 2 branch buttons → vertical */
  .cta-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cta-row .branch { min-height: 70px; }

  /* Social icons smaller */
  .social { gap: 12px; padding: 20px 15px; }
  .sicon { width: 60px; height: 60px; }
  .sicon svg { width: 26px; height: 26px; }

  footer { font-size: 13px; padding: 15px 10px; }
}

/* Reduce layout shifts */

.logo img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.home-brand img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sicon svg {
  display: block;
  width: 24px;
  height: 24px;
}

img {
  max-width: 100%;
}

/* تغيير لون اسم دونتس ماستر بجانب الشعار */
.header .logo-link span {
  color: #55C4E8 !important;
}
