/* =============================================================
   KIANIRO · contact.css
   Contact page (core/contact.html). Loaded after css/style.css, which holds the
   tokens, base styles, buttons, header, menus, search, cart and
   footer; this file only adds what is unique to this page.

   TABLE OF CONTENTS
     01  Hero and open/closed status
     02  Ways to reach us
     03  Message form
     04  Store card
     05  Toast
     06  Responsive
     07  Reduced motion
   ============================================================= */


/* =============================================================
   01  HERO · STATUS
   ============================================================= */
.ct-hero { padding: calc(var(--header-h) + clamp(28px, 4vw, 60px)) 0 clamp(28px, 4vw, 48px); }
.ct-hero__in { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }

.crumbs { display: flex; align-items: center; gap: 6px 8px; margin-bottom: clamp(16px, 2vw, 26px); font-size: 13.5px; color: var(--mist); }
.crumbs a { color: var(--slate); transition: color .4s var(--ease-out); }
.crumbs .ico { transform: rotate(90deg); color: var(--hair-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
@media (hover: hover) { .crumbs a:hover { color: var(--ember); } }

.ct-hero__title { font-size: clamp(36px, 5vw, 72px); font-weight: 200; line-height: 1.25; color: var(--ink); }
.ct-hero__title b { font-weight: 800; }
.ct-hero__lead { max-width: 52ch; margin-top: 18px; font-size: 16px; line-height: 2.05; color: var(--slate); }

/* «الان باز است» / «الان بسته است»: a live dot and the next opening time */
.ct-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 100px;
  background: var(--pearl); border: 1px solid var(--hair); font-size: 14px; color: var(--slate); white-space: nowrap;
}
.ct-status b { color: var(--ink); }
.ct-status i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--hair-2); }
.ct-status.is-open i { background: #2EAA5E; }
.ct-status.is-open i::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; background: rgba(46, 170, 94, .25);
  animation: ctPulse 2s ease-in-out infinite;
}
@keyframes ctPulse { 0%, 100% { transform: scale(.6); opacity: 1; } 70% { transform: scale(1.4); opacity: 0; } }


/* =============================================================
   02  WAYS TO REACH US
   ============================================================= */
.ct-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ct-way {
  display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: 24px;
  background: var(--pearl); border: 1px solid var(--hair);
  transition: border-color .4s, box-shadow .6s var(--ease-out), transform .6s var(--ease-out);
}
@media (hover: hover) { .ct-way:hover { border-color: var(--hair-2); box-shadow: 0 36px 70px -50px rgba(10, 27, 46, .45); transform: translateY(-3px); } }
.ct-way__ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; background: var(--porcelain); color: var(--ember); }
.ct-way__label { font-size: 13px; color: var(--mist); }
.ct-way__rows { display: grid; gap: 4px; }
.ct-way__note { font-size: 12.5px; line-height: 1.9; color: var(--mist); }

.ct-num { display: flex; align-items: center; gap: 8px; }
.ct-num a { font-family: var(--f-mono); font-size: 18px; font-weight: 500; letter-spacing: .02em; color: var(--ink); transition: color .35s; }
@media (hover: hover) { .ct-num a:hover { color: var(--ember); } }
.ct-copy {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--mist);
  transition: background-color .3s, color .3s;
}
.ct-copy.is-done { color: #2EAA5E; }
@media (hover: hover) { .ct-copy:hover { background: var(--porcelain); color: var(--ink); } }

.ct-hours { display: grid; gap: 6px; margin-top: 2px; font-size: 13.5px; color: var(--slate); }
.ct-hours li { display: flex; justify-content: space-between; gap: 10px; }
.ct-hours b { color: var(--ink); font-weight: 600; }
.ct-hours li.is-today span, .ct-hours li.is-today b { color: var(--ember); }


/* =============================================================
   03  MESSAGE FORM
   ============================================================= */
.ct-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px;
  margin-top: 14px; padding-bottom: clamp(70px, 9vw, 120px);
}
.ct-grid--solo { grid-template-columns: minmax(0, 1fr); }   /* no store email yet: the store card alone */
.ct-form-card { padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--pearl); border: 1px solid var(--hair); }
.ct-h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--ink); }
.ct-sub { margin-top: 6px; font-size: 14px; color: var(--mist); }

.ct-form { display: grid; gap: 18px; margin-top: 24px; }
.ct-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--slate); }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.ct-topics legend { float: right; width: 100%; }
.ct-topic { cursor: pointer; }
.ct-topic input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topic span {
  display: inline-flex; align-items: center; height: 38px; padding-inline: 16px; border-radius: 100px;
  border: 1px solid var(--hair-2); font-size: 13.5px; color: var(--slate);
  transition: background-color .35s, border-color .35s, color .35s;
}
.ct-topic input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--pearl); }
.ct-topic input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (hover: hover) { .ct-topic:hover input:not(:checked) + span { border-color: var(--ink); color: var(--ink); } }

.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ct-field { display: grid; align-content: start; min-width: 0; }
.ct-field--wide { grid-column: 1 / -1; }
.ct-field input, .ct-field textarea {
  width: 100%; height: 50px; padding-inline: 16px; border-radius: 14px;
  border: 1px solid var(--hair-2); background: var(--porcelain); outline: 0;
  font: inherit; font-size: 15px; color: var(--ink); caret-color: var(--ember);
  transition: border-color .4s, background-color .4s, box-shadow .5s var(--ease-out);
}
.ct-field textarea { height: auto; padding-block: 12px; line-height: 1.9; resize: vertical; }
.ct-field input[dir="ltr"] { text-align: right; font-family: var(--f-mono); letter-spacing: .05em; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--mist); font-family: var(--f-sans); letter-spacing: normal; }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--ink); background: var(--pearl); box-shadow: 0 0 0 4px rgba(10, 27, 46, .06); }
.ct-field em { min-height: 0; font-style: normal; font-size: 12px; color: #C2412E; }
.ct-field em:not(:empty) { margin-top: 6px; }
.ct-field.is-invalid input, .ct-field.is-invalid textarea { border-color: #D9443A; box-shadow: 0 0 0 4px rgba(217, 68, 58, .07); }

.ct-error { font-size: 13px; color: #C2412E; }
.ct-error:empty { display: none; }

.ct-send {
  position: relative; display: grid; place-items: center; justify-self: start; min-width: 180px; height: 54px; padding-inline: 28px;
  border-radius: 100px; background: var(--ink); color: var(--pearl); font-size: 15px; font-weight: 600; overflow: hidden;
  transition: background-color .4s;
}
.ct-send > span { grid-area: 1 / 1; }
.ct-send__txt { display: inline-flex; align-items: center; gap: 10px; transition: opacity .3s, transform .5s var(--ease-out); }
.ct-send__spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; opacity: 0; }
.ct-send.is-loading { pointer-events: none; }
.ct-send.is-loading .ct-send__txt { opacity: 0; transform: translateY(-60%); }
.ct-send.is-loading .ct-send__spin { opacity: 1; animation: ctSpin .8s linear infinite; }
@keyframes ctSpin { to { transform: rotate(1turn); } }
@media (hover: hover) { .ct-send:hover { background: var(--brand); } }

.ct-done { display: grid; justify-items: center; gap: 10px; padding: clamp(24px, 4vw, 48px) 10px; text-align: center; outline: 0; }
.ct-done__ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #E8F5EE; color: #1F7A52; box-shadow: 0 0 0 10px rgba(46, 170, 94, .07); }
.ct-done__ico .ico { width: 28px; height: 28px; stroke-width: 2.4; }
.ct-done h3 { margin-top: 8px; font-size: 22px; font-weight: 800; color: var(--ink); }
.ct-done p { font-size: 14.5px; line-height: 2; color: var(--slate); }
.ct-again { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }


/* =============================================================
   04  STORE CARD (night)
   ============================================================= */
.ct-store {
  --t1: #F2F5F9; --t2: #A8B7C7; --t3: #6C8197;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border-radius: 28px;
  background: linear-gradient(160deg, #0E2238, #07121F 70%); color: var(--t2);
}
.ct-store__glow {
  position: absolute; z-index: -1; width: 380px; height: 380px; inset-inline-start: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 101, 42, .28), transparent); pointer-events: none;
}
.ct-store__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.ct-store__tag span { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(229, 101, 42, .18); }
.ct-store__title { margin-top: 14px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; color: var(--t1); }
.ct-store__addr { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 15.5px; line-height: 2; color: var(--t1); }
.ct-store__addr .ico { flex: none; margin-top: 7px; color: var(--ember); }
.ct-store__meta { margin-top: 4px; font-size: 13.5px; line-height: 1.9; color: var(--t3); }
.ct-store__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; }
.ct-store__copy {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding-inline: 18px; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--t1); font-size: 14px; transition: background-color .35s, border-color .35s;
}
@media (hover: hover) { .ct-store__copy:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); } }

.ct-links { display: grid; margin-top: auto; padding-top: 26px; }
.ct-links a {
  display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, .09);
  color: var(--t2); transition: color .35s, padding .5s var(--ease-out);
}
.ct-links .ico { flex: none; color: var(--ember); }
.ct-links span { display: grid; font-size: 12.5px; color: var(--t3); }
.ct-links b { font-size: 14.5px; font-weight: 600; color: var(--t1); }
@media (hover: hover) { .ct-links a:hover { padding-inline-start: 6px; } .ct-links a:hover b { color: var(--ember); } }


/* =============================================================
   05  TOAST
   ============================================================= */
.ct-toast {
  position: fixed; z-index: 1200; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 100px; background: var(--ink); color: var(--pearl); font-size: 14px;
  transition: opacity .35s, translate .5s var(--ease-out);
}
.ct-toast.is-on { opacity: 1; translate: -50% 0; }


/* =============================================================
   06  RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) { .ct-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ct-hero { padding-top: calc(var(--header-h) + 12px); }
  .ct-ways { grid-template-columns: minmax(0, 1fr); }
  .ct-way { padding: 18px; border-radius: 20px; }
  .ct-fields { grid-template-columns: minmax(0, 1fr); }
  .ct-form-card, .ct-store { border-radius: 22px; }
  .ct-send { justify-self: stretch; }
}


/* =============================================================
   07  REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .ct-status.is-open i::after { animation: none; }
  .ct-send.is-loading .ct-send__spin { animation-duration: 2s; }
}
