/* ============================================================
   ELSE — New landing (elseops.com)
   Holds only what can't be inlined: keyframes, ::selection,
   accordion (details/summary), @media overrides, ::placeholder,
   form select styling, and all :hover rules (ported from the
   mockup's style-hover attributes). The page itself uses inline
   styles, matching the hi-fi design source.
   ============================================================ */

html, body { margin: 0; padding: 0; background: #FBFAF8; }
* { box-sizing: border-box; }

::selection { background: rgba(255, 90, 31, 0.22); }

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(900%); } }
@keyframes flow { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ---------- anchor offset for sticky header ---------- */
section[id] { scroll-margin-top: 92px; }

html { scroll-behavior: smooth; }

/* ---------- accordion: cases ---------- */
details.case-card > summary { list-style: none; cursor: pointer; }
details.case-card > summary::-webkit-details-marker { display: none; }
details.case-card { transition: border-color 0.2s ease, background 0.2s ease; }
details.case-card:hover { border-color: rgba(255, 138, 82, 0.4); background: rgba(255, 255, 255, 0.05); }
details.case-card[open] .case-chev { transform: rotate(180deg); }
details.case-card[open] { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 138, 82, 0.35); }

/* ---------- accordion: faq ---------- */
details.faq-item > summary { list-style: none; cursor: pointer; }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item { transition: border-color 0.2s ease; }
details.faq-item:hover { border-color: rgba(255, 90, 31, 0.4); }
details.faq-item[open] { border-color: rgba(255, 90, 31, 0.35); }
details.faq-item[open] .faq-chev { transform: rotate(180deg); }

/* ---------- :hover rules (ported from style-hover) ---------- */
.lp-btn { transition: filter 0.2s ease, transform 0.2s ease; }
.lp-btn:hover { filter: brightness(1.06); }
.lp-btn-strong:hover { filter: brightness(1.08); }

.lp-nav-link { transition: color 0.2s ease, background 0.2s ease; }
.lp-nav-link:hover { color: #15120F; background: rgba(21, 18, 15, 0.05); }

.lp-pain-card:hover { border-color: rgba(255, 122, 56, 0.55) !important; background: rgba(255, 122, 56, 0.06) !important; }

.lp-service-card:hover { border-color: rgba(255, 90, 31, 0.4) !important; transform: translateY(-3px); }

.blog-card:hover { border-color: rgba(255, 90, 31, 0.45) !important; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21, 18, 15, 0.1) !important; }

.lp-allposts:hover { border-color: #FF5A1F !important; transform: translateY(-1px); }

.lp-social:hover { border-color: #FF5A1F !important; color: #FF8A52 !important; }

.lp-footer-link { transition: color 0.2s ease; }
.lp-footer-link:hover { color: #FF8A52; }

.lp-link-inline { transition: color 0.2s ease; }
.lp-link-inline:hover { color: #FF8A52; }

.lp-lang { transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.lp-lang:hover { border-color: rgba(21, 18, 15, 0.3); background: rgba(21, 18, 15, 0.05); }

.lp-submit { transition: filter 0.2s ease, transform 0.2s ease; }
.lp-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- form: phone picker (dark contact block) ---------- */
.phone-wrap {
  position: relative; display: flex; align-items: stretch;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(244, 241, 238, 0.14);
  border-radius: 12px; transition: border-color 0.2s ease, background 0.2s ease;
}
.phone-wrap:focus-within { border-color: #FF5A1F; background: rgba(255, 90, 31, 0.06); }
.phone-sel {
  display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px;
  background: none; border: none; border-right: 1px solid rgba(244, 241, 238, 0.14);
  color: rgba(244, 241, 238, 0.85); cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: color 0.2s ease; font-family: inherit;
}
.phone-sel:hover { color: #fff; }
.phone-flag-em { font-size: 20px; line-height: 1; }
.phone-sel-code { font-size: 14px; font-weight: 600; }
.phone-sel-arr { width: 10px; height: 6px; color: rgba(244, 241, 238, 0.4); flex-shrink: 0; transition: transform 0.2s ease; }
.phone-sel.open .phone-sel-arr { transform: rotate(180deg); }
.phone-num {
  flex: 1; min-width: 0; width: auto;
  background: none; border: none; border-radius: 0;
  padding: 14px 16px; color: #F4F1EE; font-family: inherit; font-size: 15px; outline: none;
}
.phone-num::placeholder { color: rgba(244, 241, 238, 0.38); }
.phone-drop {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  width: 290px; max-width: calc(100vw - 64px); max-height: 260px; overflow-y: auto;
  background: #1C1A26; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); z-index: 999;
}
.phone-drop.open { display: block; }
.phone-drop::-webkit-scrollbar { width: 4px; }
.phone-drop::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
.phone-search-inp {
  width: 100%; padding: 10px 14px; background: transparent;
  border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff; font-family: inherit; font-size: 14px; outline: none; box-sizing: border-box;
}
.phone-search-inp::placeholder { color: rgba(255, 255, 255, 0.28); }
.phone-div { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 4px 0; }
.phone-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  cursor: pointer; transition: background 0.15s ease;
}
.phone-opt:hover, .phone-opt.active { background: rgba(255, 255, 255, 0.07); }
.phone-opt-flag { font-size: 20px; line-height: 1; flex-shrink: 0; }
.phone-opt-name { font-size: 14px; color: rgba(255, 255, 255, 0.8); flex: 1; }
.phone-opt-code { font-size: 13px; color: rgba(255, 255, 255, 0.35); }

/* ---------- form: text inputs & placeholders ---------- */
.lp-input::placeholder, .lp-textarea::placeholder { color: rgba(244, 241, 238, 0.38); }
.lp-input:focus, .lp-textarea:focus { border-color: #FF5A1F; background: rgba(255, 90, 31, 0.06); }

/* ---------- contact modal ---------- */
.modal-ov {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(12, 9, 7, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-ov.open { display: flex; animation: fadeUp 0.25s ease both; }
.modal-box {
  width: 100%; max-width: 460px; background: #FBFAF8;
  border-radius: 20px; padding: clamp(24px, 4vw, 36px);
  position: relative; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 70px rgba(21, 18, 15, 0.35);
  border: 1px solid rgba(21, 18, 15, 0.08);
}
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(21, 18, 15, 0.05); border: 1px solid rgba(21, 18, 15, 0.1);
  border-radius: 50%; color: rgba(21, 18, 15, 0.6); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease; padding: 0;
}
.modal-x:hover { background: rgba(21, 18, 15, 0.1); color: #15120F; }

/* light-variant fields inside the modal */
.modal-input::placeholder { color: rgba(21, 18, 15, 0.4); }
.modal-input:focus { border-color: #FF5A1F; background: #FFFFFF; }
.modal-form .phone-wrap {
  background: #FFFFFF; border-color: rgba(21, 18, 15, 0.16);
}
.modal-form .phone-wrap:focus-within { border-color: #FF5A1F; background: #FFFFFF; }
.modal-form .phone-sel {
  border-right-color: rgba(21, 18, 15, 0.12); color: rgba(21, 18, 15, 0.8);
}
.modal-form .phone-sel:hover { color: #15120F; }
.modal-form .phone-sel-arr { color: rgba(21, 18, 15, 0.4); }
.modal-form .phone-num { color: #15120F; }
.modal-form .phone-num::placeholder { color: rgba(21, 18, 15, 0.4); }

/* ---------- responsive overrides ---------- */
@media (max-width: 720px) {
  .hdr-nav { display: none !important; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .hero-photo { justify-self: center !important; margin-left: auto; margin-right: auto; }
  .about-photo { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; text-align: center; }
  .cta-row > span { width: 100%; text-align: center; }
  .faq-aside { position: static !important; top: auto !important; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }
}

/* ---------- header: keep on one line on small screens ---------- */
@media (max-width: 600px) {
  .hdr-sub { display: none !important; }
  .hdr-cta { padding: 9px 14px !important; font-size: 13px !important; }
}
@media (max-width: 410px) {
  .hdr-cta { padding: 8px 12px !important; font-size: 12px !important; gap: 5px !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
