/* ORIGIN Tech — კონტაქტის გვერდი (views/html/contact/index.html)
   საერთო ფერები/ფონტები — style.css, შიდა გვერდის ჩარჩო — service.css */

/* ---------- კონტაქტის მენიუ — მთავარი გვერდის მენიუს სტილით ---------- */
/* ერთი გარე ჩარჩო; შიგნით 4 ბარათი, დაბალი რუკა და სოციალური ქსელები */
.inner-page { --ct-panel-bg: rgba(6, 5, 10, 0.9); }
body[data-theme="light"] { --ct-panel-bg: rgba(255, 255, 255, 0.92); }

.ct-board {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 34px;
}
/* ორი ცალკე გარე ჩარჩო: 1) ოთხი ბარათი, 2) რუკა + სოციალური ქსელები */
.ct-menu,
.ct-geo {
    padding: 6px;
    border: 1px solid var(--frame-color);
}
.ct-geo { display: flex; flex-direction: column; gap: 6px; }
.ct-menu { display: flex; gap: 6px; }

/* ბარათი — მთავარი გვერდის .menu-item-cmd-ის სტილით, მაგრამ განიერი მართკუთხედი:
   მარცხნივ ხატულა, მარჯვნივ სრული ინფორმაცია (ყოველთვის ჩანს) */
.ct-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 6px; }   /* ოთხივე ერთნაირი სიმაღლის */
.ct-mod {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 30px);
    padding: 18px clamp(18px, 2.4vw, 30px);
    border: 1px solid var(--card-line-neutral);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ct-mod-num {
    position: absolute;
    top: 8px; right: 10px;
    font-family: var(--mono-font);
    font-size: 0.5rem;
    letter-spacing: 1.5px;
    color: rgba(var(--fg-rgb), 0.3);
    transition: color 0.3s ease;
}
.ct-mod-dot {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(var(--fg-rgb), 0.15);
    transition: background 0.25s ease;
}
.ct-mod-icon { flex-shrink: 0; display: flex; }
.ct-mod-icon svg {
    width: clamp(32px, 3.4vw, 44px);
    height: clamp(32px, 3.4vw, 44px);
    fill: none;
    stroke: rgba(var(--fg-rgb), 0.9);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease, transform 0.3s ease;
}
.ct-mod-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; position: relative; z-index: 1; }
.ct-mod-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 3px; padding-right: 40px; }
.ct-mod-title { font-family: var(--head-font); font-size: 0.8rem; color: var(--white); }
.ct-mod-sub {
    font-family: var(--head-font);
    font-size: 0.56rem;
    letter-spacing: 0.5px;
    color: rgba(var(--fg-rgb), 0.4);
    transition: color 0.3s ease;
}
.ct-mod-sub:empty { display: none; }
.ct-mod:hover { border-color: var(--card-line-accent); box-shadow: var(--card-line-glow); }
.ct-mod:hover .ct-mod-num { color: rgba(255, 102, 0, 0.9); }
.ct-mod:hover .ct-mod-dot { background: rgba(255, 102, 0, 0.6); }
.ct-mod:hover .ct-mod-sub { color: rgba(255, 102, 0, 0.75); }
.ct-mod:hover .ct-mod-icon svg { stroke: var(--primary-accent); transform: scale(1.06); }

/* ---- hover ეფექტი: სკანერის სხივი + სამიზნის კუთხეები + მონაცემების "ჩატვირთვა" ---- */
.ct-mod::before,
.ct-soc::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(255, 102, 0, 0.10) 70%, rgba(255, 102, 0, 0.55) 98%, transparent);
    transform: translateY(-110%);
    pointer-events: none;
    opacity: 0;
}
.ct-mod::after {
    content: "";
    position: absolute;
    inset: 5px;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background:
        linear-gradient(var(--primary-accent), var(--primary-accent)) top left / 12px 1.5px,
        linear-gradient(var(--primary-accent), var(--primary-accent)) top left / 1.5px 12px,
        linear-gradient(var(--primary-accent), var(--primary-accent)) top right / 12px 1.5px,
        linear-gradient(var(--primary-accent), var(--primary-accent)) top right / 1.5px 12px,
        linear-gradient(var(--primary-accent), var(--primary-accent)) bottom left / 12px 1.5px,
        linear-gradient(var(--primary-accent), var(--primary-accent)) bottom left / 1.5px 12px,
        linear-gradient(var(--primary-accent), var(--primary-accent)) bottom right / 12px 1.5px,
        linear-gradient(var(--primary-accent), var(--primary-accent)) bottom right / 1.5px 12px;
    background-repeat: no-repeat;
}
.ct-mod:hover::before,
.ct-soc:hover::before { animation: ctScan 0.9s ease-out 1; }
.ct-mod:hover::after { opacity: 1; transform: none; }
@keyframes ctScan {
    0%   { transform: translateY(-110%); opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(260%); opacity: 0; }
}
/* მონაცემები ერთი წამით "ციმციმებს", როგორც ეკრანზე ჩატვირთვისას */
.ct-mod:hover .ct-phone,
.ct-mod:hover .ct-mail,
.ct-mod:hover .ct-addr,
.ct-mod:hover .ct-hours dd { animation: ctFlicker 0.45s steps(1) 1; }
.ct-mod:hover .ct-phone-row:nth-child(2) .ct-phone { animation-delay: 0.08s; }
.ct-mod:hover .ct-phone-row:nth-child(3) .ct-phone { animation-delay: 0.16s; }
@keyframes ctFlicker {
    0%   { opacity: 0.2; transform: translateX(3px); filter: brightness(2.2); }
    30%  { opacity: 1;   transform: translateX(-2px); }
    55%  { opacity: 0.5; transform: translateX(1px); }
    100% { opacity: 1;   transform: none; filter: none; }
}

/* ტელეფონები — სამი კომპაქტური ხაზი */
.ct-mod .ct-phones { gap: 1px; margin: 0; }
.ct-mod .ct-phone-row { align-items: baseline; gap: 12px; padding: 0; border: 0; }
.ct-mod .ct-phone-code { font-size: 0.48rem; }
.ct-mod .ct-phone { font-size: 0.86rem; line-height: 1.35; letter-spacing: 0.8px; }
.ct-mod .ct-mail { font-size: 0.8rem; }
.ct-mod .ct-addr { font-size: 0.9rem; }
.ct-mod .ct-hours { max-width: 340px; margin: 0; }
.ct-mod .ct-status { border: 0; padding: 0; font-size: 0.62rem; color: var(--text-soft); }

.ct-card-icon { display: inline-flex; }
.ct-card-icon svg {
    width: 20px; height: 20px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}
.ct-card-label {
    font-family: var(--mono-font);
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-mute);
}
.ct-card-hint {
    font-family: var(--read-font);
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--text-soft);
    text-transform: none;
}

/* სამი ტელეფონის ნომერი — თითოეული ცალკე ხაზზე, საკუთარი ნიშნულით */
.ct-phones {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 2px 0 4px;
    padding: 0;
}
.ct-phone-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(var(--fg-rgb), 0.1);
}
.ct-phone-row:first-child { padding-top: 2px; }
.ct-phone-row:last-child { border-bottom: 0; }
.ct-phone-code {
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--mono-font);
    font-size: 0.56rem;
    letter-spacing: 1.5px;
    color: var(--text-mute);
    transition: color 0.25s ease;
}
.ct-phone-row:hover .ct-phone-code { color: var(--primary-accent); }
.ct-phone {
    font-family: var(--head-font);
    font-size: clamp(1.02rem, 1.45vw, 1.3rem);
    letter-spacing: 1px;
    color: var(--primary-accent);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    -webkit-text-stroke: 0 transparent;
    transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}
.ct-mail,
.ct-addr {
    font-family: var(--head-font);
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--white);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ct-mail { color: var(--primary-accent); text-transform: uppercase; font-size: 0.8rem; }
.ct-phone:hover,
.ct-mail:hover { color: var(--accent-deep); -webkit-text-stroke: 0.6px var(--accent-deep); }

.ct-link {
    display: inline-flex;
    gap: 6px;
    width: fit-content;
    font-family: var(--head-font);
    font-size: 0.72rem;
    color: var(--primary-accent);
    text-decoration: none;
}
.ct-link:hover { color: var(--accent-deep); }
.ct-link span[aria-hidden] { transition: transform 0.25s ease; }
.ct-link:hover span[aria-hidden] { transform: translateX(3px); }

/* სამუშაო საათები */
.ct-hours { display: flex; flex-direction: column; gap: 6px; margin: 0 0 4px; }
.ct-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.ct-hours dt, .ct-hours dd {
    font-family: var(--head-font);
    font-size: 0.74rem;
    color: var(--text-soft);
}
.ct-hours dd { color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid var(--line);
    font-family: var(--head-font);
    font-size: 0.66rem;
    color: var(--white);
}
.ct-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px rgba(46, 204, 113, 0.7); }
.ct-status.is-closed .ct-status-dot { background: #e74c3c; box-shadow: 0 0 8px rgba(231, 76, 60, 0.6); }

/* სოციალური ქსელები — ჰორიზონტალური ზოლი რუკის ქვემოთ */
.ct-socials { display: flex; align-items: stretch; gap: 6px; }
.ct-socials-label {
    display: flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--card-line-neutral);
    font-family: var(--head-font);
    font-size: 0.72rem;
    color: var(--white);
}
.ct-soc {
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--card-line-neutral);
    color: var(--white);
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ct-soc > svg {
    flex-shrink: 0;
    width: 26px; height: 26px;
    fill: none; stroke: currentColor; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.3s ease;
}
.ct-soc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-soc-name { font-family: var(--head-font); font-size: 0.78rem; }
.ct-soc-handle { font-family: var(--head-font); font-size: 0.66rem; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-soc-arrow { margin-left: auto; font-family: var(--head-font); color: var(--text-mute); transition: color 0.3s ease, transform 0.3s ease; }
.ct-soc:hover { border-color: var(--card-line-accent); box-shadow: var(--card-line-glow); }
.ct-soc:hover > svg { stroke: var(--primary-accent); }
.ct-soc:hover .ct-soc-arrow { color: var(--primary-accent); transform: translate(2px, -2px); }

/* ---------- რუკა ---------- */
.ct-map-tag {
    position: absolute;
    top: 12px; left: 12px;
    max-width: calc(100% - 24px);
    z-index: 3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 10px;
    background: var(--ct-panel-bg);
    border: 1px solid var(--line);
    font-family: var(--mono-font);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: var(--primary-accent);
    pointer-events: none;
}
.ct-map-frame {
    position: relative;
    height: clamp(200px, 26vh, 260px);
    border: 1px solid var(--card-line-accent);
    box-shadow: var(--card-line-glow);
    overflow: hidden;
    background: transparent;
}
.ct-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
    z-index: 1;
    transition: filter 0.5s ease;
}
/* მუქ თემაში რუკაც მუქია */
body:not([data-theme="light"]) .ct-map-iframe {
    filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.92) contrast(0.95);
}
/* რუკის გარეშე (ინტერნეტი არ არის) — მისამართი და ღილაკი */
.ct-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
    font-family: var(--head-font);
    font-size: 0.8rem;
    color: var(--text-soft);
}
.ct-map-fallback > svg {
    width: 38px; height: 38px;
    fill: none; stroke: var(--primary-accent); stroke-width: 1.4;
}
/* ნარინჯისფერი პულსი რუკის ცენტრში — ჩვენი წერტილი */
.ct-pulse {
    position: absolute;
    left: 50%; top: 50%;
    z-index: 2;
    width: 14px; height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.25), 0 0 14px rgba(255, 102, 0, 0.8);
    pointer-events: none;
}
.ct-pulse span,
.ct-pulse::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 102, 0, 0.8);
    animation: ctPulse 2.4s ease-out infinite;
}
.ct-pulse::after { animation-delay: 1.2s; }
@keyframes ctPulse {
    from { transform: scale(0.3); opacity: 1; }
    to   { transform: scale(2.6); opacity: 0; }
}

/* კუთხეები — "სამიზნე" ჩარჩო */
.ct-corner {
    position: absolute;
    width: 16px; height: 16px;
    z-index: 2;
    pointer-events: none;
    border: 2px solid var(--primary-accent);
}
.ct-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.ct-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.ct-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.ct-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

/* მარშრუტის ღილაკი რუკის კუთხეში */
.ct-map-route {
    position: absolute;
    right: 12px; bottom: 12px;
    z-index: 3;
    display: inline-flex;
    gap: 8px;
    padding: 9px 14px;
    background: var(--ct-panel-bg);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    font-family: var(--head-font);
    font-size: 0.68rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.ct-map-route:hover { background: var(--primary-accent); color: #0a0a0a; }
.ct-map-fallback { right: auto; width: 50%; }

/* ---------- ადაპტაცია ---------- */
.ct-phone { white-space: nowrap; }             /* ნომერი ორ ხაზზე არასოდეს გადადის */
.ct-map-geo { color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* პლანშეტი/ტელეფონი — ბარათები ერთ სვეტად */
@media (max-width: 860px) {
    .ct-menu { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .ct-mod { padding: 20px 16px; gap: 16px; align-items: flex-start; }
    .ct-map-frame { height: 220px; }
    .ct-map-geo { display: none; }
    .ct-map-fallback { width: 100%; }
    .ct-socials { flex-wrap: wrap; }
    .ct-socials-label { flex: 1 1 100%; justify-content: center; padding: 10px; }
}
@media (max-width: 400px) {
    .ct-mod .ct-phone-row { gap: 10px; }
    .ct-soc { padding: 12px; gap: 10px; }
}

/* ---------- კომპაქტური ზომები — რომ 22" ეკრანზე გვერდი თითქმის გადახვევის გარეშე ჩანდეს ---------- */
.ct-mod { padding: 12px clamp(16px, 2vw, 26px); gap: clamp(14px, 1.8vw, 22px); }
.ct-mod-icon svg { width: clamp(26px, 2.6vw, 34px); height: clamp(26px, 2.6vw, 34px); }
.ct-mod-body { gap: 4px; }
.ct-mod-head { margin-bottom: 1px; }
.ct-mod-title { font-size: 0.7rem; }
.ct-mod-sub { font-size: 0.5rem; }
.ct-mod .ct-phone { font-size: 0.76rem; line-height: 1.3; }
.ct-mod .ct-phone-code { font-size: 0.44rem; }
.ct-mod .ct-mail { font-size: 0.72rem; }
.ct-mod .ct-addr { font-size: 0.74rem; }
.ct-mod .ct-link { font-size: 0.64rem; }
.ct-mod .ct-card-hint { font-size: 0.66rem; line-height: 1.4; }
.ct-mod .ct-hours { gap: 2px; max-width: 300px; }
.ct-mod .ct-hours dt, .ct-mod .ct-hours dd { font-size: 0.64rem; }
.ct-mod .ct-status { font-size: 0.56rem; gap: 6px; }
.ct-mod .ct-status-dot { width: 6px; height: 6px; }
.ct-board { margin-top: 24px; gap: 16px; }
.ct-map-frame { height: clamp(180px, 22vh, 240px); }
.ct-soc { padding: 10px 16px; }
.ct-soc > svg { width: 22px; height: 22px; }
.ct-soc-name { font-size: 0.7rem; }
.ct-soc-handle { font-size: 0.6rem; }
.ct-socials-label { font-size: 0.64rem; }
@media (max-width: 640px) { .ct-mod { padding: 14px 16px; } }
