/* ============================================================
   IZZTECH DIGITAL — Main Stylesheet
   Colours: teal #10C5A0  |  blue #0079C2  |  bg navy #05101E
   ============================================================ */

:root {
  --accent:   #10C5A0;       /* teal — matches logo icon */
  --accent2:  #0079C2;       /* blue — matches logo icon */
  --bg0:      #05101E;
  --bg1:      #08192E;
  --text:     rgba(255, 255, 255, .92);
  --muted:    rgba(255, 255, 255, .72);
  --line:     rgba(255, 255, 255, .14);
  --shadow:   0 18px 45px rgba(0, 0, 0, .45);
  --r:        16px;
  --headerH:  72px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-top: var(--headerH); /* offset for fixed header */
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 70% -15%, rgba(0, 121, 194, .22), rgba(0, 121, 194, 0) 60%),
    radial-gradient(700px 500px at 5% 20%,   rgba(16, 197, 160, .15), rgba(16, 197, 160, 0) 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }


/* ── Header ──────────────────────────────────────────────── */

header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: rgba(7, 10, 19, .70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s ease;
}

header.nav-hidden { transform: translateY(-100%); }

header .navRow { height: var(--headerH); align-items: center; }

.navRow {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 180px; }

/* Fallback mark shown when logo image fails to load */
.logoMark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 8px 24px rgba(16, 197, 160, .25);
}

.logoImg {
  height: 44px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 4px 8px;
  object-fit: contain;
  display: block;
}

.brandText { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.brandText b { font-size: 15px; font-weight: 950; letter-spacing: .2px; }
.brandText span {
  font-size: 11px; font-weight: 850; letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
}


/* ── Desktop navigation ──────────────────────────────────── */

nav.desktopNav { display: none; align-items: center; gap: 10px; }

@media (min-width: 980px) {
  nav.desktopNav      { display: flex; }
  button.hamburger    { display: none; }
}

.navLink, .ddBtn {
  padding: 10px 12px; border-radius: 12px;
  font-weight: 950; color: rgba(255, 255, 255, .86);
  border: 1px solid transparent; background: transparent;
  cursor: pointer; white-space: nowrap;
}
.navLink:hover, .ddBtn:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}


/* ── AI dropdown ─────────────────────────────────────────── */

.dropdown { position: relative; }
.ddBtn    { display: flex; align-items: center; gap: 10px; }

.chev {
  width: 10px; height: 10px;
  border-right:  2px solid rgba(255, 255, 255, .82);
  border-bottom: 2px solid rgba(255, 255, 255, .82);
  transform: rotate(45deg); margin-top: -3px;
}
.dropdown[data-open="true"] .chev { transform: rotate(-135deg); margin-top: 3px; }

.menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 360px;
  background: rgba(10, 14, 26, .95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}
.dropdown[data-open="true"] .menu { display: block; }

.menuTitle {
  padding: 10px 12px 6px 12px;
  font-size: 12px; font-weight: 950; letter-spacing: .32px;
  text-transform: uppercase; color: rgba(255, 255, 255, .74);
}

.menuGrid { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 6px 0 2px; }
@media (min-width: 1180px) { .menuGrid { grid-template-columns: 1fr 1fr; } }

.menuItem {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}
.menuItem       { transition: background .15s ease, border-color .15s ease; }
.menuItem span  { font-weight: 950; transition: color .15s ease; }
.menuItem i     { transition: color .15s ease; }
.menuItem:hover { background: rgba(255, 255, 255, .07); border-color: rgba(16, 197, 160, .45); }
.menuItem:hover span,
.menuItem:hover i { color: var(--accent); }

/* ── Menu item tooltip ───────────────────────────────────── */
@media (hover: hover) {
  .menuItem[data-tip] { position: relative; }

  .menuItem[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 7px);
    left: 0; right: 0;
    background: rgba(5, 10, 22, .97);
    border: 1px solid rgba(16, 197, 160, .40);
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 12px; font-weight: 400;
    color: rgba(255, 255, 255, .80);
    line-height: 1.5;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 400;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  }

  .menuItem[data-tip]:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Hamburger (mobile) ──────────────────────────────────── */

button.hamburger {
  width: 42px; height: 42px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .92);
  cursor: pointer;
}

.hamburgerIcon { width: 18px; height: 12px; position: relative; display: inline-block; }
.hamburgerIcon:before, .hamburgerIcon:after, .hamburgerIcon span {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .92);
}
.hamburgerIcon:before { top: 0; }
.hamburgerIcon span   { top: 5px; }
.hamburgerIcon:after  { bottom: 0; }


/* ── Mobile panel ────────────────────────────────────────── */

.mobilePanel {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--headerH);
  background: rgba(7, 10, 19, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  padding: 14px 0 18px;
}
.mobilePanel[data-open="true"] { display: block; }

.mobileStack { display: flex; flex-direction: column; gap: 12px; }

.mobileDropdownButton {
  width: 100%; text-align: left;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 12px 14px;
  font-weight: 950; color: rgba(255, 255, 255, .92);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}

.mobileLinks { display: none; flex-direction: column; gap: 8px; padding: 6px 0 0; }
.mobileLinks[data-open="true"] { display: flex; }

.mobileLink {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .02);
}


/* ── Hero section ────────────────────────────────────────── */

main.hero { padding: 56px 0 20px; }

.heroCard {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow);
  background:
    radial-gradient(600px 420px at 15% 10%, rgba(16, 197, 160, .30), rgba(16, 197, 160, 0) 60%),
    radial-gradient(520px 380px at 90% 20%, rgba(0, 121, 194, .28),  rgba(0, 121, 194, 0)  55%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.heroInner {
  padding: 44px 20px;
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start;
}
@media (min-width: 900px) {
  .heroInner { grid-template-columns: 1.05fr .95fr; min-height: 420px; }
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  width: fit-content; margin-bottom: 18px;
}
.kickerDot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(16, 197, 160, .20);
}
.kicker span {
  font-size: 12px; font-weight: 1000; letter-spacing: .32px;
  text-transform: uppercase; color: rgba(255, 255, 255, .86);
}

h1 {
  margin: 0 0 10px 0;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.04; font-weight: 1000; letter-spacing: -.02em;
}

.heroSub {
  margin: 0 0 24px 0; color: var(--muted);
  line-height: 1.65; font-size: 16px; max-width: 62ch;
}

.ctaRow { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  border-radius: 14px; padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer; font-weight: 1000; letter-spacing: .2px;
  color: rgba(255, 255, 255, .96); background: rgba(255, 255, 255, .04);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .07); }

.btnPrimary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: rgba(16, 197, 160, .65);
  box-shadow: 0 12px 28px rgba(16, 197, 160, .22);
}
.btnPrimary:hover {
  filter: brightness(1.10);
  border-color: rgba(16, 197, 160, .90);
  box-shadow: 0 16px 36px rgba(16, 197, 160, .32);
}

.arrow {
  width: 18px; height: 18px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  display: inline-flex; align-items: center; justify-content: center;
}


/* ── Content sections ────────────────────────────────────── */

section.content { padding: 16px 0 40px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .grid { grid-template-columns: 1.1fr .9fr; gap: 24px; } }

.block {
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.block h2 { margin: 0 0 10px 0; font-size: 26px; font-weight: 1000; letter-spacing: -.01em; }
.block p  { margin: 0; color: var(--muted); line-height: 1.75; }


/* ── Why Choose section ──────────────────────────────────── */

.whyChooseAside { display: flex; flex-direction: column; }

.whyChooseTitle {
  margin: 0 0 18px 0;
  font-size: 22px; font-weight: 1000; letter-spacing: -.02em; line-height: 1.15;
}

.featureGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

@media (max-width: 599px) {
  .featureGrid { grid-template-columns: 1fr; }
}

.featureCard {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, background .2s ease;
}
.featureCard:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(16, 197, 160, .40);
}

.featureIcon {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(16, 197, 160, .10);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.featureTitle {
  margin: 0;
  font-size: 13px; font-weight: 950; letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.25;
}

.featureDesc {
  margin: 0;
  font-size: 12px; color: var(--muted); line-height: 1.65;
}


/* ── Contact form ────────────────────────────────────────── */

form.formRow { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.formField { display: flex; flex-direction: column; gap: 4px; }

label {
  font-size: 12px; color: rgba(255, 255, 255, .72);
  font-weight: 1000; letter-spacing: .28px; text-transform: uppercase;
}

input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .20); color: rgba(255, 255, 255, .95); outline: none;
}
textarea { min-height: 110px; resize: vertical; }

input:focus, textarea:focus {
  border-color: rgba(16, 197, 160, .75);
  box-shadow: 0 0 0 4px rgba(16, 197, 160, .14);
}

/* ── Word counter ────────────────────────────────────────── */
.wordCountRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  min-height: 18px;
}

.wordCount {
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  color: rgba(255, 255, 255, .40);
  white-space: nowrap;
  transition: color .2s ease;
  flex-shrink: 0;
}

.wordCountWarn { color: rgba(255, 190, 60, .90); }  /* ≥ 85 % */
.wordCountOver { color: rgba(220, 60, 60, .95); }   /* > 600 */


/* ── Field validation ────────────────────────────────────── */
input.inputError, textarea.inputError {
  border-color: rgba(220, 60, 60, .70);
  box-shadow: 0 0 0 4px rgba(220, 60, 60, .12);
}

.fieldError {
  font-size: 12px; font-weight: 600;
  color: rgba(255, 110, 110, .95);
  line-height: 1.4;
  min-height: 16px;
}

/* ── Submit button loading state ─────────────────────────── */
.btnSpinner {
  display: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .30);
  border-top-color: rgba(255, 255, 255, .95);
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Form feedback banner ────────────────────────────────── */
#formFeedback {
  margin-top: 4px;
  border-radius: 12px;
  padding: 0;
  font-size: 13px; font-weight: 600; line-height: 1.5;
  transition: all .25s ease;
}

.feedbackSuccess {
  padding: 12px 16px;
  border: 1px solid rgba(16, 197, 160, .50);
  background: rgba(16, 197, 160, .10);
  color: rgba(16, 197, 160, .95);
  border-radius: 12px;
}

.feedbackError {
  padding: 12px 16px;
  border: 1px solid rgba(220, 60, 60, .45);
  background: rgba(220, 60, 60, .10);
  color: rgba(255, 110, 110, .95);
  border-radius: 12px;
}


/* ── Pillars of Execution carousel ──────────────────────── */

.pillarsSection { padding-bottom: 64px; }

.pillarsHeader  { margin-bottom: 32px; }

.pillarsKicker {
  font-size: 13px; font-weight: 1000; letter-spacing: .36px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}

.pillarsSectionTitle {
  margin: 0 0 14px 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 1000; letter-spacing: -.02em; line-height: 1.08;
  color: var(--text);
}

.pillarsSub {
  margin: 0;
  font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 78ch;
}

.pillarsViewport {
  overflow: hidden;
  border-radius: 4px;
}

.pillarsTrack {
  display: flex;
  gap: 18px;
  align-items: stretch;
  transition: transform .60s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.pillarCard {
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, .04);
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: border-color .2s ease, background .2s ease;
}
.pillarCard:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(16, 197, 160, .55);
  border-left-color: var(--accent);
}

.pillarCardTitle {
  margin: 0;
  font-size: 16px; font-weight: 1000; letter-spacing: -.01em;
  color: var(--text); line-height: 1.3;
}

.pillarCardDesc {
  margin: 0; flex: 1;
  font-size: 13px; color: var(--muted); line-height: 1.72;
}

.pillarCardLink {
  font-size: 13px; font-weight: 950; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .15s ease; width: fit-content;
}
.pillarCardLink:hover { color: var(--accent2); }

.pillarsDots {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 24px;
}

.pillarDot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .25);
  transition: background .25s ease, width .25s ease, border-radius .25s ease;
}
.pillarDot.active {
  background: var(--accent);
  width: 24px; border-radius: 4px;
}
.pillarDot:hover:not(.active) { background: rgba(255, 255, 255, .50); }


/* ── Mobile — base fixes ─────────────────────────────────── */

/* Prevent iOS Safari from zooming on input focus */
input, textarea {
  font-size: 16px;
}

/* Contact submit button — controlled by CSS, not inline style */
#contactSubmit { width: 100%; }
@media (min-width: 600px) {
  #contactSubmit { width: auto; min-width: 220px; }
}


/* ── Mobile — small screens (≤ 599 px) ──────────────────── */
@media (max-width: 599px) {

  /* Tighter horizontal padding on very small phones */
  .wrap { padding: 0 16px; }

  /* Reduce hero top padding */
  main.hero { padding: 28px 0 14px; }
  .heroInner { padding: 28px 16px; }

  /* Hero CTA buttons: full width, stacked */
  .ctaRow { flex-direction: column; }
  .ctaRow .btn { width: 100%; min-width: unset; }

  /* Section headings slightly smaller */
  .block h2 { font-size: 21px; }
  .whyChooseTitle { font-size: 19px; }

  /* Pillars header */
  .pillarsHeader { margin-bottom: 22px; }
  .pillarsSub { font-size: 14px; }

  /* Carousel dots slightly tighter */
  .pillarsDots { gap: 6px; margin-top: 18px; }

  /* Contact form */
  section.content { padding: 12px 0 32px; }
}


/* ── Footer ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0 30px; color: rgba(255, 255, 255, .65);
}
.footerRow { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 700px) {
  .footerRow { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footerLinks { display: flex; flex-wrap: wrap; gap: 12px; }
.footerLinks a {
  font-weight: 900; color: rgba(255, 255, 255, .65);
  border-bottom: 1px solid transparent;
}
.footerLinks a:hover {
  color: rgba(255, 255, 255, .9);
  border-bottom-color: rgba(16, 197, 160, .65);
}
