/* Atif Solutions — brand-aligned theme (navy #1B365D · sky #29ABE2) */

:root {
  --navy: #1b365d;
  --sky: #29abe2;
  --sky-deep: #1f8fc4;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-elevated: #ffffff;
  --ink: #1b365d;
  --ink-muted: #4a5f78;
  --border: rgba(27, 54, 93, 0.1);
  --accent: var(--sky);
  --accent-soft: rgba(41, 171, 226, 0.14);
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 24px 48px -24px rgba(27, 54, 93, 0.2);
  --font-sans: "Montserrat", system-ui, sans-serif;
  --space-section: clamp(4.5rem, 10vw, 7rem);
  --container: min(1120px, 100% - 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sky-deep);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
  z-index: 100;
  border-radius: 6px;
}

.skip-link:focus {
  left: 0.75rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  height: clamp(2.25rem, 4.5vw, 2.65rem);
  width: auto;
  display: block;
}

.logo:hover img {
  opacity: 0.92;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px -4px rgba(41, 171, 226, 0.55);
}

.nav-cta:hover {
  background: var(--navy);
  color: #fff !important;
  box-shadow: 0 4px 14px -4px rgba(27, 54, 93, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 1.35rem;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 0 var(--space-section);
}

.hero::before {
  content: "";
  position: absolute;
  right: -15%;
  top: -20%;
  width: min(55vw, 520px);
  height: 140%;
  background: linear-gradient(
    152deg,
    rgba(41, 171, 226, 0.12) 0%,
    rgba(41, 171, 226, 0.02) 45%,
    transparent 70%
  );
  transform: skewX(-14deg);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

  .hero-panel {
    order: -1;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--navy);
}

.headline-accent {
  display: block;
  margin-top: 0.12em;
  font-weight: 700;
  background: linear-gradient(120deg, var(--sky) 0%, var(--sky-deep) 55%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 36ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(41, 171, 226, 0.55);
}

.btn-primary:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(27, 54, 93, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 54, 93, 0.2);
}

.btn-ghost:hover {
  border-color: var(--sky);
  color: var(--navy);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero-panel {
    justify-content: flex-start;
  }
}

.hero-card {
  width: 100%;
  max-width: 380px;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky);
  box-shadow: var(--shadow);
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  font-size: 0.9375rem;
  border-top: 1px solid var(--border);
}

.hero-list li:first-of-type {
  border-top: none;
  padding-top: 0;
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section-head {
  max-width: 52ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.section-head code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--sky-deep);
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.service-card {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: rgba(41, 171, 226, 0.45);
  box-shadow: 0 16px 40px -28px rgba(27, 54, 93, 0.18);
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Work teaser */
.work-teaser {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.work-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 768px) {
  .work-inner {
    grid-template-columns: 1fr;
  }
}

.work-inner h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.work-inner > div > p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40ch;
}

.work-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.work-stats li {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.work-stats li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.work-stats strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.work-stats span {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Clients */
.clients {
  background: var(--bg);
}

.client-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 1.75rem 1.35rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
  border-color: rgba(41, 171, 226, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.client-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.client-card-link:hover .client-url {
  color: var(--sky-deep);
  text-decoration: underline;
}

.client-card-link:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
  border-radius: 8px;
}

.client-logo-wrap {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.client-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.client-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.client-url {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.client-desc {
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-muted);
  text-align: left;
  flex-grow: 1;
}

.client-product {
  font-weight: 700;
  color: var(--navy);
}

/* Contact */
.contact {
  background: linear-gradient(155deg, var(--navy) 0%, #0f1f36 48%, #0a1628 100%);
  color: #e8eaef;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -40%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    52deg,
    rgba(41, 171, 226, 0.15) 0%,
    transparent 55%
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 700px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

.contact h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.contact .contact-inner > div > p {
  margin: 0;
  color: rgba(232, 234, 239, 0.75);
  max-width: 38ch;
}

.contact-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-email {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-email a {
  color: #fff;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
  color: var(--sky);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-loc {
  font-weight: 600;
  color: var(--navy);
}
