/*
Theme Name: KAI
Author: Hossam Khedr
Description: RTL one-page interior design landing theme for KAI, developed by Hossam Khedr.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kai-innovations
Tags: one-page, rtl-language-support, portfolio, landing-page
*/

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

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

  :root {
    --black: #0D0D0D;
    --near-black: #141414;
    --dark: #1E1E1E;
    --gold: #C9A96E;
    --gold-light: #DFC28E;
    --linen: #F5F0E8;
    --linen-dark: #EDE8DF;
    --white: #FFFFFF;
    --text-muted: #888880;
    --text-body: #3A3A36;
    --font-display: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --radius: 2px;
    --transition: 0.3s ease;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--linen);
    color: var(--text-body);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.7;
    direction: rtl;
  }

  /* ─── TYPOGRAPHY ─── */
  h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.3; }

  .eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }
  .eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
  }

  .gold-rule {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 24px;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201,169,110,0.15);
    transition: var(--transition);
  }

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

  .logo-mark {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 0.12em;
  }

  .logo-sub {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--gold);
    display: block;
    text-align: center;
    margin-top: -2px;
  }

  .nav-cta {
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    background: var(--black);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
  }

  .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(201,169,110,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(201,169,110,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  .hero-content {
    padding: 80px 5% 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,169,110,0.1);
    border: 1px solid rgba(201,169,110,0.3);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 6px 14px;
    border-radius: 2px;
    width: fit-content;
    margin-bottom: 28px;
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-title .accent { color: var(--gold); }

  .hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(245,240,232,0.7);
    max-width: 520px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
  }

  .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(201,169,110,0.2);
  }

  .hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1;
  }

  .hero-stat-label {
    font-size: 0.78rem;
    color: rgba(245,240,232,0.55);
    margin-top: 4px;
    display: block;
  }

  /* ─── HERO FORM ─── */
  .hero-form-wrap {
    background: var(--white);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .hero-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
  }

  .form-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
  }

  .form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
  }

  .form-group { margin-bottom: 16px; }

  .form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }

  .form-group input,
  .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E0DBD3;
    background: var(--linen);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    direction: rtl;
    appearance: none;
  }

  .form-group input:focus,
  .form-group select:focus {
    border-color: var(--gold);
    background: var(--white);
  }

  .form-group input::placeholder { color: #B0A898; }

  .btn-primary {
    width: 100%;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: var(--transition);
    margin-top: 8px;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.35); }

  .form-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    justify-content: center;
  }

  .form-trust svg { color: var(--gold); flex-shrink: 0; }

  /* ─── TRUST BAR ─── */
  #trust-bar {
    background: var(--near-black);
    padding: 20px 5%;
    border-bottom: 1px solid rgba(201,169,110,0.15);
  }

  .trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
  }

  .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(245,240,232,0.7);
    font-size: 0.82rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .trust-item svg { color: var(--gold); flex-shrink: 0; }

  /* ─── SECTIONS ─── */
  section { padding: 96px 5%; }

  .section-intro {
    max-width: 600px;
    margin-bottom: 64px;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    color: var(--black);
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .section-title.light { color: var(--white); }

  .section-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.9;
    font-weight: 400;
  }

  .section-body.light { color: rgba(245,240,232,0.7); }

  /* ─── PROBLEM SECTION ─── */
  #problem {
    background: var(--white);
    padding: 96px 5%;
  }

  .problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
  }

  .problem-card {
    padding: 32px 28px;
    border: 1px solid #E8E3DB;
    border-radius: var(--radius);
    background: var(--linen);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
  }

  .problem-card::before {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 60px;
    height: 3px;
    background: var(--gold);
    transition: width var(--transition);
  }

  .problem-card:hover::before { width: 100%; }

  .problem-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .problem-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
  }

  .problem-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
  }

  /* ─── WHY KAI ─── */
  #why-kai {
    background: var(--black);
    color: var(--white);
    padding: 96px 5%;
  }

  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 48px;
  }

  .differentiator {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(201,169,110,0.15);
    margin-bottom: 32px;
  }
  .differentiator:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  .diff-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    min-width: 32px;
    margin-top: 4px;
  }

  .diff-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
  }

  .diff-text {
    font-size: 0.88rem;
    color: rgba(245,240,232,0.6);
    line-height: 1.8;
  }

  .why-visual {
    position: sticky;
    top: 100px;
  }

  .why-visual-box {
    background: var(--near-black);
    border: 1px solid rgba(201,169,110,0.2);
    padding: 48px 40px;
    border-radius: var(--radius);
  }

  .philosophy-quote {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .philosophy-quote strong { color: var(--gold); font-weight: 700; }

  .approach-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .approach-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(245,240,232,0.7);
  }

  .approach-list li::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
  }

  /* ─── PORTFOLIO ─── */
  #portfolio {
    background: var(--linen);
    padding: 96px 5%;
  }

  .portfolio-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #D8D3CB;
  }

  .portfolio-tab {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    letter-spacing: 0.04em;
  }

  .portfolio-tab.active, .portfolio-tab:hover {
    color: var(--black);
    border-bottom-color: var(--gold);
  }

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

  .portfolio-card {
    aspect-ratio: 4/3;
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }

  .portfolio-card:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }



  .portfolio-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease, filter 0.55s ease;
  }

  .portfolio-card:hover .portfolio-img {
    transform: scale(1.045);
    filter: brightness(0.78);
  }

  .portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E1E1E, #2A2A2A);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .portfolio-placeholder svg { color: rgba(201,169,110,0.3); }

  .portfolio-placeholder span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(201,169,110,0.4);
    text-transform: uppercase;
  }

  .portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
  }

  .portfolio-card:hover .portfolio-overlay { opacity: 1; }

  .portfolio-overlay-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
  }

  /* ─── HOW WE WORK ─── */
  #how-we-work {
    background: var(--white);
    padding: 96px 5%;
  }

  .process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 56px;
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    right: 10%;
    left: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
  }

  .step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--linen);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }

  .step-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
  }

  .step-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.75;
  }

  /* ─── SERVICES ─── */
  #services {
    background: var(--near-black);
    padding: 96px 5%;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 48px;
    background: rgba(201,169,110,0.1);
    border: 1px solid rgba(201,169,110,0.1);
  }

  .service-card {
    background: var(--near-black);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
  }

  .service-card:hover { background: #1A1A1A; }

  .service-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
  }

  .service-card:hover::after { transform: scaleX(1); }

  .service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .service-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
  }

  .service-text {
    font-size: 0.85rem;
    color: rgba(245,240,232,0.55);
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .service-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .service-items li {
    font-size: 0.8rem;
    color: rgba(245,240,232,0.45);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .service-items li::before {
    content: '';
    display: block;
    width: 14px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
    flex-shrink: 0;
  }

  /* ─── STATISTICS ─── */
  #stats {
    background: var(--gold);
    padding: 72px 5%;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(0,0,0,0.1);
  }

  .stat-card {
    background: var(--gold);
    padding: 40px 24px;
    text-align: center;
  }

  .stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
  }

  .stat-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(0,0,0,0.6);
    letter-spacing: 0.06em;
  }

  /* ─── TESTIMONIALS ─── */
  #testimonials {
    background: var(--linen);
    padding: 96px 5%;
  }

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

  .testimonial-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: var(--radius);
    border: 1px solid #E8E3DB;
    position: relative;
  }

  .testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 24px;
    line-height: 1;
  }

  .testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
  }

  .star { color: var(--gold); font-size: 0.9rem; }

  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 24px;
    position: relative;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--linen-dark);
  }

  .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--black);
    flex-shrink: 0;
  }

  .author-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
  }

  .author-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
  }

  /* ─── FAQ ─── */
  #faq {
    background: var(--white);
    padding: 96px 5%;
  }

  .faq-wrap {
    max-width: 720px;
    margin: 48px auto 0;
  }

  .faq-item {
    border-bottom: 1px solid #E8E3DB;
    overflow: hidden;
  }

  .faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--black);
    gap: 16px;
    user-select: none;
  }

  .faq-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    transition: transform var(--transition);
    font-size: 0.75rem;
  }

  .faq-item.open .faq-arrow { transform: rotate(45deg); }

  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.85;
  }

  .faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 20px;
  }

  /* ─── FINAL CTA ─── */
  #final-cta {
    background: var(--black);
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  #final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(201,169,110,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(201,169,110,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  .final-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
  }

  .final-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.25;
  }

  .final-cta-sub {
    font-size: 1rem;
    color: rgba(245,240,232,0.6);
    margin-bottom: 40px;
    line-height: 1.8;
  }

  .btn-cta-large {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 18px 48px;
    border-radius: var(--radius);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
  }

  .btn-cta-large:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201,169,110,0.4);
  }

  .final-guarantee {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .guarantee-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(245,240,232,0.5);
    font-family: var(--font-display);
  }

  .guarantee-item svg { color: var(--gold); }

  /* ─── FOOTER ─── */
  footer {
    background: #080808;
    padding: 36px 5%;
    border-top: 1px solid rgba(201,169,110,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: 0.12em;
  }

  .footer-logo span {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    display: block;
    margin-top: -2px;
  }

  .footer-copy {
    font-size: 0.78rem;
    color: rgba(245,240,232,0.3);
  }

  .footer-links {
    display: flex;
    gap: 24px;
  }

  .footer-links a {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: rgba(245,240,232,0.4);
    text-decoration: none;
    transition: color var(--transition);
  }

  .footer-links a:hover { color: var(--gold); }

  /* ─── STICKY MOBILE CTA ─── */
  .sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99;
    background: var(--black);
    padding: 12px 16px;
    border-top: 1px solid rgba(201,169,110,0.2);
  }

  .sticky-mobile-cta a {
    display: block;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    text-decoration: none;
    letter-spacing: 0.04em;
  }

  /* ─── WHATSAPP FLOAT ─── */
  .whatsapp-float {
    position: fixed;
    bottom: 80px;
    left: 24px;
    z-index: 99;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform var(--transition);
    cursor: pointer;
    text-decoration: none;
  }

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

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    #hero { grid-template-columns: 1fr; }
    .hero-form-wrap { padding: 48px 5%; }
    .hero-form-wrap::before { top: 0; right: 0; left: 0; width: 100%; height: 3px; bottom: auto; }
    .why-grid { grid-template-columns: 1fr; }
    .why-visual { position: relative; top: 0; }
    .process-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .process-steps::before { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-card:first-child { grid-column: span 2; }
  }

  @media (max-width: 768px) {
    section { padding: 72px 5%; }
    #hero { padding-top: 64px; }
    .hero-content { padding: 56px 5%; }
    .hero-stats { gap: 24px; }
    .hero-stat-num { font-size: 1.4rem; }
    .trust-items { gap: 20px; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card:first-child { grid-column: span 1; aspect-ratio: 4/3; }
    .sticky-mobile-cta { display: block; }
    .whatsapp-float { bottom: 80px; }
    footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    body { padding-bottom: 72px; }
  }

  @media (max-width: 480px) {
    .process-steps { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .trust-items { flex-direction: column; align-items: flex-start; padding: 0 5%; }
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
  }

  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }
  .delay-4 { animation-delay: 0.4s; }

  @media (prefers-reduced-motion: reduce) {
    .animate-in { animation: none; opacity: 1; }
    * { transition: none !important; }
  }



/* ─── ELEMENTOR CONTAINER IMPORT FIXES ─── */
body.rtl, body { direction: rtl; }
.kai-section-container, .kai-nav-container, .kai-utility-container { width: 100%; max-width: 100%; }
.kai-section-container > .e-con-inner,
.kai-nav-container > .e-con-inner,
.kai-utility-container > .e-con-inner { width: 100% !important; max-width: none !important; padding: 0 !important; }
.kai-section-container .elementor-widget-html,
.kai-section-container .elementor-widget-container,
.kai-nav-container .elementor-widget-html,
.kai-nav-container .elementor-widget-container,
.kai-utility-container .elementor-widget-html,
.kai-utility-container .elementor-widget-container { width: 100%; }
#hero > .hero-main-widget,
#hero > .hero-main-widget > .elementor-widget-container { display: contents; }
#stats { padding: 0 !important; }
#hero .elementor-widget-html { margin: 0; }
.hero-form-wrap .elementor-widget-html,
.hero-form-wrap .elementor-widget-shortcode,
.hero-form-wrap .elementor-widget-container { width: 100%; margin: 0; }
.hero-form-wrap .form-title { margin: 0 0 6px; }
.hero-form-wrap .form-subtitle { margin: 0 0 28px; }

/* Fluent Forms replacement styling inside the original hero form box */
.hero-form-wrap .fluentform,
.hero-form-wrap form.fluent_form { width: 100%; direction: rtl; }
.hero-form-wrap .ff-el-group { margin-bottom: 16px; }
.hero-form-wrap .ff-el-input--label label,
.hero-form-wrap .ff-el-form-control label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.hero-form-wrap .ff-el-form-control,
.hero-form-wrap input[type="text"],
.hero-form-wrap input[type="email"],
.hero-form-wrap input[type="tel"],
.hero-form-wrap input[type="number"],
.hero-form-wrap select,
.hero-form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E0DBD3;
  background: var(--linen);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  direction: rtl;
  box-shadow: none;
}
.hero-form-wrap .ff-el-form-control:focus,
.hero-form-wrap input:focus,
.hero-form-wrap select:focus,
.hero-form-wrap textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.hero-form-wrap .ff-btn-submit,
.hero-form-wrap button[type="submit"],
.hero-form-wrap input[type="submit"] {
  width: 100%;
  background: var(--gold) !important;
  color: var(--black) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: none;
}
.hero-form-wrap .ff-btn-submit:hover,
.hero-form-wrap button[type="submit"]:hover,
.hero-form-wrap input[type="submit"]:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}

.portfolio-card { transition: opacity 0.25s ease, transform 0.25s ease; }
.portfolio-card.is-hidden { display: none !important; }

@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
}

/* WordPress theme refinements */
html { margin-top: 0 !important; }
body.admin-bar nav { top: 32px; }
.kai-site-main { width: 100%; overflow: hidden; }
.kai-fallback-form .ff-el-input--label label { color: #fff !important; }
.kai-fallback-form .ff-el-group label { color: #fff !important; }
.kai-form-message { margin: 0 0 16px; padding: 10px 12px; border: 1px solid rgba(201,169,110,.35); color: var(--gold); font-family: var(--font-body); font-size: .9rem; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
@media screen and (max-width: 782px) { body.admin-bar nav { top: 46px; } }


/* Imported Fluent Forms custom styling */
/* Fluent Form - Elegant RTL Consultation Form */
.elementor-shortcode .fluentform_wrapper_1 {
    direction: rtl;
    max-width: 390px;
    margin: 0 auto;
    padding: 6px 0 0;
    font-family: "Cairo", "Tajawal", Arial, sans-serif;
}

/* Clean Fluent Forms default spacing */
.fluentform_wrapper_1 fieldset {
    padding: 0 !important;
}

.fluentform_wrapper_1 .ff-t-container,
.fluentform_wrapper_1 .ff-t-cell {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Field spacing */
.fluentform_wrapper_1 .ff-el-group,
.fluentform_wrapper_1 .ff-name-field-wrapper {
    margin-bottom: 17px !important;
}

/* Labels */
.fluentform_wrapper_1 .ff-el-input--label {
    margin-bottom: 6px !important;
    text-align: right !important;
}

.fluentform_wrapper_1 label {
    display: block;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #2b261f !important;
    line-height: 1.4 !important;
}

/* Hide required asterisk */
.fluentform_wrapper_1 .ff-el-is-required label:after {
    display: none !important;
}

/* Inputs */
.fluentform_wrapper_1 input.ff-el-form-control,
.fluentform_wrapper_1 select.ff-el-form-control {
    width: 100% !important;
    height: 46px !important;
    background: #f4efe7 !important;
    border: 1px solid #e7ddcf !important;
    border-radius: 1px !important;
    padding: 0 16px !important;
    color: #2b261f !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: right !important;
    direction: rtl !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.035) !important;
    outline: none !important;
    transition: all 0.22s ease !important;
}

.fluentform_wrapper_1 input.ff-el-form-control::placeholder {
    color: #b8aea2 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Select arrow */
.fluentform_wrapper_1 select.ff-el-form-control {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #8c7b62 50%),
        linear-gradient(135deg, #8c7b62 50%, transparent 50%) !important;
    background-position:
        18px 20px,
        12px 20px !important;
    background-size: 6px 6px !important;
    background-repeat: no-repeat !important;
    padding-left: 34px !important;
}

/* Focus state */
.fluentform_wrapper_1 input.ff-el-form-control:focus,
.fluentform_wrapper_1 select.ff-el-form-control:focus {
    background: #fbf7f1 !important;
    border-color: #c7a15a !important;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.025),
        0 0 0 3px rgba(199,161,90,0.15) !important;
}

/* Submit button */
.fluentform_wrapper_1 .ff_submit_btn_wrapper {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

.fluentform_wrapper_1 .ff-btn-submit {
    width: 100% !important;
    height: 50px !important;
    background: linear-gradient(180deg, #d4b575 0%, #c39b54 100%) !important;
    color: #15110b !important;
    border: 1px solid #bd944d !important;
    border-radius: 1px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    box-shadow: 0 8px 18px rgba(195,155,84,0.22) !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
}

.fluentform_wrapper_1 .ff-btn-submit:hover {
    background: linear-gradient(180deg, #caa55e 0%, #b88b42 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(184,139,66,0.28) !important;
}

.fluentform_wrapper_1 .ff-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(184,139,66,0.2) !important;
}

/* Trust text under button */
.fluentform_wrapper_1 .ff_submit_btn_wrapper:after {
    content: "";
    display: block;
    margin-top: 13px;
    color: #aaa096;
    font-size: 10.5px;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
}

/* Validation */
.fluentform_wrapper_1 .ff-el-is-error input.ff-el-form-control,
.fluentform_wrapper_1 .ff-el-is-error select.ff-el-form-control {
    border-color: #c94b4b !important;
    background: #fff7f7 !important;
}

.fluentform_wrapper_1 .text-danger,
.fluentform_wrapper_1 .ff-el-is-error .error {
    margin-top: 5px !important;
    color: #c94b4b !important;
    font-size: 11px !important;
    text-align: right !important;
}

/* Remove browser number arrows */
.fluentform_wrapper_1 input[type="number"]::-webkit-inner-spin-button,
.fluentform_wrapper_1 input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fluentform_wrapper_1 input[type="number"] {
    -moz-appearance: textfield;
}

/* Mobile */
@media (max-width: 480px) {
    .elementor-shortcode .fluentform_wrapper_1 {
        max-width: 100%;
    }

    .fluentform_wrapper_1 input.ff-el-form-control,
    .fluentform_wrapper_1 select.ff-el-form-control {
        height: 44px !important;
        font-size: 12.5px !important;
    }

    .fluentform_wrapper_1 .ff-btn-submit {
        height: 48px !important;
        font-size: 13.5px !important;
    }
}
/* Labels white */
.fluentform_wrapper_1 label,
.fluentform_wrapper_1 .ff-el-input--label label {
    color: #ffffff !important;
}

/* New dropdown icon */
.fluentform_wrapper_1 select.ff-el-form-control {
    background-image:
        url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23cdaa6a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 16px 16px !important;
    padding-left: 42px !important;
}
