/* ============================================
   ASIF Enterprises — tokens
   ============================================ */
:root {
  --ink: #0a0a0a;
  --panel: #141414;
  --white: #ffffff;
  --off-white: #f7f6f3;
  --border: #e2dfd9;
  --border-soft: rgba(10, 10, 10, 0.1);
  --muted: #77746e;
  --muted-light: rgba(255, 255, 255, 0.6);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1140px;
  --pad: clamp(24px, 5vw, 72px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

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

.grain { display: none; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-logo {
  height: 30px;
  width: auto;
}

.nav-mark-text {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-mark-text span { color: var(--muted); font-weight: 400; }

@media (max-width: 480px) {
  .nav-mark-text { display: none; }
}

.nav-links {
  display: flex;
  gap: 36px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  width: 100%;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: calc(76px + clamp(64px, 12vh, 140px)) var(--pad) clamp(80px, 10vh, 120px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

.hero-inner {
  max-width: 640px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

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

.hero-kicker {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #3c3a36;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-mark { display: none; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: #262624; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-soft);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
}
.btn-light:hover { background: transparent; color: var(--white); }

.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .nav-cta:hover .arrow, .footer a:hover .arrow { transform: translateX(3px); }

/* ============================================
   Section label
   ============================================ */
.section-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-label-light { color: var(--muted-light); }

/* ============================================
   About
   ============================================ */
.about {
  border-top: 1px solid var(--border);
  padding: clamp(72px, 10vh, 120px) var(--pad);
}

.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.about-title {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  margin-bottom: 28px;
}

.about-body {
  font-size: 16px;
  line-height: 1.7;
  color: #3c3a36;
  max-width: 480px;
}
.about-body + .about-body { margin-top: 16px; }

.about-graphic {
  color: var(--ink);
  opacity: 0.85;
  justify-self: center;
  width: 100%;
  max-width: 280px;
}

@media (max-width: 800px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-graphic { display: none; }
}

/* ============================================
   Services
   ============================================ */
.services {
  border-top: 1px solid var(--border);
  padding: clamp(72px, 10vh, 120px) var(--pad);
}

.services-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.services-title {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 48px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-card {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.service-card:hover { background: rgba(10, 10, 10, 0.03); }

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
}

/* ============================================
   PRAL — inverted panel (the one bold moment)
   ============================================ */
.pral {
  background: var(--panel);
  color: var(--white);
  padding: clamp(80px, 12vh, 140px) var(--pad);
}

.pral-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.pral-title {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.pral-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 40px;
  max-width: 460px;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: clamp(80px, 12vh, 140px) var(--pad);
}

.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 20px;
}

.contact-meta {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
}
.contact-site { color: var(--ink); font-weight: 500; }

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.whatsapp-icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--pad);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   Mobile nav
   ============================================ */
@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a {
    padding: 16px var(--pad);
    border-top: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }

  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
