/* ───────────────────────────────────────────────
   CLOUD COMPUTERS · SERVICES PAGE
   Layered on top of styles.css + about.css. Adds:
   · Services hero variant (different bg image)
   · Service tile grid (3-up with image+overlay cards)
   · Decorative rotated brand-blue squares behind tiles
   · Frosted top-right "open" arrow buttons
   · Outro section with watermark, glass newsletter card,
     and a rounded-corner dark footer panel
   ─────────────────────────────────────────────── */

/* ─── banner background swap for services page ─── */
.page-banner-services .banner-image {
  background-image:
    url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=2000&q=80');
}

/* ─── services grid ─── */
.services-page { background: var(--bg); position: relative; overflow: hidden; }
.services-page::before {
  content: '';
  position: absolute;
  top: 30%;
  left: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(38,150,201,.07) 0%, transparent 70%);
  pointer-events: none;
}
.services-page::after {
  content: '';
  position: absolute;
  bottom: 8%;
  right: -8%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* ─── service tile (image + overlay + content) ─── */
.service-tile {
  position: relative;
  isolation: isolate;
  aspect-ratio: 384 / 455;
  border-radius: 16px;
  overflow: hidden;
  background: #111827;
  cursor: pointer;
  color: #fff;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.service-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45);
}

.tile-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out);
}
.service-tile:hover .tile-bg {
  transform: scale(1.1);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%),
    rgba(0,0,0,.40);
  transition: background var(--t-fast);
}
.service-tile:hover .tile-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%),
    rgba(0,0,0,.32);
}

/* decorative rotated brand-blue squares behind content */
.tile-blob {
  position: absolute;
  width: 222px;
  height: 221px;
  border-radius: 20px;
  background: var(--brand);
  opacity: 0;
  z-index: -1;
  transition:
    opacity .45s ease,
    transform .9s var(--ease-out);
  filter: blur(0px);
}
.tile-blob-tr {
  top: -100px;
  right: -158px;
  transform: rotate(-46deg) scale(.85);
}
.tile-blob-bl {
  bottom: -100px;
  left: -158px;
  transform: rotate(-46deg) scale(.85);
}
.service-tile:hover .tile-blob {
  opacity: .9;
}
.service-tile:hover .tile-blob-tr {
  transform: rotate(-46deg) translate(-18px, 18px) scale(1);
}
.service-tile:hover .tile-blob-bl {
  transform: rotate(-46deg) translate(18px, -18px) scale(1);
}

/* top-right glass arrow button */
.tile-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(226,226,226,.17);
  color: #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast),
    color var(--t-fast);
  z-index: 2;
}
.tile-arrow svg { transition: transform var(--t-fast); }
.service-tile:hover .tile-arrow {
  background: var(--brand);
  border-color: var(--brand);
  transform: rotate(-12deg);
}
.service-tile:hover .tile-arrow svg {
  transform: rotate(12deg) scale(1.05);
}

/* content (centered, slightly raised) */
.tile-content {
  position: absolute;
  inset: auto 24px 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  z-index: 1;
  transform: translateY(0);
  transition: transform .5s var(--ease-out);
}
.service-tile:hover .tile-content {
  transform: translateY(-4px);
}

.tile-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(38,150,201,.65);
  transition: transform var(--t-fast), background var(--t-fast);
}
.service-tile:hover .tile-icon {
  transform: rotate(-6deg) scale(1.05);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.tile-title {
  font-family: var(--font-family);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}
.tile-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 32ch;
}

/* the 7th card just lives in column 1 of a 3-col grid by default
   (3 + 3 + 1 layout), exactly like the Figma layout */

/* ───────────────────────────  OUTRO  ─────────────────────────── */
.services-outro {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 9vw, 140px) 0 clamp(40px, 5vw, 64px);
  color: #fff;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 80px);
}
.outro-bg { position: absolute; inset: 0; z-index: -2; }
.outro-image {
  position: absolute; inset: 0;
  background:
    url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?auto=format&fit=crop&w=2200&q=80') center/cover no-repeat;
  filter: saturate(.85);
  transform: scale(1.02);
}
.outro-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(38,150,201,.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37,99,235,.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.92) 100%);
}

/* huge gradient watermark text */
.outro-watermark {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: clamp(60px, 14vw, 168px);
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, rgba(38,150,201,.85) 38%, rgba(0,0,0,0) 92%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.outro-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4vw, 60px);
}

/* frosted-glass newsletter card */
.newsletter-card {
  position: relative;
  padding: clamp(48px, 5vw, 80px) clamp(28px, 5vw, 80px);
  background: rgba(36,36,36,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 40px;
  backdrop-filter: blur(24px) saturate(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}
.newsletter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.newsletter-title {
  font-family: var(--font-family);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 22ch;
  text-wrap: balance;
}
.newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
/* Leading-icon-only padding is handled by the global
   `.btn-lg:has(.icon-circle:first-child:not(:last-child))` rule in styles.css */
.newsletter-sub {
  color: rgba(255,255,255,.72);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  max-width: 72ch;
}

/* light variant of the WhatsApp / cta button */
.btn.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn.btn-light .icon-circle {
  background: rgba(15, 23, 42, .08);
  color: var(--ink);
}
.btn.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(255,255,255,.45);
  background: #fff;
}
.btn.btn-light:hover .icon-circle {
  background: rgba(20, 184, 70, .18);
  color: #128c4f;
}

/* rounded dark footer panel */
.outro-footer {
  background: #1a1a1b;
  border-radius: 40px;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 56px);
  color: rgba(255,255,255,.75);
}
.outro-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.outro-footer .footer-brand p {
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  font-size: 14.5px;
  margin-top: 18px;
  max-width: 42ch;
}
.outro-footer .footer-col h4 {
  color: #fff;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 24px;
}
.outro-footer .footer-col ul,
.outro-footer .footer-col ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.outro-footer .footer-col li,
.outro-footer .footer-col a {
  color: rgba(255,255,255,.72);
  font-size: 14.5px;
  line-height: 1.5;
  display: inline-flex; align-items: center; gap: 10px;
  transition: color var(--t-fast);
}
.outro-footer .footer-col a:hover { color: #fff; }
.outro-footer .footer-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.78);
  flex: 0 0 28px;
}
.outro-footer .socials {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
}
.outro-footer .social-label {
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-right: 6px;
}
.outro-footer .social-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.outro-footer .social-icon:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.outro-footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  font-size: 13.5px;
}
.outro-footer-bottom div { display: flex; gap: 32px; flex-wrap: wrap; }
.outro-footer-bottom a {
  color: rgba(255,255,255,.65);
  transition: color var(--t-fast);
}
.outro-footer-bottom a:hover { color: #fff; }

/* ───────────────────────────  RESPONSIVE  ─────────────────────────── */
@media (max-width: 1100px) {
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .outro-footer-grid   { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .services-grid       { grid-template-columns: 1fr; }
  .tile-content        { inset: auto 18px 26px 18px; gap: 14px; }
  .tile-arrow          { width: 42px; height: 42px; top: 12px; right: 12px; }
  .newsletter-card     { border-radius: 28px; }
  .outro-footer        { border-radius: 28px; }
  .outro-footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .outro-footer-bottom { flex-direction: column; align-items: flex-start; }
}
