/* ==============================================================
   Goalings Pvt Ltd — Call To Action Banner
   Component: .cta-banner
   Self-contained: all class/id names are prefixed "cta-" and the
   custom properties below use unique names, so this file is safe
   to include alongside the site's existing stylesheets.
   ============================================================== */

  /* ==========================================================
     CSS VARIABLES — design tokens
     ========================================================== */
  :root{
    --navy-900:#081B3A;      /* primary background */
    --navy-700:#102D5E;      /* secondary background */
    --orange-dark:#D35400;   /* dark orange blend */
    --orange-500:#FF6B00;    /* core accent */
    --orange-400:#FF8C00;    /* gradient partner */
    --orange-300:#FFA64D;    /* light accent */
    --white:#FFFFFF;
    --gray-200:#C9D3E0;      /* light gray body copy */
    --font-display:'Poppins', 'Inter', sans-serif;
    --font-body:'Inter', 'Poppins', sans-serif;
    --ease-out:cubic-bezier(0.16, 1, 0.3, 1);
    --dur-load:0.9s;
  }

  *{ box-sizing:border-box; }

  /* ==========================================================
     SECTION SHELL
     ========================================================== */
  .cta-banner{
    position:relative;
    width:100%;
    overflow:hidden;
    isolation:isolate;
    padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 80px);
    font-family:var(--font-body);
    background:
      radial-gradient(ellipse 55% 60% at 85% 25%, rgba(211,84,0,0.16), transparent 60%),
      radial-gradient(ellipse 50% 45% at 10% 80%, rgba(255,107,0,0.10), transparent 60%),
      linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 45%, var(--orange-dark) 130%);
    background-size: 100% 100%, 100% 100%, 260% 260%;
    animation: gradient-flow 20s ease-in-out infinite;
  }

  @keyframes gradient-flow{
    0%   { background-position: 0% 0%, 0% 0%, 0% 40%; }
    50%  { background-position: 0% 0%, 0% 0%, 100% 60%; }
    100% { background-position: 0% 0%, 0% 0%, 0% 40%; }
  }

  /* ==========================================================
     BACKGROUND DECORATION LAYERS
     ========================================================== */
  .cta-bg{
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    overflow:hidden;
  }

  .cta-parallax{
    position:absolute;
    inset:-40px;
    transition: transform 0.25s ease-out;
    will-change:transform;
  }

  /* Office building silhouette, far right */
  .cta-building{
    position:absolute;
    right:-6%;
    bottom:0;
    width:min(42vw, 560px);
    height:100%;
    opacity:0.09;
    filter:blur(1.5px);
    color:var(--orange-300);
  }

  /* Glowing blurred blobs */
  .cta-blob{
    position:absolute;
    border-radius:50%;
    filter:blur(70px);
    will-change:transform;
  }
  .cta-blob--1{
    width:480px; height:480px;
    right:-140px; top:-140px;
    background:radial-gradient(circle, rgba(255,107,0,0.32), transparent 70%);
    animation: blob-float-1 17s ease-in-out infinite;
  }
  .cta-blob--2{
    width:400px; height:400px;
    left:2%; bottom:-160px;
    background:radial-gradient(circle, rgba(211,84,0,0.26), transparent 70%);
    animation: blob-float-2 21s ease-in-out infinite;
  }
  .cta-blob--3{
    width:340px; height:340px;
    left:40%; top:-100px;
    background:radial-gradient(circle, rgba(16,45,94,0.6), transparent 70%);
    animation: blob-float-3 19s ease-in-out infinite;
  }

  @keyframes blob-float-1{
    0%,100%{ transform:translate(0,0) scale(1); }
    50%{ transform:translate(-50px,40px) scale(1.1); }
  }
  @keyframes blob-float-2{
    0%,100%{ transform:translate(0,0) scale(1); }
    50%{ transform:translate(40px,-40px) scale(0.95); }
  }
  @keyframes blob-float-3{
    0%,100%{ transform:translate(0,0) scale(1); }
    50%{ transform:translate(-25px,25px) scale(1.06); }
  }

  /* Network lines + connection dots */
  .cta-network{
    position:absolute;
    inset:0;
    opacity:0.32;
  }
  .cta-network line{
    stroke:var(--orange-300);
    stroke-width:1;
    opacity:0.16;
    animation:pulse-line 6s ease-in-out infinite;
  }
  .cta-network circle{
    fill:var(--orange-400);
    animation:pulse-dot 4s ease-in-out infinite;
  }
  @keyframes pulse-line{
    0%,100%{ opacity:0.07; }
    50%{ opacity:0.26; }
  }
  @keyframes pulse-dot{
    0%,100%{ opacity:0.3; }
    50%{ opacity:1; }
  }

  /* Floating particles */
  .cta-particles{ position:absolute; inset:0; }
  .cta-particle{
    position:absolute;
    bottom:-10px;
    border-radius:50%;
    background:radial-gradient(circle, var(--orange-300), var(--orange-500) 70%);
    box-shadow:0 0 8px 2px rgba(255,140,0,0.5);
    animation-name: particle-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  @keyframes particle-rise{
    0%{ transform:translateY(0) translateX(0); opacity:0; }
    10%{ opacity:0.9; }
    90%{ opacity:0.55; }
    100%{ transform:translateY(-560px) translateX(var(--drift, 30px)); opacity:0; }
  }

  /* ==========================================================
     LAYOUT — two column, buttons left / content right
     ========================================================== */
  .cta-inner{
    position:relative;
    z-index:2;
    max-width:1280px;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:clamp(32px, 5vw, 64px);
  }

  /* LEFT: buttons column — 35% */
  .cta-actions{
    flex:0 0 35%;
    max-width:35%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
  }
  .cta-buttons{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    width:100%;
  }

  /* RIGHT: text content — 65% */
  .cta-content{
    flex:0 0 65%;
    max-width:65%;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
  }

  /* Badge */
  .cta-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 20px;
    border-radius:999px;
    background:linear-gradient(135deg, var(--orange-500), var(--orange-300));
    color:var(--white);
    font-weight:600;
    font-size:13px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    box-shadow:0 4px 20px rgba(255,107,0,0.35);
    opacity:0;
    transform:translateX(-40px);
  }
  .cta-badge::before{
    content:'';
    width:6px; height:6px;
    border-radius:50%;
    background:var(--white);
    box-shadow:0 0 8px 2px rgba(255,255,255,0.8);
  }

  /* Heading */
  .cta-heading{
    font-family:var(--font-display);
    font-weight:700;
    color:var(--white);
    font-size:52px;
    line-height:1.15;
    letter-spacing:-0.5px;
    margin:24px 0 18px;
    opacity:0;
    transform:translateX(-40px);
  }
  .cta-heading .accent{
    background:linear-gradient(135deg, var(--orange-300), var(--orange-500));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }

  /* Description */
  .cta-description{
    font-weight:400;
    color:var(--gray-200);
    font-size:20px;
    line-height:1.7;
    max-width:560px;
    margin:0;
    opacity:0;
    transform:translateX(-40px);
  }

  /* ==========================================================
     BUTTONS
     ========================================================== */
  .cta-btn{
    position:relative;
    overflow:hidden;
    font-family:var(--font-body);
    font-weight:600;
    font-size:15.5px;
    padding:16px 30px;
    border-radius:50px;
    cursor:pointer;
    border:none;
    outline-offset:4px;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    line-height:1.2;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    opacity:0;
    transform:translateX(60px);
    -webkit-tap-highlight-color:transparent;
  }
  .cta-btn:focus-visible{ outline:2px solid var(--orange-300); }

  /* Primary */
  .cta-btn--primary{
    background:linear-gradient(135deg, var(--orange-500), var(--orange-400));
    color:var(--white);
    box-shadow:0 6px 24px rgba(255,107,0,0.35);
  }
  .cta-btn--primary:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 14px 40px rgba(255,107,0,0.55), 0 0 30px rgba(255,140,0,0.45);
  }
  .cta-btn--primary.is-active{
    background:var(--navy-900);
    color:var(--white);
    border:2px solid var(--orange-500);
    transform:scale(0.96);
    animation: btn-pulse 0.6s var(--ease-out);
  }

  /* Secondary */
  .cta-btn--secondary{
    background:transparent;
    color:var(--white);
    border:2px solid rgba(255,255,255,0.7);
  }
  .cta-btn--secondary:hover{
    background:linear-gradient(135deg, var(--orange-500), var(--orange-300));
    border-color:var(--orange-300);
    color:var(--white);
    box-shadow:0 0 24px rgba(255,166,77,0.45);
    transform:translateY(-4px) scale(1.05);
  }
  .cta-btn--secondary.is-active{
    background:var(--navy-900);
    color:var(--white);
    border:2px solid var(--orange-500);
    transform:scale(0.96);
    animation: btn-pulse 0.6s var(--ease-out);
  }

  @keyframes btn-pulse{
    0%{ box-shadow:0 0 0 0 rgba(255,107,0,0.55); }
    70%{ box-shadow:0 0 0 16px rgba(255,107,0,0); }
    100%{ box-shadow:0 0 0 0 rgba(255,107,0,0); }
  }

  /* Ripple */
  .cta-ripple{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,0.55);
    transform:scale(0);
    animation:ripple-expand 0.6s ease-out;
    pointer-events:none;
  }
  @keyframes ripple-expand{ to{ transform:scale(3.2); opacity:0; } }

  /* ==========================================================
     LOAD-IN ANIMATION — buttons slide from left, text slides from right
     ========================================================== */
  .cta-banner.is-visible .cta-btn--primary{
    animation: slide-in-right var(--dur-load) var(--ease-out) forwards;
    animation-delay:0.1s;
  }
  .cta-banner.is-visible .cta-btn--secondary{
    animation: slide-in-right var(--dur-load) var(--ease-out) forwards;
    animation-delay:0.24s;
  }
  .cta-banner.is-visible .cta-badge{
    animation: slide-in-left var(--dur-load) var(--ease-out) forwards;
    animation-delay:0.1s;
  }
  .cta-banner.is-visible .cta-heading{
    animation: slide-in-left var(--dur-load) var(--ease-out) forwards;
    animation-delay:0.26s;
  }
  .cta-banner.is-visible .cta-description{
    animation: slide-in-left var(--dur-load) var(--ease-out) forwards;
    animation-delay:0.42s;
  }

  @keyframes slide-in-left{ to{ opacity:1; transform:translateX(0); } }
  @keyframes slide-in-right{ to{ opacity:1; transform:translateX(0); } }

  /* ==========================================================
     RESPONSIVE
     Buttons stay LEFT and text stays RIGHT in the same row at
     every breakpoint, down to the smallest phones — nothing
     stacks. Instead, spacing, type, and button sizing shrink
     progressively so both columns keep fitting side by side.
     ========================================================== */
  @media (max-width: 1024px){
    .cta-heading{ font-size:38px; }
    .cta-description{ font-size:17px; }
    .cta-inner{ gap:24px; }
    .cta-building{ width:52vw; opacity:0.07; }
  }

  @media (max-width: 860px){
    .cta-inner{ gap:18px; }
    .cta-actions{ flex-basis:38%; max-width:38%; }
    .cta-content{ flex-basis:62%; max-width:62%; }
    .cta-buttons{ flex-direction:column; gap:12px; align-items:stretch; }
    .cta-btn{ width:100%; text-align:center; padding:13px 18px; font-size:14px; white-space:normal; line-height:1.3; }
    .cta-heading{ font-size:30px; margin:16px 0 12px; }
    .cta-description{ font-size:15px; line-height:1.55; }
    .cta-badge{ font-size:11px; padding:6px 14px; }
  }

  @media (max-width: 640px){
    .cta-banner{ padding:56px 16px; }
    .cta-inner{ gap:12px; }
    .cta-actions{ flex-basis:34%; max-width:34%; }
    .cta-content{ flex-basis:66%; max-width:66%; }
    .cta-btn{ padding:11px 12px; font-size:12.5px; }
    .cta-heading{ font-size:22px; margin:10px 0 8px; letter-spacing:-0.2px; }
    .cta-description{ font-size:13px; line-height:1.5; }
    .cta-badge{ font-size:9.5px; padding:5px 12px; letter-spacing:1px; }
    .cta-building{ opacity:0.05; }
  }

  @media (max-width: 420px){
    .cta-inner{ gap:8px; }
    .cta-actions{ flex-basis:32%; max-width:32%; }
    .cta-content{ flex-basis:68%; max-width:68%; }
    .cta-btn{ padding:9px 8px; font-size:11px; border-radius:40px; }
    .cta-heading{ font-size:18px; }
    .cta-description{ font-size:12px; }
  }

  /* Respect reduced-motion */
  @media (prefers-reduced-motion: reduce){
    .cta-banner, .cta-blob, .cta-particle, .cta-network line, .cta-network circle,
    .cta-badge, .cta-heading, .cta-description, .cta-btn{
      animation:none !important;
      transition:none !important;
    }
    .cta-badge, .cta-heading, .cta-description, .cta-btn--primary, .cta-btn--secondary{
      opacity:1; transform:none;
    }
  }
