/* =========================================================
   IDEA E-MARKETING — DESIGN SYSTEM
   Tokens / Fonts / Typography / Shared Base
   ========================================================= */

:root {
  --idea-primary: #1f33c6;
  --idea-primary-dark: #16289e;
  --idea-accent: #f5b21a;

  --idea-heading: #07111f;
  --idea-text: #4b5563;
  --idea-muted: #6b7280;

  --idea-bg: #ffffff;
  --idea-bg-soft: #f8fafc;
  --idea-bg-warm: #f4ece7;
  --idea-border: #e6e8ee;

  --idea-dark: #111827;
  --idea-dark-2: #081426;

  --idea-radius-sm: 14px;
  --idea-radius-md: 18px;
  --idea-radius-lg: 24px;
  --idea-radius-xl: 30px;

  --idea-shadow-soft: 0 12px 30px rgba(7, 17, 31, 0.06);
  --idea-shadow-card: 0 18px 48px rgba(7, 17, 31, 0.08);
  --idea-shadow-hover: 0 24px 60px rgba(7, 17, 31, 0.12);

  --idea-container: 1240px;
  --idea-container-narrow: 860px;

  --idea-transition: 220ms ease;
  --idea-fast: 160ms ease;
}

/* Fonts */
@font-face {
  font-family: "Cairo Play Local";
  src: url("../fonts/cairo/cairo-play-v13-arabic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Play Local";
  src: url("../fonts/cairo/cairo-play-v13-arabic_latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Play Local";
  src: url("../fonts/cairo/cairo-play-v13-arabic_latin-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Play Local";
  src: url("../fonts/cairo/cairo-play-v13-arabic_latin-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Local";
  src: url("../fonts/cairo/cairo-v31-arabic_latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Local";
  src: url("../fonts/cairo/cairo-v31-arabic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Local";
  src: url("../fonts/cairo/cairo-v31-arabic_latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Local";
  src: url("../fonts/cairo/cairo-v31-arabic_latin-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Cairo Local";
  src: url("../fonts/cairo/cairo-v31-arabic_latin-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal Local";
  src: url("../fonts/tajawal/tajawal-v12-arabic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal Local";
  src: url("../fonts/tajawal/tajawal-v12-arabic_latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal Local";
  src: url("../fonts/tajawal/tajawal-v12-arabic_latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Base Typography */
body {
  font-family: "Tajawal Local", sans-serif;
  color: var(--idea-text);
  font-size: 18px;
  line-height: 1.8;
  background: var(--idea-bg);
}

p,
li,
input,
textarea,
select,
button {
  font-family: "Tajawal Local", sans-serif;
}

a,
span {
  font-family: inherit;
}

h1,
.site-title {
  font-family: "Cairo Play Local", sans-serif;
  color: var(--idea-heading);
  line-height: 1.18;
}

h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
.ct-title {
  font-family: "Cairo Local", sans-serif;
  color: var(--idea-heading);
  line-height: 1.22;
}

h1 {
  font-size: clamp(30px, 3vw, 30px);
  font-weight: 900;
}

h2 {
  font-size: clamp(26px, 3vw, 26px);
  font-weight: 900;
}

h3 {
  font-size: clamp(22px, 2.5vw, 22px);
  font-weight: 800;
}

p {
  color: var(--idea-muted);
}

/* Containers */
.idea-container {
  width: 100%;
  max-width: var(--idea-container);
  margin-inline: auto;
}

.idea-container-narrow {
  width: 100%;
  max-width: var(--idea-container-narrow);
  margin-inline: auto;
}

.idea-section {
  padding: 95px 20px;
}

.idea-section-sm {
  padding: 70px 20px;
}

.idea-section-lg {
  padding: 120px 20px;
}

/* Shared headings */
.idea-eyebrow,
.idea-label,
.idea-section-label {
  margin: 0 0 14px;
  color: var(--idea-primary);
  font-family: "Cairo Local", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.idea-title,
.idea-section-title {
  margin: 0;
  color: var(--idea-heading);
  font-family: "Cairo Local", sans-serif;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.14;
  font-weight: 900;
}

.idea-subtitle,
.idea-desc,
.idea-section-description {
  max-width: 860px;
  margin: 18px auto 0;
  color: var(--idea-muted);
  font-family: "Tajawal Local", sans-serif;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.9;
}

.idea-center {
  text-align: center;
}

/* Buttons */
.wp-block-button__link,
.ct-button,
.idea-btn,
.idea-btn .wp-block-button__link {
  border-radius: var(--idea-radius-sm);
  font-family: "Cairo Local", sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform var(--idea-transition),
    box-shadow var(--idea-transition),
    background-color var(--idea-transition),
    opacity var(--idea-transition);
}

.wp-block-button__link:hover,
.ct-button:hover,
.idea-btn:hover,
.idea-btn .wp-block-button__link:hover {
  transform: translateY(-2px);
}

/* Cards */
.idea-card,
.wp-block-group.idea-card {
  position: relative;
  height: 100%;
  padding: 32px 26px;
  border: 1px solid var(--idea-border);
  border-radius: var(--idea-radius-lg);
  background: #ffffff;
  box-shadow: var(--idea-shadow-soft);
  transition:
    transform var(--idea-transition),
    box-shadow var(--idea-transition),
    border-color var(--idea-transition);
}

/* Grids */
.idea-grid-3,
.idea-grid-4 {
  display: grid;
  gap: 28px;
}

.idea-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idea-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Shared Hero */
.idea-hero-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.idea-hero-visual {
  position: relative;
  isolation: isolate;
}

.idea-hero-visual img {
  border-radius: 26px;
  box-shadow:
    0 24px 58px rgba(17, 24, 39, 0.18),
    0 10px 24px rgba(31, 51, 198, 0.12);
}

/* Responsive */
@media (max-width: 900px) {
  .idea-grid-3,
  .idea-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .idea-section {
    padding: 70px 16px;
  }

  .wp-block-columns {
    gap: 22px;
  }

  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .idea-card {
    padding: 26px;
  }
}

@media (max-width: 600px) {
  .idea-grid-3,
  .idea-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   IDEA — SERVICE PAGE TITLE HIDE
   Hide Default Page Title / Service Pages Only
   ========================================================= */

.service-page .entry-header,
.service-page .page-title,
.service-page .entry-title {
  display: none !important;
}

/* =========================================================
   IDEA — HEADER MICRO POLISH
   Final UX Balance
   ========================================================= */

@media (min-width: 1000px) {

  header .site-logo-container img {
    transform: translateY(1px);
  }

  header .site-title a {
    font-weight: 900;
    opacity: 0.96;
  }

  header .header-menu-1 .ct-menu-link {
    letter-spacing: -0.01em;
  }
}
/* =========================================================
   MOBILE HEADER OPTIMIZATION
   Logo + Header Height — Blocksy Safe
   ========================================================= */

@media (max-width:768px){

  .ct-header .site-logo-container img,
  .ct-header .site-logo img,
  .ct-header .custom-logo{

    max-height:64px !important;

    width:auto !important;

  }

}
/* =========================================================
   IDEA — FOOTER PREMIUM POLISH
   Desktop + Mobile Safe / Social Icons Protected
   ========================================================= */

.ct-footer {
  background: #07111f;
  color: rgba(255,255,255,.82);
}

.ct-footer [data-row="top"] {
  background: var(--idea-primary);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ct-footer [data-row="middle"] {
  background: #07111f;
}

.ct-footer [data-row="bottom"] {
  background: #050b14;
  border-top: 1px solid rgba(255,255,255,.08);
}

.ct-footer h1,
.ct-footer h2,
.ct-footer h3,
.ct-footer h4,
.ct-footer h5,
.ct-footer h6,
.ct-footer .widget-title {
  color: #ffffff !important;
  font-weight: 900;
}

.ct-footer p,
.ct-footer li {
  color: #d7dce5;
}

.ct-footer .menu a,
.ct-footer .widget_nav_menu a,
.ct-footer .wp-block-navigation a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.ct-footer .menu a:hover,
.ct-footer .widget_nav_menu a:hover,
.ct-footer .wp-block-navigation a:hover {
  color: var(--idea-accent);
  transform: translateY(-1px);
}

.ct-footer a[href^="tel:"],
.ct-footer a[href^="mailto:"] {
  color: rgba(255,255,255,.86);
  text-decoration: none;
}

.ct-footer a[href^="tel:"]:hover,
.ct-footer a[href^="mailto:"]:hover {
  color: var(--idea-accent);
}

.ct-footer img,
.ct-footer .custom-logo {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

/* Social icons hard lock */
.ct-footer [data-id*="social"] ul,
.ct-footer [data-id*="social"] .ct-social-box,
.ct-footer .ct-social-box,
.ct-footer .ct-socials,
.ct-footer .social-icons,
.ct-footer .wp-block-social-links {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  width: auto !important;
}

.ct-footer [data-id*="social"] li,
.ct-footer .wp-block-social-links li,
.ct-footer .wp-social-link {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
}

.ct-footer [data-id*="social"] a,
.ct-footer .wp-block-social-links a,
.ct-footer .ct-social-box a {
  display: inline-flex !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Service badges */
.idea-footer-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.idea-footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(31,51,198,.18);
  color: #ffffff;
  border: 1px solid rgba(245,178,26,.26);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* Mobile only */
@media (max-width: 768px) {

  .ct-footer {
    text-align: center;
  }

  .ct-footer .ct-container,
  .ct-footer .ct-container-fluid {
    padding-inline: 18px !important;
  }

  .ct-footer [data-row] {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }

  .ct-footer .widget,
  .ct-footer .ct-widget,
  .ct-footer .wp-block-group {
    margin-bottom: 18px !important;
  }

  .ct-footer img,
  .ct-footer .custom-logo {
    max-height: 80px !important;
    margin-inline: auto;
  }

  .ct-footer p,
  .ct-footer li {
    font-size: 15px;
    line-height: 1.75;
  }

  /* Apply vertical layout only to footer navigation columns, not social row */
  .ct-footer [data-row="middle"] .menu,
  .ct-footer [data-row="middle"] .widget_nav_menu .menu {
    display: grid !important;
    gap: 8px;
    justify-content: center;
  }

  .ct-footer [data-row="middle"] .menu a,
  .ct-footer [data-row="middle"] .widget_nav_menu a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ct-footer [data-row="top"] .menu,
  .ct-footer [data-row="top"] ul,
  .ct-footer [data-row="top"] .wp-block-social-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
  }

}