/*
Theme Name: فرحان الفيفي - Farhan Fifi
Theme URI: https://example.com/farhan-fifi
Author: Farhan Fifi
Author URI:
Description: قالب عربي RTL لشركات كشف تسربات المياه والعوازل المائية. متجاوب مع الجوال، دعم كامل للمقالات والـ SEO، سهل التخصيص من داخل الووردبريس.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farhan-fifi
Tags: rtl-language-support, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, one-column
*/

/* ============================================================
   فرحان الفيفي | كشف تسربات المياه وعوازل
   Design: RTL Arabic — Navy + Amber
   ============================================================ */

:root {
  --color-navy: #0b1e42;
  --color-navy-deep: #07142e;
  --color-navy-light: #132a52;
  --color-amber: #f59e0b;
  --color-amber-dark: #d97706;
  --color-white: #ffffff;
  --color-offwhite: #f6f8fc;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --whatsapp: #25d366;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 30, 66, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 30, 66, 0.16);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

figure {
  margin: 0;
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  color: var(--color-white);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn--light:hover {
  background: var(--color-offwhite);
  transform: translateY(-2px);
}

.btn--wa {
  background: var(--whatsapp);
  color: var(--color-white);
  width: 100%;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.btn--wa:hover {
  transform: translateY(-2px);
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 30, 66, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

body.admin-bar .header {
  top: 32px;
}

.header.is-scrolled {
  box-shadow: var(--shadow-lg);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand .custom-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  color: var(--color-white);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.brand__logo-img,
.brand .custom-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.brand__text {
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav ul,
.nav li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
}

.nav__link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--color-amber);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav__link:hover,
.nav__link.is-active,
.nav li:hover > a,
.nav li.current-menu-item > a,
.nav li.current_page_item > a {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.is-active::after,
.nav li.current-menu-item > a::after,
.nav li:hover > a::after {
  width: 100%;
}

.nav__call {
  padding: 9px 20px;
  font-size: 0.95rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background: url("assets/images/hero-bg.jpg") center / cover no-repeat, linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy) 55%, var(--color-navy-light) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(245, 158, 11, 0.15), transparent 60%),
    linear-gradient(160deg, rgba(7, 20, 46, 0.88), rgba(11, 30, 66, 0.7));
  pointer-events: none;
}

/* ===== Homepage: full-page background photo ===== */
body.home,
body.front-page {
  background: url("assets/images/hero-bg.jpg") center / cover no-repeat fixed, var(--color-navy-deep);
}

body.home .hero,
body.front-page .hero {
  background: transparent;
}

body.home .features,
body.front-page .features {
  background: rgba(255, 255, 255, 0.9);
}

body.home .services,
body.front-page .services {
  background: rgba(246, 248, 252, 0.9);
}

body.home .assurance,
body.front-page .assurance {
  background: rgba(7, 20, 46, 0.9);
}

body.home .cta,
body.front-page .cta {
  background: rgba(245, 158, 11, 0.93);
}

body.home .footer,
body.front-page .footer {
  background: rgba(7, 20, 46, 0.95);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 18px;
}

.hero__title .accent {
  color: var(--color-amber);
}

.hero__desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__visual {
  position: relative;
  min-height: 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  place-content: center;
}

.hero__card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
  align-self: center;
}

.hero__card:nth-child(2) {
  animation-delay: 1.4s;
}

.hero__card:nth-child(3) {
  animation-delay: 2.2s;
}

.hero__card:nth-child(4) {
  animation-delay: 0.7s;
}

.hero__card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.hero__card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.hero__card-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.hero__card-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Section base ===== */
.section {
  padding: 90px 0;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section__tag {
  display: inline-block;
  color: var(--color-amber-dark);
  font-weight: 800;
  font-size: 0.9rem;
  background: rgba(245, 158, 11, 0.12);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 12px;
}

.section__sub {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section__cta {
  text-align: center;
  margin-top: 42px;
}

/* ===== Features ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-amber-dark);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ===== Services ===== */
.services {
  background: var(--color-offwhite);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--color-navy), var(--color-navy-light));
}

.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--color-white);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.75);
}

.service-card:hover .service-card__icon {
  transform: scale(1.08);
}

/* ===== Assurance ===== */
.assurance {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(245, 158, 11, 0.1), transparent 60%),
    var(--color-navy);
}

.assurance__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  color: var(--color-white);
}

.assurance__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.assurance__icon svg {
  width: 38px;
  height: 38px;
  color: var(--color-white);
}

.assurance h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.assurance__lead {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
}

.assurance__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  text-align: start;
}

.assurance__list li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.assurance__list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-amber);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  padding: 70px 0;
  color: var(--color-white);
}

.cta__inner {
  text-align: center;
  max-width: 720px;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta p {
  opacity: 0.95;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 70px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.brand--footer .brand__text {
  color: var(--color-white);
}

.footer__col p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.footer__col h4 {
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer__col ul li a:hover {
  color: var(--color-amber);
}

.footer__contact li {
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__credit {
  margin-top: 6px;
  font-size: 0.88rem;
}

.footer__credit a {
  color: var(--color-amber);
  font-weight: 700;
}

.footer__credit a:hover {
  color: var(--color-white);
}

/* ===== Floating call + WhatsApp buttons ===== */
.floats {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn svg {
  width: 30px;
  height: 30px;
  color: var(--color-white);
}

.float-btn--call {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.45);
  animation: call-pulse 2.2s ease-in-out infinite;
}

.float-btn--wa {
  background: var(--whatsapp);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}

@keyframes call-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

/* ===== Mobile call bar ===== */
.mobile-call-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(11, 30, 66, 0.1);
}

.mobile-call-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.mobile-call-bar__btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(245, 158, 11, 0.16), transparent 60%),
    linear-gradient(160deg, var(--color-navy-deep), var(--color-navy) 60%, var(--color-navy-light));
  color: var(--color-white);
  text-align: center;
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.page-hero__sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

/* ===== About page ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.about__content .section__title {
  margin-bottom: 18px;
}

.about__content > p {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stat {
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.stat__num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-navy);
}

.stat__label {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ===== Values ===== */
.values {
  background: var(--color-offwhite);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-card__num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.value-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ===== Services page ===== */
.services-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-detail {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-detail:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-detail__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-detail__icon svg {
  width: 30px;
  height: 30px;
  color: var(--color-amber-dark);
}

.service-detail h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.service-detail p {
  color: var(--color-muted);
  font-size: 0.97rem;
  flex: 1;
}

.service-detail__meta {
  display: inline-block;
  margin-top: 18px;
  background: var(--color-navy);
  color: #fcd34d;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  align-self: flex-start;
}

/* ===== Contact page ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact__info h2 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.contact__info > p {
  color: var(--color-muted);
  margin-bottom: 28px;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.contact__card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact__card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.contact__card span {
  display: block;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.contact__card strong {
  color: var(--color-navy);
  font-size: 1.05rem;
}

.contact__card strong a:hover {
  color: var(--color-amber-dark);
}

.contact__card .contact__value a {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
}

.contact__info .btn--wa {
  margin-top: 8px;
}

.contact__form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact__form h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.form__group {
  margin-bottom: 18px;
}

.form__group label {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 7px;
  font-size: 0.95rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--color-text);
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-offwhite);
  transition: all 0.25s ease;
}

.form__group textarea {
  resize: vertical;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-amber);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.form__submit {
  width: 100%;
}

.form__status {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.form__status.success {
  color: #16a34a;
}

.form__status.error {
  color: #dc2626;
}

/* ============================================================
   المقالات والمدونة (SEO)
   ============================================================ */
.blog-page {
  padding-top: calc(var(--header-h) + 70px);
  min-height: 60vh;
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}

.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-card__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--color-navy-light), var(--color-navy-deep));
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.06);
}

.post-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-amber-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.post-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.5;
  margin-bottom: 8px;
}

.post-card__title a:hover {
  color: var(--color-amber-dark);
}

.post-card__excerpt {
  color: var(--color-muted);
  font-size: 0.93rem;
  flex: 1;
  margin-bottom: 16px;
}

.post-card__more {
  color: var(--color-amber-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.post-card__more:hover {
  color: var(--color-navy);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  transition: all 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-white);
}

/* ===== Blog header (archive page hero) ===== */
.blog-hero {
  padding: calc(var(--header-h) + 60px) 0 56px;
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(245, 158, 11, 0.16), transparent 60%),
    linear-gradient(160deg, var(--color-navy-deep), var(--color-navy) 60%, var(--color-navy-light));
  color: var(--color-white);
  text-align: center;
}

.blog-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.blog-hero__sub {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--color-amber-dark);
}

.breadcrumbs span.sep {
  color: var(--color-border);
}

/* ===== Single post ===== */
.single-page {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 90px;
}

.single-page__wrap {
  max-width: 820px;
  margin-inline: auto;
}

.single-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 14px 0 22px;
}

.single-page__meta a {
  color: var(--color-amber-dark);
  font-weight: 600;
}

.single-page__meta a:hover {
  color: var(--color-navy);
}

.entry-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.entry-thumbnail img {
  width: 100%;
}

.entry-content {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 2;
}

.entry-content > * {
  margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--color-navy);
  font-weight: 800;
  line-height: 1.5;
  margin-top: 34px;
}

.entry-content h2 {
  font-size: 1.5rem;
}

.entry-content h3 {
  font-size: 1.25rem;
}

.entry-content a {
  color: var(--color-amber-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(217, 119, 6, 0.3);
}

.entry-content a:hover {
  color: var(--color-navy);
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: 24px;
  list-style: initial;
  margin-bottom: 20px;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 8px;
}

.entry-content img {
  border-radius: var(--radius-sm);
}

.entry-content blockquote {
  background: var(--color-offwhite);
  border-inline-start: 4px solid var(--color-amber);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-weight: 600;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: start;
}

.entry-content th {
  background: var(--color-offwhite);
  color: var(--color-navy);
  font-weight: 800;
}

.entry-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-tags a {
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  border-bottom: none;
}

.entry-tags a:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ===== Related posts ===== */
.related {
  margin-top: 50px;
}

.related__title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 22px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Comments ===== */
.comments-wrap {
  max-width: 820px;
  margin: 50px auto 0;
}

.comments-title,
.comment-reply-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  margin-bottom: 30px;
}

.comment-list .comment {
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.comment-list .children {
  list-style: none;
  margin-top: 14px;
  padding-inline-start: 20px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-navy);
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-metadata time {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.comment-list .comment-content {
  margin-top: 10px;
}

.comment-reply-link {
  color: var(--color-amber-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.comment-form label {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--font);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-offwhite);
  margin-bottom: 14px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-amber);
}

.comment-form .submit {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.3);
}

/* ===== 404 ===== */
.error404-page {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 90px;
  text-align: center;
  min-height: 60vh;
}

.error404-page h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  color: var(--color-amber);
  line-height: 1;
}

.error404-page h2 {
  color: var(--color-navy);
  font-size: 1.6rem;
  margin: 10px 0 12px;
}

.error404-page p {
  color: var(--color-muted);
  margin-bottom: 24px;
}

.error404-page .search-form {
  max-width: 460px;
  margin: 0 auto 26px;
  display: flex;
  gap: 10px;
}

.search-field {
  flex: 1;
  font-family: var(--font);
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* ===== Search results ===== */
.search-results .post-card__excerpt {
  margin-bottom: 0;
}

/* ===== Alignments / WordPress core ===== */
.alignleft {
  float: left;
  margin: 8px 0 20px 20px;
}

.alignright {
  float: right;
  margin: 8px 20px 20px 0;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption {
  max-width: 100%;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services__grid,
  .services-page__grid,
  .posts__grid,
  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .hero__visual {
    max-width: 520px;
    margin-inline: auto;
    min-height: 340px;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    -webkit-tap-highlight-color: transparent;
  }

  body.admin-bar .header {
    top: 46px;
  }

  .section {
    padding: 64px 0;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--color-navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    border-bottom: 3px solid var(--color-amber);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  body.admin-bar .nav {
    top: calc(var(--header-h) + 46px);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav ul,
  .nav li {
    display: block;
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__call {
    margin-top: 14px;
    justify-content: center;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 60px;
  }

  body.home,
  body.front-page {
    background-attachment: scroll;
  }

  body.home .hero::before,
  body.front-page .hero::before {
    background:
      radial-gradient(700px 300px at 50% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
      linear-gradient(160deg, rgba(7, 20, 46, 0.7), rgba(11, 30, 66, 0.48));
  }

  body.home .features,
  body.front-page .features {
    background: rgba(255, 255, 255, 0.86);
  }

  body.home .services,
  body.front-page .services {
    background: rgba(246, 248, 252, 0.86);
  }

  body.home .assurance,
  body.front-page .assurance {
    background: rgba(7, 20, 46, 0.88);
  }

  body.home .cta,
  body.front-page .cta {
    background: rgba(245, 158, 11, 0.92);
  }

  body.home .footer,
  body.front-page .footer {
    background: rgba(7, 20, 46, 0.93);
  }

  .hero__visual {
    min-height: 0;
    gap: 14px;
    max-width: 480px;
    margin-inline: auto;
  }

  .hero__card {
    padding: 16px 14px;
  }

  .hero__card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }

  .hero__card-icon svg {
    width: 20px;
    height: 20px;
  }

  .hero__card-title {
    font-size: 0.95rem;
  }

  .hero__card-sub {
    font-size: 0.78rem;
  }

  .hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero__desc {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .services__grid,
  .services-page__grid,
  .values__grid,
  .features__grid,
  .posts__grid,
  .related__grid {
    grid-template-columns: 1fr;
  }

  .assurance__list {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__col h4 {
    margin-bottom: 12px;
  }

  .footer__col ul li {
    margin-bottom: 8px;
  }

  .contact__form {
    padding: 24px;
  }

  .cta {
    padding: 50px 0;
  }

  .cta h2 {
    font-size: 1.4rem;
  }

  .page-hero {
    padding: calc(var(--header-h) + 40px) 0 40px;
  }

  .page-hero__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .mobile-call-bar {
    display: block;
  }

  .floats {
    bottom: 80px;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  .float-btn svg {
    width: 26px;
    height: 26px;
  }

  .footer {
    padding-bottom: 74px;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat {
    padding: 14px 10px;
  }

  .stat__num {
    font-size: 1.25rem;
  }

  .service-detail {
    padding: 24px 20px;
  }

  .posts__grid {
    gap: 20px;
  }

  .single-page__wrap {
    padding-inline: 0;
  }

  .related__grid {
    gap: 16px;
  }

  .blog-hero {
    padding: calc(var(--header-h) + 40px) 0 40px;
  }
}

@media (max-width: 420px) {
  .hero__actions .btn {
    width: 100%;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .cta__actions {
    flex-direction: column;
    gap: 12px;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .error404-page .search-form {
    flex-direction: column;
  }
}