/*
Theme Name: Loopy
Theme URI: https://loopy.morko.posso.fi
Author: Loopy
Description: Loopy WordPress theme based on original HTML design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: loopy-theme
*/

    :root {
      --orange: #ff6b00;
      --orange-soft: #ff8c3a;
      --navy: #1a1a5e;
      --navy-deep: #0f103e;
      --ink: #0b0c26;
      --white: #f6f7ff;
      --card: rgba(255,255,255,0.11);
      --shadow: 0 16px 40px rgba(11, 12, 38, 0.25);
      --radius: 26px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background: radial-gradient(circle at 10% 0%, #272780 0%, var(--navy-deep) 48%, #09091f 100%);
      color: var(--white);
      line-height: 1.5;
      overflow-x: hidden;
    }

    .blob {
      position: absolute;
      border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
      filter: blur(2px);
      animation: float 8s ease-in-out infinite;
      opacity: .4;
      pointer-events: none;
      z-index: -1;
    }

    .blob.one { width: 260px; height: 260px; top: 5rem; right: -60px; background: linear-gradient(145deg, var(--orange), #ffb47b); }
    .blob.two { width: 190px; height: 190px; top: 38rem; left: -70px; background: linear-gradient(180deg, #4e51d8, #89a0ff); animation-delay: -2s; }
    .blob.three { width: 290px; height: 290px; bottom: 6rem; right: -120px; background: linear-gradient(90deg, #ff7b1d, #3c3fc2); animation-delay: -1s; }

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

    .container { width: min(1120px, 92vw); margin: 0 auto; }

    header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(10px);
      background: rgba(11, 12, 38, 0.62);
      border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.9rem 0;
    }

    .logo {
      font-size: 1.45rem;
      font-weight: 900;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .logo span { color: var(--orange); }

    .menu { display: flex; gap: 1rem; flex-wrap: wrap; }
    .menu a {
      color: var(--white);
      text-decoration: none;
      font-weight: 600;
      font-size: .93rem;
      opacity: .9;
      transition: .2s ease;
    }
    .menu a:hover { color: var(--orange-soft); opacity: 1; }

    .hero {
      position: relative;
      padding: 4.5rem 0 3.2rem;
      isolation: isolate;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.4rem;
      align-items: end;
    }

    .eyebrow {
      display: inline-block;
      padding: .36rem .7rem;
      border-radius: 999px;
      background: rgba(255, 107, 0, 0.22);
      border: 1px solid rgba(255, 182, 143, 0.45);
      font-size: .78rem;
      text-transform: uppercase;
      letter-spacing: .07em;
      font-weight: 700;
    }

    h1 {
      font-size: clamp(2.2rem, 8vw, 5rem);
      line-height: .95;
      margin: .8rem 0 1rem;
      text-wrap: balance;
      max-width: 12ch;
    }

    .hero p {
      max-width: 56ch;
      font-size: clamp(1rem, 2.4vw, 1.2rem);
      color: rgba(246,247,255,.9);
    }

    .cta-row {
      margin-top: 1.4rem;
      display: flex;
      flex-wrap: wrap;
      gap: .8rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 0;
      padding: .82rem 1.2rem;
      text-decoration: none;
      font-weight: 800;
      transition: transform .2s ease, box-shadow .2s ease;
      cursor: pointer;
    }

    .btn-primary {
      background: linear-gradient(90deg, var(--orange), #ff8a30);
      color: #241100;
      box-shadow: 0 12px 28px rgba(255, 107, 0, .34);
    }

    .btn-secondary {
      color: var(--white);
      border: 1px solid rgba(255,255,255,.35);
      background: rgba(255,255,255, .08);
    }

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

    .hero-image {
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid rgba(255,255,255,.2);
      min-height: 280px;
      background: #19195f;
    }
    .hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    section { padding: 2.8rem 0; }

    .section-title {
      font-size: clamp(1.8rem, 4.8vw, 3.2rem);
      margin: 0 0 1.1rem;
      line-height: 1;
      text-wrap: balance;
    }

    .section-lead { max-width: 68ch; color: rgba(246,247,255,.83); }

    .services {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
      margin-top: 1.25rem;
    }

    .card {
      background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
      border: 1px solid rgba(255,255,255,.16);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: transform .25s ease, border-color .25s ease;
    }

    .card:hover {
      transform: translateY(-6px);
      border-color: rgba(255, 153, 97, 0.75);
    }

    .card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
    }

    .card-content { padding: 1rem 1rem 1.2rem; }

    .card h3 { margin: 0 0 .55rem; font-size: 1.18rem; }
    .card p { margin: 0; color: rgba(246,247,255,.86); }

    .reference {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
      align-items: stretch;
    }

    .reference .text {
      padding: 1.2rem;
      border-radius: var(--radius);
      border: 1px solid rgba(255,255,255,.16);
      background: linear-gradient(145deg, rgba(26,26,94,.8), rgba(255,107,0,.25));
      box-shadow: var(--shadow);
    }

    .stat-grid {
      margin-top: 1rem;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: .65rem;
    }

    .stat {
      background: rgba(255,255,255,.1);
      border-radius: 14px;
      padding: .8rem;
    }

    .stat strong { display: block; font-size: 1.3rem; color: #ffd7bb; }

    .image-panel {
      overflow: hidden;
      border-radius: var(--radius);
      border: 1px solid rgba(255,255,255,.2);
      box-shadow: var(--shadow);
    }

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

    .about {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
      align-items: center;
    }

    .about-card {
      padding: 1.1rem;
      border-radius: var(--radius);
      background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: var(--shadow);
    }

    .chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
    .chip {
      border-radius: 999px;
      padding: .38rem .72rem;
      font-size: .78rem;
      font-weight: 700;
      background: rgba(255,107,0,.22);
      border: 1px solid rgba(255,182,143,.45);
    }

    .contact {
      margin: 2rem 0 3.2rem;
      border-radius: var(--radius);
      padding: 1.2rem;
      background: linear-gradient(120deg, rgba(255,107,0,.92), rgba(26,26,94,.9));
      box-shadow: 0 16px 36px rgba(0,0,0,.33);
    }

    .contact h2 { margin-top: 0; color: #fff6f0; }
    .contact p { color: #fff3ec; max-width: 60ch; }
    .contact-links {
      margin-top: .8rem;
      display: flex;
      gap: .7rem;
      flex-wrap: wrap;
    }
    .contact-links a {
      color: #fff;
      text-decoration: none;
      font-weight: 700;
      padding: .55rem .78rem;
      border: 1px solid rgba(255,255,255,.55);
      border-radius: 999px;
      transition: background .2s ease;
    }
    .contact-links a:hover { background: rgba(255,255,255,.18); }

    .reveal {
      opacity: 1;
      transform: translateY(0);
    }
    @media (prefers-reduced-motion: no-preference) {
      .reveal.anim { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
      .reveal.show { opacity: 1; transform: translateY(0); }
    }

    footer {
      text-align: center;
      color: rgba(246,247,255,.7);
      font-size: .9rem;
      padding: 1rem 0 2rem;
    }

    @media (min-width: 820px) {
      .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 1.4rem; }
      .services { grid-template-columns: repeat(3, 1fr); }
      .reference { grid-template-columns: 1fr 1fr; }
      .about { grid-template-columns: 1.1fr .9fr; }
      .contact { padding: 1.8rem; }
      .hero { padding-top: 5.3rem; }
      .card img { height: 160px; }
    }
  
