/* EaseMyAsset Technologies — shared styles */
:root {
  --ink: #0f172a;
  --ink-soft: #1e3a5f;
  --muted: #64748b;
  --paper: #ffffff;
  --surface: #f5f9ff;
  --line: rgba(37, 99, 235, 0.14);
  --brand: #3b82f6;
  --brand-deep: #1d4ed8;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --glow: rgba(37, 99, 235, 0.28);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  position: relative;
}

.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  position: relative;
  min-width: 52px;
  height: 40px;
  padding: 0 0.55rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #60a5fa 0%, #3b82f6 40%, #1d4ed8 100%);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-indent: 0.14em;
  box-shadow:
    0 8px 22px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: logoShine 4.5s ease-in-out infinite;
}

@keyframes logoShine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-deep);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px var(--glow);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(14, 26, 31, 0.18);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.btn-accent {
  background: linear-gradient(135deg, #60a5fa 0%, var(--accent) 55%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px var(--glow);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 55% at 90% 15%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 60% at 8% 85%, rgba(37, 99, 235, 0.12), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #eff6ff 45%, #dbeafe 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.05;
  color: var(--brand-deep);
  background: linear-gradient(120deg, var(--brand-deep) 10%, var(--accent) 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(1.35rem, 4.5vw, 2.35rem);
  font-weight: 650;
  max-width: 100%;
  margin-bottom: 1rem;
  color: var(--ink);
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 100%;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
  width: 100%;
  max-width: 100%;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-actions .btn {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.hero-orb {
  position: absolute;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: -4%;
  bottom: -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(219, 234, 254, 0.95), transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.45), transparent 60%),
    radial-gradient(circle at 50% 50%, #dbeafe, #eff6ff);
  filter: blur(2px);
  animation: floatOrb 8s ease-in-out infinite;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-dark {
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.65rem;
}

.section-dark .eyebrow {
  color: var(--brand-deep);
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-head p {
  color: var(--muted);
}

/* Service grid — interaction containers, not decorative cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-item {
  padding: 1.5rem 1.35rem;
  border-top: 2px solid var(--brand);
  background: transparent;
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-item:hover {
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-3px);
}

.section-alt .service-item {
  border-top-color: var(--brand);
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.service-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.why-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.why-item p {
  color: var(--muted);
  margin: 0;
}

/* Pricing strip */
.pricing-box {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.pricing-box ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.pricing-box li {
  margin-bottom: 0.85rem;
}

.pricing-box strong {
  color: var(--ink);
}

/* CTA panels */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cta-panel {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.12), transparent 60%),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-panel h3 {
  font-size: 1.4rem;
}

.cta-panel p {
  color: var(--muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(59, 130, 246, 0.18), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #dbeafe 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
  color: var(--ink);
}

.page-hero p {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.08rem;
}

/* About */
.mission-list,
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.mission-list li,
.service-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.mission-list li::before,
.service-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.leaders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.leader {
  padding: 1.75rem 0;
  border-top: 2px solid var(--accent);
}

.leader h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.leader .role {
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.leader p {
  color: var(--muted);
  margin: 0;
}

.company-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.meta-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.meta-item strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details a {
  color: var(--brand-deep);
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.15);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.map-embed {
  margin-top: 1.25rem;
  border: 0;
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  filter: grayscale(0.2) contrast(1.05);
}

/* Legal pages */
.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal ul {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.legal li {
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: var(--ink-soft);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand {
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.site-footer h4 {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.cin {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile sticky contact bar — always reachable */
.mobile-contact-bar {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  /* Never leave content invisible on mobile */
  .reveal {
    opacity: 1;
    transform: none;
  }

  .service-grid,
  .cta-row,
  .leaders,
  .company-meta,
  .contact-layout,
  .footer-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .header-mobile-actions {
    display: flex;
    margin-left: auto;
  }

  .btn-contact-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px var(--glow);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 60;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
  }

  .nav.open {
    flex-wrap: wrap;
    padding: 0.75rem 0 1rem;
  }

  .nav.open .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 3;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav.open .nav-links li a {
    display: block;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav.open .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav.open .nav-links a.active::after,
  .nav.open .nav-links a:hover::after {
    display: none;
  }

  .nav.open .nav-actions {
    width: 100%;
    order: 4;
    margin-top: 0.65rem;
  }

  .hero {
    overflow: visible;
  }

  .hero-orb {
    display: none;
  }

  .hero-brand {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    letter-spacing: -0.02em;
    /* Solid color fallback — gradient clip can disappear on some phones */
    color: var(--brand-deep);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--brand-deep);
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42vw;
  }

  .mobile-contact-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: #ffffff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(37, 99, 235, 0.12);
    padding: 0.55rem 0.4rem calc(0.55rem + env(safe-area-inset-bottom));
  }

  .mobile-contact-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: center;
  }

  .mobile-contact-bar a span.icon {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-deep);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  body {
    padding-bottom: 72px;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .brand > span:last-child {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0 3rem;
    overflow: visible;
  }

  .hero-inner {
    padding-inline: 0;
  }

  .hero-brand {
    font-size: 1.9rem;
    width: 100%;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .nav-actions .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.9rem 1rem;
  }

  .btn-contact-mobile {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .brand > span:last-child {
    max-width: 34vw;
  }

  .section {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 2.75rem 0 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Success popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.popup-overlay.open {
  display: flex;
}

.popup-card {
  width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.22);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  animation: popupIn 0.28s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: var(--brand-deep);
  font-size: 1.75rem;
  font-weight: 800;
}

.popup-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.popup-card p {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.popup-card .btn {
  min-width: 140px;
}

.form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}
