/*
Theme Name: Mostafa SEO
Theme URI: https://mostafaabdulrahman.com
Description: Child theme of Twenty Twenty-Five for Mostafa Abdelrahman's personal SEO site. Arabic (RTL) first, blue trust palette.
Author: Mostafa Abdelrahman
Template: twentytwentyfive
Version: 1.0.0
Text Domain: mostafa-seo
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

/* ---------- Header: sticky, white, thin border ---------- */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wp--preset--color--white);
  border-block-end: 1px solid var(--wp--preset--color--line);
}
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); }

/* ---------- Hero: solid navy, no decoration ---------- */
.ma-hero {
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white);
}
.ma-hero h1,
.ma-hero h2,
.ma-hero a:not(.wp-element-button) { color: var(--wp--preset--color--white); }
.ma-hero p { color: #C9D6F2; }
.ma-hero .is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--white);
  border-color: #6F8FE8;
}

/* ---------- Proof numbers (the one memorable element) ---------- */
.ma-proof { border-inline-start: 4px solid var(--wp--preset--color--primary); padding-inline-start: 1rem; }
.ma-proof .ma-number {
  font-size: var(--wp--preset--font-size--xx-large);
  font-weight: 800;
  line-height: 1.1;
  color: var(--wp--preset--color--primary);
  margin: 0;
}
.ma-proof .ma-caption { margin: .25rem 0 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Surfaces ---------- */
.ma-tint    { background: var(--wp--preset--color--tint); }
.ma-surface { background: var(--wp--preset--color--surface); }
.ma-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  padding: var(--wp--preset--spacing--40);
}
a.ma-card, .ma-card a.ma-card-link { text-decoration: none; color: inherit; }
a.ma-card:hover { border-color: var(--wp--preset--color--primary); }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: background-color .15s ease; font-weight: 700; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--primary-dark); }
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--primary);
  border: 2px solid var(--wp--preset--color--primary);
}

/* ---------- Comfortable Arabic reading width ---------- */
.ma-prose { max-width: 68ch; }
.ma-prose p { line-height: 1.9; }

/* ---------- FAQ (core/details) ---------- */
.wp-block-details { border-block-end: 1px solid var(--wp--preset--color--line); padding-block: .9rem; }
.wp-block-details summary { cursor: pointer; font-weight: 700; }

@media (max-width: 781px) {
  .ma-proof .ma-number { font-size: var(--wp--preset--font-size--x-large); }
}
