/*
Theme Name: TypoNi Services
Theme URI: https://typoni.com/
Author: TypoNi Services
Description: Custom WordPress theme matching the TypoNi Services static design.
Version: 1.0.0
Text Domain: typoni-services
*/

:root {
  --primary: #1e63ff;
  --primary-dark: #0e3eb3;
  --secondary: #09b5ff;
  --text: #11295d;
  --muted: #60749b;
  --bg: #f5f9ff;
  --white: #ffffff;
  --line: #dbe7fb;
  --shadow: 0 18px 50px rgba(13, 46, 120, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: all 0.28s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 26%, #f6faff 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.section-padding { padding: 5.5rem 0; }
.page-shell { overflow-x: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 231, 251, 0.85);
}
.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { height: 54px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-sm { padding: 0.85rem 1.2rem; font-size: 0.95rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(30, 99, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.02); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.contact .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}
.contact .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.hero .btn {
  padding: 1rem 1.5rem;
  min-width: 160px;
}
.desktop-cta { margin-left: 0.5rem; }
.mobile-cta { display: none; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
}

.hero {
  background:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.08), transparent 20%),
    radial-gradient(circle at 86% 14%, rgba(123, 214, 255, 0.24), transparent 16%),
    linear-gradient(135deg, #081d49, #073391 56%, #0d66ff 100%);
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 2rem;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #9ed5ff;
  margin-bottom: 1rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.35rem);
  line-height: 1.04;
  max-width: 11ch;
}
.hero h1 span { color: #68d5ff; }
.hero p {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: rgba(255,255,255,0.86);
  font-size: 1.06rem;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.mini-badge {
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
}
.mini-badge strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}
.mini-badge span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.73);
  line-height: 1.45;
}
.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.28));
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.75rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: 1.15;
}
.section-heading p {
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}
.services { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 55px rgba(7, 51, 145, 0.16);
}
.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.service-card p {
  margin: 0.7rem 1.2rem 1.35rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.service-card h3 {
  margin: 1.15rem 1.2rem 0;
  font-size: 1.1rem;
  line-height: 1.45;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem 1.25rem;
  gap: 1rem;
}
.card-footer a {
  color: var(--primary);
  font-weight: 700;
}
.price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.45rem;
}

.why-us { background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.feature-card,
.process-step,
.testimonial-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.feature-card h3,
.process-step h3,
.testimonial-card strong { margin: 0.85rem 0 0.55rem; }
.feature-card p,
.process-step p,
.testimonial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(30,99,255,.12), rgba(9,181,255,.16));
  font-size: 1.6rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 800;
}

.testimonials { background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.testimonial-card p { margin: 0.8rem 0 1rem; }
.testimonial-card span { color: var(--muted); font-size: 0.95rem; }
.stars { color: #ffb400; font-size: 1.05rem; letter-spacing: 0.12em; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 2rem;
}
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 3rem);
}
.contact-copy p {
  margin: 1.05rem 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 42rem;
}
.contact-list {
  margin-top: 1.65rem;
  display: grid;
  gap: 1rem;
}
.contact-item {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
}
.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}
.contact-visual img { width: 100%; }

.site-footer {
  background: linear-gradient(135deg, #0a1b47, #0d3385 55%, #0c65ff 100%);
  color: rgba(255,255,255,0.92);
  padding-top: 3.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo { height: 54px; margin-bottom: 0.8rem; }
.site-footer h3 { margin-top: 0; }
.site-footer p,
.site-footer li,
.site-footer a,
.footer-bottom span { color: rgba(255,255,255,0.78); }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.15rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

@media (max-width: 1080px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-visual, .contact-copy, .contact-visual { max-width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .desktop-cta { display: none; }
  .mobile-cta { display: inline-flex; margin-top: 0.8rem; }
  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.55rem);
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .hero-badges,
  .process-grid,
  .testimonial-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section-padding { padding: 4.2rem 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 1.2rem, 100%); }
  .services-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .btn, .contact .btn { width: 100%; }
  .hero-badges { grid-template-columns: 1fr; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
