/* =========================================================
   ITHAZH INFOTECH — Design system v2
   Palette drawn from the brand mark (magenta petal + deep ink)
   Display type: Sora (bold, geometric, technical-future)
   Body/UI type:  IBM Plex Sans (precise, technical grotesk)
   ========================================================= */

:root {
  --ink:        #14121A;
  --charcoal:   #0C0B10;
  --charcoal-2: #17141D;
  --charcoal-3: #211D29;
  --grey:       #6E6874;
  --grey-light: #A8A2AF;
  --line:       #2A2632;
  --line-soft:  #E9E3EA;

  --pink-deep:  #D6127C;
  --pink-hot:   #F2199B;
  --pink-mid:   #EA6FA6;
  --pink-light: #F5B9D3;
  --pink-pale:  #FCEBF3;
  --pink-ink:   #7A0E52;

  --violet:     #6C3AD6;

  --white:      #FFFFFF;
  --paper:      #FCFAFB;

  --grad-brand: linear-gradient(135deg, var(--pink-hot) 0%, var(--pink-deep) 55%, var(--pink-ink) 100%);
  --grad-dark:  linear-gradient(180deg, #0C0B10 0%, #17141D 100%);

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --container: 1220px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22,.68,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  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);
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 .5em;
  color: var(--charcoal);
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; color: var(--grey); max-width: 62ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(214,18,124,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(214,18,124,.6); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line-soft);
}
.btn-outline:hover { border-color: var(--pink-deep); color: var(--pink-deep); }
.btn-outline-dark {
  background: rgba(255,255,255,.04);
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}
.btn-outline-dark:hover { border-color: var(--pink-light); color: var(--pink-light); background: rgba(255,255,255,.08); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 11px 22px; font-size: .88rem; }

/* ---------- Header / nav (bold, centered) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 96px;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; justify-self: start; }
.nav-logo img { height: 72px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 6px;
  background: var(--pink-pale);
  border-radius: 999px;
  justify-self: center;
}
.nav-links a {
  display: inline-block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--charcoal);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { color: var(--pink-deep); }
.nav-links a.active { color: var(--pink-deep); }
.nav-actions { display: flex; align-items: center; gap: 20px; justify-self: end; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; height: 92px; }
  .nav-logo img { height: 58px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 92px; left: 16px; right: 16px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.15);
    max-height: 0;
    overflow: hidden;
    padding: 0 6px;
    transition: max-height .3s var(--ease), padding .3s var(--ease);
  }
  .nav-links.open { max-height: 420px; padding: 10px 6px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 20px; width: 100%; border-radius: 12px; text-align: center; }
  .nav-actions { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-dark);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 500px at 82% 15%, rgba(242,25,155,.28), transparent 60%),
    radial-gradient(500px 500px at 10% 90%, rgba(108,58,214,.18), transparent 60%);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 1.5px;
  padding-bottom: 10px;
}
.hero-eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--pink-light);
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(242,25,155,.12);
  border: 1px solid rgba(242,25,155,.3);
  padding: 7px 15px;
  border-radius: 999px;
}
.hero-eyebrow-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-hot); flex-shrink: 0; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  max-width: 13ch;
  font-weight: 800;
  margin-bottom: .4em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--pink-light), var(--pink-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--grey-light);
  font-size: 1rem;
  max-width: 46ch;
  margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px;}
.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  backdrop-filter: blur(6px);
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat span { font-size: 0.8rem; color: var(--grey-light); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-art svg { width: 100%; max-width: 480px; height: auto; }
.hero-float-card {
  position: absolute;
  background: rgba(23,20,29,.75);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.5);
  opacity: 0;
  animation: floatIn .7s var(--ease) forwards;
}
.hero-float-card .fc-dot { width: 9px; height: 9px; border-radius: 50%; background: #35D07F; box-shadow: 0 0 0 4px rgba(53,208,127,.2); }
.hero-float-card.fc1 { top: 6%; left: -4%; animation-delay: 1.1s; }
.hero-float-card.fc2 { bottom: 10%; right: -6%; animation-delay: 1.35s; }
@keyframes floatIn { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform: translateY(0);} }

.petal-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawPetal 1.7s var(--ease) forwards; }
.petal-fill { opacity: 0; animation: fadeInPetal 1s ease-out .5s forwards; }
.node-pulse { transform-origin: center; opacity: 0; animation: nodeIn .5s var(--ease) forwards; }
@keyframes drawPetal { to { stroke-dashoffset: 0; } }
@keyframes fadeInPetal { to { opacity: 1; } }
@keyframes nodeIn { to { opacity: 1; } }

.hero-logo-slide {
  width: 100%;
  max-width: 420px;
  opacity: 0;
  animation: slideInRight 1s var(--ease) forwards;
  animation-delay: .2s;
  filter: drop-shadow(0 30px 50px rgba(214,18,124,.35));
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(90px) scale(.94); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; min-height: auto; text-align: left; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto 24px; }
  .hero-float-card { display: none; }
}

/* ---------- Section basics ---------- */
section { padding: 110px 0; }
.section-tight { padding: 76px 0; }
#services { padding-top: 56px; }
#values { padding-top: 56px; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 800; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 16px;
  background: var(--pink-pale);
  padding: 7px 16px;
  border-radius: 999px;
}
.kicker.on-dark { background: rgba(242,25,155,.12); color: var(--pink-light); }
.kicker .rule { display: none; }

.bg-pale { background: var(--pink-pale); }
.bg-paper { background: var(--paper); }
.bg-charcoal { background: var(--grad-dark); color: var(--white); }
.bg-charcoal p { color: var(--grey-light); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--white); }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -20px rgba(214,18,124,.28);
  border-color: rgba(214,18,124,.35);
}
.service-icon {
  width: 62px; height: 62px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 14px 24px -10px rgba(214,18,124,.5);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: 0.95rem; margin-bottom: 22px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pink-deep);
  transition: gap .25s var(--ease);
}
.service-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.service-link:hover svg { transform: translateX(4px); }

@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Detailed service list (services page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 36px;
  align-items: start;
  padding: 110px 0;
  border-top: 1px solid var(--line-soft);
}
.service-detail:last-child { border-bottom: 1px solid var(--line-soft); }
.service-detail-icon {
  width: 68px; height: 68px;
  border-radius: 20px;
  background: var(--pink-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--pink-deep);
}
.service-detail-icon svg { width: 30px; height: 30px; }
.service-detail h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 800; }
.service-detail ul {
  margin: 18px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.service-detail ul li { font-size: 0.9rem; color: var(--grey); padding-left: 18px; position: relative; }
.service-detail ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: var(--pink-deep);
}
.service-detail-cta { text-align: right; }

@media (max-width: 880px) {
  .service-detail { grid-template-columns: 1fr; gap: 16px; }
  .service-detail ul { grid-template-columns: 1fr; }
  .service-detail-cta { text-align: left; }
}

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -18px rgba(214,18,124,.3);
  border-color: rgba(214,18,124,.35);
}
.value-card .value-num { font-family: var(--font-display); font-weight: 800; color: var(--pink-deep); font-size: 1.1rem; margin-bottom: 10px; display:block; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.value-card p { font-size: 0.9rem; margin: 0; }

.timeline { border-left: 2px solid var(--pink-pale); padding-left: 32px; }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -38px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--pink-pale);
}
.timeline-item b { display:block; font-family: var(--font-display); font-weight: 700; color: var(--charcoal); margin-bottom: 6px; font-size: 1.05rem; }
.timeline-item span { font-size: 0.9rem; color: var(--grey); }

.about-art { position: relative; }
.about-art svg { width: 100%; height: auto; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-brand);
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-band .container {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0; font-size: 1.85rem; max-width: 20ch; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.85); margin: 8px 0 0; }
.cta-band .btn-primary { background: var(--charcoal); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--ink); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-info-item {
  display: flex; gap: 18px; padding: 22px;
  border-radius: var(--radius-md);
  transition: background .25s var(--ease);
}
.contact-info-item:hover { background: var(--pink-pale); }
.contact-info-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--pink-pale);
  color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

.form-card {
  background: var(--ink);
  color: var(--white);
  padding: 46px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,25,155,.35), transparent 70%);
}
.form-card h3 { color: var(--white); position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.field { margin-bottom: 20px; position: relative; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--grey-light); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-light); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink-hot); background: rgba(255,255,255,.08); }
.field select option { background: var(--ink); color: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--grey-light); margin-top: 14px; position: relative; }
.form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 700; display: none; position: relative; }
.form-status.show { display: block; }
.form-status.ok { color: #4ADE80; }
.form-status.err { color: #FB7185; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 30px 24px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-dark); color: var(--grey-light); padding: 76px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.footer-logo { height: 45px; margin-bottom: 18px; }
.footer-col h5 { color: var(--white); font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--pink-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.83rem; flex-wrap: wrap; gap: 12px; }

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--grad-dark); color: var(--white); padding: 74px 0 66px; position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 400px at 90% 0%, rgba(242,25,155,.22), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 3.8vw, 3.1rem); max-width: 18ch; font-weight: 800; }
.page-hero p { color: var(--grey-light); max-width: 56ch; margin-top: 14px; }
.breadcrumb { font-size: 0.85rem; color: var(--grey-light); margin-bottom: 22px; }
.breadcrumb a { color: var(--pink-light); }

/* ---------- Logo bug ---------- */
.brand-mark-lockup { display: flex; align-items: center; gap: 14px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
