/* ==========================================================
   PAGE CSS CONTROLLER - WORDPRESS PAGE
   Change these variables first. They control this page only.
   ========================================================== */
body.dt-page-build-your-dream-site {
  --dt-h1-size: clamp(40px, 5vw, 60px);
  --dt-h2-size: clamp(34px, 4.5vw, 50px);
  --dt-p-size: 18px;
  --dt-mobile-h1-size: 32px;
  --dt-mobile-h2-size: 30px;
  --dt-mobile-p-size: 16px;

  --page-first-section-padding-top: 146px;
  --page-mobile-first-section-padding-top: 96px;
  --page-small-first-section-padding-top: 86px;

  --wordpress-hero-padding-bottom: 82px;
  --wordpress-hero-title-size: clamp(40px, 5vw, 60px);
  --wordpress-hero-text-size: clamp(18px, 2vw, 22px);
  --wordpress-section-padding-y: 78px;
  --wordpress-button-height: 58px;
}

:root {
      --ink: #1d2738;
      --muted: #536074;
      --violet: #4c27e8;
      --violet-2: #7a4cf4;
      --deep: #1f2428;
      --pink: #ed62a6;
      --orange: #f38125;
      --blue: #0b60d0;
      --wash: #f3eefc;
      --grid: rgba(31, 39, 56, 0.07);
      --line: rgba(31, 39, 56, 0.14);
      --shadow: 0 22px 60px rgba(31, 39, 56, 0.13);
      --radius: 18px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: #fff;
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      overflow-x: hidden;
    }

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

    button {
      font: inherit;
    }

    img {
      max-width: 100%;
    }

    .container {
      width: min(1240px, calc(100% - 42px));
      margin: 0 auto;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-height: 58px;
      padding: 0 30px;
      border: 0;
      border-radius: 999px;
      color: #fff;
      font-weight: 800;
      font-size: 16px;
      text-transform: uppercase;
      cursor: pointer;
      background: linear-gradient(100deg, #1700c8, var(--violet-2));
      box-shadow: 0 16px 36px rgba(76, 39, 232, 0.25);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 45px rgba(76, 39, 232, 0.32);
    }

    .btn.light {
      color: var(--violet);
      background: #fff;
      box-shadow: none;
    }

    /* Hero CTA button - icon in circular badge */
    .btn-quote {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      min-height: 64px;
      min-width: 360px;
      padding: 6px 38px 6px 6px;
      border: 0;
      border-radius: 999px;
      color: #fff;
      font-weight: 800;
      font-size: 16px;
      letter-spacing: 0.01em;
      text-transform: uppercase;
      white-space: nowrap;
      cursor: pointer;
      background: linear-gradient(100deg, #1700c8, var(--violet-2));
      box-shadow: 0 16px 36px rgba(76, 39, 232, 0.28);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-quote:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 45px rgba(76, 39, 232, 0.36);
    }

    .btn-quote .icon-circle {
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: transparent;
      box-shadow: inset 0 0 0 1px rgba(76, 39, 232, 0.08);
    }

    .btn-quote .icon-circle img {
      width: 46px;
      height: 46px;
      transform: translate(4px, -4px);
      display: block;
      object-fit: contain;
    }


    .grad {
      background: linear-gradient(100deg, var(--violet), #2c1ed4);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .gradient-word {
      background: linear-gradient(100deg, var(--pink), var(--orange));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero {
      min-height: 720px;
      overflow: hidden;
      position: relative;
      padding: 26px 0 82px;
      background:
        linear-gradient(var(--grid) 2px, transparent 2px),
        linear-gradient(90deg, var(--grid) 2px, transparent 2px),
        radial-gradient(circle at 50% 88%, rgba(91, 44, 240, 0.08), transparent 34%),
        #fff;
      background-size: 76px 76px, 76px 76px, auto, auto;
    }

    .hero::before,
    .hero::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      filter: blur(18px);
      opacity: 0.36;
      pointer-events: none;
      animation: floatGlow 7s ease-in-out infinite;
    }

    .hero::before {
      width: 240px;
      height: 240px;
      left: -70px;
      top: 34%;
      background: radial-gradient(circle, rgba(76,39,232,0.32), transparent 70%);
    }

    .hero::after {
      width: 210px;
      height: 210px;
      right: -50px;
      top: 18%;
      background: radial-gradient(circle, rgba(237,98,166,0.26), transparent 70%);
      animation-delay: -2s;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      text-align: center;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 40px;
      padding: 0 17px;
      border-radius: 999px;
      color: var(--violet);
      font-weight: 800;
      background: rgba(255,255,255,0.88);
      box-shadow: 0 10px 28px rgba(31, 39, 56, 0.12);
    }

    .badge i {
      color: #ffab1d;
    }

    .hero h1 {
      max-width: 1050px;
      margin: 34px auto 0;
      color: var(--ink);
      font-size: clamp(40px, 5vw, 60px);
      line-height: 1.18;
      letter-spacing: -0.045em;
      font-weight: 760;
    }

    .hero .sub {
      max-width: 980px;
      margin: 34px auto 0;
      color: #4b5668;
      font-size: clamp(18px, 2vw, 22px);
      line-height: 1.45;
      font-weight: 430;
      text-transform: capitalize;
    }

    .hero .sub strong {
      font-weight: 760;
    }

    .hero-layout {
      width: min(1050px, 100%);
      display: grid;
      grid-template-columns: 1fr 0.95fr 1fr;
      align-items: end;
      gap: 18px;
      margin: 42px auto 0;
    }

    .hero-photo {
      min-height: 206px;
      overflow: hidden;
      border-radius: 12px;
      background:
        radial-gradient(circle at 70% 24%, rgba(243,129,37,0.22), transparent 34%),
        linear-gradient(135deg, #f3e3d4, #f8f6ff);
      box-shadow: 0 18px 40px rgba(31, 39, 56, 0.12);
    }

    .hero-photo img {
      width: 100%;
      height: 206px;
      display: block;
      object-fit: cover;
    }

    .hero-photo.image-missing {
      display: grid;
      place-items: center;
    }

    .hero-photo.image-missing img {
      display: none;
    }

    .hero-photo.image-missing::before {
      content: attr(data-title);
      color: var(--ink);
      font-size: 24px;
      font-weight: 760;
      text-align: center;
      padding: 24px;
    }

    .hero-card {
      min-height: 142px;
      position: relative;
      display: grid;
      align-content: center;
      gap: 13px;
      padding: 26px 28px;
      border: 1px solid rgba(76,39,232,0.22);
      border-radius: 16px;
      text-align: left;
      background: rgba(255,255,255,0.92);
      box-shadow: 0 16px 40px rgba(31, 39, 56, 0.1);
    }

    .spark {
      position: absolute;
      right: -7px;
      top: -6px;
      color: #ff4b12;
      font-size: 30px;
      animation: spinSoft 5s linear infinite;
    }

    .check {
      display: flex;
      align-items: center;
      gap: 12px;
      color: #181a22;
      font-size: 16px;
      font-weight: 760;
    }

    .check i {
      color: #66c779;
      font-size: 19px;
    }

    .hero-cta {
      margin-top: 34px;
      display: flex;
      justify-content: center;
    }

    .section {
      padding: 78px 0;
      overflow: hidden;
    }

    .section-title {
      max-width: 980px;
      margin: 0 auto 54px;
      text-align: center;
    }

    .section-title h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(34px, 4.5vw, 43px);
      line-height: 1.18;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      font-weight: 700;
    }

    .why {
      background: #fff;
    }

    .why-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      align-items: center;
    }

    .why-list {
      border-top: 1px solid var(--line);
    }

    .why-item {
      display: grid;
      grid-template-columns: 1fr 42px;
      gap: 20px;
      align-items: center;
      min-height: 110px;
      padding: 22px 0 22px 34px;
      border-bottom: 1px solid var(--line);
    }

    .why-item h3 {
      margin: 0 0 18px;
      color: #030407;
      font-size: 20px;
      font-weight: 760;
    }

    .why-item p {
      margin: 0;
      color: #666;
      font-size: 14px;
    }

    .why-item i {
      color: #1200b7;
      font-size: 27px;
      transition: transform 0.2s ease;
    }

    .why-item:hover i {
      transform: rotate(18deg) scale(1.08);
    }

    .why-media p {
      max-width: 590px;
      margin: 0 0 18px;
      color: #1f1f25;
      font-size: 16px;
      line-height: 1.28;
    }

    .why-image {
      height: 410px;
      overflow: hidden;
      border-radius: 13px;
      background: #ececf2;
      box-shadow: var(--shadow);
    }

    .why-image img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .image-missing img {
      display: none !important;
    }

    .image-missing {
      display: grid;
      place-items: center;
      text-align: center;
      background:
        radial-gradient(circle at 72% 20%, rgba(237,98,166,0.18), transparent 32%),
        linear-gradient(135deg, #f8f5ff, #fff);
    }

    .image-missing::before {
      content: attr(data-title);
      color: var(--ink);
      font-size: 28px;
      font-weight: 760;
      padding: 24px;
    }

    .services {
      color: #fff;
      background: var(--deep);
    }

    .service-head {
      display: grid;
      grid-template-columns: 1fr 0.95fr;
      gap: 70px;
      align-items: end;
      padding-bottom: 34px;
      border-bottom: 1px solid rgba(122, 76, 244, 0.45);
    }

    .service-head p:first-child {
      margin: 0 0 22px;
      font-weight: 760;
    }

    .service-head h2 {
      margin: 0;
      color: #fff;
      font-size: clamp(36px, 4.8vw, 50px);
      line-height: 1.22;
      letter-spacing: -0.04em;
      font-weight: 500;
    }

    .service-head em {
      display: block;
      max-width: 480px;
      color: #fff;
      font-size: 16px;
      line-height: 1.25;
      font-weight: 700;
    }

    .service-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      padding-top: 72px;
      align-items: center;
    }

    .service-image {
      height: 406px;
      overflow: hidden;
      border: 1px solid rgba(122, 76, 244, 0.5);
      border-radius: 12px;
      background: #353a3c;
    }

    .service-image img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      filter: saturate(0.78);
    }

    .service-desc {
      max-width: 510px;
      margin-left: auto;
    }

    .service-desc h3 {
      margin: 0 0 22px;
      color: #fff;
      font-size: 24px;
      font-weight: 760;
    }

    .service-desc p {
      margin: 0 0 30px;
      color: rgba(255,255,255,0.9);
      font-size: 16px;
      line-height: 1.35;
      font-weight: 520;
    }

    .projects {
      background: #f7f1ff;
    }

    /* Projects slider */
    .slider {
      position: relative;
    }

    .slider-viewport {
      overflow: hidden;
      border-radius: 14px;
      cursor: grab;
    }

    .slider-viewport.is-dragging {
      cursor: grabbing;
    }

    .slider-track {
      display: flex;
      transition: transform 0.5s ease;
    }

    .slider-track.is-dragging {
      transition: none;
    }

    .slider-slide {
      flex: 0 0 100%;
      max-width: 100%;
      padding: 4px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      user-select: none;
    }

    .slider-slide img {
      pointer-events: none;
    }

    .project-card {
      overflow: hidden;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 8px 26px rgba(31,39,56,0.08);
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .project-card:hover {
      transform: translateY(-7px);
      box-shadow: 0 20px 48px rgba(31,39,56,0.14);
    }

    .project-thumb {
      height: 248px;
      overflow: hidden;
      background: #eef2ff;
    }

    .project-thumb img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      transition: transform 0.32s ease;
    }

    .project-card:hover img {
      transform: scale(1.04);
    }

    .project-copy {
      padding: 18px 18px 20px;
    }

    .project-copy h3 {
      margin: 0 0 8px;
      color: var(--ink);
      font-size: 24px;
      line-height: 1.1;
      font-weight: 760;
    }

    .project-copy p {
      margin: 0 0 14px;
      color: #777;
      font-size: 16px;
      line-height: 1.35;
    }

    .project-copy a.details-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #fff;
      background: linear-gradient(100deg, #1700c8, var(--violet-2));
      font-weight: 760;
      font-size: 13px;
      text-transform: uppercase;
      padding: 10px 20px;
      border-radius: 999px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 10px 22px rgba(76,39,232,0.22);
    }

    .project-copy a.details-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(76,39,232,0.3);
    }

    .testimonials {
      background: #fff;
    }

    .testimonial-title {
      max-width: 430px;
      margin-bottom: 30px;
    }

    .testimonial-title h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(38px, 5vw, 50px);
      line-height: 1.2;
      letter-spacing: -0.045em;
      font-weight: 760;
    }

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

    .testimonial-card {
      min-height: 290px;
      display: grid;
      align-content: space-between;
      padding: 42px 40px;
      border-radius: 10px;
      background: #f5f6f8;
    }

    .testimonial-card blockquote {
      margin: 0;
      color: #828282;
      font-size: 16px;
      line-height: 1.7;
    }

    .person {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-top: 28px;
    }

    .avatar {
      width: 66px;
      height: 66px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 50%;
      color: #fff;
      font-weight: 760;
      background: linear-gradient(135deg, var(--violet), var(--pink));
    }

    .person strong {
      color: #050505;
      font-size: 18px;
    }

    .more-projects {
      margin-top: 22px;
      display: flex;
      justify-content: center;
    }

    .cta {
      color: #fff;
      background: linear-gradient(120deg, #1700c8, #7650f7);
      overflow: hidden;
    }

    .cta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 58px;
      align-items: center;
      min-height: 394px;
    }

    .cta h2 {
      max-width: 600px;
      margin: 0;
      color: #fff;
      font-size: clamp(38px, 5vw, 43px);
      line-height: 1.18;
      letter-spacing: -0.04em;
      font-weight: 420;
    }

    .cta p {
      max-width: 620px;
      margin: 48px 0 0;
      color: #fff;
      font-size: 19px;
      line-height: 1.35;
      font-weight: 720;
    }

    .cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 42px;
    }

    .cta-art {
      min-height: 300px;
      position: relative;
      opacity: 0.48;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px);
      background-size: 95px 95px;
    }

    .cta-art::before {
      content: "";
      position: absolute;
      left: 20%;
      top: 24%;
      width: 190px;
      height: 190px;
      border: 3px solid rgba(255,255,255,0.65);
      border-radius: 32px;
      transform: rotate(32deg);
    }

    .cta-art::after {
      content: "\f1d8";
      position: absolute;
      right: 18%;
      bottom: 20%;
      color: #fff;
      font-family: FontAwesome;
      font-size: 78px;
      transform: rotate(-15deg);
    }

    .faq {
      padding-top: 62px;
      background: #fff;
    }

    .faq h2 {
      margin: 0 0 52px;
      text-align: center;
      color: var(--ink);
      font-size: clamp(38px, 5vw, 50px);
      line-height: 1.1;
      letter-spacing: -0.04em;
      font-weight: 760;
    }

    .faq-list {
      width: min(960px, 100%);
      margin: 0 auto;
      display: grid;
      gap: 24px;
    }

    .faq-item {
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
      overflow: hidden;
    }

    .faq-question {
      width: 100%;
      min-height: 94px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 22px;
      align-items: center;
      border: 0;
      padding: 0 38px;
      color: #080808;
      background: transparent;
      text-align: left;
      cursor: pointer;
      font-size: 20px;
      line-height: 1.2;
      font-weight: 760;
    }

    .faq-question i {
      font-size: 26px;
      color: #333;
      transition: transform 0.22s ease;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.28s ease;
    }

    .faq-answer p {
      margin: 0;
      padding: 0 38px 28px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.55;
    }

    .faq-item.is-open .faq-question i {
      transform: rotate(90deg);
    }

    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.7s ease, transform 0.7s ease;
      transition-delay: var(--delay, 0ms);
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .hero .badge,
    .hero h1,
    .hero .sub,
    .hero-layout,
    .hero-cta {
      animation: rise 0.75s cubic-bezier(.2,.8,.2,1) both;
    }

    .hero h1 { animation-delay: 0.08s; }
    .hero .sub { animation-delay: 0.16s; }
    .hero-layout { animation-delay: 0.24s; }
    .hero-cta { animation-delay: 0.32s; }

    @keyframes rise {
      from {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }
    }

    @keyframes floatGlow {
      0%, 100% { transform: translate3d(0,0,0); }
      50% { transform: translate3d(0,-18px,0); }
    }

    @keyframes spinSoft {
      to { transform: rotate(360deg); }
    }

    /* ===== Responsive breakpoints ===== */
    @media (max-width: 1080px) {
      .slider-slide,
      .testimonial-slide {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 980px) {
      .hero-layout,
      .why-grid,
      .service-head,
      .service-body,
      .cta-grid {
        grid-template-columns: 1fr;
      }

      .hero-layout {
        align-items: stretch;
      }

      .hero-card {
        order: -1;
      }

      .why-item {
        padding-left: 0;
      }

      .service-desc {
        max-width: none;
        margin-left: 0;
      }

      .cta-art {
        min-height: 240px;
      }
    }

    @media (max-width: 760px) {
      .slider-slide,
      .testimonial-slide {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 28px, 1240px);
      }

      .hero {
        min-height: auto;
        padding-bottom: 58px;
      }

      .hero h1 {
        font-size: 32px;
      }

      .hero .sub {
        margin-top: 22px;
        font-size: 16px;
      }

      .hero-photo,
      .hero-photo img {
        min-height: 160px;
        height: 160px;
      }

      .btn {
        width: 100%;
      }

      .btn-quote {
        width: 100%;
        min-width: 0;
        padding-right: 22px;
      }

      .section {
        padding: 48px 0;
      }

      .section-title {
        margin-bottom: 30px;
      }

      .section-title h2,
      .service-head h2,
      .testimonial-title h2,
      .cta h2,
      .faq h2 {
        font-size: 30px;
      }

      .why-image,
      .service-image {
        height: 260px;
      }

      .project-thumb {
        height: 200px;
      }

      .testimonial-card {
        min-height: auto;
        padding: 28px 22px;
      }

      .cta p {
        margin-top: 24px;
        font-size: 16px;
      }

      .cta-actions .btn.light {
        width: 100%;
      }

      .faq-question {
        min-height: 70px;
        padding: 0 16px;
        font-size: 16px;
      }

      .faq-answer p {
        padding: 0 16px 20px;
        font-size: 15px;
      }
    }

    @media (max-width: 400px) {
      .hero-layout {
        gap: 12px;
      }

      .badge {
        font-size: 13px;
        padding: 0 13px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
    }

/* Page controller mappings - WORDPRESS PAGE */
body.dt-page-build-your-dream-site .hero {
  padding-bottom: var(--wordpress-hero-padding-bottom);
}

body.dt-page-build-your-dream-site .hero h1 {
  font-size: var(--wordpress-hero-title-size);
}

body.dt-page-build-your-dream-site .hero .sub {
  font-size: var(--wordpress-hero-text-size);
}

body.dt-page-build-your-dream-site .section {
  padding-top: var(--wordpress-section-padding-y);
  padding-bottom: var(--wordpress-section-padding-y);
}

body.dt-page-build-your-dream-site .btn,
body.dt-page-build-your-dream-site .btn-quote {
  min-height: var(--wordpress-button-height);
}
