/* =========================================================
   "JUST A CALL OR A MESSAGE AWAY" (js/contact-card.js) - About Us and Where We Are, dark and light
   ========================================================= */
.cc {
  --cc-card: #0f0f12; --cc-card-2: #15151a; --cc-text: #f5f5f5; --cc-muted: #9a9aa3; --cc-green: #22c55e; --cc-blue: #60a5fa;
  --cc-desk: #2a2a33; --cc-ink: #e5e7eb; --cc-chat-bg: #0b141a; --cc-in: #202c33; --cc-out: #005c4b; --cc-chat-text: #e9edef; --cc-chat-muted: #8696a0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center;
  padding: 38px 48px; border-radius: 30px; color: var(--cc-text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(70% 90% at 0% 100%, rgba(34, 197, 94, 0.16), transparent 60%), linear-gradient(135deg, var(--cc-card), var(--cc-card-2));
}
html[data-theme="light"] .cc {
  --cc-card: #ffffff; --cc-card-2: #f1f3f6; --cc-text: #111418; --cc-muted: #5b6472; --cc-green: #16a34a; --cc-blue: #2563eb;
  --cc-desk: #d6d9df; --cc-ink: #1f2937; --cc-chat-bg: #efeae2; --cc-in: #ffffff; --cc-out: #d9fdd3; --cc-chat-text: #111b21; --cc-chat-muted: #667781;
  background: radial-gradient(70% 90% at 0% 100%, rgba(22, 163, 74, 0.10), transparent 60%), linear-gradient(135deg, var(--cc-card), var(--cc-card-2));
}

/* ---------- the picture: someone from the agency on a call, the phone in front ---------- */
.cc-art { position: relative; height: 330px; }
.cc-person { position: absolute; left: 0; bottom: 0; width: 300px; height: 330px; overflow: visible; }
.cc-laptop-dot { fill: #22c55e; animation: ccBlink 2.4s ease-in-out infinite; }
.cc-mic-tip { fill: #22c55e; }

/* the phone: a WhatsApp chat with us */
.cc-phone { position: absolute; right: 0; top: 0; width: 262px; height: 330px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--cc-chat-bg); box-shadow: 0 0 0 7px #111317, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
html[data-theme="light"] .cc-phone { box-shadow: 0 0 0 7px #1f2329, 0 30px 60px -24px rgba(0, 0, 0, 0.35); }
.cc-chat-head { display: flex; align-items: center; gap: 9px; padding: 12px 12px 10px; background: #1f2c34; color: #e9edef; }
html[data-theme="light"] .cc-chat-head { background: #008069; color: #fff; }
.cc-back { font-size: 22px; line-height: 1; opacity: 0.85; }
.cc-chat-head img { width: 34px; height: 34px; border-radius: 50%; background: #000; }
.cc-chat-head div { display: grid; flex: 1; min-width: 0; }
.cc-chat-head b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cc-status { font-size: 11px; opacity: 0.8; }
.cc-callic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-chat { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 6px; overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 14px 14px; }
html[data-theme="light"] .cc-chat { background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px); }
.cc-day { align-self: center; margin-bottom: 4px; padding: 3px 9px; border-radius: 6px; background: var(--cc-in); color: var(--cc-chat-muted); font-size: 10.5px; }
.cc-msg { position: relative; max-width: 82%; margin: 0; padding: 6px 9px 16px; border-radius: 9px; font-size: 12.5px; line-height: 1.4; color: var(--cc-chat-text);
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.35s ease, transform 0.35s ease; }
.cc-msg.is-out { align-self: flex-end; background: var(--cc-out); border-top-right-radius: 2px; }
.cc-msg.is-in { align-self: flex-start; background: var(--cc-in); border-top-left-radius: 2px; }
.cc-msg em { position: absolute; right: 7px; bottom: 3px; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 9.5px; color: var(--cc-chat-muted); }
.cc-ticks { width: 15px; height: 9px; fill: none; stroke: #53bdeb; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc-msg.is-in-view { opacity: 1; transform: none; }
.cc-typing { align-self: flex-start; display: none; gap: 4px; margin: 0; padding: 9px 11px; border-radius: 9px; border-top-left-radius: 2px; background: var(--cc-in); }
.cc-typing.is-in-view { display: inline-flex; }
.cc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cc-chat-muted); animation: ccDot 1s ease-in-out infinite; }
.cc-typing i:nth-child(2) { animation-delay: 0.15s; }
.cc-typing i:nth-child(3) { animation-delay: 0.3s; }
.cc-chat-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; }
.cc-chat-foot span { flex: 1; padding: 8px 12px; border-radius: 999px; background: var(--cc-in); color: var(--cc-chat-muted); font-size: 12px; }
.cc-chat-foot i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #00a884; }
.cc-chat-foot svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- the words and the two ways to reach us ---------- */
.cc-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cc-green); }
.cc-eyebrow::before, .cc-eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.cc-text h2 { margin: 12px 0 0; font: 300 38px/1.12 Sora, Inter, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.035em; }
.cc-text h2 em { font-style: normal; font-weight: 700; color: var(--cc-green); }
.cc-text p { margin: 14px 0 0; color: var(--cc-muted); font-size: 16.5px; line-height: 1.65; }
.cc-text p b { color: var(--cc-text); white-space: nowrap; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px 13px 18px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.cc-btn svg { width: 21px; height: 21px; flex: none; }
.cc-btn.is-wa { background: #25d366; color: #06301a; box-shadow: 0 12px 26px -12px rgba(37, 211, 102, 0.8); }
.cc-btn.is-wa svg { fill: currentColor; }
.cc-btn.is-call { background: rgba(59, 130, 246, 0.14); color: var(--cc-blue); }
.cc-btn.is-call svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: ccRing 3.2s ease-in-out infinite; transform-origin: 50% 50%; }
html[data-theme="light"] .cc-btn.is-call { background: #dbeafe; }
.cc-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

@keyframes ccBlink { 50% { opacity: 0.25; } }
@keyframes ccType { to { transform: rotate(-3deg); } }
@keyframes ccDot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes ccRing { 0%, 30%, 100% { transform: none; } 5%, 15%, 25% { transform: rotate(-12deg); } 10%, 20% { transform: rotate(12deg); } }

@media (prefers-reduced-motion: reduce) {
  .cc-laptop-dot, .cc-btn.is-call svg, .cc-typing i { animation: none; }
  .cc-msg { transition: none; }
}

/* the person: a slow, calm breath; the laptop light blinks (css above) */
.cc-person { transform-origin: 150px 330px; }
.cc-person { animation: ccBreath 4.5s ease-in-out infinite; }
@keyframes ccBreath { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .cc-person { animation: none; } }

/* the two numbers: tap one to call it */
.cc-text p a { color: inherit; text-decoration: none; }
.cc-text p a:hover b { color: var(--cc-green); }

/* =========================================================
   THE NEW LOOK: a deep night-green banner - the photo on the left to the card's edge, the phone with the chat in
   the middle, the words and the two buttons on the right; soft rings, a few dots and a paper plane for decoration
   ========================================================= */
.cc { position: relative; overflow: hidden; grid-template-columns: 30% 264px minmax(0, 1fr); gap: 0 44px; padding: 0 44px 0 0; min-height: 360px;
  background: radial-gradient(60% 120% at 100% 0%, rgba(16, 185, 129, 0.22), transparent 55%), radial-gradient(40% 70% at 70% 110%, rgba(16, 185, 129, 0.18), transparent 60%),
              linear-gradient(120deg, #0b1a24 0%, #0d1f26 45%, #0a1a1f 100%); }
html[data-theme="light"] .cc { background: radial-gradient(60% 120% at 100% 0%, rgba(16, 185, 129, 0.16), transparent 55%), radial-gradient(40% 70% at 70% 110%, rgba(16, 185, 129, 0.12), transparent 60%),
              linear-gradient(120deg, #ffffff 0%, #f3f8f6 50%, #eef6f2 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 24px 50px -36px rgba(15, 23, 42, 0.35); }
.cc-photo { position: relative; align-self: stretch; margin: 0; min-height: 360px; }
.cc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.cc-art { height: auto; padding: 28px 0; }
.cc-person { display: none; }
.cc-phone { position: relative; right: auto; top: auto; width: 264px; height: 320px; border-radius: 28px; box-shadow: 0 0 0 6px #1b2a30, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
html[data-theme="light"] .cc-phone { box-shadow: 0 0 0 6px #1f2a2e, 0 30px 60px -26px rgba(0, 0, 0, 0.35); }
.cc-chat-head { background: #1f2c34; }
.cc-text { position: relative; z-index: 1; padding: 30px 0; }
.cc-eyebrow { color: #22c55e; }
.cc-text h2 { font: 700 40px/1.1 Sora, Inter, sans-serif; letter-spacing: -0.03em; color: #ffffff; }
.cc-text h2 em { color: #22e07a; }
.cc-text p { color: #b9c3c9; font-size: 16px; }
.cc-text p b { color: #ffffff; }
html[data-theme="light"] .cc-text h2 { color: #0b1a24; }
html[data-theme="light"] .cc-text h2 em { color: #16a34a; }
html[data-theme="light"] .cc-text p { color: #4b5563; }
html[data-theme="light"] .cc-text p b { color: #0b1a24; }
.cc-btns { gap: 14px; }
.cc-btn { padding: 14px 20px 14px 16px; font-size: 15px; }
.cc-arrow { width: 18px !important; height: 18px !important; margin-left: 4px; fill: none !important; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: none !important; }
.cc-btn.is-wa { background: #22e07a; color: #05261a; box-shadow: 0 14px 30px -14px rgba(34, 224, 122, 0.9); }
.cc-btn.is-call { background: #0c2a4a; color: #ffffff; box-shadow: inset 0 0 0 1.5px #2563eb; }
.cc-btn.is-call svg:not(.cc-arrow) { color: #93c5fd; }
html[data-theme="light"] .cc-btn.is-call { background: #0c2a4a; color: #ffffff; }
.cc-btn:hover .cc-arrow { transform: translateX(3px); transition: transform 0.2s ease; }

/* decoration */
.cc-deco { position: absolute; pointer-events: none; }
.cc-ring1 { right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0.08) 60%, transparent 70%); }
.cc-ring2 { right: 22%; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 65%); }
.cc-dots { right: 90px; top: 34px; width: 120px; height: 70px; background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.4px); background-size: 15px 15px; }
html[data-theme="light"] .cc-dots { background-image: radial-gradient(rgba(15, 23, 42, 0.18) 1.2px, transparent 1.4px); }
.cc-plane { right: 30px; top: 108px; width: 130px; height: 66px; fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="light"] .cc-plane { stroke: rgba(15, 23, 42, 0.3); }
/* sizes: the photo a third, a slimmer phone, the two buttons side by side; the heading the same on every page */
.cc { grid-template-columns: 32% 240px minmax(0, 1fr); gap: 0 34px; padding-right: 36px; }
.cc-phone { width: 240px; height: 310px; }
.cc .cc-text h2 { font: 700 38px/1.12 Sora, Inter, sans-serif; letter-spacing: -0.03em; margin: 12px 0 0; }
.cc .cc-text p { font-size: 15px; line-height: 1.6; }
.cc .cc-text p b { font-size: 16.5px; }
.cc-btns { flex-wrap: nowrap; gap: 10px; margin-top: 20px; }
.cc-btn { padding: 12px 16px 12px 14px; font-size: 13.5px; gap: 8px; white-space: nowrap; }
.cc-btn svg { width: 19px; height: 19px; }
.cc-phone { height: 336px; }
.cc { min-height: 384px; }
.cc-photo { min-height: 384px; }
.cc-chat { gap: 5px; }

/* =========================================================
   THE PHOTO WITHOUT ITS ROOM: the person (and the laptop) cut out, standing on the card's own colours - a soft
   green glow and two thin rings behind; dark mode deeper and richer
   ========================================================= */
.cc-photo { overflow: hidden; }
.cc-photo::before { content: ""; position: absolute; left: 50%; top: 52%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 224, 122, 0.30) 0%, rgba(16, 185, 129, 0.12) 38%, transparent 66%); }
.cc-photo::after { content: ""; position: absolute; left: 50%; top: 46%; width: 84%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(34, 224, 122, 0.22), 0 0 0 34px rgba(34, 224, 122, 0.04), 0 0 0 35px rgba(34, 224, 122, 0.14); }
.cc-photo img { z-index: 1; object-fit: contain; object-position: 50% 100%; -webkit-mask-image: none; mask-image: none;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); }
html[data-theme="light"] .cc-photo::before { background: radial-gradient(circle, rgba(22, 163, 74, 0.20) 0%, rgba(22, 163, 74, 0.07) 40%, transparent 66%); }
html[data-theme="light"] .cc-photo::after { box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25), 0 0 0 34px rgba(22, 163, 74, 0.03), 0 0 0 35px rgba(22, 163, 74, 0.14); }
html[data-theme="light"] .cc-photo img { filter: drop-shadow(0 22px 26px rgba(15, 23, 42, 0.18)); }

/* dark mode: a deeper, richer card - night blue to green, a faint grid, a glow along the top edge */
html:not([data-theme="light"]) .cc {
  background:
    radial-gradient(42% 70% at 18% 60%, rgba(34, 224, 122, 0.10), transparent 70%),
    radial-gradient(60% 120% at 100% 0%, rgba(16, 185, 129, 0.26), transparent 55%),
    radial-gradient(40% 70% at 68% 115%, rgba(16, 185, 129, 0.20), transparent 60%),
    linear-gradient(118deg, #07141c 0%, #0b1d26 40%, #0b2023 70%, #08171b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(34, 224, 122, 0.10), 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
html:not([data-theme="light"]) .cc::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 60%, transparent); mask-image: linear-gradient(90deg, transparent 30%, #000 60%, transparent); }
html:not([data-theme="light"]) .cc-phone { box-shadow: 0 0 0 6px #16252b, 0 0 0 7px rgba(34, 224, 122, 0.18), 0 30px 60px -18px rgba(0, 0, 0, 0.8), 0 0 60px -10px rgba(34, 224, 122, 0.25); }
html:not([data-theme="light"]) .cc-text h2 em { color: #2ee88a; text-shadow: 0 0 28px rgba(46, 232, 138, 0.35); }
.cc-photo, .cc-art, .cc-text { position: relative; z-index: 1; }
/* the photo runs on under the phone (no hard edge on its right), the rings uncut */
.cc-photo { overflow: visible; margin-right: -70px; z-index: 0; }
.cc-art { z-index: 2; }
/* the photo from the card's left edge; its cut right side melts away under the phone */
.cc-photo img { object-position: 0% 100%; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 96%); mask-image: linear-gradient(90deg, #000 78%, transparent 96%); }

/* =========================================================
   A REAL PHONE SHAPE: tall and slim (about 9 : 19), round corners, a camera island on top, the side buttons
   ========================================================= */
.cc { grid-template-columns: 32% 196px minmax(0, 1fr); min-height: 410px; }
.cc-photo { min-height: 410px; }
.cc-art { padding: 18px 0; display: flex; justify-content: center; }
.cc-phone { position: relative; width: 196px; height: 384px; border-radius: 36px; padding-top: 22px; overflow: hidden; }
.cc-phone::before { content: ""; position: absolute; left: 50%; top: 8px; width: 58px; height: 16px; transform: translateX(-50%); border-radius: 999px; background: #05080a; z-index: 3; }
.cc-art::before, .cc-art::after { content: ""; position: absolute; left: calc(50% + 101px); width: 3px; border-radius: 0 3px 3px 0; background: #1b2a30; }
.cc-art::before { top: 96px; height: 46px; }
.cc-art::after { top: 152px; height: 28px; }
html[data-theme="light"] .cc-art::before, html[data-theme="light"] .cc-art::after { background: #1f2a2e; }
.cc-chat-head { padding: 8px 10px 8px; gap: 7px; }
.cc-chat-head img { width: 28px; height: 28px; }
.cc-chat-head b { font-size: 12px; }
.cc-status { font-size: 10px; }
.cc-back { font-size: 18px; }
.cc-callic svg { width: 15px; height: 15px; }
.cc-chat { padding: 8px 8px 4px; gap: 5px; }
.cc-day { font-size: 9.5px; padding: 2px 8px; }
.cc-msg { max-width: 88%; padding: 5px 8px 14px; font-size: 11px; line-height: 1.35; }
.cc-msg em { font-size: 8.5px; }
.cc-chat-foot { padding: 6px 8px 12px; gap: 6px; }
.cc-chat-foot span { padding: 7px 10px; font-size: 11px; }
.cc-chat-foot i { width: 30px; height: 30px; }
.cc-chat-foot svg { width: 16px; height: 16px; }

/* =========================================================
   PHONES (pages with a phone layout): one column - the words and the two buttons first (one under the other),
   then the phone with the chat; the photo and the decoration that needs room are left for bigger screens
   ========================================================= */
@media (max-width: 760px) {
  .cc.cc { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 24px 18px 22px; border-radius: 24px; }
  .cc.cc .cc-photo, .cc.cc .cc-dots, .cc.cc .cc-plane, .cc.cc .cc-ring2 { display: none; }
  .cc.cc .cc-ring1 { right: -120px; top: -120px; width: 260px; height: 260px; }
  /* the words, then the phone, then the two buttons under it (the words' box opens up so its buttons can go last) */
  .cc.cc .cc-text { display: contents; }
  .cc.cc .cc-text > * { order: 1; position: relative; z-index: 1; }
  .cc.cc .cc-text > .cc-btns { order: 3; }
  .cc.cc .cc-text h2 { font-size: 27px; line-height: 1.15; }
  .cc.cc .cc-text p { margin-top: 10px; font-size: 14px; }
  .cc.cc .cc-text p b { font-size: 15px; }
  .cc.cc .cc-btns { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px; margin-top: 18px; }
  .cc.cc .cc-btn { justify-content: center; padding: 13px 14px; font-size: 14px; }
  .cc.cc .cc-art { order: 2; display: flex; justify-content: center; padding: 22px 0 0; }
  /* the phone upright, as a phone is */
  .cc.cc .cc-phone { width: 226px; height: 430px; border-radius: 34px; }
  .cc.cc .cc-art::before { left: calc(50% + 113px); top: 118px; }
  .cc.cc .cc-art::after { left: calc(50% + 113px); top: 176px; }
}

/* the round Urban Tutor Site logo (a circle, not the app's square tile): white in light mode */
html[data-theme="light"] .cc img.ut-round-logo { content: url("/brand/tutor-avatar-light.png?v=3"); }
/* the rings and dots stay inside the card (the top ring ran past the screen's right edge on a narrower screen - the
   page could then be moved sideways) */
.cc { overflow: clip; }
/* between a phone and a computer (761 - 1023px): the photo left out - the phone with the chat, then the words and
   the two buttons beside it (the three side by side did not fit) */
@media (min-width: 761px) and (max-width: 1023px) {
  .cc.cc { grid-template-columns: 240px minmax(0, 1fr); gap: 0 28px; padding: 26px 28px; }
  .cc.cc .cc-photo { display: none; }
  .cc.cc .cc-btns { flex-wrap: wrap; }
}
